feat(housekeeping): cut over administration to ase

This commit is contained in:
Simo committed 2026-08-30 20:35:22 +02:00
1 parent c9e35cf602
commit 2b8f73a91d
457 files changed
+589 -55936

No files matched your search

@@ -31,7 +31,7 @@ const labels = {
describe("CommandDeck", () => {
it("renders an enabled accessible cmdk trigger", () => {
const html = renderToStaticMarkup(
<CommandDeck labels={labels} search={vi.fn()} surface="preview" />,
<CommandDeck labels={labels} search={vi.fn()} />,
);
expect(html).toContain("Search housekeeping");
expect(html).toContain('aria-haspopup="dialog"');
@@ -64,16 +64,13 @@ describe("CommandDeck", () => {
expect(nextCommandDeckIndex(0, 3, "previous")).toBe(2);
});
it("restores trigger focus and projects canonical results to preview", () => {
it("restores trigger focus and keeps canonical result hrefs", () => {
const focus = vi.fn();
restoreCommandDeckFocus({ focus });
expect(focus).toHaveBeenCalledOnce();
expect(projectHousekeepingSearchHref("/ase/people/users", "preview")).toBe(
"/ase-next/people/users",
expect(projectHousekeepingSearchHref("/ase/people/users")).toBe(
"/ase/people/users",
);
expect(
projectHousekeepingSearchHref("/ase/people/users", "canonical"),
).toBe("/ase/people/users");
});
it("keeps grouped result order and uses cmdk input/items in the client module", () => {