3fbbfc89
web: review fixes for projects/stats SPA routes
- ProjectsTable: drop the inner navigate call from handleOpen;
the parent route already navigates via the onOpen callback,
so the second push was creating a duplicate history entry
on every row click. Matches the SessionsTable pattern.
- HorizontalBars: replace href:string with onActivate(row)
callback. The earlier shape passed a pre-encoded path
string straight into TanStack <Link to={...}>; routing the
navigation through the typed (to, params) form via the
caller avoids any double-encoding ambiguity around splat
params and decouples the primitive from a specific route.
- stats.css: drop duplicated .card / .card-head / .card-body
blocks. The same rules already live in shell.css (loaded
globally), so any future divergence between the two copies
would silently desync.
Eugene Blikh <bigbes@gmail.com> — 2026-04-26 06:00:56 UTC
Commit 3fbbfc8996f7197100b9780478d9810f480a510e —
view raw patch
Parent(s):
f6611d76
| File | Status | + | − |
|---|---|---|---|
internal/server/web/dist/index.html
|
M | +2 | -2 |
web/src/features/projects/ProjectsTable.tsx
|
M | +1 | -9 |
web/src/primitives/HorizontalBars.tsx
|
M | +21 | -12 |
web/src/routes/stats.tsx
|
M | +8 | -2 |
web/src/styles/stats.css
|
M | +1 | -23 |