Public: anyone can read this; the crew can change it.
In /space a tap or hover on any body shows what it is and one link to open it #15602
Check · Review · Land · Live done — Landed and live in production.
In /space, a tap, a hover or the keyboard now opens a card on any issue, with one link to open it. I did not call keepplan or estimate; no completion time was stated. Typecheck, scripts/gate.ts --fix, design-lint, and the 46 tests in test/space.test.ts pass here.
shipped production is serving it deploy b03b44b
7 earlier comments · 1 event
I merged main into the branch and pushed; the one conflict, in src/web/space_view.ts, is resolved and keeps both sides.
- Kept from this pull:
viewJsstill shipsagoTextandcardOffor the body card. - Kept from
main: the newfitAllfunction. - Left alone:
fitAllis not added toviewJs, becausemaindoesn't ship it there either.
bun x tsc --noEmit is clean. The space tests and test/client-size.test.ts pass (53 tests), so the raised space JS ceiling in docs/design/size-budget.json still holds after the merge. I did not run the rest of the suite; the forge's check will on this push.
[{"go":"/keeper/forge/space","look":"Hover or tap a square, then press ] to step through bodies","expect":"A card shows the body's facts and one link"}]<!-- look-pages 52e28479136a --> Look pages for 52e2847, from the gate:
look pages (inferred): "Looks: /keeper/forge/space" is not a page of app.looks in forge.json; this pull changes src/web/pages/space.ts, src/web/space_client.ts, src/web/space_model.ts and 1 more; the forge pictures / (src/web/space_model.ts), /docs (src/web/space_model.ts), /explore (src/web/space_model.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I pushed an empty commit with Looks: /preview-admin/sample/space, since the path I gave before wasn't in app.looks.
/preview-admin/sample/space is already a look page in forge.json, and it is the one page this change draws on. The other pages the gate inferred only import space_model.ts. They don't show the body card, so I left them out. I haven't seen how the gate handles the new line.
[{"go":"/preview-admin/sample/space","look":"Hover or tap a square, then press ] to step through bodies","expect":"A card shows the body's facts and one link"}]No change is needed on this one, so I pushed nothing. The gate's message reads "look pages (named)": it accepted /preview-admin/sample/space from my commit as the page to look at. It asks for nothing further and names no problem.
[{"go":"/preview-admin/sample/space","look":"Hover or tap a square, then press ] to step through bodies","expect":"A card shows the body's facts and one link"}]The card works in design, but several things must change in one round. (1) The panel is a live region that toggles hidden; most screen readers do not announce a region that appears from display:none, so the promised 'screen reader hears the facts' is unproven. Keep the status region always present and fill it with cardOf().text (which is built but never used), keeping the visible card separate. (2) Escape clears the card but does not set dirty = true, so the highlight stays on the canvas. (3) Tests: the tui change has no test (extend test/space-screen.test.ts foundLines); the happy-dom test never presses Enter, Escape or [, never checks that hover does not override a pinned card, and panel.getAttribute('aria-live') ?? 'polite' can never fail. Assert the real attribute and cardOf().text in the region. (4) Every row now carries the pillar name and kind string, repeated per issue, in space.json: at 12,000 issues that is a lot of bytes; send the region index (rows already have a cluster) and derive kind from pull, then drop the size ceiling raise or justify it. (5) Principle 1/8: the card's last row is term 'Open' with text 'Open the issue', which says it twice; make the link the heading or a single 'Open issue #N'. 'Issue with an open pull' as a Kind is a state, not a kind; show the pull as its own fact or drop it. (6) The comment on stepBody says 'newest first by number order', which is not what the code does; fix it. (7) The preview answers 404 for /keeper/forge/space with the token, so I could not use the card there; make sure the sample space at /preview-admin/sample/space is the documented try-it path. (8) Direction: this is a feature while the pipeline items come first; keep it small, and say in the pull why it goes ahead of #6534 and the others.
I addressed items 1–7 of juniper's review and pushed. For item 8, I did not write the justification the review asked for. I haven't chosen why this goes ahead of #6534 and the others; that is your call, and the change stays small.
What changed
- (1) Screen readers: a
role="status"aria-live="polite"paragraph is always in the page and holdscardOf().text. The visible card keeps togglinghiddenand carries no live attribute. - (2) Escape: Escape, hover-leave and a tap on empty space now close the card through one
closeCard(). It clears the held and hover state and the sentence, hides the card, and setsdirtyso the highlight redraws. - (4)
space.json: a row gains one number (when it last moved) and nothing else. The pillar name comes from the row's cluster's region, and who is on it comes from the crew list. The kind string is gone, so it is not repeated per issue. - (5) Card wording: the one link is a paragraph, "Open issue #N". The pull is its own fact ("#9, checks ok") and appears only when there is one. The Kind row is gone.
- (6) Comment: the
stepBodycomment now says it steps in the order of the rows. - (7) Try-it path:
docs/features/space.mdnames the sample space at/preview-admin/sample/space, which is already a look page and has an owner look as well. - Terminal:
foundLinesalso prints who is on the issue and when it last moved, andtest/space-screen.test.tscovers both.
Tests
- (3)
test/space-card.test.tsnow asserts the realaria-liveandroleon the status region, and that it holdscardOf().text. It presses Enter,],[and Escape, and checks that a hover over another body does not take a held card. - Gap: the tests can't see the redraw, because
requestAnimationFrameis stubbed, so thedirtyfix is untested. - Checks:
tscand design-lint are clean. The space, client-size and map-facts tests pass. - Not run:
scripts/fast.tsnamed 3,364 files, so I ran only the tests that touch this code.
Size ceiling: it is still raised, from 29,696 to 30,208 B. The space page measures 30,004 B gzip, so I could not drop the raise. The merge from main and the hover, key and card code account for it.
[{"go":"/preview-admin/sample/space","look":"Hover a square, tap it, then hover another; press ] and [, then Enter and Esc","expect":"One card with Pillar, State, Pull, On it and Last moved and one link 'Open issue #N'; a held card is not replaced by a hover; Esc clears the card and the highlight"}]Nothing needed changing: the feedback is the gate's note that the look pages run for this pull, and it asks for no fix. I made no new commits and pushed nothing. bun scripts/design-lint.ts is clean and the tree is clean at f58661c. I did not re-run bun test or bun x tsc --noEmit this turn.
What changed (unchanged from the last push): In /space, a tap or hover on any body shows what it is, with one link to open it. The status region is always present, Esc redraws, and the row is lighter. The changes are in src/web/pages/space.ts, src/web/space_client.ts and src/web/space_model.ts.
What I left out: No new dependencies and no new component classes.
How to try it: Open /space on the preview, or /preview-admin/sample/space.
[
{"go":"/space","look":"Hover or tap any body","expect":"A status line names the body and shows one link to open it; the layout does not shift"},
{"go":"/space","look":"Press Esc after selecting a body","expect":"The selection clears and the view redraws"},
{"go":"/preview-admin/sample/space","look":"The sample page","expect":"Renders the same card and status region"}
]Earlier asks: (1) always-present polite status region: met. (2) Esc, hover-leave and tap on empty space share closeCard and redraw: met. (3) tests assert aria-live/role and drive Enter, ], [, Esc, held-card vs hover: met. (4) one extra number per row instead of repeated strings: met. (5) wording, one link "Open issue #N", pull as its own fact: met. (6) stepBody comment: met. (7) try-it path is a look page: met. Terminal prints the same facts and link; docs/features/space.md carries the how-to, not README. (8) the direction justification was not written; this is a small feature pull ahead of the pipeline list, so I leave it to the merger.
Two things I would do next:
- Non-blocking: a mouse hover card closes when the pointer leaves the canvas, so a mouse user must click a body to pin it before reaching the link. Keep it open briefly or while the pointer is over the card.
- Non-blocking: add a test that the redraw (dirty) happens on Esc, and trim the space JS back under the old 29,696 B ceiling so the raise to 30,208 B can be reverted.
In
/space, a tap, a hover or the keyboard now opens a card on any issue, with one link to open it. I did not callkeep_planorestimate; no completion time was stated. Typecheck,scripts/gate.ts --fix,design-lint, and the 46 tests intest/space*.test.tspass here. The forge's full check runs on the push.What changed
kind,pillar,moved(latest of opened, landed, or a run on it starting or ending) andon(the crew running it now).]and[step through the bodies that exist at the time shown and fly to each.aria-livestatus region, so the facts are read as text when it opens. The canvas label tells the reader about],[and Enter.test/space-card.test.tschecks the fields on built data and the card's facts and link. It also runs the shipped canvas script in happy-dom: hover, leave, tap, the single link, and]moving to the next body.What I left out
The 404: an anonymous curl to
https://lab--forge-trevato-apps.open-platform.sh/trevato/forge/spacestill answers 404 today. I kept that for signed-out visitors, astest/space-page.test.tspins it for private repositories. I did not check whethertrevato/forgeis private, so I can't say if this particular 404 is a defect.Try it: open the preview's
/keeper/forge/space, hover or tap a square, or press].🤖 Generated with Claude Code
Closes #15590