diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index a193ac9c..bd58a1be 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -32,14 +32,14 @@ off — and where it doesn't. | [save-engine.js](save-engine.js) | 3,263 | Done — the extracted save/sync seam module (Stages 1–7), 91 node tests. R21 (2026-09-26) folded its repeated blocks inside the file; do not split it. Large but modular and fully node-testable; no further action. | | [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,867 | 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,857 | All CSS, token-organized. Leave. | +| [app/index.html](app/index.html) | 3,869 | 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,862 | All CSS, token-organized. Leave. | | [features/load-project.js](features/load-project.js) | 748 | 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,327 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,380 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,7 +177,7 @@ 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. | | [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 ``; a card click funnels into `App.loadCloudProjectRow` (extracted from [features/load-project.js](features/load-project.js)) with `hostModalId: 'bidBoardModal'`, so a bid always opens in the existing viewer mode (`state.isViewer` — overseers have no checkout arm server-side). Registers `App.openBidBoard` (also bound to `#bidBoardBtnSidebar`, shown for overseers **and** admins by `updateUI`) and `App.maybeAutoOpenBidBoard` — called from app.js after the profile flags land at sign-in; auto-opens **once per page load** for pure overseers (never admins) with nothing on screen, deferring to a stored `clickcount-last-project` (the restore-last-session flow) and to view-link tabs. Regression: [bid-board.spec.js](bid-board.spec.js) (stubbed `App.getSupabase`; registry no-op, card render + filters, auto-open guards). Hides the two test-harness accounts' projects (`HIDDEN_TEST_OWNERS`, mirroring cleanup-test-accounts). PEOPLE-TWINS (2026-10-13): a **People · Twins · All** switch (`#bidBoardKind`, a `.radio-seg` beside the search) opens on People for everyone but an admin, who opens on All; a twin is told by the owner's email against `TWIN_OWNER_RE`, the pattern twin-login enforces (the RPC carries no twin flag); `kindRows` feeds both the list and the estimator ` + + -

Every bid in the company, newest first. Click one to view it. Read-only, nothing can be changed by accident.

+

Every bid in the company, newest first. Click one to open it read-only.

diff --git a/bid-board.spec.js b/bid-board.spec.js index 958d97c4..954421d1 100644 --- a/bid-board.spec.js +++ b/bid-board.spec.js @@ -17,6 +17,8 @@ const STUB_ROWS = [ { id: 'p3', name: 'Lakeway Medical Office', owner_email: 'jake@example.com', counter_count: 310, line_count: 54, updated_at: '2026-08-25T12:00:00Z', pdf_path: null, is_owner: false, can_edit: false, can_check_out: false, my_access_role: 'viewer' }, // Test-harness debris: must be hidden from the board entirely. { id: 'p4', name: 'IndexedDB Test 1787863165971', owner_email: 'dev-agent@clickplumbing.com', counter_count: 1, line_count: 0, updated_at: '2026-08-28T12:00:00Z', pdf_path: 'u/p4.pdf', is_owner: false, can_edit: false, can_check_out: false, my_access_role: 'viewer' }, + // A digital twin's backtest (PEOPLE-TWINS): off the board until Twins or All is picked, except for an admin. + { id: 'p5', name: 'ZZ Twin Oak Hill (backtest)', owner_email: 'twin-estimator-1@twins.counttooling.local', counter_count: 90, line_count: 10, updated_at: '2026-08-28T13:00:00Z', pdf_path: 'u/p5.pdf', is_owner: false, can_edit: false, can_check_out: false, my_access_role: 'viewer', review_status: 'ready', review_requested_at: '2026-08-28T13:00:00Z' }, ]; async function bootApp(page) { @@ -156,6 +158,54 @@ test.describe('Bid Board - overseer all-bids browser', () => { expect(errors).toEqual([]); }); + test('People · Twins · All: the fleet is off for a lead and on for an admin', async ({ page }) => { + const errors = await bootApp(page); + await stubOverseerSession(page, STUB_ROWS); + await page.evaluate(() => window.App.openBidBoard()); + await expect(page.locator('#bidBoardModal')).toBeVisible(); + + // Not an admin: the board opens on People, the twin's bid is off, and a + // line under the list says so. The ready lane counts only what shows. + await expect(page.locator('#bidBoardKind')).toBeVisible(); + await expect(page.locator('#bidBoardKind input:checked')).toHaveValue('people'); + await expect(page.locator('#bidBoardList .bid-card')).toHaveCount(3); + await expect(page.locator('#bidBoardList')).not.toContainText('ZZ Twin'); + await expect(page.locator('.bid-board-hidden-note')).toHaveText('1 twin bid is off · show twins'); + expect(await page.locator('.bid-board-lane-title').allTextContents()).toEqual(['Ready for review (1)', 'All bids']); + + // "show twins" flips the segment: only the fleet, and only its owner in the estimator list. + await page.click('.bid-board-show-twins'); + await expect(page.locator('#bidBoardKind input:checked')).toHaveValue('twins'); + await expect(page.locator('#bidBoardList .bid-card')).toHaveCount(1); + await expect(page.locator('#bidBoardList .bid-card-name')).toHaveText('ZZ Twin Oak Hill (backtest)'); + await expect(page.locator('.bid-board-hidden-note')).toHaveCount(0); + expect(await page.locator('#bidBoardOwnerFilter option').allTextContents()).toEqual(['All estimators', 'twin-estimator-1']); + + // All: everyone, both ready bids in the lane, every owner in the list. + await page.locator('#bidBoardKind label', { hasText: 'All' }).click(); + await expect(page.locator('#bidBoardList .bid-card')).toHaveCount(4); + expect(await page.locator('.bid-board-lane-title').allTextContents()).toEqual(['Ready for review (2)', 'All bids']); + expect(await page.locator('#bidBoardOwnerFilter option').allTextContents()).toEqual(['All estimators', 'jake', 'twin-estimator-1', 'wendi']); + + // An admin opens on All, the view they always had. + await page.click('#bidBoardClose'); + await page.evaluate(() => { window.state.isAdmin = true; window.App.openBidBoard(); }); + await expect(page.locator('#bidBoardModal')).toBeVisible(); + await expect(page.locator('#bidBoardKind input:checked')).toHaveValue('all'); + await expect(page.locator('#bidBoardList .bid-card')).toHaveCount(4); + await page.click('#bidBoardClose'); + + // A company with no twin bids never sees the switch. + await stubOverseerSession(page, STUB_ROWS.filter((r) => r.id !== 'p5')); + await page.evaluate(() => { window.state.isAdmin = false; window.App.openBidBoard(); }); + await expect(page.locator('#bidBoardModal')).toBeVisible(); + await expect(page.locator('#bidBoardList .bid-card')).toHaveCount(3); + await expect(page.locator('#bidBoardKind')).toBeHidden(); + await expect(page.locator('.bid-board-hidden-note')).toHaveCount(0); + await page.click('#bidBoardClose'); + expect(errors).toEqual([]); + }); + test('auto-open: opens once for a pure overseer, never for admins', async ({ page }) => { await bootApp(page); await stubOverseerSession(page, STUB_ROWS); diff --git a/content/guides/reviewing-all-bids.md b/content/guides/reviewing-all-bids.md index cfee63c8..903122bc 100644 --- a/content/guides/reviewing-all-bids.md +++ b/content/guides/reviewing-all-bids.md @@ -1,7 +1,7 @@ --- title: Reviewing every bid: the Overseer role description: The Overseer role gives one person a read-only window into every bid in the company: an All Bids board, one click to open any takeoff, and no way to change anything. -updated: 2026-08-28 +updated: 2026-10-13 order: 7.5 icon: hide-marks category: Collaboration @@ -26,6 +26,11 @@ newest first, one card per bid: 2. **Filter by estimator**: pick a name to see just that person's bids. 3. **Click any card** to open the bid. +A company that runs digital twins also gets a **People · Twins · All** switch beside the +search: the twins' backtests outnumber the estimators' bids many to one, so the board opens on +**People** (an admin opens on **All**), and a line under the list says how many twin bids are +off, with a link to show them. + Each card tells you the story at a glance: - **The bid's name**, as the estimator saved it. diff --git a/features/bid-board.js b/features/bid-board.js index 21664130..0b6c1d9e 100644 --- a/features/bid-board.js +++ b/features/bid-board.js @@ -25,6 +25,42 @@ // supabase/functions/cleanup-test-accounts/index.ts. const HIDDEN_TEST_OWNERS = ['dev-agent@clickplumbing.com', 'test@clickplumbing.com']; + // PEOPLE-TWINS (2026-10-13, Wendi's board): twin-owned bids are the fleet's + // backtests and smoke runs, not an estimator's work, and they outnumber the + // human bids many to one, so a lead's board opened on 41 machine bids. The + // board carries a People · Twins · All switch (#bidBoardKind) and opens on + // People for everyone but an admin, who opens on All (the view they had). + // A twin is told by the owner's email, the same pattern twin-login enforces + // (TWIN_EMAIL_RE in supabase/functions/twin-login/index.ts): the RPC carries + // no twin flag, and a twin account outside the pattern cannot sign in, so + // the pattern is the fleet. The switch hides itself when the company has + // no twin bids; the estimator filter lists only the owners the segment shows. + const TWIN_OWNER_RE = /^twin-estimator-\d+@twins\.counttooling\.local$/i; + function isTwinOwner(email) { return TWIN_OWNER_RE.test(email || ''); } + function boardKind() { + const checked = document.querySelector('#bidBoardKind input:checked'); + return checked ? checked.value : 'people'; + } + function setBoardKind(kind) { + const input = document.querySelector('#bidBoardKind input[value="' + kind + '"]'); + if (input) input.checked = true; + } + function kindRows() { + const kind = boardKind(); + if (kind === 'all') return boardRows.slice(); + return boardRows.filter(function (p) { return isTwinOwner(p.owner_email) === (kind === 'twins'); }); + } + function hiddenTwinsNoteHtml() { + if (boardKind() !== 'people') return ''; + const n = boardRows.filter(function (p) { return isTwinOwner(p.owner_email); }).length; + if (!n) return ''; + return '

' + n + (n === 1 ? ' twin bid is' : ' twin bids are') + ' off ·

'; + } + function onKindChange() { + fillOwnerFilter(); + renderBidBoardList(); + } + function esc(s) { return App.escapeHtml(s); } // "who made it" display: strip the domain so cards read as names, with the @@ -101,7 +137,7 @@ function getFilteredBidRows() { const searchEl = document.getElementById('bidBoardSearch'); const ownerEl = document.getElementById('bidBoardOwnerFilter'); - let rows = boardRows.slice(); + let rows = kindRows(); const q = searchEl && searchEl.value ? searchEl.value.trim().toLowerCase() : ''; if (q) rows = rows.filter(function (p) { return (p.name || 'Untitled').toLowerCase().indexOf(q) !== -1 || (p.external_ref || '').toLowerCase().indexOf(q) !== -1; }); if (ownerEl && ownerEl.value) rows = rows.filter(function (p) { return (p.owner_email || '') === ownerEl.value; }); @@ -112,8 +148,13 @@ const listEl = document.getElementById('bidBoardList'); if (!listEl) return; const rows = getFilteredBidRows(); + const wireShowTwins = function () { + const showTwins = listEl.querySelector('.bid-board-show-twins'); + if (showTwins) showTwins.onclick = function () { setBoardKind('twins'); onKindChange(); }; + }; if (!rows.length) { - listEl.innerHTML = '

' + (boardRows.length ? 'No bids match.' : 'No bids yet.') + '

'; + listEl.innerHTML = '

' + (boardRows.length ? 'No bids match.' : 'No bids yet.') + '

' + hiddenTwinsNoteHtml(); + wireShowTwins(); return; } // "Ready for review" bids get their own lane pinned above the rest — the @@ -125,6 +166,8 @@ ready.map(bidCardHtml).join('') + (rest.length ? '
All bids
' + rest.map(bidCardHtml).join('') : '') : rows.map(bidCardHtml).join(''); + listEl.innerHTML += hiddenTwinsNoteHtml(); + wireShowTwins(); listEl.querySelectorAll('.bid-card').forEach(function (card) { const proj = boardRows.find(function (p) { return p.id === card.dataset.projectId; }); if (!proj) return; @@ -198,13 +241,16 @@ if (!ownerEl) return; const seen = Object.create(null); const owners = []; - for (let i = 0; i < boardRows.length; i++) { - const em = boardRows[i].owner_email; + const rows = kindRows(); // PEOPLE-TWINS: only the owners the segment shows + for (let i = 0; i < rows.length; i++) { + const em = rows[i].owner_email; if (em && !seen[em]) { seen[em] = true; owners.push(em); } } owners.sort(); + const keep = ownerEl.value && owners.indexOf(ownerEl.value) !== -1 ? ownerEl.value : ''; ownerEl.innerHTML = '' + owners.map(function (em) { return ''; }).join(''); + ownerEl.value = keep; ownerEl.parentElement.style.display = owners.length > 1 ? '' : 'none'; } @@ -220,6 +266,12 @@ if (searchEl) { searchEl.value = ''; searchEl.oninput = renderBidBoardList; } const ownerEl = document.getElementById('bidBoardOwnerFilter'); if (ownerEl) { ownerEl.value = ''; ownerEl.onchange = renderBidBoardList; } + const kindEl = document.getElementById('bidBoardKind'); + if (kindEl) { + setBoardKind(state.isAdmin ? 'all' : 'people'); // PEOPLE-TWINS: an admin keeps the whole board + kindEl.querySelectorAll('input').forEach(function (r) { r.onchange = onKindChange; }); + kindEl.style.display = 'none'; + } listEl.innerHTML = '

Loading bids…

'; App.showModal('bidBoardModal'); try { @@ -229,6 +281,7 @@ return; } boardRows = (projects || []).filter(function (p) { return HIDDEN_TEST_OWNERS.indexOf(p.owner_email || '') === -1; }); + if (kindEl) kindEl.style.display = boardRows.some(function (p) { return isTwinOwner(p.owner_email); }) ? '' : 'none'; fillOwnerFilter(); renderBidBoardList(); } catch (e) { diff --git a/guides/index.html b/guides/index.html index 6e0c5837..d9b2526e 100644 --- a/guides/index.html +++ b/guides/index.html @@ -211,7 +211,7 @@

All guides

Reviewing every bid: the Overseer role

The Overseer role gives one person a read-only window into every bid in the company: an All Bids board, one click to open any takeoff, and no way to change anything.

- Updated Aug 28, 2026 + Updated Oct 13, 2026

Installing the app and working offline

diff --git a/guides/reviewing-all-bids/index.html b/guides/reviewing-all-bids/index.html index 55785c92..867a9b53 100644 --- a/guides/reviewing-all-bids/index.html +++ b/guides/reviewing-all-bids/index.html @@ -30,8 +30,8 @@ "headline": "Reviewing every bid: the Overseer role", "description": "The Overseer role gives one person a read-only window into every bid in the company: an All Bids board, one click to open any takeoff, and no way to change anything.", "image": "https://counttooling.com/og-image.png", - "datePublished": "2026-08-28", - "dateModified": "2026-08-28", + "datePublished": "2026-10-13", + "dateModified": "2026-10-13", "author": { "@type": "Organization", "name": "CountTooling", @@ -90,7 +90,7 @@

Reviewing every bid: the Overseer role

- +

Some people never do a takeoff, they just need to see them. An owner, a general manager, a senior reviewer: when the estimator says "it's in there, go look at it," they should be able @@ -107,6 +107,10 @@

The All Bids board

  • Filter by estimator: pick a name to see just that person's bids.
  • Click any card to open the bid.
  • +

    A company that runs digital twins also gets a People · Twins · All switch beside the +search: the twins' backtests outnumber the estimators' bids many to one, so the board opens on +People (an admin opens on All), and a line under the list says how many twin bids are +off, with a link to show them.

    Each card tells you the story at a glance:

    • The bid's name, as the estimator saved it.
    • diff --git a/styles.css b/styles.css index 71ef06f2..afbbaff3 100644 --- a/styles.css +++ b/styles.css @@ -2492,6 +2492,11 @@ body:has(.modal-overlay.visible) .chain-panel { display: none !important; } #bidBoardModal .bid-board-search { flex: 1 1 160px; min-width: 0; max-width: 320px; padding: 7px 10px; font-size: 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); box-sizing: border-box; font-family: inherit; } #bidBoardModal .bid-board-owner-filter { padding: 7px 10px; font-size: 0.9rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); max-width: 100%; font-family: inherit; } #bidBoardModal .bid-board-intro { color: var(--text2); } +/* PEOPLE-TWINS: the People · Twins · All segment and the "N twin bids are off" line under the list. */ +#bidBoardModal .bid-board-kind label { padding: 6px 10px; font-size: 0.85rem; } +#bidBoardModal .bid-board-hidden-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.8rem; color: var(--text3); } +#bidBoardModal .bid-board-show-twins { background: none; border: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; } +#bidBoardModal .bid-board-show-twins:hover { text-decoration: underline; } #bidBoardModal .bid-board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; } #bidBoardModal .bid-board-empty { color: var(--text2); margin: 0; grid-column: 1 / -1; } #bidBoardModal .bid-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; background: var(--surface); display: flex; flex-direction: column; gap: 6px; } diff --git a/sw.js b/sw.js index 9546936c..64c40a8e 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 = '2fcebd4f9ed8'; +const CACHE_VERSION = '710039353267'; 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': '6b55ca692b4f36901de21dbc0750519a77fa67fe9588c0a7cb91fe1a60e07be5', + '/styles.css': '81991e5a6b20f1e75bd4020913993755d38eec7679184b9eae50fce9806b3b37', '/icons.js': 'bb3c3506a859d25685287d0c1d3afb3231601754555aea403505e7ca8d68779b', '/icons-custom.js': 'efe6b960301031a5fb40abc2f54de18798e19f4b7b04e0eccb81b47f1e9cacad', '/icon-render.js': '41b09b835c3898be95b013b27a6c11e1453c629cb811326d49fdcbfec19439d8', @@ -305,7 +305,7 @@ const PRECACHE_SHA256 = { '/features/hand-off.js': 'e996c7300432489bcb8e1c9a02539278a7ac3ffbf2daaabce4922b4875e10c23', '/features/user-admin.js': '2abd3029bdf2950310af9c19fb302b416976922bad3f4142db55626e3a229128', '/features/load-project.js': 'c0d46b903bf80f5b033a2bfe03f91871c687c20ee5d538d25ef523c1e87fb878', - '/features/bid-board.js': 'a7aa87b4f720c139b2407e4c09368495632f83189c214e3369a526839ee47522', + '/features/bid-board.js': '1937ccb419fa583f1bd9e8de4a80cdcffea6225e839e409cbc9b2dc4f19d7628', '/features/review-flow.js': '7dd1ac948e0031abab788666622873a143eeefd3315ed0b1cadb1a8083400bc5', '/features/copy-project.js': '7668abd5e8121edc27c3155882da4c252791455a5a7bdd4a6accbe36ef0bea09', '/features/prepare-pdf.js': '7468cb401fc5a29c1e3e6f3188c1e99396c6b7b5d5374d2cb7de0367a80e4c24', @@ -405,8 +405,8 @@ const PRECACHE_SHA256 = { '/icons/icon-192.png': 'c807a7a2fda05dc5a74c60f16d7199bc1c617aa36948acc20e3712a412f943c2', '/icons/icon-512.png': '386919ae854bc73fd0c8fa39bcb8f16d2496ce0b487792ca17b0924d7a8eb137', '/icons/maskable-512.png': 'a5c54fa0ab699678992c5e5473721804d24257762a859f8c2183fb4049bfa164', - '/app/': '3e4d6c11a6a60db8bf1a26d669df7ded8bd999048ab320ee8bb4b6314e09f119', - '/app/index.html': '3e4d6c11a6a60db8bf1a26d669df7ded8bd999048ab320ee8bb4b6314e09f119', + '/app/': 'ffce11a51a4b7e14245147cd2ceb6fa876173ab282f86a495a37454a7ec0a991', + '/app/index.html': 'ffce11a51a4b7e14245147cd2ceb6fa876173ab282f86a495a37454a7ec0a991', '/render-worker.js': '97409f02a7150a5f9b5e456769083b49dca0c7baaae0263a34e2fc7a1d23a54d', '/vendor/pdf.worker.min-3.11.174.js': 'feabdf309770ed24bba31a5467836cdc8cf639c705af27d52b585b041bb8527b', '/rules/rules.json': 'bf4f68f9b25bd2bbc13e382bd204fce243c23945c8cf7bcb57da828f652e122b',