Prototype: stats cards component #5

Open
opened 2026-03-28 02:09:06 +00:00 by forgejo_admin · 0 comments

Type

Feature

Lineage

Standalone — scoped from Daily 100 design spec.

Repo

forgejo_admin/daily-100

User Story

As a user
I want to see my aggregate stats at a glance
So that I can track long-term progress

Context

2x2 stats grid showing four cards: Perfect Days (total cumulative), Current Streak (consecutive days with score > 0), Best Streak (longest ever), Completion Rate (percentage). Slate-800 cards with rounded corners, bold numbers, small labels underneath.

File Targets

Files the agent should modify or create:

  • prototype/index.html -- stats grid section
  • prototype/style.css -- stats card styles
  • prototype/app.js -- stats rendering with mock data

Files the agent should NOT touch:

  • (none — greenfield)

Acceptance Criteria

  • 4 stat cards in 2x2 grid layout
  • Bold numbers with descriptive labels
  • Responsive layout on mobile
  • Mock data populated

Test Expectations

  • Visual inspection — cards render correctly in grid
  • Run command: open prototype/index.html in browser

Constraints

  • CSS Grid for 2x2 layout
  • Consistent card styling with rest of app

Checklist

  • PR opened
  • Tests pass
  • No unrelated changes
  • daily-100 -- project
### Type Feature ### Lineage Standalone — scoped from Daily 100 design spec. ### Repo `forgejo_admin/daily-100` ### User Story As a user I want to see my aggregate stats at a glance So that I can track long-term progress ### Context 2x2 stats grid showing four cards: Perfect Days (total cumulative), Current Streak (consecutive days with score > 0), Best Streak (longest ever), Completion Rate (percentage). Slate-800 cards with rounded corners, bold numbers, small labels underneath. ### File Targets Files the agent should modify or create: - `prototype/index.html` -- stats grid section - `prototype/style.css` -- stats card styles - `prototype/app.js` -- stats rendering with mock data Files the agent should NOT touch: - (none — greenfield) ### Acceptance Criteria - [ ] 4 stat cards in 2x2 grid layout - [ ] Bold numbers with descriptive labels - [ ] Responsive layout on mobile - [ ] Mock data populated ### Test Expectations - [ ] Visual inspection — cards render correctly in grid - Run command: open `prototype/index.html` in browser ### Constraints - CSS Grid for 2x2 layout - Consistent card styling with rest of app ### Checklist - [ ] PR opened - [ ] Tests pass - [ ] No unrelated changes ### Related - `daily-100` -- project
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/daily-100#5
No description provided.