Drop the page-tab strip and its < > move controls

Tabs do not scale: every page became a chip in a horizontal scroller with
its own drag-reorder and filter. Navigation and reordering now live solely
in the sidebar (same lib/page-order permutation helper, PUT /api/pages);
the regression covers the sidebar drag in both directions. Empty state and
sidebar keep page creation.
This commit is contained in:
Andrew S Erwin
2026-11-06 09:21:57 -06:00
parent 0824700e4e
commit dfb5004326
2 changed files with 12 additions and 116 deletions
+10 -10
View File
@@ -439,24 +439,24 @@ try {
await inboxColumn.locator('[data-bookmark-id="bookmark-3"]').waitFor()
console.log('PASS: kanban drag reorders within a column and moves cards between columns')
// Page tabs share the persisted position with the sidebar; dragging a tab
// issues the complete order permutation and both surfaces reload. Reset the
// pin from the earlier metadata test so both pages are in one reorder group.
// The sidebar persists the complete order permutation (PUT /api/pages);
// drag b above a. Reset the pin from the earlier metadata test so both
// pages are in one reorder group.
pages.get('a').pinned = false
await page.goto(`${base}/pages`)
await page.locator('[data-page-tab="a"]').waitFor()
await page.locator('[data-page-tab="b"] [data-page-tab-drag]').dragTo(
page.locator('[data-page-tab="a"]'),
{ targetPosition: { x: 5, y: 5 } },
await page.locator('[data-page-id="a"]').waitFor()
await page.locator('[data-page-id="b"] [data-page-drag-handle]').dragTo(
page.locator('[data-page-id="a"]'),
{ targetPosition: { x: 10, y: 5 } },
)
await eventually(() => pages.get('b')?.position === 0 && pages.get('a')?.position === 1, 'Page tab drag did not reorder')
// The sidebar uses the same complete order permutation; drag a back above b.
await eventually(() => pages.get('b')?.position === 0 && pages.get('a')?.position === 1, 'Sidebar page drag did not reorder')
// And drag a back above b.
await page.locator('[data-page-id="a"] [data-page-drag-handle]').dragTo(
page.locator('[data-page-id="b"]'),
{ targetPosition: { x: 10, y: 5 } },
)
await eventually(() => pages.get('a')?.position === 0 && pages.get('b')?.position === 1, 'Sidebar page drag did not reorder')
console.log('PASS: page tabs and sidebar persist drag reordering')
console.log('PASS: sidebar persists drag reordering')
// Revocation failure path (review CR-02): when Go's revocation fails, the
// local sign-out still completes, but the UI must say so — local cookie