mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
* fix(nav): put Categories in the sidebar, and add a browser tour walker
The "What's New" tours navigate to each step's `requiredPage` (App.tsx), and the
Categories tour sends you to `#categories` — a real route in router.tsx that has no
entry in `navItems`. You land on a standalone page with no way back and no way in.
Two fixes and a guard:
- Add Categories to the sidebar, between Transactions and Accounts. It is a full
category manager (add/edit/delete, colors, icons, tax flags, per-category spend),
not a stray view. Bills' "Categories" is a count of subscription groups, so
pointing the tour there would have meant something else entirely.
- `.category-header` is `display: flex` with no `gap`, so the 40px icon sat flush
against the name — measured 0px between the icon's right edge and the name's left.
Now 12px. The rule is triplicated in the stylesheet; all three copies got it.
- Guard the class of bug rather than the instance: spotlightStore.test.ts now
asserts every route in router.tsx is reachable from the sidebar, and that no tour
navigates to a page the sidebar omits. Both fail on the pre-fix tree.
The static tests prove an anchor exists in the source; they cannot prove it is
rendered and visible when the tour reaches it. frontend/scripts/walk-tours.mjs
(`pnpm run test:tours`) walks every tour step in a real browser against the seeded
demo account and asserts each spotlight lands on a visible element, failing on either
the app's own "target missing" banner or a degenerate highlight rect. 51 steps across
15 tours pass on both desktop and mobile viewports. Documented as the tour-check
skill, mirroring the same workflow in mercurypitch.
* chore: track the tour-check skill in the repo
.claude/ was blanket-ignored, which is right for worktrees and local state but also
hid the agent skills. Ignore the contents and un-ignore .claude/skills/ so the
tour-check workflow ships with the repo instead of living on one machine.
* fix(categories): usable icon field, centred colour tick, and a prod-update skill
The icon field was capped at `maxlength="2"` while its own placeholder said
"e.g., food, home, car" — not one of its suggestions could be typed. Raised to 32 and
taught the resolver to accept a human word: exact icon key first, then the same keyword
matching already used on category names, so "food", "car" and "rent" each land on their
own glyph and anything unrecognised still falls back to the category name. Both the
Categories page and the add-category form on Budgets had the same limit; both fixed.
The field now shows the resolved icon beside it. That preview is a `createMemo`, not a
bare `<CategoryIcon>` — a Solid component body runs once, so passing the signal as a prop
rendered whatever the field held at mount and never updated while typing. Caught by
measuring the rendered path in a browser, not by reading the code.
`Object.hasOwn` guards the icon lookup. With a 2-character cap `constructor` was not
typeable; at 32 it is, and a bare index would have returned a function and rendered
`<path d={undefined}>`.
The colour swatches were 24px circles with no flex centring and default button padding,
so the check SVG sat on the text baseline. Now centred — measured 0x0 offset from centre
in both the card swatches and the modal.
Also adds the prod-update skill: the release procedure with the guided-tour walk as a
pre-tag gate, since tag pushes are not test-gated and tours break silently on layout
changes.
98 lines
1.6 KiB
Plaintext
98 lines
1.6 KiB
Plaintext
# Database files (track structure only)
|
|
db/*.db
|
|
db/*.db-shm
|
|
db/*.db-wal
|
|
db/sessions.db
|
|
backend/*.db
|
|
backend/*.db-shm
|
|
backend/*.db-wal
|
|
*.sqlite
|
|
|
|
# Uploaded files (track structure only)
|
|
!/assets/.gitkeep
|
|
|
|
# Build output
|
|
frontend/dist/
|
|
frontend/build/
|
|
frontend/vite/
|
|
frontend/node_modules/
|
|
frontend/test-results/
|
|
frontend/playwright-report/
|
|
frontend/playwright.local.config.ts
|
|
frontend/coverage/
|
|
coverage/
|
|
frontend/assets/
|
|
frontend/index-old.html
|
|
|
|
# Generated PWA service worker artifacts (vite-plugin-pwa / workbox) — emitted into dist/ at build
|
|
sw.js
|
|
sw.js.map
|
|
workbox-*.js
|
|
registerSW.js
|
|
manifest.webmanifest
|
|
dev-dist/
|
|
|
|
# Wrangler local dev state (miniflare cache) — never commit
|
|
.wrangler/
|
|
|
|
# Local planning (public roadmap is ROADMAP.md)
|
|
todo.md
|
|
|
|
# Environment
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Logs
|
|
*.log
|
|
logs/
|
|
|
|
# Node modules
|
|
node_modules/
|
|
dist/
|
|
|
|
.idea
|
|
assets/receipts/
|
|
|
|
# Runtime files
|
|
*.pid
|
|
|
|
# Editor backup files
|
|
*.swp
|
|
*.swo
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Claude Code agent workspace (per-user, machine-specific) — never commit.
|
|
# Keeps internal plans/skills/settings out of the public repo.
|
|
.claude/*
|
|
# ...but share the repo's agent skills (tour-check). Worktrees and local state stay ignored.
|
|
!.claude/skills/
|
|
|
|
# Test artifacts
|
|
test-results/
|
|
test-output.png
|
|
test-output.txt
|
|
tsc_errors.txt
|
|
|
|
# Symlinks (machine-specific)
|
|
backend/db
|
|
public/frontend
|
|
|
|
assets/local/
|
|
.audit_telemetry/
|
|
|
|
# Local scratch folders (per-developer; matches any `local/` dir at any depth)
|
|
local/
|
|
|
|
# One-off debug/seed scripts (kept in place — relative require/db paths tie them here)
|
|
/test-bills.js
|
|
/test-seed.js
|
|
/backend/test-seed.js
|
|
/backend/test-seed2.js
|
|
CLAUDE.md
|