From 22491c9b14eead2d398242d2930876d3db996ea5 Mon Sep 17 00:00:00 2001 From: Robert Douglas <57234112+realrobertdouglas@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:11:09 -0500 Subject: [PATCH] feat(bid-board): the cards carry no decision (DROP-CARD-BUTTONS) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will's call on the before/after boards of the "All Bids, quieter" canvas: now that the review bar in the opened bid carries Mark reviewed and Request changes…, the per-card copies go. A reviewer who has not opened a bid cannot say what should change in it, and a Mark reviewed on the card invited ticking off what was never looked at. A ready card drops from about 236px to about 150px, and a card is one control again. - features/bid-board.js: the two rows and their handlers go; the card click is the way to the decision. styles.css loses their rules. The board no longer calls App.setProjectReviewStatus; review-flow.js's header says so. - bid-board.spec.js: the review-handoff test pins that no card carries a button; the review-bar test covers both decisions and Next ready. - The Overseer guide's handoff section (rebuilt), the ARCHITECTURE rows for bid-board and review-flow, CHANGELOG, the plan file and the BOARD-QUIET row, sw.js restamped. npm run check: all 14 steps pass. bid-board.spec.js 6/6. Co-Authored-By: Claude Fable 5.1 --- ARCHITECTURE.md | 8 ++--- CHANGELOG.md | 17 ++++++++++ PUNCHLIST.md | 2 +- bid-board.spec.js | 13 ++++---- content/guides/reviewing-all-bids.md | 6 ++-- features/bid-board.js | 47 ++-------------------------- features/review-flow.js | 4 +-- guides/reviewing-all-bids/index.html | 6 ++-- journeys/plans/BID-BOARD-QUIET.md | 7 +++-- styles.css | 6 ---- sw.js | 8 ++--- 11 files changed, 47 insertions(+), 77 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 04844216..93e62e39 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -33,13 +33,13 @@ off — and where it doesn't. | [pdf-tile-cache.js](pdf-tile-cache.js) | 867 | Done (stage 1, 2026-07-30) — the PDF raster-cache substrate extracted from app.js's "PDF render bitmap cache" section (`createPdfTileCache(ctx)`, the save-engine seam recipe): page-bitmap LRU, downsample pyramid, persisted zoom rungs, idle prefetch, full-document warm-up. Pinned by nine Playwright specs (page-switch-cache, pyramid, pyramid-persist, rung-prefetch, doc-warmup, zoom-ladder, commit-tile, crop-tile, tile-grid). Stage 2 (later): the Sharp crop tile / tile grid section. | | [canvas-draw.js](canvas-draw.js) | 1,417 | Done — the unified annotation draw core (`createCanvasDraw(deps)` + `drawAnnotationsCore`), node-tested, guarded by [render-pixels.spec.js](render-pixels.spec.js). Both draw paths are thin env-builders over it. | | [app/index.html](app/index.html) | 3,880 | The shell: HTML structure + every modal, no inline JS. Flat markup with no build step to split it; grows roughly linearly with modal count. Leave. | -| [styles.css](styles.css) | 2,879 | All CSS, token-organized. Leave. | +| [styles.css](styles.css) | 2,873 | All CSS, token-organized. Leave. | | [features/load-project.js](features/load-project.js) | 751 | Largest feature file (Load Project modal + filters), split 2026-07-30: the copy/fork domain moved to [features/copy-project.js](features/copy-project.js) at the file's documented domain boundary, and the row renderer was decomposed along its action boundaries (size / row HTML / actions / admin access / load click). Healthy — leave. | | [annotation-model.js](annotation-model.js) | 1,225 | Done — extracted canvas/annotation data model + node tests. | | [undo-stack.js](undo-stack.js) | 218 | Done (2026-07-30) — `createUndoStack(ctx)` split out of annotation-model.js: the model is pure-ish data transformation, the stack is a command-history controller with UI side-effect hooks in its ctx. Covered by the undo tests in [annotation-model.test.js](annotation-model.test.js) (interleaved with model tests, dual-require). | | [icons.js](icons.js) | 531 | Bundled icon data, mostly literals. Leave. | | [report.js](report.js) | 991 | Self-contained report builder with a frozen `window.*` contract. Leave. | -| `features/*.js` (108 files) | 37,524 total | Mostly single-feature files with their own specs. The largest are the teaching layer (tutorial 1,656; lessons 1,043, the three courses 609 to 725; tour-blank 794) and duct-tool (866); DECOMPOSITION_MAP.md has a verdict for every one. | +| `features/*.js` (108 files) | 37,483 total | Mostly single-feature files with their own specs. The largest are the teaching layer (tutorial 1,656; lessons 1,043, the three courses 609 to 725; tour-blank 794) and duct-tool (866); DECOMPOSITION_MAP.md has a verdict for every one. | ### What's left inside app.js (by `// SECTION:` size) @@ -177,8 +177,8 @@ modules. Candidates in priority order: | [user-admin.spec.js](user-admin.spec.js) | Playwright regression for pilot #20 — an always-run registry-contract test (asserts `window.App.openManageUserModal` + `openAllUsersModal` are functions and that calling them with no session is a safe no-op: the modals do not become visible and nothing throws), plus a cloud-gated test (`ensureSignedInWithProject`, `test.skip` when no cloud) that opens via `App.openManageUserModal()` and asserts `#manageUserModal.visible` + the list element gets content. Asserts no console / page errors; `npx playwright test user-admin.spec.js` | | [features/load-project.js](features/load-project.js) | Twenty-first feature-file split (`window.App` registry pilot #21) and the **most dependency-heavy** so far — the cloud Load Project modal `openLoadProjectModal` (~585 lines: project browser list, ownership/role filters, per-row access panels + invite via `invite-to-project`, copy/download/delete row actions, and the project-load action). Its own IIFE loaded **after** [app.js](app.js); reads deps from `App` and re-reads `App.getSupabase()` in the outer fn + each nested async helper (client can be recycled); registers `App.openLoadProjectModal`. The save-before-load gate `openLoadProjectModalOrPromptSave` and the whole copy/fork domain live in [features/copy-project.js](features/copy-project.js) (split 2026-07-30 at this file's documented domain boundary); the `#loadProject*` bindings + Escape branch stay in app.js and reach both files through the registry at call time. The row renderer `renderLoadProjectListRows` is a thin loop over per-row helpers decomposed along its action boundaries (`computeLoadProjectRowSizeBytes` / `buildLoadProjectRowHtml` / `bindLoadProjectRowActions` / `bindLoadProjectAdminAccess` / `bindLoadProjectRowLoad`). Because the project-load action is fused with the boot/engine path, ~20 publish-only deps are exposed on `App` (`updateSaveStatusIndicator`, `canUseDevAuth`, `deleteProjectAsOwner`, `openCopyProjectModalOrPromptSave`, `hydrateProjectFromCloudRow`, `clearUndoStacks`, `subscribeToProjectCheckoutChanges`, `checkInCurrentProjectIfHeld`, `takeoffBackupGet`, `resolvePdfBufferForCloudProject`, `ensureGroupColors`, `openCanvasOnlyNeedsPdfModal`, `buildPagesFromPdfArrayBufferAndProjectData`, `backupDataToProjFormat`, `fitZoom`, `SUPABASE_URL`), incl. four **setters** (`setAutoSaveDirty`/`setLastModifiedAt`/`setLastLocalBackupAt`/`setLastSaveIncludedPdf`) for engine `let`-state the load resets (it cannot assign through the registry otherwise). The leftover grab-bag under the old `// SECTION: Load Project modal` marker was re-sectioned into 8 honest markers, and `// SECTION: Canvas Event Handlers` moved up to absorb the stray `showContextMenu`. The modal header has an admin-only **Advanced** toggle (`#loadProjectAdvancedToggle`, persisted via `loadProjectAdvanced`) that shows/hides every row's "Who has access" block by toggling a `hide-access` class on `#loadProjectList` (default OFF = hidden). The project-load action itself was extracted host-agnostic as `loadCloudProjectRow(proj, ui)` (registered `App.loadCloudProjectRow`; `ui` = `{hostModalId, showError}`) so [features/bid-board.js](features/bid-board.js) opens bids through the identical path; `bindLoadProjectRowLoad` is now the modal-specific wrapper (mutex + row busy UI). The owner-email filter is un-gated to `isAdmin \|\| isOverseer` **LOAD-DEVICE-PDF (2026-09-22)**: `devicePdfIfOnlyCopy(proj, idbBackup)` (the restore's rule: the backup's blob unless both hashes exist and disagree) is asked in both branches of `loadCloudProjectRow`, and `openOnDevicePdf` builds the sheets on it and hands the copy to the engine (`state.pdfBuffer`, `pdfStoragePath` null) for the autosave tick's upload; the canvas-only door opens only when the device has no copy. Spec: [load-device-pdf.spec.js](load-device-pdf.spec.js). R12 (2026-09-26): both canvas-only branches (the stored PDF missing, and no PDF stored) hydrate through `App.hydrateStateFromProjectData`, so a bid opened without its PDF no longer keeps the last project's rooms, zoom cap or duct knobs. REVIEW-BAR (2026-10-13): `loadCloudProjectRow` ends by calling `App.onCloudProjectRowLoaded(proj)` (features/review-flow.js) with the row it opened, so the review bar can show for a ready bid. | | [features/copy-project.js](features/copy-project.js) | The **copy/fork domain + save-before-load gate**, split out of [features/load-project.js](features/load-project.js) 2026-07-30 at that file's documented domain boundary (the code itself arrived from app.js as registry split #35). Owns `pendingCopyProject` / `copyProjectModalTarget`; binds `#copyProjectModalConfirm` + the `#saveBeforeLoad*` modal buttons at load; registers `App.openCopyProjectModalOrPromptSave`, `App.openLoadProjectModalOrPromptSave`, `App.hydrateProjectFromCloudRow`, `App.resolvePdfBufferForCloudProject`, `App.buildPagesFromPdfArrayBufferAndProjectData`, `App.resetCopyProjectState`, `App.clearCopyProjectModalTarget`. Reads `App.openLoadProjectModal` (registered by load-project.js) at call time, so load order between the two files is irrelevant. Regression: [copy-project.spec.js](copy-project.spec.js). R12 (2026-09-26): `buildPagesFromPdfArrayBufferAndProjectData` builds its sheets with `App.buildBlankPagesFromPdf` and hydrates through `App.hydrateStateFromProjectData(d, { legacyScales: true })`. | -| [features/bid-board.js](features/bid-board.js) | The **overseer Bid Board** (`#bidBoardModal`) — the read-only "see every bid" surface for `profiles.is_overseer` users (server side: migrations `profiles_is_overseer` / `list_accessible_projects_overseer` / `overseer_admin`, see SUPABASE_SETUP.md). Renders `list_accessible_projects` rows as presentation-friendly cards (name, estimator = owner-email local part, counts, last-edited, `No PDF` badge) with a search box + estimator `` (only the owners the segment shows); under People a `.bid-board-hidden-note` under the list says how many twin bids are off with a "show twins" link; the switch hides itself when no bid is twin-owned; the choice is per open, never stored. The Ready lane runs oldest waiting first (`byOldestWaiting` on `review_requested_at`, Will 2026-10-13; the lane title says so in a `.bid-board-lane-hint`) and is handed to the review bar as its queue (`App.setReviewQueue`), so Next ready walks the lane as shown. Review handoff: `review_status === 'ready'` rows render in a pinned **Ready for review** lane (`.bid-board-lane-title`) with a gold badge and — for overseers/admins — a per-card **Mark reviewed** button that calls `App.setProjectReviewStatus(id, 'reviewed')` (registered by [features/review-flow.js](features/review-flow.js)) and re-renders; `'reviewed'` rows carry a quiet ✓ badge. | -| [features/review-flow.js](features/review-flow.js) | The **bid review handoff** (estimator → overseer ops flow; server side: migrations `project_review_flow` / `list_accessible_projects_review`). Registers `App.setProjectReviewStatus(projectId, status)` — the single client entry to the guarded `set_project_review_status` RPC (`'ready'`/clear: owner, editor share, or admin; `'reviewed'`: overseer or admin) — and owns the Project Settings **Bid review** row (`#settingsReviewRow`: live status line + transition button "Mark ready for review" / "Withdraw" / "Mark ready again"). The row re-renders via a MutationObserver on `#settingsModal`'s class each time the modal becomes visible (no app.js hook), fetching `review_status/review_requested_at/reviewed_at` fresh from the projects row; it hides for signed-out/no-project/pure-viewer sessions but never gates harder than the server. Consumed by [features/bid-board.js](features/bid-board.js) (Mark reviewed) and badged in [features/load-project.js](features/load-project.js) rows. REVIEW-BAR (2026-10-13, BOARD-QUIET step 1): owns the **review bar** (`#reviewBar`, in the `.app` flex column under the header), shown by `App.onCloudProjectRowLoaded(proj)`, which features/load-project.js calls at the end of a cloud load with the RPC row, for a `review_status === 'ready'` row when `App.canOversee()`: how long it has waited, the owner, the counts, then Request changes… (the confirm dialog's note), Mark reviewed, and Next ready, which opens the next ready row of the queue the board hands over with `App.setReviewQueue(rows)` (its Ready lane as rendered, oldest waiting first) through `App.loadCloudProjectRow`; after a decision the bar says what happened and how many are left; `App.refreshReviewBar` (from `updateUI`) hides it once the open project is not the one it was shown for; `App.showReviewBar` is the spec seam. Regression: the review-handoff and review-bar tests in [bid-board.spec.js](bid-board.spec.js). | +| [features/bid-board.js](features/bid-board.js) | The **overseer Bid Board** (`#bidBoardModal`) — the read-only "see every bid" surface for `profiles.is_overseer` users (server side: migrations `profiles_is_overseer` / `list_accessible_projects_overseer` / `overseer_admin`, see SUPABASE_SETUP.md). Renders `list_accessible_projects` rows as presentation-friendly cards (name, estimator = owner-email local part, counts, last-edited, `No PDF` badge) with a search box + estimator `` (only the owners the segment shows); under People a `.bid-board-hidden-note` under the list says how many twin bids are off with a "show twins" link; the switch hides itself when no bid is twin-owned; the choice is per open, never stored. The Ready lane runs oldest waiting first (`byOldestWaiting` on `review_requested_at`, Will 2026-10-13; the lane title says so in a `.bid-board-lane-hint`) and is handed to the review bar as its queue (`App.setReviewQueue`), so Next ready walks the lane as shown. Review handoff: `review_status === 'ready'` rows render in a pinned **Ready for review** lane (`.bid-board-lane-title`) with a gold badge; `'reviewed'` rows carry a quiet ✓ badge. DROP-CARD-BUTTONS (2026-10-13): a card carries no decision; Mark reviewed and Request changes… live on the review bar in the opened bid ([features/review-flow.js](features/review-flow.js)), which the card click reaches. | +| [features/review-flow.js](features/review-flow.js) | The **bid review handoff** (estimator → overseer ops flow; server side: migrations `project_review_flow` / `list_accessible_projects_review`). Registers `App.setProjectReviewStatus(projectId, status)` — the single client entry to the guarded `set_project_review_status` RPC (`'ready'`/clear: owner, editor share, or admin; `'reviewed'`: overseer or admin) — and owns the Project Settings **Bid review** row (`#settingsReviewRow`: live status line + transition button "Mark ready for review" / "Withdraw" / "Mark ready again"). The row re-renders via a MutationObserver on `#settingsModal`'s class each time the modal becomes visible (no app.js hook), fetching `review_status/review_requested_at/reviewed_at` fresh from the projects row; it hides for signed-out/no-project/pure-viewer sessions but never gates harder than the server. Badged by [features/bid-board.js](features/bid-board.js) (the lane) and in [features/load-project.js](features/load-project.js) rows; since DROP-CARD-BUTTONS (2026-10-13) the board's cards carry no decision and the review bar below is the reviewer's only one. REVIEW-BAR (2026-10-13, BOARD-QUIET step 1): owns the **review bar** (`#reviewBar`, in the `.app` flex column under the header), shown by `App.onCloudProjectRowLoaded(proj)`, which features/load-project.js calls at the end of a cloud load with the RPC row, for a `review_status === 'ready'` row when `App.canOversee()`: how long it has waited, the owner, the counts, then Request changes… (the confirm dialog's note), Mark reviewed, and Next ready, which opens the next ready row of the queue the board hands over with `App.setReviewQueue(rows)` (its Ready lane as rendered, oldest waiting first) through `App.loadCloudProjectRow`; after a decision the bar says what happened and how many are left; `App.refreshReviewBar` (from `updateUI`) hides it once the open project is not the one it was shown for; `App.showReviewBar` is the spec seam. Regression: the review-handoff and review-bar tests in [bid-board.spec.js](bid-board.spec.js). | | [features/bid-chip.js](features/bid-chip.js) | **The header bid switcher's chip** (BID-SWITCHER.md stage 2): `#headerBidChip` names the open bid ("No bid open" otherwise) and opens a menu of [recent-bids.js](recent-bids.js)' list, so moving between bids skips Load Project. Takes the wordmark's slot once a bid is open, and shows `#headerSidebarToggle` in its place (exactly one of the two is visible). Registers `App.renderBidChip` (called from app.js `updateUI`), `App.closeBidMenu` and `App.isBidMenuOpen` (the Esc ladder's popover rung), `App.loadRecentBidNow`. Spec: [bid-switcher.spec.js](bid-switcher.spec.js). | | [copy-project.spec.js](copy-project.spec.js) | Always-run Playwright regression for the copy/fork split — registry contract (all seven registered names are functions), the not-dirty path (`openCopyProjectModalOrPromptSave` opens `#copyProjectModal` with the "(copy)" name prefilled), the dirty path (opens `#saveBeforeLoadModal` with the copy-specific message; Cancel clears `pendingCopyProject`), and Discard routing back to the copy modal. `npx playwright test copy-project.spec.js` | | [load-project.spec.js](load-project.spec.js) | Playwright regression for pilot #21 — an always-run registry-contract test (`window.App.openLoadProjectModal` is a function; with Supabase unconfigured the modal shows "Cloud not configured" and becomes visible without throwing), plus a cloud-gated test (`ensureSignedInWithProject`, `test.skip` when no cloud) that opens via `App.openLoadProjectModal()` and asserts `#loadProjectModal.visible` + `#loadProjectList` (or `#loadProjectEmpty`) populated. Asserts no console / page errors; `npx playwright test load-project.spec.js` | diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e63f072..c238b7e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,23 @@ expired recovery UX" work occupies that slot). --- +## feat(bid-board): the cards carry no decision (DROP-CARD-BUTTONS, 2026-10-13) + +Will's call on the before/after boards of the "All Bids, quieter" canvas: now that the review +bar in the opened bid carries Mark reviewed and Request changes…, the per-card copies go. A +reviewer who has not opened a bid cannot say what should change in it, and a Mark reviewed on +the card invited ticking off what was never looked at. A ready card drops from about 236px to +about 150px, so a lane of forty fits two screens instead of six, and a card is one control +again (no buttons inside a button, no stop-propagation). + +- features/bid-board.js: the two rows and their handlers go from `bidCardHtml` and the render; + the card click is the way to the decision. styles.css loses their rules. The board no longer + calls `App.setProjectReviewStatus`; features/review-flow.js's header says so. +- bid-board.spec.js: the review-handoff test now pins that no card carries a button; the + review-bar test already covers both decisions and Next ready. The Overseer guide's handoff + section (rebuilt), the ARCHITECTURE rows for bid-board and review-flow, the plan file and the + BOARD-QUIET row, sw.js restamped. + ## feat(review): the review bar in the bid, and the Ready lane oldest waiting first (REVIEW-BAR, 2026-10-13) BOARD-QUIET step 1, Will's two calls of 2026-10-13: the Ready lane sorts oldest waiting first, diff --git a/PUNCHLIST.md b/PUNCHLIST.md index 8b5e85a8..f352ce02 100644 --- a/PUNCHLIST.md +++ b/PUNCHLIST.md @@ -38,4 +38,4 @@ How agents add to this list: AGENTS.md, "Recording a to-do". | TRADE-DEFAULT | A project that never named a trade: does the device's default trade count as the project's? The app answers three ways today, so Bid Check on such a project shows water rows and the IPC edition but no hanger, fitting or plumbing rows. Decide, then one resolver | decision | ⚑ call | — | [DECOMPOSITION_MAP.md](DECOMPOSITION_MAP.md#t06-one-trade-resolver) | | ICON-STORE | Opening a project REPLACES the user's own icon store with its `customIconPaths` (annotation-model.js:509 and 444 into app.js:209, wholesale; a project with an empty list empties the store), and they ride the user's later saves. Since #268 they are inert, but should a project be able to add icons to a user's store at all? Decide, then build | decision | ⚑ call | — | | | DEMO-TRACK | The demo track behind the test drive's "Try it" is built for all three trades (phases 1 to 3 landed 2026-10-02). Left: a tester's real tablet and phone walk with a stopwatch against the 60 s target | test | tester | — | [DEMO-TRACK.md](journeys/plans/DEMO-TRACK.md#open-after-phase-2) | -| BOARD-QUIET | All Bids for a lead: the board becomes a quiet list, actions on the hovered row, exceptions only, grouped by estimator once there are enough; PEOPLE-TWINS and REVIEW-BAR shipped the first two steps (the twin fleet off by default, the decision in the opened bid, oldest waiting first); whether the per-card buttons go is Will's call | build | agent | — | [BID-BOARD-QUIET.md](journeys/plans/BID-BOARD-QUIET.md#what-is-left) | +| BOARD-QUIET | All Bids for a lead: the board becomes a quiet list, actions on the hovered row, exceptions only, grouped by estimator once there are enough; PEOPLE-TWINS, REVIEW-BAR and DROP-CARD-BUTTONS shipped the first steps (the twin fleet off by default, the decision in the opened bid only, oldest waiting first) | build | agent | — | [BID-BOARD-QUIET.md](journeys/plans/BID-BOARD-QUIET.md#what-is-left) | diff --git a/bid-board.spec.js b/bid-board.spec.js index 7064f1cf..146babce 100644 --- a/bid-board.spec.js +++ b/bid-board.spec.js @@ -134,7 +134,7 @@ test.describe('Bid Board - overseer all-bids browser', () => { expect(errors).toEqual([]); }); - test('review handoff: ready lane, badges, and Mark reviewed', async ({ page }) => { + test('review handoff: ready lane and badges; the card carries no decision', async ({ page }) => { const errors = await bootApp(page); await stubOverseerSession(page, STUB_ROWS); await page.evaluate(() => window.App.openBidBoard()); @@ -146,12 +146,11 @@ test.describe('Bid Board - overseer all-bids browser', () => { await expect(page.locator('#bidBoardList .bid-card-badge-ready')).toHaveText('Ready for review'); await expect(page.locator('#bidBoardList .bid-card-badge-reviewed')).toHaveText('Reviewed ✓'); - // Overseer sees Mark reviewed on the ready card only; clicking it (RPC - // stubbed ok) re-renders the board with the bid reviewed and no lane left. - await expect(page.locator('#bidBoardList .bid-card-review-btn')).toHaveCount(1); - await page.click('#bidBoardList .bid-card-review-btn'); - await expect(page.locator('.bid-board-lane-title')).toHaveCount(0); - await expect(page.locator('#bidBoardList .bid-card-badge-reviewed')).toHaveCount(2); + // DROP-CARD-BUTTONS: no button on any card. Mark reviewed and Request changes… live on + // the review bar in the opened bid (the review-bar test below). + await expect(page.locator('#bidBoardList .bid-card-review-btn')).toHaveCount(0); + await expect(page.locator('#bidBoardList .bid-card-changes-btn')).toHaveCount(0); + await expect(page.locator('#bidBoardList .bid-card button')).toHaveCount(0); // The registry entry the settings row shares is wired. expect(await page.evaluate(() => typeof window.App.setProjectReviewStatus)).toBe('function'); diff --git a/content/guides/reviewing-all-bids.md b/content/guides/reviewing-all-bids.md index e9cefdad..dba4aee9 100644 --- a/content/guides/reviewing-all-bids.md +++ b/content/guides/reviewing-all-bids.md @@ -114,9 +114,9 @@ sign in, CountTooling brings you back to the bid you last had open; the board is - The lane runs oldest waiting first, so the bid that has waited longest is the first card. - Open a ready bid and a **Reviewing** bar sits under the header: how long it has waited, who made it, its counts, then **Request changes…**, **Mark reviewed** and **Next ready**, which - opens the next bid in the lane, so a morning of reviews is one loop. The same two decisions - are on the card for a bid you do not need to open. Either way the bid drops out of the lane - and keeps a quiet **Reviewed ✓** badge, so both sides can see it's been seen. + opens the next bid in the lane, so a morning of reviews is one loop. The card itself carries + no decision: a bid is reviewed where it is read. Once marked, it drops out of the lane and + keeps a quiet **Reviewed ✓** badge, so both sides can see it's been seen. - If the estimator changes the bid afterward, they can **Mark ready again** from the same Project Settings row (or **Withdraw** a request that went up too early). diff --git a/features/bid-board.js b/features/bid-board.js index 7cfcc4c7..56c8757a 100644 --- a/features/bid-board.js +++ b/features/bid-board.js @@ -114,7 +114,9 @@ const cloudBadge = proj.pdf_path ? '✓ Fully cloud' : 'Canvas only'; - const canMarkReviewed = proj.review_status === 'ready' && App.canOversee(); + // DROP-CARD-BUTTONS (2026-10-13): a card carries no decision. Mark reviewed and + // Request changes… live on the review bar in the opened bid (features/review-flow.js), + // which the card click reaches, so a bid is reviewed where it is read. return '
' + '
' + esc(proj.name || 'Untitled') + (proj.external_ref ? ' ' + esc(proj.external_ref) + '' : '') + @@ -126,10 +128,6 @@ cloudBadge + (date ? '' + esc(date) + '' : '') + '
' + - (canMarkReviewed - ? '' + - '' - : '') + '
Loading…
' + '
'; } @@ -205,45 +203,6 @@ }; card.onclick = open; card.onkeydown = function (e) { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); void open(); } }; - const reviewBtn = card.querySelector('.bid-card-review-btn'); - if (reviewBtn) { - reviewBtn.onclick = async function (e) { - e.stopPropagation(); - reviewBtn.disabled = true; - const res = await App.setProjectReviewStatus(proj.id, 'reviewed'); - if (res && res.ok) { - proj.review_status = 'reviewed'; - proj.reviewed_at = new Date().toISOString(); - App.showToast('Marked "' + (proj.name || 'Untitled') + '" reviewed.', 3000); - renderBidBoardList(); - } else { - App.showToast((res && res.error) || 'Could not mark reviewed.', 4000); - reviewBtn.disabled = false; - } - }; - } - const changesBtn = card.querySelector('.bid-card-changes-btn'); - if (changesBtn) { - changesBtn.onclick = async function (e) { - e.stopPropagation(); - // The server refuses a blank note ('changes' without guidance is noise); - // cancel aborts cleanly. - const note = await App.confirmDialog({ title: 'What should change before this bid comes back?', input: { placeholder: 'One line the estimator will read' }, confirmLabel: 'Send back' }); - if (note == null || !note.trim()) return; - changesBtn.disabled = true; - const res = await App.setProjectReviewStatus(proj.id, 'changes', note.trim()); - if (res && res.ok) { - proj.review_status = 'changes'; - proj.review_note = note.trim(); - proj.reviewed_at = new Date().toISOString(); - App.showToast('Changes requested on "' + (proj.name || 'Untitled') + '".', 3000); - renderBidBoardList(); - } else { - App.showToast((res && res.error) || 'Could not request changes.', 4000); - changesBtn.disabled = false; - } - }; - } }); } diff --git a/features/review-flow.js b/features/review-flow.js index f1ba61e8..cd2a3d4e 100644 --- a/features/review-flow.js +++ b/features/review-flow.js @@ -8,8 +8,8 @@ // or re-requests after changes. The row re-renders whenever // #settingsModal becomes visible (MutationObserver on its class — no // app.js hook needed) and reads the live status from the projects row. - // * features/bid-board.js calls App.setProjectReviewStatus for the - // overseer's per-card "Mark reviewed" action. + // * The board's cards carry no decision since DROP-CARD-BUTTONS (2026-10-13): + // the review bar below is the reviewer's only one. // * The review bar (#reviewBar, REVIEW-BAR 2026-10-13, BOARD-QUIET step 1): the // decision happens where the evidence is. While a bid that is ready for // review is open by someone who can oversee it (App.canOversee: admin, diff --git a/guides/reviewing-all-bids/index.html b/guides/reviewing-all-bids/index.html index 0f89ef50..cddee7bd 100644 --- a/guides/reviewing-all-bids/index.html +++ b/guides/reviewing-all-bids/index.html @@ -183,9 +183,9 @@

The review handoff

  • The lane runs oldest waiting first, so the bid that has waited longest is the first card.
  • Open a ready bid and a Reviewing bar sits under the header: how long it has waited, who made it, its counts, then Request changes…, Mark reviewed and Next ready, which -opens the next bid in the lane, so a morning of reviews is one loop. The same two decisions -are on the card for a bid you do not need to open. Either way the bid drops out of the lane -and keeps a quiet Reviewed ✓ badge, so both sides can see it's been seen.
  • +opens the next bid in the lane, so a morning of reviews is one loop. The card itself carries +no decision: a bid is reviewed where it is read. Once marked, it drops out of the lane and +keeps a quiet Reviewed ✓ badge, so both sides can see it's been seen.
  • If the estimator changes the bid afterward, they can Mark ready again from the same Project Settings row (or Withdraw a request that went up too early).
  • diff --git a/journeys/plans/BID-BOARD-QUIET.md b/journeys/plans/BID-BOARD-QUIET.md index 65e67b92..0acc3172 100644 --- a/journeys/plans/BID-BOARD-QUIET.md +++ b/journeys/plans/BID-BOARD-QUIET.md @@ -28,6 +28,8 @@ D the cards kept and quieted). lane sorts on `review_requested_at`; a ready bid opened by a reviewer carries a bar under the header with how long it has waited, Request changes…, Mark reviewed and Next ready, which walks the lane as the board shows it. features/review-flow.js owns it. Detail in CHANGELOG.md. +- DROP-CARD-BUTTONS (2026-10-13, Will's call on the canvas's before/after boards): the cards + carry no decision; the bar is the only one. Detail in CHANGELOG.md. ## What is left @@ -37,6 +39,5 @@ D the cards kept and quieted). 2. **B, grouped by estimator**, only once the company has more than two or three human estimators; with one or two it is A with a caret. -Decision still Will's: whether the board's per-card Mark reviewed and Request changes… go now -that the bar carries them, or stay for a bid the reviewer does not need to open (they stay -today). +With the buttons gone, the next redundancies on a ready card are the gold Ready badge inside +the Ready lane and the green Fully cloud badge for the normal case: the step from D to A. diff --git a/styles.css b/styles.css index 310a08bb..e6236c73 100644 --- a/styles.css +++ b/styles.css @@ -2519,12 +2519,6 @@ body:has(.modal-overlay.visible) .chain-panel { display: none !important; } #bidBoardModal .bid-board-lane-title:first-child { padding-top: 0; } #bidBoardModal .bid-card-badge-ready { background: var(--accent); color: var(--bg); font-weight: 600; } #bidBoardModal .bid-card-badge-reviewed { background: var(--surface2); color: var(--green); border: 1px solid var(--border); } -#bidBoardModal .bid-card-review-btn { align-self: flex-start; margin-top: 2px; padding: 6px 12px; font-size: 0.8rem; font-family: inherit; border-radius: 6px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; } -#bidBoardModal .bid-card-review-btn:hover { background: rgba(232, 197, 71, 0.14); } -#bidBoardModal .bid-card-review-btn:disabled { opacity: 0.6; cursor: wait; } -#bidBoardModal .bid-card-changes-btn { align-self: flex-start; margin-top: 2px; margin-left: 6px; padding: 6px 12px; font-size: 0.8rem; font-family: inherit; border-radius: 6px; border: 1px solid var(--yellow); background: transparent; color: var(--yellow); cursor: pointer; } -#bidBoardModal .bid-card-changes-btn:hover { background: rgba(232, 197, 71, 0.14); } -#bidBoardModal .bid-card-changes-btn:disabled { opacity: 0.6; cursor: wait; } .settings-review-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px; font-size: 0.85rem; } .settings-review-row .settings-review-label { color: var(--text2); } .settings-review-row .settings-review-label::after { content: ' ·'; } diff --git a/sw.js b/sw.js index 58736e72..247e45bb 100644 --- a/sw.js +++ b/sw.js @@ -23,7 +23,7 @@ * visit once the CDN has settled. The app's admin "global force reload" clears caches * as a backstop. */ -const CACHE_VERSION = 'b49ec427c7ce'; +const CACHE_VERSION = '26ba8cf4eef2'; const CACHE_NAME = `counttooling-shell-${CACHE_VERSION}`; // The full same-origin app shell. GENERATED by `npm run build:sw`, do not edit by hand: @@ -239,7 +239,7 @@ const PRECACHE_SHA256 = { '/vendor/jspdf.umd-2.5.1.min.js': '98ccf17aa10c20bb1301762618fcc9b6ab3a4e7f26b6071d64d0b41154df3875', '/vendor/supabase-js-2.108.0.min.js': '005a6b7d396160fbe924316baa98adf198dc6f99a63412e27edec9675c225270', '/vendor/tus-js-client-4.3.1.min.js': '8cbb1b63fccc3bba0ae73ad1deb160ce046c3750851d0c3e94921ae3ef070eb8', - '/styles.css': '9e6ff65967d1e0ca25b4c8bab00fc8d0a5671a0a7aa9d8f3497fb69fd36b557e', + '/styles.css': '0d141810893dc7a29e66c30af92eb79fc480cf340a1f210e1993ec12c6b3da94', '/icons.js': 'bb3c3506a859d25685287d0c1d3afb3231601754555aea403505e7ca8d68779b', '/icons-custom.js': 'efe6b960301031a5fb40abc2f54de18798e19f4b7b04e0eccb81b47f1e9cacad', '/icon-render.js': '41b09b835c3898be95b013b27a6c11e1453c629cb811326d49fdcbfec19439d8', @@ -305,8 +305,8 @@ const PRECACHE_SHA256 = { '/features/hand-off.js': 'e996c7300432489bcb8e1c9a02539278a7ac3ffbf2daaabce4922b4875e10c23', '/features/user-admin.js': '2abd3029bdf2950310af9c19fb302b416976922bad3f4142db55626e3a229128', '/features/load-project.js': 'f01367d24dc62824ca474b5f7f707fc7e739bfcd936b85d3cafe6d6813c98ad8', - '/features/bid-board.js': 'eee65ebbadf86c3198d5eeac19371fa55cc9c5146aed582b3161105490f4fad2', - '/features/review-flow.js': '8e0139b0861a45b147f2dee31d416a3c2188fde6fb7ab16644a0f2d14475bb6b', + '/features/bid-board.js': '7084f95a558339491faa374ebeacc0069c4b30c45933338f315b0ddee3eb21d3', + '/features/review-flow.js': '55b0ab96cce1674baa5a794ad3c1986a438ff9a2691b5cf2b78f0187ce61b640', '/features/copy-project.js': '7668abd5e8121edc27c3155882da4c252791455a5a7bdd4a6accbe36ef0bea09', '/features/prepare-pdf.js': '7468cb401fc5a29c1e3e6f3188c1e99396c6b7b5d5374d2cb7de0367a80e4c24', '/features/quick-modals.js': '052927460e00406495fea8cdb36c0e3cf816d455eb94cb764437bd40016ed527',