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
8 changes: 4 additions & 4 deletions ARCHITECTURE.md

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion PUNCHLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
13 changes: 6 additions & 7 deletions bid-board.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions content/guides/reviewing-all-bids.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
47 changes: 3 additions & 44 deletions features/bid-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
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>';
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 '<div class="bid-card" role="button" tabindex="0" data-project-id="' + esc(proj.id) + '">' +
'<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>' : '') +
Expand All @@ -126,10 +128,6 @@
cloudBadge +
(date ? '<span class="bid-card-date">' + esc(date) + '</span>' : '') +
'</div>' +
(canMarkReviewed
? '<button type="button" class="bid-card-review-btn">Mark reviewed</button>' +
'<button type="button" class="bid-card-changes-btn">Request changes…</button>'
: '') +
'<div class="bid-card-status">Loading…</div>' +
'</div>';
}
Expand Down Expand Up @@ -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;
}
};
}
});
}

Expand Down
4 changes: 2 additions & 2 deletions features/review-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions guides/reviewing-all-bids/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ <h2>The review handoff</h2>
<li>The lane runs oldest waiting first, so the bid that has waited longest is the first card.</li>
<li>Open a ready bid and a <strong>Reviewing</strong> bar sits under the header: how long it has waited, who
made it, its counts, then <strong>Request changes…</strong>, <strong>Mark reviewed</strong> and <strong>Next ready</strong>, 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 <strong>Reviewed ✓</strong> badge, so both sides can see it&#39;s been seen.</li>
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 <strong>Reviewed ✓</strong> badge, so both sides can see it&#39;s been seen.</li>
<li>If the estimator changes the bid afterward, they can <strong>Mark ready again</strong> from the same
Project Settings row (or <strong>Withdraw</strong> a request that went up too early).</li>
</ul>
Expand Down
7 changes: 4 additions & 3 deletions journeys/plans/BID-BOARD-QUIET.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
6 changes: 0 additions & 6 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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: ' ·'; }
Expand Down
8 changes: 4 additions & 4 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 = '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:
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': '9e6ff65967d1e0ca25b4c8bab00fc8d0a5671a0a7aa9d8f3497fb69fd36b557e',
'/styles.css': '0d141810893dc7a29e66c30af92eb79fc480cf340a1f210e1993ec12c6b3da94',
'/icons.js': 'bb3c3506a859d25685287d0c1d3afb3231601754555aea403505e7ca8d68779b',
'/icons-custom.js': 'efe6b960301031a5fb40abc2f54de18798e19f4b7b04e0eccb81b47f1e9cacad',
'/icon-render.js': '41b09b835c3898be95b013b27a6c11e1453c629cb811326d49fdcbfec19439d8',
Expand Down Expand Up @@ -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',
Expand Down
Loading