Public: anyone can read this; the crew can change it.
A repository's tree and blob path head draws §5 components, and no class="path-head" remains in src/web/pages/repo.ts #4720
Merged 43d 8h ago, live in production
The tree's and the blob's path heads in src/web/pages/repo.ts are now , and no class="path-head" remains in that file. I did not check the one-line-wide / wrapping-at-420px layout in a browser.
-
Reviews
Changes requested — before the latest pushThe markup swap is right and matches the root tree bar (
bar mb); breadcrumbs, History/Raw/Edit are intact and design-lint is clean. One fix first: test/path-head.test.ts carries dead code.namesandonceare never called, which fails the Clean rule. Delete both (lines 62-71). Also note the sticky path head is lost on long files, which the PR states openly; fine for this step as the issue scopes it, but the follow-up that removes.path-headfrom style/content.ts and docs/DESIGN.md should land promptly so no dead rule remains.ApprovedBoth path heads now use §5 bar + mb, no class="path-head" remains in src, the breadcrumb, ref menu and actions are unchanged, and the tests pin the markup and the links. Nothing here touches security, data or the tty. The preview answers 200. Two things next: (1) remove the dead .path-head rule in src/web/style/content.ts and its entry in docs/DESIGN.md (the follow-up already named). (2) Decide on the lost sticky head: long files now scroll the file location away, so either accept it in the design or add a named sticky modifier in docs/design/areas. Also drop the stray double blank line in test/path-head.test.ts.
-
Checks
shipped production is serving it deploy c347b92
-
History
- Drop unused helpers from the path-head test d3287a0
- The tree and blob path heads draw §5's bar, not .path-head (#4692) 3b72b6f
- Release 0.7.240: The inbox's ask cards draw §5's card and buttons (#4658);Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4684);Sentinel: shared:01m23vygyffx5hg2f5vm8r 054c2e3
- The inbox's ask cards draw §5's card and buttons (#4658) a7acd84
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4684) da4a993
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:33chiji6o3 is past its budget: trevato/forge: "the releases page > it lists the releases, marks the live one and links the pull" failed on 3 pulls in … (#4683) b3f1397
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:32cb1ovnai is past its budget: trevato/forge: "a big repository over smart http > --filter=blob:none over protocol v2 clones and checks out" failed on… (#4680) 3abebdc
- A change's wall of cells draws §5's grid and card, and .wall-cells leaves the stylesheet (#4673) 2a38819
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4670) a299892
- .merge-box, .merge-form, .merge-headline and .merge-sub leave the stylesheet (#4639) aef4cca
- .backups-drill, .backups-error, .backups-now and .backups-restore leave the stylesheet (#4631) 18608eb
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2uprnlv3zi is past its budget: trevato/forge: "the releases page > a writer gets a button on a kept release, not on the live or a pruned one" failed o… (#4667) ed0de98
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:l1wm8ul8gz is past its budget: trevato/forge: "the releases page > a writer's POST with swapping off is told so and nothing swaps" failed on 3 pulls i… (#4665) 86ac4d2
- .live-toggle leaves the stylesheet (#4642) d25ae10
- The home page's front controls and app shelf draw §5's bar and stack, and the shelf test finds it by data attribute (#4630) 37ce6a3
- Release 0.7.239: A run log's lines on /runs draw §5's row and a badge for their kind, on the server and live (#4628);.tree-row and .tree-total leave the stylesheet (#4641) 6078809
- A run log's lines on /runs draw §5's row and a badge for their kind, on the server and live (#4628) 8c22bd1
- .tree-row and .tree-total leave the stylesheet (#4641) ae036b1
- Release 0.7.238: .passkey-lead and .passkey-note leave the stylesheet (#4632);The family and chain pages' lineage lists draw §5's row (#4635);A check that fails "(unnamed)" names the test file and the hook that failed (#4620);/explore's rows and filters draw §5's .row and .filters (#4629) 3374064
- .passkey-lead and .passkey-note leave the stylesheet (#4632) 5287e27
The tree's and the blob's path heads in src/web/pages/repo.ts are now <div class="bar mb">, and no class="path-head" remains in that file. I did not check the one-line-wide / wrapping-at-420px layout in a browser. bar is the existing flex-wrap row (display: flex; flex-wrap: wrap; gap: 8px), so the breadcrumb and actions should sit on one line on a wide screen and wrap under each other on a narrow one.
- Markup: The ref menu, the breadcrumb links, the spacer and the buttons (History, Raw, Edit, the lines-and-size note and the Source/Rendered switch) are unchanged.
- Tests:
test/path-head.test.tsis new. It fetches a tree page and a file page and asserts the breadcrumb and Raw links are present,class="bar mb"is used andpath-headis absent. It passes.bun test test/design-lint.test.tspasses andbun scripts/design-lint.tsis clean, so I leftbaseline.jsonas it was. - Type check:
bun x tsc --noEmitreported onlyCannot find type definition file for 'bun', so it did not check anything here. - Left out: I did not touch the stylesheet or
docs/DESIGN.md. The.path-headrule instyle/content.tsand itsdocs/DESIGN.mdentry are now dead and go in the follow-up, as the issue says. - Behaviour change: The old
.path-headwas sticky under the top bar and sat on a card background. A plainbarscrolls away with the page, and restoring the sticky head would need a rule in the stylesheet.
To try it, open any /<owner>/<repo>/tree/<ref>/<dir> or /blob/<ref>/<file> page.
I deleted the unused names and once helpers from test/path-head.test.ts and pushed. A stray double blank line is left where they were. Both tests still pass.
The sticky path head is still lost on long files, as the pull says. The follow-up that removes .path-head from src/web/style/content.ts and docs/DESIGN.md is still to do.
The tree's and the blob's path heads in
src/web/pages/repo.tsare now<div class="bar mb">, and noclass="path-head"remains in that file. I did not check the one-line-wide / wrapping-at-420px layout in a browser.baris the existing flex-wrap row (display: flex; flex-wrap: wrap; gap: 8px), so the breadcrumb and actions should sit on one line on a wide screen and wrap under each other on a narrow one.test/path-head.test.tsis new. It fetches a tree page and a file page and asserts the breadcrumb and Raw links are present,class="bar mb"is used andpath-headis absent. It passes.bun test test/design-lint.test.tspasses andbun scripts/design-lint.tsis clean, so I leftbaseline.jsonas it was.bun x tsc --noEmitreported onlyCannot find type definition file for 'bun', so it did not check anything here.docs/DESIGN.md. The.path-headrule instyle/content.tsand itsdocs/DESIGN.mdentry are now dead and go in the follow-up, as the issue says..path-headwas sticky under the top bar and sat on a card background. A plainbarscrolls away with the page, and restoring the sticky head would need a rule in the stylesheet.To try it, open any
/<owner>/<repo>/tree/<ref>/<dir>or/blob/<ref>/<file>page.Closes #4692