Skip to content

feat: add DateGroupHeader UI component#290

Open
Mystery-CLI wants to merge 1 commit into
Kaizenode:mainfrom
Mystery-CLI:feat/date-group-header
Open

feat: add DateGroupHeader UI component#290
Mystery-CLI wants to merge 1 commit into
Kaizenode:mainfrom
Mystery-CLI:feat/date-group-header

Conversation

@Mystery-CLI

@Mystery-CLI Mystery-CLI commented Jun 16, 2026

Copy link
Copy Markdown

Closes #283

Summary

Adds a new DateGroupHeader component to the shared UI library for visually grouping lists of items under labelled date sections.

  • New file: frontend/components/ui/date-group-header.tsx — a composable, themeable header row
  • Demo: app/page.tsx updated to render three date groups with mock transactions, used during visual verification

Screenshot 2026-06-17 200418

Component

import { DateGroupHeader } from "@/frontend/components/ui/date-group-header";

<DateGroupHeader label="TODAY" />
<DateGroupHeader label="YESTERDAY" />
<DateGroupHeader label="JUNE 2026" />

Props

Prop Type Description
label string Text displayed as the date group label

Design

  • Label text: text-xs font-semibold uppercase tracking-widest text-muted-foreground — subtle, all-caps, spaced lettering
  • Divider: a flex-1 h-px bg-border rule that fills the remaining row width
  • Padding: px-4 py-2 — consistent with list item spacing
  • Fully responsive to light and dark themes via Tailwind CSS variables (text-muted-foreground, bg-border)

Visual

Light mode

┌──────────────────────────────────────────────────────────┐
│  TODAY ─────────────────────────────────────────────────  │
│  Transaction A · $50.00                                   │
│  Transaction B · $20.00                                   │
│  YESTERDAY ──────────────────────────────────────────────  │
│  Transaction C · $75.00                                   │
│  JUNE ───────────────────────────────────────────────────  │
│  Transaction D · $10.00                                   │
└──────────────────────────────────────────────────────────┘

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 label string, keeping formatting decisions in the parent.


Test plan

  • Visual verification: ran npm run dev, confirmed light and dark mode screenshots match expected design
  • Integrate into the actual transaction list view (follow-up)
  • Add to Storybook / component catalogue (follow-up)

Note: The app/page.tsx changes are demo scaffolding added for verification. They can be removed in this PR or as a quick follow-up once the component is wired into its real location.

🤖 Generated with Claude Code

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>
@diegoTech14

Copy link
Copy Markdown
Contributor

Hello sir @Mystery-CLI could you upload a real image evidence with the component implementation?

@diegoTech14

Copy link
Copy Markdown
Contributor

@Mystery-CLI any updates on this?

@Mystery-CLI

Mystery-CLI commented Jun 17, 2026 via email

Copy link
Copy Markdown
Author

@diegoTech14

Copy link
Copy Markdown
Contributor

Hello sir, sorry but your approach doesn't look like the design reference, could you improve it please?

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

2 participants