Skip to content

@quazardous/qdadm@2.4.2

Choose a tag to compare

@github-actions github-actions released this 07 Jul 16:24
· 233 commits to main since this release

Patch Changes

  • ca7ed56: Fix sort toggling on lists (#1222) — four stacked defects made inverting a sort a visual no-op:

    1. Ghost loading mask: near-synchronous loads (cache/local storage, fast APIs) flipped loading true→false within one frame, interrupting the PrimeVue overlay-mask transition — the invisible mask stayed in the DOM and swallowed every subsequent header click. The loading indicator is now delayed 150 ms (no spinner flash on fast loads, unchanged on slow ones).
    2. removableSort's "sort removed" state (PrimeVue cycles asc → desc → removed) reached the composable as sortField: '' / sortOrder: 1, loading unsorted; on the cache path this re-served the cache in whatever order the previous sort left it — identical rows. Removed-state now falls back to the list's defaultSort, and the null mapping is honest end-to-end.
    3. Cache mutation: the local sort reordered cache.items in place, so later unsorted reads returned the last sort's order. The sort now copies first.
    4. Session sort entries with an empty field (artifact of 2) are rejected on read.

    Also fixes the demo countries storage silently ignoring sort_by/sort_order (inherited from the dead REST Countries contract), and actually exports the KPI-5 clientFilter helpers (sortItems/filterItems/searchItems/paginate/defaultGenerateId) — the 2.3.1 changeset promised them but the barrel entry was missing.

  • f8b424f: Dedup the page/composable copy-paste clusters (#1193, KPI-6). New shared units: CardShell (conditional Card wrapper — ShowPage and FormPage no longer duplicate their entire content body per branch), useActionRegistry<A, Ctx, R> (the map + ordered add/remove/resolve skeleton behind the list/form/show action registries; per-page resolution stays local), createOrchestratorToast() (was verbatim ×3), runFieldValidators (required → type → custom pipeline shared by validateField/validate), formatFetchError (utils). useListPage/useEntityItemPage now use the canonical useOrchestrator() injection (same error message). Also: editRouteSuffix option is now honored in the create→edit redirect, small dead code removed. Pure refactor, zero behavior change.