Skip to content

feat(ui): add DateGroup component for transaction list dividers#300

Open
mariocodecr wants to merge 1 commit into
Kaizenode:mainfrom
mariocodecr:feat/CreateDateGroupComponent
Open

feat(ui): add DateGroup component for transaction list dividers#300
mariocodecr wants to merge 1 commit into
Kaizenode:mainfrom
mariocodecr:feat/CreateDateGroupComponent

Conversation

@mariocodecr

Copy link
Copy Markdown
Contributor

📝 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.

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

  • Added frontend/components/ui/date-group.tsx exporting DateGroup and DateGroupProps
  • Component uses semantic

    with data-slot="date-group" for testing/styling hooks, consistent with the rest of frontend/components/ui/

  • 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)

🖼️ Media (screenshots/videos)
Screenshot 2026-06-19 at 6 14 32 PM
Screenshot 2026-06-19 at 6 14 46 PM

📜 Additional Notes

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Date Group component

1 participant