Repository navigation
feat(grid): Executions info tile adopts the scanline loading motion (ent#449) - #2520
Conversation
Requirements before implementation (CLAUDE.md Rule 1). §9.13 gains the loading-motion bullet: one persistent ScanlineReveal around the chart zone, keyed off the pure tileState (never a fetch-in-flight flag), reveal only for a data terminal, em-dash headline while loading, one fixed 70px footprint, grid-palette beam, reduced motion honoured by the primitive. Also records the chassis handoff (`InfoTile` `owns-loading`) and why the two row-list tiles keep the skeleton in this pass: `TileRowList`'s `height: 100%` tracks collapse to `auto` inside the primitive's deliberately auto-height content wrapper, so adopting there is a layout change to two shipped tiles rather than a look — deferred with the reason recorded, not assumed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…tile (ent#449) TDD step: the rules and their tests, before the components that bind them. The source-pin half of the suite is red at this commit by construction — it asserts markup that the next two commits write. `scanlineProps(state)` derives the primitive's two props from the pure `tileState`: loading is "no data yet", never "a request is in flight", and only 'ready' earns the reveal (an error or an empty window snaps). Total on unknown input, in the direction that cannot strand a tile behind a permanent beam. `headlineFace(head, state)` gives the headline its own loading face. It has to have one: the headline sits OUTSIDE the zone (the first frame of the wipe clips all slot content, so a headline inside it blinks at arrival), so it renders during loading and would otherwise assert "0 runs" before anything was read — the ent#100 manufactured-green rule applied to the number. "— failed" never appears for the same reason. The store-latch case in fleetGridFailuresFetch.spec.js pins the property the whole motion rests on, at the layer that owns it: `execTimelineLoaded` latches on the first success and no refresh — rejected or malformed-200 — releases it. A pure test of `tileState` cannot see a future writer that resets it, and a released latch is the 60s fleet-wide strobe (#1927). It passes today; that is the point. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…tion (ent#449)
The tile's chart zone now loads with the platform's standard motion instead of
the chassis's three-bar skeleton: a beam over a dimmed track while there is no
timeline data, one 550ms wipe when the first read lands with data, a snap when
it lands empty or errored.
Three things make it work, and each is a decision:
1. The instance is owned by the TILE, around `.ex-chart` — not by the chassis
around `.it-body`. The ACs put the em-dash headline on screen DURING loading,
so the headline has to sit outside the primitive: the first frame of
`scan-wipe` is `inset(0 100% 0 0)`, which clips every pixel of slot content,
so a headline inside the zone blinks at arrival. Same shape AgentTile's chart
zones already use.
2. `InfoTile` gains `owns-loading` (default off). The chassis renders the
default slot only at `ready`, so without a handoff the tile's instance would
first mount at `ready` with `loading=false` — an instant cache-hit mount that
never reveals — while `.it-skel` still showed. With the opt-in the slot
renders for `loading` AND `ready`: both states compile to the same branch, so
the instance is patched across the edge, never remounted. `error`/`empty`
still replace the slot, so a tile owns its loading face only and no terminal
can be drawn under the track. Every tile that has not adopted keeps the
skeleton; `.it-skel` and `--gv-skel` stay until the last consumer adopts.
3. `.ex-zone { display: flow-root }` is load-bearing, not cosmetic. `.scanline`
is `position: relative` but not a BFC root, and `.scan-content` carries
`margin: -4px`; that negative top margin collapses through the zone root and
then with the head's 6px bottom margin. Measured in headless Chromium over
this exact CSS: head→zone gap 6px→2px, chart 4px BELOW the track for the
whole wipe, body 4px shorter. `flow-root` restores 6px/0px/0px. Never
`overflow: hidden` — that clips the primitive's deliberate bleed. The same
latent offset exists in every consumer, so fixing the primitive's own root is
a recorded follow-up rather than a change made from inside one tile.
The zone and the chart share ONE 70px literal (the loading track and the loaded
chart must occupy the same box or the body moves), the beam is themed from the
grid's `--gv-blue`/`--gv-bar-track` at a specificity that beats the primitive's
own `.dark .scanline` regardless of injection order, and reduced motion is
honoured by the primitive with no consumer-side code.
Stated honestly: opting in drops the skeleton's `role="status"` for this tile,
so its loading face is the visible em-dash plus `aria-busy` — the same trade
AgentTile's chart zones already make, and `announce` stays off because dozens of
grid tiles must not each announce on a mass reveal.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
A new file rather than an append to `dashboard-grid-view.spec.js`: that file covers the AGENT tiles' zones, this covers the info-tile half, whose mechanism (`InfoTile`'s `owns-loading` handoff) and failure mode are different. It shares the storage-key reset by importing `gridStorageKeys.js` — the #2199 rule — and carries its own copy of the unexported `gotoGrid`, with the source named in the header, rather than adding an export to a file another lane is appending to. Data-controlled, deliberately. A settle-only assertion cannot tell "the beam played and finished" from "the primitive never mounted": a quiet install has no executions in 24h, so the tile lands on the chassis `empty` message, the slot is never rendered, and every count is vacuously green. So the timeline read is HELD on a deferred while the loading face is asserted — `.scan-track` present, `.it-skel` absent, headline at the em-dash, no chart under the track — then fulfilled with a 24-bucket fixture and the settled state asserted, including that no `.scan-content` retains a clip-path (the stuck-`revealing` signature). The reduced-motion twin asserts the same end state with no clip-path at any point. Not run here: the suite needs a live stack (`ui`-gated). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…st ruling (ent#449) Architecture gains one sentence at the chassis mention (the `owns-loading` handoff and what the Executions tile does with it); design-system §6's reference-adoption line names the second adopter and the opt-in; the feature-flows index gains one row. The flow doc carries the substance: why the instance is owned by the tile rather than the chassis (the wipe's first frame clips all slot content, so the em-dash headline has to live outside the zone), why the opt-in exists at all (the chassis renders the slot only at `ready`, so the instance would first mount already loaded and never reveal), what makes `display: flow-root` load-bearing rather than cosmetic, the accessibility trade stated rather than implied, and the retry-feedback gap recorded as the gap it is instead of rationalised as correct. The scope ruling is recorded with the measurement behind it, not as an assertion: a throwaway prototype of `TileRowList` under the primitive on the running Grid renders `.tr` at 138.3px into a 133.3px body — 5px of silent overflow clipped by `.it-body`, second row sliced through its glyphs, in both themes and with or without an explicit height on the wrapper. So adopting there means re-basing that component's row geometry first, which is a layout change to two shipped tiles this issue did not scope. The follow-up chain is written down in "Out of scope" so the next reader inherits the end state (delete the opt-in, the skeleton and its token; hoist the duplicated `--scan-*` override; fix the primitive's own root) rather than copying this PR's per-tile recipe as a pattern. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Both findings are tests, not behaviour — the shipped tile is correct on every path checked. What was missing is the evidence that it stays correct. 1. `headlineFace`'s loading face was pinned only over inputs where the guard is a no-op. Mutating `failed: loading ? 0 : head?.failed || 0` to a bare pass-through was GREEN on the whole suite, because `execTimeline` is empty until the read that also ends `loading`, so `head.failed` is 0 on every pair the store can currently produce. The one input that separates the rule from the pass-through is a head carrying numbers while the state still says loading; asserting it reds the mutation and covers all three values at once (a pass-through `total` would render "9 runs" under the beam). vitest runs `environment: 'node'` here, so this is the only layer where the VALUE can be pinned at all. 2. The reduced-motion e2e twin was vacuous on a quiet stack — the exact failure mode this file's own header describes and the sibling test routes around. Every assertion in it is a zero or an absence, all of which a tile that landed on the chassis `empty` message satisfies with the primitive never mounted; verified by running it against the base bundle, where it passed while the feature did not exist. It now fulfils the same fixture (no deferral — under reduced motion there is no wipe to catch, only an end state) and asserts the primitive mounted and the chart arrived, so the zeros are evidence. Also pins the rendered string the unit suite cannot reach: `.ex-fail` absent while loading, so "— failed" can never appear on screen. Verified: crux 2 files / 70 passed; `npm run test:unit` 73 files / 1609 passed; `check:tokens` OK; raw-colour InfoTile 16 / ExecutionsTile 0 unchanged; loading-gate total 75 unchanged. Both e2e tests pass against the branch bundle on an isolated Vite server and fail against base. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The scope ruling rests on one measurement, and the committed figure asserted the overflow without establishing what the row list does UNWRAPPED — so it could not distinguish "the primitive's auto-height wrapper causes this" from "TileRowList already overflows its body". The ruling is only as good as that distinction, since it is the whole reason adopting there is a layout change to two shipped tiles rather than a look. Re-measured independently in Chromium with the control included: bare `.tr` renders 135.5px into a 135.5px body — an exact fit — while the same list wrapped in the primitive renders 138.38px, i.e. +2.88px past the clip edge. Same conclusion, now supported: the wrapping causes it. Supersedes the earlier prototype figure (138.3px into 133.3px / "5px"), which was a single uncontrolled reading. Docs only — no behaviour change, and the PR body and the ent#449 scope-ruling comment quote these same numbers so the three cannot drift. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
# Conflicts: # docs/memory/architecture.md # docs/memory/design-system.md # docs/memory/feature-flows.md
vybe
left a comment
There was a problem hiding this comment.
Validated via /validate-pr. Fully green — e2e, build, journey-smoke, gitleaks, both Analyze jobs, schema-parity, verify-non-root, all six pytest seeds. Frontend only; packaging invariants N/A; security scan clean.
On the e2e that went red twice: both were cancelled, not failure — the first superseded by my own conflict-resolution push, the second a 49-minute run with no superseding run, matching the timeout signature that hit the dependabot PRs and #2525 today. I re-ran rather than reasoning past it, precisely because #2484 in this same batch failed at the identical step ("Start Trinity stack") for a real reason — a tsc error in the image build. Same-looking step, different conclusion, different cause. It passes on rerun.
Conflicts resolved by me, two of them non-trivial:
architecture.md— both this PR and dev's #2358 edited the same one-line Dashboard-Grid paragraph. Both turned out to be single, non-overlapping inserts, so I applied both onto the common base by offset rather than picking a side; verified both insertions survive.design-system.md— the one a marker-splice would have gotten wrong. This PR kept "Dashboard-only for now by product decision"; dev's #2163 had just removed that clause because the Workspace had adopted the scanline. Keeping both sides verbatim would have re-asserted something now false. The merged text lists all three adopters (Grid tile zones, this Executions tile, the Workspace's three zones) and leaves the claim retired.
I specifically checked the line the PR flagged as must-survive-rebase — .ex-zone { display: flow-root; } is intact, and it has a test pinning it, which is the right way to protect a CSS line whose absence is invisible in review.
What makes this PR good beyond the feature: the scope ruling deviates from the issue's stated preference (chassis-level) and earns it with a measurement against a control — bare .tr at 135.5px into a 135.5px body vs 138.38px wrapped, i.e. +2.88px overflow. The control is the load-bearing half, since it's what shows the wrapping causes the overflow rather than the row list already overflowing. And both review findings were tests that passed on nothing: headlineFace's loading rule was pinned only over inputs where the guard is a no-op (mutating it to a pass-through stayed green), and the reduced-motion e2e twin asserted only absences and zeros — proven vacuous by running it against the base bundle, where it passed while the feature did not exist. Finding those is worth more than the tile.
Cross-tracker: Fixes Abilityai/trinity-enterprise#449 will not auto-close or promote from this public-repo PR — manual at release, as the PR body already states.
Approving.
# Conflicts: # docs/memory/feature-flows.md
|
Resolve by running |
|
Resolve by merging |
Fixes Abilityai/trinity-enterprise#449
What changed
The Grid's Executions info tile now loads its chart zone with the standard scanline motion (
ScanlineReveal, design-system §6) instead of the chassis's three-bar.it-skelpulse.One persistent
ScanlineRevealwraps the tile's 70px chart zone, driven by two pure functions of the existingtileState:scanlineProps(state)—loadingmeans "no data yet", never "a request is in flight".execTimelineLoadedlatches on the first success and is never written false, so the 60s batch refresh swaps values in place and the beam never returns.revealis granted only for'ready'— an error or an empty window snaps, because the reveal celebrates data arriving.headlineFace(head, state)— the headline sits outside the zone (the wipe's first frame clips all slot content to nothing, so a headline inside it would blink at arrival), which means it renders during loading and needs a loading face of its own:—, never0 runs · 100% ok, which is a claim about the fleet made before anything was read.InfoTilegains one opt-in prop,owns-loading(default off). With it set, the chassis renders the default slot forloadingandreadyand never draws.it-skelfor that tile — so the tile's primitive instance is patched across the loading→ready edge rather than remounted.errorandemptystill replace the slot with the chassis message, so a terminal can never be drawn under a loading track.Scope ruling — tile-owned, not chassis-level (differs from the issue's stated preference)
The issue preferred a chassis-level swap fixing all four info tiles at once. This ships tile-owned, and the issue explicitly permits that if the reason is stated. Three reasons:
TileRowListcannot be wrapped without a layout change. It sizes its tracksgrid-template-rows: repeat(var(--tr-rows), minmax(0,1fr)); height: 100%. Inside the primitive's deliberately auto-height.scan-content, a percentage height computes toauto, so the row block stops matching the body. Re-measured independently in Chromium against a control: bare.trrenders 135.5px into a 135.5px body — an exact fit — while the same list wrapped renders 138.38px, i.e. +2.88px of overflow, the last row past the clip edge, in both themes and with or without an explicit height on the wrapper. The control is the load-bearing half: it is what shows the wrapping causes the overflow rather than the row list already overflowing. So adopting there means re-basingTileRowListon definite heights first — a layout change to two shipped tiles this issue did not scope.ready, so a chassis-owned instance would first mount already loaded and never reveal.Exactly two loading states remain, which satisfies AC9: the chassis
.it-skelfor the twoTileRowListtiles, and the tile-owned scanline for Executions.FleetSummaryTilenever enters loading at all (:state="agents.length ? 'ready' : 'empty'", andDashboard.vuegates the whole canvas behind the first roster read).AC5 deviation, stated: the third headline value (
failed) is hidden while loading rather than showing an em-dash.— failedwould assert that failures exist.Two guards that passed on nothing — found at review, fixed
Both findings were tests, not behaviour; the shipped tile was correct on every path checked. What was missing was the evidence that it stays correct.
headlineFace's loading rule was pinned only over inputs where the guard is a no-op.execTimelineis empty until the read that also endsloading, sohead.failedis0on every pair the store can currently produce. Mutatingfailed: loading ? 0 : head?.failed || 0to a bare pass-through was green on the whole suite. The one input that separates the rule from the pass-through is a head carrying numbers while the state still says loading; asserting it reds the mutation and covers all three values at once.emptymessage satisfies with the primitive never mounted. Proven by running it against the base bundle, where it passed while the feature did not exist. It now fulfils the fixture and asserts the primitive mounted and the chart arrived, so the zeros are evidence.One line with a large blast radius
Required, not cosmetic.
.scan-contentcarriesmargin: -4px, and.scanlineisposition: relativebut not a block-formatting-context root — so the negative top margin collapses through it and then with.ex-head's 6px bottom margin. Measured live:flow-root)102px is byte-identical to the pre-PR layout, so the fix restores base geometry exactly. Never
overflow: hidden— that would clip the primitive's deliberate 4px bleed. This line must survive rebase.The single-instance rule is satisfied by construction, not luck
Compiling
InfoTile.vueshows that withownsLoadingset, theloadingandreadystates take the same final render arm — so the slot vnode is patched, never remounted. Confirmed empirically with a marker attribute plus aMutationObserver: 0 removals, 0 additions across the reveal, with a mid-wipeclip-path: inset(0 46.8% 0 0)proving the pass actually played (i.e. the observer was watching a live animation, not a no-op).A deliberate accessibility trade
Opting into
owns-loadingdrops the chassis'srole="status" aria-label="Loading"for this tile.:announce="true"on the primitive was considered and rejected:FleetGridculls tiles by viewport, so panning would remount and spuriously re-announce. Recorded in the flow doc as a trade, not an oversight.A latent bug fixed in passing
The old inline expression rendered
undefined%whensuccessRatewas undefined.headlineFacereturns an em-dash — while a real0%still renders0%.OSS-core ruling — stated, not implied
ent#449 is an enterprise-tracker feature but is OSS-core by construction: no
requires_entitlement, logic stays in the OSS tree. It is a loading animation on Grid components that already shipped OSS-core. Confirmed by the operator. Recorded explicitly because the default for an enterprise-tracker feature is gated unless ruled otherwise, so this ruling must never be inferred later from the mere fact that it merged (the ent#326 / ent#384 / ent#392 discipline).A deliberate TDD red commit
92d62416lands the spec and pure utils before the components that satisfy them, so it is red on its own source pins by construction. Acceptable because Trinity squash-merges todev— no red commit is ever bisectable there — and required checks evaluate the PR head. Stated here rather than left for a reader to discover.Verification actually performed
executionsTile.spec.js+scanlinePhase.spec.jsfleetGridFailuresFetch+gridWidgets+loadingGateRatchetnpm run check:tokensInfoTile.vue16 hardcoded,ExecutionsTile.vue0 — both unchanged; no colour literal in the diffgrid-tile-loading-motion.spec.js/verify-local --skip-agentHonest caveat on
/verify-local: it does not run vitest. Its green means the images build, the stack boots, and there is no backend regression — it did not exercise this lane's frontend code.Not run here, deliberately: the full
npm run test:unitand the full pytest suite. Three lanes are shipping concurrently on this host and overlapping full-suite runs have already manufactured phantom reds; the 1609-file figure above is the recorded full run from this branch. This PR touches no Python.Rebase notes for whoever lands this
docs/memory/architecture.mdL301 is a single 8,739-character line (verified), and this branch's only hunk there is exactly that line. A conflict is therefore whole-line: resolve by re-applying this lane's sentence onto the winning version — never by taking one side.docs/memory/design-system.md§6 is a 1→3-line replacement of the "Reference adoption:" sentence. If a Workspace lane also adopts, keep both adoptions.docs/memory/feature-flows.mdtop index row is add/add with every lane: keep all rows, date-descending.tests/unit/scanlinePhase.spec.jsgains one appended test inside the finaldescribe(no source change toutils/scanlinePhase.jsorScanlineReveal.vue) — low-conflict, but it is a shared file.Follow-ups — listed, not filed
Agents do not open issues. These belong as sub-issues of ent#94 (not ent#253, whose inventory does not list
InfoTile):TileRowListon definite heights, then adopt the scanline for Recent failures and Subscription pressure — one change, both consumers. After that,owns-loading,.it-skeland--gv-skelcan all be deleted and the duplicated--scan-*override hoisted to one grid-level rule.display: flow-rootbelongs onScanlineReveal's own root — the same latent offset exists in every consumer.execTimelineErroronly on success, soerror → retry → readysnaps with no in-progress feedback.feature-flows.md"Recent Updates" carries 106 rows against its documented ~20 cap.dashboard-grid-view.md, stranded since ent#245 inserted a heading mid-list.Human pre-merge steps (not done)
prefers-reduced-motion, confirming.scan-trackfrom first paint,.it-skelnever, and no layout shift across loading → reveal → loaded.🤖 Generated with Claude Code
CI note — the red
e2echeck is a job-budget timeout, not a test failureThe
frontend-e2ejob on this PR is red. It was diagnosed from the job log rather than assumed, and no test in it ever ran.Start Trinity stack→ "Waiting for the stack to come up (migrations + health)…", i.e. before Playwright was invoked.The job has exceeded the maximum execution time of 25m0s, followed byThe operation was canceled.No files were found with the provided path: src/frontend/e2e/playwright-report/), which is consistent with zero tests having executed.It is not this branch. The diff touches no build, Docker, compose, requirements or migration file — only frontend source, unit specs, one new e2e spec and docs — so it cannot affect how long the stack takes to boot. The
requirementsmatch in the changed-file list isdocs/memory/requirements/core-agent.md, a documentation path.The budget is the real issue, and it is endemic. The three sibling PRs opened in the same batch ran this job in 20m21s, 20m54s and 20m8s against a 25m ceiling — roughly four minutes of headroom. The same workflow shows three further
cancelledruns on an unrelated dependabot branch. This branch drew an unlucky runner.Does not gate this PR:
dev's four required checks areAnalyze (python),Analyze (javascript-typescript),schema-parityandverify-non-root— all four pass here. Since #1526 the@smokesuite is explicitly advisory rather than a required merge gate.For the human: a re-run is the obvious move, but note it may time out again — the margin is ~4 minutes, so this is a standing risk for every frontend PR rather than a one-off. Raising the job budget (or trimming stack-boot time) is worth its own issue. Separately, this spec was executed successfully during verification against an isolated server serving this branch (3 passed), while the same specs fail 2 of 3 against a
dev-code bundle — which is the non-vacuity proof that they actually test the feature.