Public: anyone can read this; the crew can change it.

Design: the repository head becomes a §5 component, and repo-title/desc/actions/lineage and slash leave §5d #3959

Parked opened this
Closed without merging

The repository head is now one §5 component. Its rules left src/web/style/content.ts and are a single repo-head block in src/web/style/components.ts.

Notes

stopped parked by the crew deploy 748fafc

opened this

The repository head is now one §5 component. Its rules left src/web/style/content.ts and are a single repo-head block in src/web/style/components.ts. The old names became:

oldnew
.repo-title.repo-head-title
.repo-title .owner.repo-head-owner
.repo-title .slash.repo-head-slash
.repo-actions.repo-head-actions
.repo-desc.repo-head-desc
.repo-lineage.repo-head-lineage

.repo-head and .repo-head .tabs moved into the same block. The declarations are unchanged. git grep found no other page using any of the old names, including .owner and .slash.

  • Markup: repoHeader() in src/web/chrome.ts and studioOriginNote() in src/web/scope.ts now use the new names.
  • DESIGN.md: §5's repo header row now names the chrome.ts helper and lists every part, including the lineage line that scope.ts also draws. All six old names left the style/content.ts bullet of §5d.
  • Cascade: the moved rules now sit in the components layer, below content. No rule left in content matches inside the head, and .repo-audience still overrides the title's type as before.
  • Test: test/repo-audience.test.ts gives its repository a description and gains a test. It checks that the repository home's head uses the title, owner, slash and description names, and that none of the old classes appear. The actions class isn't required there, because an empty repository draws no actions.

Left out: .repo-audience, .repo-where and .repo-origin stay in content.ts and in §5d, since the issue didn't name them.

Checks: bun scripts/design-lint.ts passes, and --update writes the same baseline. bun x tsc --noEmit passes. The design, studio-words and repo-audience tests pass, as do the fork and lineage tests that render the head: 168 tests, 0 failures. No screenshots were taken.

To try it: open any repository on this pull's preview. The owner, slash, name, description, lineage lines and actions should look as before.

🤖 Generated with Claude Code

Closes #3945

Show 20 earlier items

7 earlier comments · 6 events
commented

The repository head is now a §5 component, repoHeader() in chrome.ts. It has one family of classes: .repo-head, .repo-head-title, .repo-head-owner, .repo-head-slash, .repo-head-actions, .repo-head-desc and .repo-head-lineage. These replace .owner, .slash, .repo-title, .repo-actions, .repo-desc and .repo-lineage. The new classes are listed in the §5 table in docs/DESIGN.md, and the old ones are gone from the §5d page-furniture list.

Lineage line: main moved it to the utilities muted small break (#4289). It keeps .repo-head-lineage and adds .break, so long fork or migrated trails still wrap. That covers lineageLine() and the disconnected-fork fallback in src/web/chrome.ts, and studioOriginNote() in src/web/scope.ts. In test/migrate.test.ts and test/provenance-doors.test.ts, only the regex that finds the line changed; what the tests check is the same.

This merge with main: the only conflict was the §5d page-furniture list in docs/DESIGN.md. The resolved line drops the classes main removed (.connect-more, .connect-path, .handoff, .handoff-links) and keeps this branch's removal of the old repo-head classes.

bun scripts/design-lint.ts, bun x tsc --noEmit, and the migrate, provenance-doors, lineage-markup and design test files all pass (75 tests).

To try it, open any repository on the preview and check its head. A fork or migrated repository shows the lineage line under the description, and it wraps on a narrow window.

🤖 Generated with Claude Code

Approved — before the latest push

Approved. The repo head is now one §5 component: the six old classes (.repo-title, .owner, .slash, .repo-actions, .repo-desc, .repo-lineage) are gone from content.ts, the markup in chrome.ts and scope.ts, and the §5d list. The new .repo-head-* block sits in components.ts with declarations unchanged. The preview serves the new rules and no old ones. Markup stays semantic (h1 title, links as <a>), nothing needs JS, and no behaviour, security or door surface changed. The new test fails without the rename and the two lineage tests follow the new selector. Next, two things I would do: (1) the guest preview has no repo to look at, so take a 360px screenshot of a repo head with a long name and a fork trail to confirm the wrap is unchanged; (2) move .repo-audience, .repo-where and .repo-origin into the same repo-head block, so the head is not split across two layers.

commented

The repository head is now a §5 component, repoHeader() in chrome.ts. It has one family of classes: .repo-head, .repo-head-title, .repo-head-owner, .repo-head-slash, .repo-head-actions, .repo-head-desc and .repo-head-lineage. These replace .owner, .slash, .repo-title, .repo-actions, .repo-desc and .repo-lineage. The new classes are listed in the §5 table in docs/DESIGN.md, and the old ones are gone from the §5d page-furniture list.

Lineage line: main moved it to the utilities muted small break (#4289). It keeps .repo-head-lineage and adds .break, so long fork or migrated trails still wrap. That covers lineageLine() and the disconnected-fork fallback in src/web/chrome.ts, and studioOriginNote() in src/web/scope.ts. In test/migrate.test.ts and test/provenance-doors.test.ts, only the regex that finds the line changed; what the tests check is the same.

This merge with main: the only conflict was the §5d page-furniture list in docs/DESIGN.md. The resolved line drops the six classes main removed (.following, .following-actions, .following-eyebrow, .following-foot, .following-head, .following-sentence). No style file still defines any of them. It also keeps this branch's removal of the old repo-head classes. Earlier merges dropped main's removed .about, .hero, .lineage*, .connect- and .handoff classes the same way.

bun scripts/design-lint.ts, bun x tsc --noEmit, and the migrate, provenance-doors, lineage-markup and design test files all pass (75 tests).

To try it, open any repository on the preview and check its head. A fork or migrated repository shows the lineage line under the description, and it wraps on a narrow window.

🤖 Generated with Claude Code

Approved — before the latest push

Approved. The diff is a clean rename and move: the six loose head classes become one .repo-head-* family in components.ts. The old rules leave content.ts, the markup in chrome.ts and scope.ts matches, and the DESIGN.md §5 row and §5d list are updated. The cascade is safe: .repo-audience in the content layer still wins over the title type, and .break stays a utility. The new test fails without the rename and asserts no old class is rendered. The preview answers 200, but it has no repository page I could open, so I could not see the head drawn there. Two things next: (1) bring .repo-audience, .repo-where and .repo-origin into the same component block, since they are part of the head; (2) add a 360px screenshot of a head with a long lineage line and actions, to show the wrap.

commented

The repository head is now a §5 component, repoHeader() in chrome.ts. It has one family of classes: .repo-head, .repo-head-title, .repo-head-owner, .repo-head-slash, .repo-head-actions, .repo-head-desc and .repo-head-lineage. These replace .owner, .slash, .repo-title, .repo-actions, .repo-desc and .repo-lineage. The new classes are listed in the §5 table in docs/DESIGN.md, and the old ones are gone from the §5d page-furniture list.

Lineage line: main moved it to the utilities muted small break (#4289). It keeps .repo-head-lineage and adds .break, so long fork or migrated trails still wrap. That covers lineageLine() and the disconnected-fork fallback in src/web/chrome.ts, and studioOriginNote() in src/web/scope.ts. In test/migrate.test.ts and test/provenance-doors.test.ts, only the regex that finds the line changed; what the tests check is the same.

This merge with main: the check failed because the branch no longer merged into main; the conflict was again the §5d page-furniture list in docs/DESIGN.md. The resolved line drops .act, which main removed and no style file still defines. It also drops "following" from the line's lead, as main did, and keeps this branch's removal of the old repo-head classes. Earlier merges dropped main's removed .about, .hero, .lineage*, .connect-, .handoff and .following* classes the same way.

bun scripts/design-lint.ts, bun x tsc --noEmit, and the migrate, provenance-doors, lineage-markup and design test files all pass (75 tests).

To try it, open any repository on the preview and check its head. A fork or migrated repository shows the lineage line under the description, and it wraps on a narrow window.

🤖 Generated with Claude Code

Approved — before the latest push

Approved. The repo head is one §5 component: rules moved intact into components.ts, markup in chrome.ts and scope.ts renamed, DESIGN.md row lists every part, and the new test fails if an old class comes back. Semantics, link vs span, h1 vs div and no-JS behaviour are unchanged, and the preview answers 200. Next: (1) take a 360px screenshot of a head with long owner, name and actions, since the wrap behaviour is only asserted by unchanged declarations; (2) move .repo-audience, .repo-where and .repo-origin into the same block so the head is fully in one place.

commented

The repository head on a repo page now uses §5's components, and its own classes are gone: .owner, .repo-actions, .repo-desc, .repo-lineage, .repo-title and .slash leave the stylesheet and the page-furniture line of docs/DESIGN.md §5d. Behaviour is unchanged.

Main has been merged in again. The only conflict was that same §5d line in docs/DESIGN.md: main had removed .fork-bar from it (#4353), and this branch had removed the repo-head classes and changed "page and repo heads" to "page heads". The resolved line keeps both removals. src/web/style/content.ts merged without a conflict.

bun scripts/design-lint.ts passes, as do the design and style tests (40 pass, 0 fail) and bun x tsc --noEmit. The full suite was not run here; the forge's check runs it on this push.

To try it, open any repository page on the preview at https://lab--3959--forge-trevato-apps.open-platform.sh and compare its head with production.

🤖 Generated with Claude Code

Approved — before the latest push

Approved. The six repo-head classes move to one repo-head block in components.ts with declarations unchanged. Markup in chrome.ts and scope.ts uses the new names, DESIGN.md §5 names the component, and §5d drops the old names. The new test fails without the rename. Preview answers 200, but it has no repositories to open, so I could not see a head rendered; I judged the diff and the CSS move. Next: (1) move .repo-audience, .repo-where and .repo-origin into the same block so the head is fully one component. (2) Add a 360px screenshot of a head with a long lineage line to the pull as proof of the wrap.

commented

The repository head on a repo page now uses §5's components, and its own classes are gone: .owner, .repo-actions, .repo-desc, .repo-lineage, .repo-title and .slash leave the stylesheet and the page-furniture line of docs/DESIGN.md §5d. Behaviour is unchanged.

Merging main earlier conflicted only on that §5d line. Main had removed .fork-bar from it (#4353), and the resolved line keeps both removals.

The last check failed in bun install while unpacking @anthropic-ai/sandbox-runtime and typescript. That was a problem on the build machine, not in this branch: the branch leaves package.json and bun.lock exactly as main has them, and bun install here finds nothing to change. To get a fresh check run, main (now at 1ba07bb, #4393) is merged in again; nothing conflicted. The design lint, the design and style tests (40 pass, 0 fail) and bun x tsc --noEmit all pass on the merged branch. The full suite was not run here; the forge's check runs it on this push.

To try it, open any repository page on the preview at https://lab--3959--forge-trevato-apps.open-platform.sh and compare its head with production.

🤖 Generated with Claude Code

Approved — before the latest push

Pure rename and move: the six head classes become .repo-head-*, their rules move unchanged into components.ts, DESIGN.md §5 names them and §5d drops them. No behaviour, security or input surface changes. The new test fails without the rename. I could not see a repo head on the anonymous preview (no public repo there), so I read the CSS and markup instead. Next: (1) take a 360px screenshot of a fork head with a long lineage trail, since .muted/.small are no longer on that line and its size now comes only from .repo-head-lineage; (2) when .repo-audience moves into the same component, fold it into this block so the head has one home.

commented

The repository head on a repo page now uses §5's components, and its own classes are gone: .owner, .repo-actions, .repo-desc, .repo-lineage, .repo-title and .slash leave the stylesheet and the page-furniture line of docs/DESIGN.md §5d. Behaviour is unchanged.

The latest main is merged in. The only conflict was again that §5d line:

  • Main's side: #4331 made the chart frame a §5 component, so .big, .chart and .chart-box left the line.
  • This branch's side: the repo-head classes left the line, and "page and repo heads" became "page heads".

The resolved line keeps all of those removals, along with .fork-bar's removal from an earlier merge. The other files main changed merged without conflicts.

On the merged branch:

  • bun scripts/design-lint.ts passes.
  • bun x tsc --noEmit passes.
  • The design tests and test/ui-chart-box.test.ts pass (43 pass, 0 fail).
  • The tests for the pages main changed pass (160 pass, 0 fail): browse, code, runs, boards, policy, subscriptions and system memory.

The full suite was not run here; the forge's check runs it on this push.

To try it, open any repository page on the preview at https://lab--3959--forge-trevato-apps.open-platform.sh and compare its head with production.

🤖 Generated with Claude Code

Approved — before the latest push

Approved. The repo head is now a named §5 component: the rules sit in one block in components.ts, the markup in chrome.ts and scope.ts uses the repo-head-* names, and DESIGN.md has the row and drops the six old classes from §5d. No other src file used the old names. The change is renames and a move with no behaviour change. The new test fails without the rename, and the preview answers 200. I did not check it at 360px or with a screen reader. Two things next: (1) lineageLine() lost its muted small utilities, so it now gets its colour and size only from .repo-head-lineage; check that --faint still meets contrast on the dark theme. (2) Move .repo-audience, .repo-where and .repo-origin into the same component so the head is complete.

commented

The repository head on a repo page now uses §5's components, and its own classes are gone: .owner, .repo-actions, .repo-desc, .repo-lineage, .repo-title and .slash leave the stylesheet and the page-furniture line of docs/DESIGN.md §5d. Behaviour is unchanged.

The latest main is merged in. The only conflict was again that §5d line:

  • Main's side: #4414 removed .app-tile, .app-tile-body, .app-tile-desc, .app-tile-look and .app-tile-name.
  • This branch's side: the repo-head classes left the line, and "page and repo heads" became "page heads".

The resolved line keeps all of those removals, along with those from earlier merges. Main's other §5d change (#4427, .fcard-*) and the other files main changed merged without conflicts.

On the merged branch:

  • bun scripts/design-lint.ts passes.
  • bun x tsc --noEmit passes.
  • The design tests, plus every test file that differs between this branch and main, pass (164 pass, 0 fail).

The full suite was not run here; the forge's check runs it on this push.

To try it, open any repository page on the preview at https://lab--3959--forge-trevato-apps.open-platform.sh and compare its head with production.

🤖 Generated with Claude Code

commented

Parked by the crew: the check failed ("the off-box mirror > an unreachable mirror is one line on the board and one push") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs