fix(ui): scope table-row hover to interactive rows only (MAPPS-389) #451
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-389-scope-row-hover"
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?
MAPPS-389: hover reaction fires over non-interactive rows/whitespace
Vas observed a hover reaction firing while the cursor was not over any interactive element on the time-log screen ("the entire page reacting").
Root cause
Not a page-level container.
MAPPS-263made the sharedTableRowapplyhover:bg-surface-2to EVERY row, including non-clickable ones. A non-interactive row (or the whitespace in a row with sparse cells) then lit up on hover. The full-width empty/loading rows made this read as the whole table/page reacting. (I audited everyhover:in the app: all others are on genuinely interactive elements - buttons, links, tiles, sidebar items. This was the only broadly-scoped one.)Fix
Scope the hover + pointer affordance to
clickablerows inTableRow. Non-clickable rows now render with no hover class, so the cursor over non-interactive rows / whitespace no longer lights up. Clickable rows (list rows that open a detail/modal) keep their hover exactly as before. This generalizes the MAPPS-388 empty-row fix to every non-interactive row.Tests
Added a render regression test (via the existing
dioxus-ssrharness): a clickable row keepshover:bg-surface-2; a plain row carries nohover:class.cargo fmt --all --check,cargo clippy --all-targets -- -D warnings,cargo check --target wasm32-unknown-unknown, andcargo test --lib(232 passed) all green on 1.94.1.Acceptance criteria
TableRowcase).