fix(ui): de-box list page filters and center table empty states (MAPPS-388) #450
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-388-header-box-empty-states"
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-388: oversized page-header box + uncentered empty states
Refs ref-pro.png (oversized search box on Projects) and ref-log.png ("No time logged yet." left-aligned).
What changed
Card(border + shadow + p-6) around the search / type-filter controls on Projects, Companies, and Contacts. The controls now sit directly on the page, sized to their content. The controls themselves are unchanged.TableEmptyRow(full-width colspan + centered); the one non-table case getstext-centeron its paragraph.Scope decisions (confirmed with the reporter's stand-in)
border-line/divide-linetokens; no high-contrast border was present, so AC #4 is satisfied as-is with no code change.Tests
components::table::tests) rendersTableEmptyRowto HTML via a new host-onlydioxus-ssrdev-dependency and asserts the row keeps itscolspanandtext-center. This is the regression guard for the empty-state centering across the time / dashboard / approvals / assets tables.cargo fmt --all --check,cargo clippy --all-targets -- -D warnings,cargo check --target wasm32-unknown-unknown, andcargo test --lib(231 passed) all green on 1.94.1.dioxus-ssris a dev-dependency only, so the wasm bundle is unaffected.Acceptance criteria
Introduce a shared `TableEmptyRow` for table empty states: it spans every column (`colspan`) and centers its text, dropping into an existing `TableBody { if empty { .. } }` branch without nesting its own body the way `TableEmpty` does. Callers pass their own text treatment via `class`. Add `dioxus-ssr` as a dev-dependency so the component can be rendered to an HTML string in a host unit test, and assert the row keeps its colspan and centering. Dev-dependencies are not built for the `wasm32-unknown-unknown` check, so the client bundle is unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QvB249F2SV9SBe3cBKRjcS