Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ARCHITECTURE.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@ expired recovery UX" work occupies that slot).

---

## style(bid-board): the cloud says nothing unless it is missing (CLOUD-OFF-ICON, 2026-10-13)

Will, on the quieter cards: "when something is fully cloud I would like to see nothing; when
canvas only, a cloud with a line through it up in the corner, the note on hover; and the
estimator aligned right."

- The green ✓ Fully cloud badge is gone; the normal case is silent. A bid without its PDF in
the cloud wears a crossed-out cloud (an inline stroke SVG, the accent yellow at 90%) in the
card's top-right corner, over the title if the title runs that far, on a halo of the card's
own background. Hover it (or focus the card) and a small note drops under it: "Canvas only.
The markups are in the cloud, but the plan PDF was never uploaded and still lives on the
estimator's device." The same note is its `aria-label`.
- The estimator's name sits right-aligned under the title.
- features/bid-board.js, styles.css (the badge rule out, the icon and its tooltip in; the card
is `position: relative` for the corner), bid-board.spec.js (no cloud badges; one crossed-out
cloud on the card without a PDF, labelled; none on the first), the Overseer guide's card
bullet (rebuilt), the ARCHITECTURE row, sw.js restamped. The guide's board screenshot still
shows the old badges until `npm run build:screenshots` is run.

## 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
Expand Down
14 changes: 8 additions & 6 deletions bid-board.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ test.describe('Bid Board - overseer all-bids browser', () => {
await expect(firstCard.locator('.bid-card-name')).toHaveText('Riverside Apartments');
await expect(firstCard.locator('.bid-card-owner')).toHaveText('wendi');
await expect(firstCard.locator('.bid-card-badge:not([class*="bid-card-badge-"])')).toHaveText('214 counts · 38 lines');
// Cloud-completeness badges: pdf_path present -> "Fully cloud" (p1, p2);
// missing -> "Canvas only" (p3). Date carries the relative age suffix.
await expect(page.locator('#bidBoardList .bid-card-badge-cloud')).toHaveCount(2);
await expect(firstCard.locator('.bid-card-badge-cloud')).toHaveText('✓ Fully cloud');
await expect(page.locator('#bidBoardList .bid-card-badge-warn')).toHaveCount(1);
await expect(page.locator('#bidBoardList .bid-card-badge-warn')).toHaveText('Canvas only');
// Cloud completeness (CLOUD-OFF-ICON): a bid with its PDF in the cloud says nothing; one
// without (p3) wears a crossed-out cloud in its corner with the note on it. Date carries
// the relative age suffix.
await expect(page.locator('#bidBoardList .bid-card-badge-cloud')).toHaveCount(0);
await expect(page.locator('#bidBoardList .bid-card-badge-warn')).toHaveCount(0);
await expect(page.locator('#bidBoardList .bid-card-cloud-off')).toHaveCount(1);
await expect(page.locator('#bidBoardList .bid-card', { hasText: 'Lakeway Medical Office' }).locator('.bid-card-cloud-off')).toHaveAttribute('aria-label', /^Canvas only\./);
await expect(firstCard.locator('.bid-card-cloud-off')).toHaveCount(0);
await expect(firstCard.locator('.bid-card-date')).toContainText(/today|yesterday|days ago/);

// Search filter.
Expand Down
10 changes: 5 additions & 5 deletions content/guides/reviewing-all-bids.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ Each card tells you the story at a glance:
has no markups yet.
- **When it was last touched**: the date plus a plain-English age: *today*, *yesterday*,
*12 days ago*.
- **Cloud status**: <span style="white-space:nowrap;">**✓ Fully cloud**</span> (green) means
the markups *and* the plan PDF are both saved to the cloud, so the bid opens complete
anywhere. **Canvas only** (yellow) means only the markups made it to the cloud, the PDF
still lives on the estimator's device, so the drawing itself can't be displayed until they
save it with the PDF included.
- **Cloud status**: a card that says nothing about it is complete, the markups *and* the plan
PDF both saved to the cloud, so the bid opens anywhere. A crossed-out cloud in the card's top
corner means **canvas only**: the markups made it to the cloud but the PDF still lives on the
estimator's device, so the drawing can't be displayed until they save it with the PDF
included. Hover the cloud for the note.

If you close the board, it's one click away: **All Bids** in the sidebar.

Expand Down
20 changes: 13 additions & 7 deletions features/bid-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,24 +108,30 @@
proj.counter_count > 0 ? (proj.counter_count + (proj.counter_count === 1 ? ' count' : ' counts')) : null,
proj.line_count > 0 ? (proj.line_count + (proj.line_count === 1 ? ' line' : ' lines')) : null,
].filter(Boolean).join(' · ');
// Cloud completeness: a bid with its PDF in storage is fully in the cloud
// (canvas markups always ride in the project row); without it, only the
// canvas is backed up and the plan itself lives on the estimator's device.
// Cloud completeness (CLOUD-OFF-ICON, 2026-10-13, Will): a bid with its PDF in storage
// is fully in the cloud (canvas markups always ride in the project row) and the card says
// nothing about it. Without the PDF, only the canvas is backed up and the plan itself
// lives on the estimator's device: a crossed-out cloud sits in the card's top-right
// corner (over the title if it must), with the note on hover and in its label.
const cloudOffNote = 'Canvas only. The markups are in the cloud, but the plan PDF was never uploaded and still lives on the estimator\'s device.';
const cloudBadge = proj.pdf_path
? '<span class="bid-card-badge bid-card-badge-cloud" title="Canvas and PDF are both in the cloud">✓ Fully cloud</span>'
: '<span class="bid-card-badge bid-card-badge-warn" title="Only the canvas markups are in the cloud. The PDF was never uploaded">Canvas only</span>';
? ''
: '<span class="bid-card-cloud-off" role="img" aria-label="' + esc(cloudOffNote) + '" data-tip="' + esc(cloudOffNote) + '">' +
'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' +
'<path d="M22.6 17A5 5 0 0 0 18 10h-1.3a8 8 0 0 0-7-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"/><line x1="1" y1="1" x2="23" y2="23"/>' +
'</svg></span>';
// 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 '<div class="bid-card" role="button" tabindex="0" data-project-id="' + esc(proj.id) + '">' +
return '<div class="bid-card' + (cloudBadge ? ' bid-card-no-pdf' : '') + '" role="button" tabindex="0" data-project-id="' + esc(proj.id) + '">' +
cloudBadge +
'<div class="bid-card-name">' + esc(proj.name || 'Untitled') +
(proj.external_ref ? ' <span class="bid-stamp" title="Upstream bid ' + esc(proj.external_ref) + '">' + esc(proj.external_ref) + '</span>' : '') +
'</div>' +
'<div class="bid-card-owner" title="' + esc(proj.owner_email || '') + '">' + esc(ownerLabel(proj.owner_email)) + '</div>' +
'<div class="bid-card-meta">' +
reviewBadgeHtml(proj) +
(counts ? '<span class="bid-card-badge">' + esc(counts) + '</span>' : '') +
cloudBadge +
(date ? '<span class="bid-card-date">' + esc(date) + '</span>' : '') +
'</div>' +
'<div class="bid-card-status">Loading…</div>' +
Expand Down
10 changes: 5 additions & 5 deletions guides/reviewing-all-bids/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ <h2>The All Bids board</h2>
has no markups yet.</li>
<li><strong>When it was last touched</strong>: the date plus a plain-English age: <em>today</em>, <em>yesterday</em>,
<em>12 days ago</em>.</li>
<li><strong>Cloud status</strong>: <span style="white-space:nowrap;"><strong>✓ Fully cloud</strong></span> (green) means
the markups <em>and</em> the plan PDF are both saved to the cloud, so the bid opens complete
anywhere. <strong>Canvas only</strong> (yellow) means only the markups made it to the cloud, the PDF
still lives on the estimator&#39;s device, so the drawing itself can&#39;t be displayed until they
save it with the PDF included.</li>
<li><strong>Cloud status</strong>: a card that says nothing about it is complete, the markups <em>and</em> the plan
PDF both saved to the cloud, so the bid opens anywhere. A crossed-out cloud in the card&#39;s top
corner means <strong>canvas only</strong>: the markups made it to the cloud but the PDF still lives on the
estimator&#39;s device, so the drawing can&#39;t be displayed until they save it with the PDF
included. Hover the cloud for the note.</li>
</ul>
<p>If you close the board, it&#39;s one click away: <strong>All Bids</strong> in the sidebar.</p>
<h2>Inside a bid</h2>
Expand Down
11 changes: 9 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,18 @@ body:has(.modal-overlay.visible) .chain-panel { display: none !important; }
#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; }
#bidBoardModal .bid-card:hover, #bidBoardModal .bid-card:focus-visible { background: var(--surface2); border-color: var(--accent); outline: none; }
#bidBoardModal .bid-card-name { font-size: 1.05rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
#bidBoardModal .bid-card-owner { font-size: 0.85rem; color: var(--accent); }
#bidBoardModal .bid-card-owner { font-size: 0.85rem; color: var(--accent); text-align: right; }
/* CLOUD-OFF-ICON (2026-10-13): a bid without its PDF in the cloud wears a crossed-out cloud in the
card's top-right corner; the note rides a CSS tooltip under it on hover. Fully cloud says nothing. */
#bidBoardModal .bid-card { position: relative; }
#bidBoardModal .bid-card-cloud-off { position: absolute; top: 9px; right: 10px; width: 26px; height: 26px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: inherit; color: var(--yellow); opacity: 0.9; }
#bidBoardModal .bid-card-cloud-off svg { display: block; width: 20px; height: 20px; }
#bidBoardModal .bid-card-no-pdf .bid-card-name { padding-right: 28px; } /* the title wraps short of the corner rather than running under the cloud */
#bidBoardModal .bid-card-cloud-off::after { content: attr(data-tip); position: absolute; top: 30px; right: -2px; width: 232px; padding: 8px 10px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); color: var(--text); font-size: 0.78rem; line-height: 1.4; text-align: left; opacity: 0; pointer-events: none; transition: opacity 120ms; z-index: 5; }
#bidBoardModal .bid-card-cloud-off:hover::after, #bidBoardModal .bid-card:focus-visible .bid-card-cloud-off::after { opacity: 1; }
#bidBoardModal .bid-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#bidBoardModal .bid-card-badge { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--surface2); color: var(--text2); }
#bidBoardModal .bid-card-badge-warn { background: var(--yellow); color: var(--bg); }
#bidBoardModal .bid-card-badge-cloud { background: var(--green); color: var(--bg); }
#bidBoardModal .bid-card-date { font-size: 0.78rem; color: var(--text3); margin-left: auto; }
#bidBoardModal .bid-card-status { display: none; font-size: 0.8rem; color: var(--text2); }
#bidBoardModal .bid-card.loading { pointer-events: none; opacity: 0.75; cursor: wait; }
Expand Down
6 changes: 3 additions & 3 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '26ba8cf4eef2';
const CACHE_VERSION = 'e253bf9e8c39';
const CACHE_NAME = `counttooling-shell-${CACHE_VERSION}`;

// The full same-origin app shell. GENERATED by `npm run build:sw`, do not edit by hand:
Expand Down Expand Up @@ -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': '0d141810893dc7a29e66c30af92eb79fc480cf340a1f210e1993ec12c6b3da94',
'/styles.css': '60682afd8bad867e31856e85d619b9073f118e0b0781e4028a78bbc5f86e83ad',
'/icons.js': 'bb3c3506a859d25685287d0c1d3afb3231601754555aea403505e7ca8d68779b',
'/icons-custom.js': 'efe6b960301031a5fb40abc2f54de18798e19f4b7b04e0eccb81b47f1e9cacad',
'/icon-render.js': '41b09b835c3898be95b013b27a6c11e1453c629cb811326d49fdcbfec19439d8',
Expand Down Expand Up @@ -305,7 +305,7 @@ const PRECACHE_SHA256 = {
'/features/hand-off.js': 'e996c7300432489bcb8e1c9a02539278a7ac3ffbf2daaabce4922b4875e10c23',
'/features/user-admin.js': '2abd3029bdf2950310af9c19fb302b416976922bad3f4142db55626e3a229128',
'/features/load-project.js': 'f01367d24dc62824ca474b5f7f707fc7e739bfcd936b85d3cafe6d6813c98ad8',
'/features/bid-board.js': '7084f95a558339491faa374ebeacc0069c4b30c45933338f315b0ddee3eb21d3',
'/features/bid-board.js': '49706aed04f2273c45cf57ed152ad61c170280d40ee61217b50f1e1c5b3e463e',
'/features/review-flow.js': '55b0ab96cce1674baa5a794ad3c1986a438ff9a2691b5cf2b78f0187ce61b640',
'/features/copy-project.js': '7668abd5e8121edc27c3155882da4c252791455a5a7bdd4a6accbe36ef0bea09',
'/features/prepare-pdf.js': '7468cb401fc5a29c1e3e6f3188c1e99396c6b7b5d5374d2cb7de0367a80e4c24',
Expand Down
Loading