Skip to content

History scanability: day groups and louder job/money - #3

Draft
NiftyRaven wants to merge 1 commit into
masterfrom
projects/history-day-scan-9891
Draft

NiftyRaven wants to merge 1 commit into
masterfrom
projects/history-day-scan-9891

Conversation

@NiftyRaven

Copy link
Copy Markdown
Owner

Group History by local calendar day and make Job + dollars the first thing you can read from a tablet.

Files touched

  • src/components/HistoryPage.jsx — local-day grouping, sticky Today/Yesterday/weekday headers, Job + charge/paid/markup as the loud line
  • src/styles.css — day headers, money type, row grid (time + kind + body)

How to test on the floor

  1. Double-click Start Inventory.bat (leave the black window open).
  2. Open http://localhost:3000.
  3. First run: History should still say nothing is recorded yet (empty rack is intended). Search chips stay hidden until there is history.
  4. Add a couple of cuts/takes (Materials → job number + cut; Inventory → take to a job).
  5. Open the History tab:
    • Events sit under Today (then Yesterday, then weekday + date).
    • Job NNNNN and charge / paid / markup are the loudest line; material/part is secondary; time is clock-only.
    • Search and All/Cuts/Takes/Receives/Stock/Removed still work. Days with no matches disappear.
    • A search that matches nothing still shows “Nothing matches.”

What I skipped

  • No version bump, changelog, or README rewrite
  • No new libraries, auth, or ERP-style totals
  • Donation addresses / footer unchanged
  • Costs, Materials, and wizards left alone
  • Did not backfill or migrate old history rows — grouping is display-only from created_at
Open in Web Open in Cursor 

Group the existing event list under Today / Yesterday / weekday headers,
keep search and kind chips, and put Job + charge/paid/markup first on
each row so material detail stays secondary.

Co-authored-by: NiFTy_RaVeN <nerontus@gmail.com>
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.

2 participants