Repository navigation
feat(live-board): redesign the board to lead with what needs the captain - #76
Merged
Merged
Conversation
The live board now opens with five headline numbers (questions for you, stuck or stopped, workers moving, waiting outside, PRs landed in the last 24 hours) and the quieter totals on one line. A Needs you section gives every open decision one plain line - what it is about, the choice, Firstmate's recommendation - with an Answer link to its card, and names workers waiting on a decision asked elsewhere. Running workers are compact rows that lead with stuck and waiting-on-you workers and show how long ago each last reported. A Landed section groups the last day's merged PRs by project with their run outcomes. Each project folds its environments and PR strip under one summary line, empty lanes shrink to a line, the repeated lane explanations and Next-lane badges are kept for screen readers only, and the delivery settings fold under a one-line count; opened folds survive refreshes like collapsed cards. The answer cards and their Lavish choice path are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
"Improve the design of the live lavish board to make it more clean and more insightfull for me."
The live Lavish board is the page the captain keeps open to see the fleet: what needs his decision, what is running, what is delivered.
He is mostly on his phone, so it must read well at 390px as well as on desktop.
What Changed
fm-live-board-projects.jqandfm-live-board.shsupply the new crew and landed data and the updated header docs;docs/configuration.md, the render harness andtests/fm-live-board.test.share updated to match.Risk Assessment
✅ Low: This is a presentation-layer redesign of a read-only board, plus a small addition to the view projection: the worker sort order and a 24h landed list. Its counts and data flow agree with the existing lane and count rules, and the only defects found are a folded state that is lost on refresh, contrary to the docs, and some dead CSS.
Testing
I ran the two targeted board tests and both passed. Then I built a real board from a scratch home with workers in several states and with questions for the captain. I screenshotted it in headless Chrome at 390px and at desktop width. The phone layout has no sideways scroll, and the Answer link jumps to its card. The Landed section with real merges was not tested live. Only the test harness render checked it, because the scratch home has no forge data.
Evidence: Built board HTML from the scratch home
Source: Built board HTML from the scratch home
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-live-board-template.html:895- A Landed project's open/closed state is not remembered, even though the docs say it is. paintLanded creates eachdetails.landed-projbut never callsremembered(item, ...), so the board's roughly once-a-minute reload closes it again. The fm-live-board.sh TIMELINE header says the opened 'landed projects' are kept in the hidden field and browser storage, and the template comment at the OPEN_STORE block says the same ('a project's landed PRs - outlives reloads'). Example: on the phone the captain opens 'web-shop' under Landed in the last 24 hours to read the merged titles, and the next refresh folds it shut. Onlyship:lines are registered (template line ~1502). Fix: callremembered(item, "landed:" + project)in paintLanded. Theopensarray and the helper are already defined before paintLanded runs.bin/fm-live-board-template.html:24- This change adds CSS that nothing uses:.sr(line 24),.toc-legend(line 83) and.lb-projects-head(lines 132-133) match no element the script builds. The visually-hidden rules for.lane-next .w [data-reason]and.lane > .lane-head > .lane-sayrepeat.sr's declarations inline instead. In paintRunning, the fallback(w.status === "you" ? "b-warn" : "b-muted")is dead too, because CREW_BADGE now has bothyouandexternal, soCREW_BADGE[w.status] || "b-muted"gives the same result. Remove the unused rules and the redundant branch.✅ **Test** - passed
✅ No issues found.
bash tests/fm-live-board.test.sh(all 38 checks ok, including Needs you rows, running-worker order, the landed section and the delivery summary on wide and narrow screens)bash tests/fm-live-board-prs.test.sh(PR collection that feeds the landed section and the timeline, all ok)Built a real board withbin/fm-live-board.sh buildin a scratch FM_HOME: 5 workers (working, blocked, paused, done, lost), queued and held tasks, one open captain question and one put offOpened the built board.html in headless Chrome viachrome-devtools-axiat 390x844 mobile and 1366x900, took full-page screenshotsAt 390px measured scrollWidth == clientWidth (390) and checked that the only elements past the edge are clipped by their ellipsis parentsClicked the first Needs you Answer link at 390px and screenshotted that the question card lands at the top of the screen✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.