feat: 0.2.0 — date filter, counts pills, comment button, admin-gated delete #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ui-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
UI changes
reported_after+reported_beforeinputs (default: last 7 days)Open (3),Fixed (5)— reflects current date range/{bug_id}/comment— no status change/{bug_id}/deleteBug fix
All inline SVG icons now have intrinsic
width/heightattributes (12 or 14px). Previously they relied solely on Tailwind'ssize-*classes, which Tailwind v4 does NOT scan insidenode_modules— so icons rendered at 100% of their parent and appeared huge in consumer apps.Client API additions
New hooks
useBugCounts(client, { reportedAfter, reportedBefore })useAddComment(client)useDeleteBug(client)Existing hooks (
useConfirmFixed,useMarkStillBroken) now also invalidate the counts query on success.Why
Superclean /testing page needs:
Plus a bug we discovered live: the
IconMailchip was rendering at 100% size of its parent on superclean.haskytech.com/testing.Spec Drift Callouts
None — all new endpoints are additive. Existing consumers without setting the new optional props continue to work as before.
Depends on
haskytech-retest-queue==0.2.0provides the backend endpoints this package calls)Both must be merged & deployed before this package's new features work end-to-end. The package can ship first; the new endpoints just return 404 until kernel lands.
Publish Runbook
After merge to
dev:mainif needed (already 0.2.0 in this PR)/countscall worksUI changes: - Toolbar: date range picker (reported_after + reported_before, default last 7 days) - Status filter pills now show (count) next to the label — counts fetched via the new /counts endpoint and reflect the currently-applied date range - New 'Add comment' button on each bug card — opens an inline textarea that POSTs to /{bug_id}/comment. Distinguished from 'Still broken' which both adds a note AND reopens; 'Add comment' leaves the status untouched. - New 'Delete' button (trash icon) — opens an inline confirmation block with an admin password field. Calls /{bug_id}/delete with the password. Bug fixes: - All inline SVG icons now have intrinsic width/height attributes (12 or 14). Previously they relied solely on Tailwind's 'size-*' classes, which Tailwind v4 does NOT scan inside node_modules — meaning icons rendered at 100% size of their parent and were visually huge in consumer apps. New client methods (RetestQueueClient): - listQueue({ reportedAfter, reportedBefore }) - getCounts({ reportedAfter, reportedBefore }) - addComment(bugId, { text }) - deleteBug(bugId, { admin_password }) New hooks: - useBugCounts(client, { reportedAfter, reportedBefore }) - useAddComment(client) - useDeleteBug(client) Existing hooks (useConfirmFixed, useMarkStillBroken) now also invalidate the counts query on success, so the pill counts stay in sync after mutations. Version bump: 0.1.1 → 0.2.0 (additive: new endpoints, new optional hooks, new optional RetestQueueProps defaults — no breaking changes to existing consumers)