Skip to content

Commit 10952cd

Browse files
authored
fix(site): link a release's other highlights when an area filter hides them (#62500)
1 parent e8171f1 commit 10952cd

42 files changed

Lines changed: 192 additions & 22 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎services/site/src/component/site/changelog-entry.css‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,22 @@
100100
/* Settings › Changelog title › mono: the earlier mono titles, headings and labels. */
101101
[data-title="mono"]
102102
&
103-
:is([data-slot="subhead"], [data-slot="group-label"], [data-slot="area"], [data-slot="show-more"]) {
103+
:is(
104+
[data-slot="subhead"],
105+
[data-slot="group-label"],
106+
[data-slot="area"],
107+
[data-slot="show-more"],
108+
[data-slot="all-highlights"]
109+
) {
104110
font-family: var(--font-mono);
105111
font-size: var(--mono-size);
106112
font-weight: 400;
107113
line-height: 1.3;
108114
}
109115

110-
[data-title="mono"] & :is([data-slot="area"], [data-slot="show-more"], [data-slot="group-label"]) {
116+
[data-title="mono"]
117+
&
118+
:is([data-slot="area"], [data-slot="show-more"], [data-slot="all-highlights"], [data-slot="group-label"]) {
111119
font-size: var(--fs-meta);
112120
line-height: 1.55;
113121
}
@@ -484,9 +492,17 @@
484492
}
485493
}
486494

495+
/* Under a filtered entry's highlights, a link to the release's page for the ones the filter left out. */
496+
[data-slot="all-highlights"] {
497+
margin-top: -1.25rem;
498+
}
499+
487500
[data-slot="show-more"] {
488-
align-self: flex-start;
489501
margin-inline-start: 7.5rem;
502+
}
503+
504+
:is([data-slot="show-more"], [data-slot="all-highlights"]) {
505+
align-self: flex-start;
490506
font-size: var(--fs-meta);
491507
color: var(--text-weak);
492508
text-decoration: none;
@@ -563,6 +579,11 @@
563579
margin-block: -0.75rem;
564580
}
565581

582+
[data-slot="all-highlights"] {
583+
padding-block: 0.75rem;
584+
margin-block: -1.75rem -0.75rem;
585+
}
586+
566587
[data-slot="meta"] :is(a, [data-slot="copy-link"]) {
567588
padding-block: 0.75rem;
568589
margin-block: -0.75rem;

‎services/site/src/component/site/changelog-entry.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,11 @@ function EntryBody(props: { entry: ChangelogEntry; level: 1 | 2 | 3; media?: Sli
775775
</section>
776776
)}
777777
</For>
778+
<Show when={props.entry.hiddenFeatures > 0}>
779+
<a data-slot="all-highlights" href={page()}>
780+
{i18n.t("changelog.highlights.all", { tag: props.entry.releases[0].tag })}
781+
</a>
782+
</Show>
778783

779784
<Show when={props.entry.breaking.length > 0}>
780785
<section data-slot="group" data-kind="breaking">

‎services/site/src/i18n/ar.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ export const dict = {
282282
"changelog.media.pause": "إيقاف مؤقت",
283283
"changelog.media.play": "تشغيل الفيديو",
284284
"changelog.list.more": "{{count}} أخرى",
285+
"changelog.highlights.all": "كل أبرز ما في {{tag}}",
285286
"site.newTab": "{{label}} (يفتح في علامة تبويب جديدة)",
286287
"site.products.label": "المنتجات",
287288
"site.products.gridLabel": "منتجات OpenCode",

‎services/site/src/i18n/br.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const dict = {
284284
"changelog.media.pause": "Pausar vídeo",
285285
"changelog.media.play": "Tocar vídeo",
286286
"changelog.list.more": "Mais {{count}}",
287+
"changelog.highlights.all": "Ver todos os destaques da {{tag}}",
287288
"site.newTab": "{{label}} (abre em uma nova aba)",
288289
"site.products.label": "Produtos",
289290
"site.products.gridLabel": "Produtos OpenCode",

‎services/site/src/i18n/da.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const dict = {
285285
"changelog.media.pause": "Pause",
286286
"changelog.media.play": "Afspil",
287287
"changelog.list.more": "{{count}} mere",
288+
"changelog.highlights.all": "Se alle højdepunkter i {{tag}}",
288289
"site.newTab": "{{label}} (åbner i en ny fane)",
289290
"site.products.label": "Produkter",
290291
"site.products.gridLabel": "OpenCode-produkter",

‎services/site/src/i18n/de.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const dict = {
284284
"changelog.media.pause": "Pausieren",
285285
"changelog.media.play": "Abspielen",
286286
"changelog.list.more": "{{count}} weitere",
287+
"changelog.highlights.all": "Alle Highlights in {{tag}} ansehen",
287288
"site.newTab": "{{label}} (öffnet in neuem Tab)",
288289
"site.products.label": "Produkte",
289290
"site.products.gridLabel": "OpenCode-Produkte",

‎services/site/src/i18n/en.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const dict = {
284284
"changelog.media.pause": "Pause video",
285285
"changelog.media.play": "Play video",
286286
"changelog.list.more": "{{count}} more",
287+
"changelog.highlights.all": "See all highlights in {{tag}}",
287288
"site.newTab": "{{label}} (opens in a new tab)",
288289
"site.products.label": "Products",
289290
"site.products.gridLabel": "OpenCode products",

‎services/site/src/i18n/es.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const dict = {
285285
"changelog.media.pause": "Pausar",
286286
"changelog.media.play": "Reproducir",
287287
"changelog.list.more": "{{count}} más",
288+
"changelog.highlights.all": "Ver todos los destacados de {{tag}}",
288289
"site.newTab": "{{label}} (se abre en una pestaña nueva)",
289290
"site.products.label": "Productos",
290291
"site.products.gridLabel": "Productos de OpenCode",

‎services/site/src/i18n/fr.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const dict = {
284284
"changelog.media.pause": "Pause vidéo",
285285
"changelog.media.play": "Lire la vidéo",
286286
"changelog.list.more": "{{count}} de plus",
287+
"changelog.highlights.all": "Voir tous les points forts de {{tag}}",
287288
"site.newTab": "{{label}} (s'ouvre dans un nouvel onglet)",
288289
"site.products.label": "Produits",
289290
"site.products.gridLabel": "Produits OpenCode",

‎services/site/src/i18n/it.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const dict = {
284284
"changelog.media.pause": "Metti in pausa",
285285
"changelog.media.play": "Riproduci",
286286
"changelog.list.more": "Altri {{count}}",
287+
"changelog.highlights.all": "Vedi tutte le novità principali di {{tag}}",
287288
"site.newTab": "{{label}} (si apre in una nuova scheda)",
288289
"site.products.label": "Prodotti",
289290
"site.products.gridLabel": "Prodotti OpenCode",

0 commit comments

Comments
 (0)