Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.enableFiletypes": ["mdx"],
"files.associations": { "__redirects": "plaintext", "_headers": "plaintext" }
"files.associations": {
"__redirects": "plaintext",
"_headers": "plaintext"
},
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
}
}
15 changes: 9 additions & 6 deletions src/pages/changelog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ const seen = new Map<string, number>();
notes = notes.flatMap((note) => {
const products = note.data.products.map((product) => product.id);

for (const product of products) {
const previous = seen.get(product) || 0;
// PCX-19256 - We only want to count dedicated entries against the product length, otherwise specific entries can get obscured
if (products.length === 1) {
for (const product of products) {
const previous = seen.get(product) || 0;

seen.set(product, previous + 1);
seen.set(product, previous + 1);

if (previous >= 5) {
return [];
if (previous >= 5) {
return [];
}
}
}

Expand Down Expand Up @@ -152,7 +155,7 @@ const props = {

const filtered = entries
.filter((e) => filterByProduct(e, value))
.slice(0, 5);
.slice(0, 10);

for (const entry of entries) {
const show = filtered.includes(entry);
Expand Down