feat(changelog): group entries by day on the index#11482
Open
jd wants to merge 1 commit into
Open
Conversation
Contributor
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🔴 👀 Review RequirementsWaiting for
This rule is failing.
🔴 🔎 ReviewsWaiting for
This rule is failing.
🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
There was a problem hiding this comment.
Pull request overview
Refactors the changelog index so same-day entries share a single date heading. A new groupTimelineByYearMonthDay utility plus formatDayLabel helper drive a new day-level grouping in index.astro, and the per-card/per-marquee/per-release date pills (and their CSS) are removed since the day heading now carries the date.
Changes:
- Add
groupTimelineByYearMonthDayandformatDayLabelhelpers insrc/util/changelog.ts. - Restructure
src/pages/changelog/index.astroto render acl-day-groupper day, drop the per-release date, and extend the tag/search filter script to hide empty day groups. - Remove date rendering and related styles from
ChangelogCard.astroandChangelogMarquee.astro.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/util/changelog.ts | Adds day-level grouping helper and a short day-label formatter. |
| src/pages/changelog/index.astro | Renders day groups under each month, removes release-date pill, updates filter logic and styles. |
| src/components/changelog/ChangelogCard.astro | Drops per-card date and card-date styles; simplifies aside markup. |
| src/components/changelog/ChangelogMarquee.astro | Drops per-marquee date, related grid layout and marquee-date styles. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+128
to
+131
| const date = new Date(entry.date); | ||
| const year = date.getFullYear().toString(); | ||
| const month = date.toLocaleDateString('en-US', { month: 'long' }); | ||
| const day = formatDate(entry.date); |
Comment on lines
+145
to
+148
| */ | ||
| export function formatDayLabel(date: Date | string): string { | ||
| const d = typeof date === 'string' ? new Date(date) : date; | ||
| return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' }); |
Comment on lines
+123
to
+141
| export function groupTimelineByYearMonthDay( | ||
| entries: TimelineEntry[] | ||
| ): Record<string, Record<string, Record<string, TimelineEntry[]>>> { | ||
| return entries.reduce( | ||
| (acc, entry) => { | ||
| const date = new Date(entry.date); | ||
| const year = date.getFullYear().toString(); | ||
| const month = date.toLocaleDateString('en-US', { month: 'long' }); | ||
| const day = formatDate(entry.date); | ||
|
|
||
| if (!acc[year]) acc[year] = {}; | ||
| if (!acc[year][month]) acc[year][month] = {}; | ||
| if (!acc[year][month][day]) acc[year][month][day] = []; | ||
| acc[year][month][day].push(entry); | ||
| return acc; | ||
| }, | ||
| {} as Record<string, Record<string, Record<string, TimelineEntry[]>>> | ||
| ); | ||
| } |
Same-day entries now share a single date heading instead of each carrying its own date pill, so days with many releases (e.g. 6 on 2026-05-06) read as one batch rather than a stack of disconnected cards. Individual entries keep their permalinks. Closes MRGFY-7274 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Change-Id: I9d610f63923ae5e8206bff0011234f31f48a8149
d5a2d78 to
6d05e20
Compare
Member
Author
Revision history
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same-day entries now share a single date heading instead of each
carrying its own date pill, so days with many releases (e.g. 6 on
2026-05-06) read as one batch rather than a stack of disconnected
cards. Individual entries keep their permalinks.
Closes MRGFY-7274
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com