feat: add DateGroupHeader UI component#290
Open
Mystery-CLI wants to merge 1 commit into
Open
Conversation
Introduces a reusable DateGroupHeader component for grouping lists of items (e.g. transactions) under date labels with a visual divider. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Hello sir @Mystery-CLI could you upload a real image evidence with the component implementation? |
Contributor
|
@Mystery-CLI any updates on this? |
Author
|
Okay I will
I forgot to screenshot it
…On Wed, 17 Jun 2026 at 19:39 Diego Duarte Fernández < ***@***.***> wrote:
*diegoTech14* left a comment (Kaizenode/SafeSwap#290)
<#290 (comment)>
@Mystery-CLI <https://github.com/Mystery-CLI> any updates on this?
—
Reply to this email directly, view it on GitHub
<#290?email_source=notifications&email_token=BXXA5BRIDEPSD37VCNXRVWD5ALQUTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZTGQYDENRTGE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4734026319>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BXXA5BUL72BPYMXKEE7DVQ35ALQUTAVCNFSNUABFKJSXA33TNF2G64TZHM4DQMJQGA2DMNRVHNEXG43VMU5TINRXGU4DEMBXHA32C5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BXXA5BT4DTH3YYDOWCLLJNT5ALQUTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZTGQYDENRTGE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/BXXA5BWDFYJ24IDD5X5UKQL5ALQUTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINZTGQYDENRTGE42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Contributor
|
Hello sir, sorry but your approach doesn't look like the design reference, could you improve it please? |
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.
Closes #283
Summary
Adds a new
DateGroupHeadercomponent to the shared UI library for visually grouping lists of items under labelled date sections.frontend/components/ui/date-group-header.tsx— a composable, themeable header rowapp/page.tsxupdated to render three date groups with mock transactions, used during visual verificationComponent
Props
labelstringDesign
text-xs font-semibold uppercase tracking-widest text-muted-foreground— subtle, all-caps, spaced letteringflex-1 h-px bg-borderrule that fills the remaining row widthpx-4 py-2— consistent with list item spacingtext-muted-foreground,bg-border)Visual
Light mode
Verified rendering in both light and dark mode — dividers and label colours resolve correctly via CSS custom properties.
Usage context
This component is intended for use in the transaction history view and any other list that benefits from chronological grouping. It is intentionally minimal — it carries no date-parsing logic and accepts a pre-formatted
labelstring, keeping formatting decisions in the parent.Test plan
npm run dev, confirmed light and dark mode screenshots match expected design🤖 Generated with Claude Code