Keep report cards compact and verify phone action geometry
4 files changed,
+13
−1
.rastrillo/budgets.txt+1 −1internal/equipo/static/equipo.css+8 −0internal/thintest/roster_browser_test.go+1 −0internal/thintest/roster_reports_browser_test.go+3 −0
CI passed — run details
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index 34f5a765..80adbc24 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -71,7 +71,7 @@ perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one im |
| perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section. |
| time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally). |
| size internal/headless - 10739 End-to-end scenarios through a real runner and instance: the Copy setting, wording flag and the Assistant's job threads. Measured 10739 test lines. |
| -size internal/thintest - 28312 The contract and browser tests share the instance harness; Roster adds real action states and desktop/phone captures in both themes. Measured 28312 test lines. |
| +size internal/thintest - 28316 The contract and browser tests share the instance harness; Roster adds real action states and desktop/phone captures in both themes. Measured 28316 test lines. |
| perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}. |
| perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage. |
| perf GET /api/v1/advice skip Thin v1 person API: bearer-only JSON for devices; the browser reads advice through /usage and /conversation. |
diff --git a/internal/equipo/static/equipo.css b/internal/equipo/static/equipo.css| index dee61e0e..afefe5ab 100644 |
| --- a/internal/equipo/static/equipo.css |
| +++ b/internal/equipo/static/equipo.css |
| @@ -1944,3 +1944,11 @@ label[equipo-sp-label] { cursor: pointer; } |
| [equipo-conversation]:not([data-task]) [equipo-thinking][data-streaming] [equipo-bubble] { display: block; } |
| [equipo-thinking][data-streaming] [equipo-turn-stop] { display: none; } |
| [equipo-roster-facts] dd, [equipo-roster-facts] code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| +/* Task menus open deliberately; hidden actions reserve no card space. */ |
| +[equipo-card="task"] [equipo-roster-card] > [equipo-receipt-actions] { display: none; } |
| +[equipo-card="task"][data-open] [equipo-roster-card] > [equipo-receipt-actions] { display: flex; padding-inline-end: 2.5rem; } |
| +[equipo-card="task"] [equipo-receipt-more] { position: absolute; inset-inline-end: .5rem; inset-block-end: .5rem; display: inline-flex; align-items: center; justify-content: center; inline-size: 2.75rem; min-block-size: 2.75rem; } |
| +[equipo-roster-links] { padding-inline-end: 2.5rem; } |
| +[equipo-roster-report-head] [equipo-card-line] { color: var(--rst-text); } |
| +[equipo-roster-stage]::before { content: none; } |
| +[equipo-conversation] [equipo-day-box] { max-inline-size: 48rem; } |
diff --git a/internal/thintest/roster_browser_test.go b/internal/thintest/roster_browser_test.go| index 6435a0b7..40137b31 100644 |
| --- a/internal/thintest/roster_browser_test.go |
| +++ b/internal/thintest/roster_browser_test.go |
| @@ -23,6 +23,7 @@ func TestBrowserRosterVisual(t *testing.T) { |
| p.check(`[...document.querySelectorAll("[equipo-daybar] i")].every(i=>i.getBoundingClientRect().width>0) && !document.querySelector("[equipo-daybar] [style]")`, "roll-up bar violates the style policy") |
| p.check(`document.querySelector('[equipo-roster-report] [data-track]').children.length===5`, "report needs five stages") |
| p.check(`!!document.querySelector('[equipo-roster-facts]')`, "report facts missing") |
| + p.check(`(()=>{const r=document.querySelector("[equipo-roster-report]"),c=r.closest("[equipo-roster-card]");return c.getBoundingClientRect().bottom-r.getBoundingClientRect().bottom<20})()`, "hidden task actions reserve empty space") |
| p.check(`(()=>{const s=getComputedStyle(document.querySelector('[equipo-coordinator-mark]'));return s.backgroundColor==='rgba(0, 0, 0, 0)' && s.boxShadow==='none'})()`, "coordinator has a tile") |
| p.fits("Roster") |
| p.check(`(()=>{const s=document.querySelector('[equipo-scroll]');s.scrollTop=0;s.dispatchEvent(new Event('scroll'));return true})()`, "top") |
diff --git a/internal/thintest/roster_reports_browser_test.go b/internal/thintest/roster_reports_browser_test.go| index 91f0b290..f34dc9d2 100644 |
| --- a/internal/thintest/roster_reports_browser_test.go |
| +++ b/internal/thintest/roster_reports_browser_test.go |
| @@ -46,6 +46,9 @@ func TestBrowserRosterReports(t *testing.T) { |
| p.check(`document.querySelector('[equipo-copy-meter]').textContent.includes('1 of 2 strings reviewed') && document.querySelector('[equipo-copy-meter] meter').value===1`, "Copy coverage") |
| p.check(`(()=>{document.querySelector('[equipo-copy-hold]').scrollIntoView({block:'center'});return true})()`, "show Copy") |
| p.fits("Copy hold") |
| + if width == 390 { |
| + p.check(`(()=>{const c=document.querySelector("[equipo-copy-hold]"),b=c.querySelector("[data-copy-continue]");return b.getBoundingClientRect().width>=c.clientWidth-2 && b.getBoundingClientRect().height>=44})()`, "phone primary does not span its row") |
| + } |
| p.check(`[...document.querySelectorAll("[equipo-roster-card]")].every(c=>c.scrollWidth<=c.clientWidth+1)`, "content overflows a card") |
| p.shot(fmt.Sprintf("roster-copy-%d-%s", width, scheme)) |
| p.check(`(()=>{document.querySelector('[equipo-copy-hold]').closest('[data-card]').querySelector('[data-set-aside]').click();return true})()`, "set Copy aside") |