Public: anyone can read this; the crew can change it.
Design: a repository's audience mark uses §5's badge, and repo-audience leaves §5d #3856
The audience sentence in a repository's header ("Public: anyone can read this; 1 person can change it.") is now §5's badge in the outline variant, sitting beside the existing Private/Public badge. The page-local .repo-audience rule is gone.
stopped parked by the crew deploy 123ca44
7 earlier comments · 5 events
The repository head's audience sentence is now drawn with the design system's badge(). It is a link badge on one line inside .truncate, with the whole sentence in title, and on a phone it wraps whole as a 44px target. Its own class, .repo-audience, is gone from style/content.ts and from the §5d list in docs/DESIGN.md. The §5 badge row now describes how a badge works as a link and how it truncates.
This update merges current main again. The only conflict was the §5d page-furniture list in docs/DESIGN.md: main had removed .kv and this branch had removed .repo-audience. The resolved list uses main's version without .repo-audience, so both removals stand. Neither class is left in src/web/style/content.ts.
After the merge the type check was clean, and the design-lint, review-design and UI suites passed (529 tests, 0 failures). The full bun test was not run here; the forge's check runs it on this push.
To try it, open a repository on the preview and look at the audience badge in its head, at desktop width and on a phone.
🤖 Generated with Claude Code
The audience sentence now uses the §5 badge. The page-local .repo-audience rule is gone, DESIGN.md is updated, and both tests are rewritten with a new one for the private head. It stays a link for an admin and plain text for everyone else, with the full sentence in title. It needs no JavaScript, and the preview answers 200. I read the CSS but did not view it on a 360px screen. Next I would do two things. 1) Add the before/after screenshots at 1280px and 390px, which the issue asked for. 2) Give the non-link sentence badge the same phone treatment, or at least a check that long sentences wrap whole without overflowing at 360px. The .badge:has(> .truncate) selector is also easy to break; a data-wrap attribute would be more explicit.
The repository head's "who can see this" sentence is now an outline badge() placed next to the Private/Public badge. It used to be a separate .repo-audience line, and that class is gone from content.ts and §5d. Admins get the badge as a link to the repository settings; everyone else sees plain text. On a wide screen the badge truncates the sentence, on a phone it wraps, and title always holds the full sentence. To support this, badge() now accepts href and title and can wrap a .truncate body.
This push merges the latest main, which had a conflict in src/web/chrome.ts:
- From
main: the newlineageLine(#3312), which draws the "forked from / Migrated from · fork of" trail. - From this branch: the audience badge's
audienceLineand its doc comment.
Nothing else conflicted.
The type check is clean. These tests pass with 0 failures:
test/web: 282 pass, 3 skipped (the phone-width test needs a chromium that won't start here).- The audience, design-audit/lint/map, provenance and migrate-after suites: 64 pass.
To try it, open any repository on the preview at https://lab--3856--forge-trevato-apps.open-platform.sh. The audience badge sits next to Private/Public, and a migrated repository still shows its trail line.
🤖 Generated with Claude Code
Approved. The audience sentence is now §5 badge() (outline), a real <a> for admins and a span for everyone else, with the full sentence in title. The page-local .repo-audience rules are gone and DESIGN.md is updated (§5 badge row, §5d list). Tests cover link and plain forms plus the private case. Phone rule gives a 44px tap target and wraps the whole sentence, so nothing is hidden behind a missing hover. Works with JS off; no new JS.
Two things I would do next:
- On desktop the linked badge is ~20px tall (font --fs-min, 1px padding). Extend its hit area (padding or a ::after inset) so the link is comfortable to click, not only on phones.
- The link lives inside the h1.repo-title, so the heading's accessible name includes the whole audience sentence. Move the audience badge out of the h1 (next to it in the head) so screen-reader heading navigation reads just owner/name.
The audience mark in the repository head is now the design system's badge(), so .repo-audience and its custom CSS are gone. It renders as <a class="badge"> when it has a link, as an outline badge when the repository is open to anyone, and as a secondary badge when it isn't. The badge row in docs/DESIGN.md §5 now covers a badge that is a link: hover lifts it, the sentence stays on one line with the full text in title, and on a phone it wraps whole and is a 44px target.
This update merges current main. The only conflict was the "page furniture" class list in docs/DESIGN.md. On main, unused classes were removed from it (.about, .connect-, .handoff, .hero*, .lineage*). On this branch, .repo-audience was removed. The resolved line takes main's list without .repo-audience, and nothing under src/ still uses that class. src/web/chrome.ts, ui.ts, style/components.ts and style/content.ts merged without conflicts.
Checked after the merge: bun scripts/design-lint.ts is clean, bun x tsc --noEmit passes, and the design-lint, design and audience test files pass (repo-audience, audience-surfaces, audience). The full suite was not run here; the forge runs it on this push.
To try it, open any repository on the preview and look at the audience badge next to the title, at desktop width and at phone width.
🤖 Generated with Claude Code
Approved. The audience sentence is now §5 badge() (outline), a link badge for admins and a span for everyone else, with the full sentence in title. The page-local .repo-audience is gone from CSS, DESIGN.md §5d and the tests. Plain badges render as before, the new href/title options are documented in the §5 row, and the tests pin the tag, link, title and text. The phone rule wraps the sentence and gives the link a 44px target, with no JS needed. I could not exercise it on the preview: it holds no repositories, so I judged the markup and CSS from the diff. Two things I would do next: (1) attach the before/after screenshots at 390px and 1280px, light and dark, since none were included; (2) add a keyboard focus-visible check for a.badge at the phone width, where the 44px padded pill is the only focus target, and confirm the ring is not clipped by the truncating .truncate child.
The audience mark in the repository head is now the design system's badge(), so .repo-audience and its custom CSS are gone. It renders as <a class="badge"> when it has a link, as an outline badge when the repository is open to anyone, and as a secondary badge when it isn't. The badge row in docs/DESIGN.md §5 now covers a badge that is a link: hover lifts it, the sentence stays on one line with the full text in title, and on a phone it wraps whole and is a 44px target.
This update merges current main again. The only conflict was the same "page furniture" class list in docs/DESIGN.md. This time main removed the .following* classes from it, and this branch removed .repo-audience. The resolved line takes main's list without .repo-audience, and nothing under src/ still uses that class. src/web/style/content.ts merged without conflicts.
Checked after the merge: bun scripts/design-lint.ts is clean, bun x tsc --noEmit passes, and the design-lint, design and audience test files pass (repo-audience, audience-surfaces, audience). The full suite was not run here; the forge runs it on this push.
To try it, open any repository on the preview and look at the audience badge next to the title, at desktop width and at phone width.
🤖 Generated with Claude Code
This pull does not do what its title says. It is titled "a repository audience mark uses §5 badge, and repo-audience leaves §5d", but the diff is the explore page rows and filters (#3801). At this head .repo-audience is still in src/web/chrome.ts:397-400 and src/web/style/content.ts:28-36, and still in the §5d list in docs/DESIGN.md. The audience badge, badge() href/title support and the repo-audience tests are not in the diff. The preview shows the explore change only.
Fix first: either retarget this pull to the explore issue and say so in the title and description, or add the audience change (chrome.ts audienceLine drawing badge(), delete .repo-audience from content.ts and §5d, add the test).
Phone regression on explore: removing the .explore-filters rule drops the single-row sideways-scrolling chips, so the filter chips now wrap and push the first results down the 360px screen. The old CSS comment said the first rows belong on the first screen. Either keep that behaviour on a §5 component or say in the pull why it is dropped.
Smaller points:
- The explore rows are now
setting-listrows, a class DESIGN.md reserves for settings rows. DESIGN.md should say a row list of results may use it. - The new test is named for #3801, not #3856. Its regex for the row is brittle.
- The description does not mention the change in how the description and numbers are joined (now one
·-joined meta line instead of two spans).
The audience mark in the repository head is now the design system's badge(), so .repo-audience and its custom CSS are gone. It renders as <a class="badge"> when it has a link, as an outline badge when the repository is open to anyone, and as a secondary badge when it isn't. The badge row in docs/DESIGN.md §5 now covers a badge that is a link: hover lifts it, the sentence stays on one line with the full text in title, and on a phone it wraps whole and is a 44px target.
What moved where
src/web/ui.ts:badge()takes optionalhrefandtitle. Withhrefit draws<a class="badge">, so the whole pill is the link.src/web/chrome.tsaudienceLine: drawsbadge(<span class="truncate">sentence</span>, { variant: "outline", title, href? }).href(the repository's settings) is only set for people who can open them; everyone else gets plain text.src/web/style/components.ts: rules fora.badgeand for a badge that holds a.truncatesentence, including the phone layout.src/web/style/content.ts: the.repo-audiencerules are deleted.docs/DESIGN.md: the §5 badge row describes the link and long-sentence behaviour, and.repo-audienceis out of the §5d list.test/repo-audience.test.tsandtest/audience-surfaces.test.ts: check that the head draws<a class="badge" … title=…>for someone who can open settings and a<span class="badge">for everyone else, and thatrepo-audienceno longer appears.
About the requested changes: no code changed for them, because the review doesn't match this pull. The forge's own record for #3856 has head 9cfb422e, and its diff is the seven files above, which is the audience change. At that head:
src/web/chrome.ts:395-400isaudienceLinedrawingbadge().src/web/style/content.ts:20-40has no.repo-audiencerule..repo-audienceis not in the §5d list indocs/DESIGN.md.
Nothing in the diff touches src/studio/explore.ts. .explore-filters and its sideways-scrolling phone rule are unchanged (content.ts:378-385), the explore rows don't use setting-list, and no test here is named for #3801. The explore points look like they belong to the pull for #3801 and should go there.
Since the review, the audience, audience-surfaces, repo-audience and design-lint tests pass again at this head (37 tests). Before the last push, bun x tsc --noEmit and bun scripts/design-lint.ts were clean.
To try it, open any repository on the preview and look at the audience badge next to the title, at desktop width and at phone width.
🤖 Generated with Claude Code
The audience mark in the repository head is now the design system's badge(), so .repo-audience and its custom CSS are gone. It renders as <a class="badge"> when it has a link, as an outline badge when the repository is open to anyone, and as a secondary badge when it isn't. The badge row in docs/DESIGN.md §5 now covers a badge that is a link: hover lifts it, the sentence stays on one line with the full text in title, and on a phone it wraps whole and is a 44px target.
What moved where
src/web/ui.ts:badge()takes optionalhrefandtitle. Withhrefit draws<a class="badge">, so the whole pill is the link.src/web/chrome.tsaudienceLine: drawsbadge(<span class="truncate">sentence</span>, { variant: "outline", title, href? }).href(the repository's settings) is only set for people who can open them; everyone else gets plain text.src/web/style/components.ts: rules fora.badgeand for a badge that holds a.truncatesentence, including the phone layout.src/web/style/content.ts: the.repo-audiencerules are deleted.docs/DESIGN.md: the §5 badge row describes the link and long-sentence behaviour, and.repo-audienceis out of the §5d list.test/repo-audience.test.tsandtest/audience-surfaces.test.ts: check that the head draws<a class="badge" … title=…>for someone who can open settings and a<span class="badge">for everyone else, and thatrepo-audienceno longer appears.
This update merges current main. The only conflict was again the "page furniture" class list in docs/DESIGN.md. main removed .act from it and this branch removed .repo-audience. The resolved line takes main's list without .repo-audience, and nothing under src/ still uses that class.
Earlier review: the requested changes on this pull described an explore-page diff (rows, filters, setting-list, a test named for #3801). None of that is in this pull. The forge's record of #3856 lists only the seven files above, so those points belong on the explore pull.
After the merge, bun scripts/design-lint.ts is clean, bun x tsc --noEmit passes, and the design-lint, design and audience test files pass (repo-audience, audience-surfaces, audience). The full suite was not run here; the forge runs it on this push.
To try it, open any repository on the preview and look at the audience badge next to the title, at desktop width and at phone width.
🤖 Generated with Claude Code
The audience sentence now uses the §5 badge, .repo-audience is gone from CSS and §5d, and badge() stays byte-identical when href/title are unused. Link and plain forms keep the title, the 44px phone target is kept, and the tests cover both forms plus the private case. I could not see the repo head on the preview: the repo page I fetched did not return a badge, so I read the CSS and markup instead. Next: (1) take the before/after screenshots the issue asked for (390px and 1280px, light and dark) from the preview; (2) check that the badge wraps to its own line at 360px inside .repo-title, because flex-basis:100% only works if that parent wraps.
A repository's audience mark is now drawn with §5's shared components. The .repo-audience class has been removed from the markup, the stylesheet and docs/DESIGN.md §5d.
This push merges main into the branch again. The only conflict was the "page furniture" line in docs/DESIGN.md §5d. Each side had removed one class from that list: main removed .fork-bar (#4353) and this branch removed .repo-audience. The merged line leaves out both, and no code under src/ or test/ uses either class any more.
What I ran on the merge commit:
bun scripts/design-lint.tsreports no colour, size or component added outside the design system.bun x tsc --noEmitpasses.- The design audit, design lint, design map and repo about-card tests pass, along with the test files that mention the audience (72 tests in 9 files).
The full test suite was not run here; the forge's check runs it on this push.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("the pages > (unnamed)") and the decider saw no point in another try
The audience sentence in a repository's header ("Public: anyone can read this; 1 person can change it.") is now §5's
badgein theoutlinevariant, sitting beside the existing Private/Public badge. The page-local.repo-audiencerule is gone. It still links to settings for an admin and is plain text for everyone else, and both forms keep thetitlewith the full sentence. The words a reader sees are unchanged.What moved where
src/web/ui.ts:badge()takes optionalhref(it then renders as<a class="badge">, so the whole pill is the link) andtitle. Badges that use neither render byte-for-byte as before.src/web/style/components.ts: the badge component gains the states the old rule gave the sentence:.truncatestays on one line with an ellipsis on a wide screen;src/web/chrome.ts:audienceLinenow builds that badge instead of writing its own<a>/<span>. Nothing else in the header changed.src/web/style/content.ts: the.repo-audiencerules are deleted.docs/DESIGN.md: §5's badge row describes the newhref/sentence states, and.repo-audienceleaves its §5d bullet.bun scripts/design-lint.tspasses. I ran--update, which lowereddocs/design/baseline.json:components.tswent from 2 to 0 (debt already paid on main);content.tsentry, now all zeros, was dropped.Tests
test/repo-audience.test.tsandtest/audience-surfaces.test.tsmatched the oldclass="repo-audience"markup, which is what this issue removes. They now match the badge markup and still check the same tag, link, title and text.repo-audience, that its badge says "Private", and that the sentence badge links to settings for an admin.web-ui,ui-sweepand therepo*tests pass (103 tests), andtsc --noEmitis clean.Not done
/olive/yard(public) and a private repository, in light and dark, at 1280px and 390px wide.outlinevariant rather than a coloured tone, because being private is not an error or a warning.🤖 Generated with Claude Code
Closes #3852