feat(ui): add DateGroup component for transaction list dividers#300
Open
mariocodecr wants to merge 1 commit into
Open
feat(ui): add DateGroup component for transaction list dividers#300mariocodecr wants to merge 1 commit into
mariocodecr wants to merge 1 commit into
Conversation
Renders a muted uppercase label as a visual divider between transaction groups (e.g. HOY, AYER, JUNIO). Uses semantic h3 heading and the muted-foreground design token.
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.
📝 add DateGroup componen
feat(ui): t for transaction list dividers
🛠️ Issue
📖 Description
Adds the DateGroup component, a muted uppercase label that acts as a visual divider between transaction groups inside a list (e.g. HOY, AYER, JUNIO). It is a pure, stateless UI atom that consumes only the existing text-muted-foreground design token — no new tokens were introduced.
The component renders a semantic
heading rather than a styled. This preserves screen reader navigation between transaction groups while keeping the visual treatment identical. Uppercase transformation is delegated to CSS (uppercase utility), so the underlying DOM text remains in its original casing — this matters for accessibility, copy/paste, and SEO.
- Added frontend/components/ui/date-group.tsx exporting DateGroup and DateGroupProps
- Component uses semantic
- Styles applied via existing utility classes: text-xs font-medium uppercase tracking-wider text-muted-foreground
- No new design tokens, no new dependencies, no changes to globals.css
- Verified locally against a dev preview page (kept out of the commit per the app/dev/ local-only convention)
The public API is intentionally minimal: a required label: string prop plus passthrough of standard
HTML attributes via React.ComponentProps<"h3">, mirroring the convention already used by TransactionRow and WalletBadge.
✅ Changes made
with data-slot="date-group" for testing/styling hooks, consistent with the rest of frontend/components/ui/
🖼️ Media (screenshots/videos)


📜 Additional Notes