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

A repository head's lineage line draws §5's row and links, and .repo-lineage leaves the markup #4289

opened this

Merged 44d 1h ago, live in production

The repository head's lineage lines no longer use .repo-lineage. They now use , which are §5's utilities, not one of its row, badge, bar, tabs or list components. .row is a flex link row, which doesn't fit a sentence.

Notes

opened this

The repository head's lineage lines no longer use .repo-lineage. They now use <p class="muted small break">, which are §5's utilities, not one of its row, badge, bar, tabs or list components. .row is a flex link row, which doesn't fit a sentence. bun x tsc --noEmit is clean, and design-lint, the new test, provenance-doors and migrate pass (43 tests).

  • What changed: this covers all three places the class was drawn:
    • the "forked from / Migrated from / fork of" line (lineageLine in src/web/chrome.ts);
    • the fallback "fork of" line for a fork whose origin is disconnected (src/web/chrome.ts);
    • the studio "Reads from … synced …" note (studioOriginNote in src/web/scope.ts).
  • Kept: the words, links, rel="noopener noreferrer" and the data-lineage hook are unchanged. .break means long names and URLs still wrap.
  • Tests: the new test/repo-lineage-markup.test.ts checks that the studio origin note has no repo-lineage and still has its words, link and .break. It also checks that the two source files never name the class. I changed the selectors in test/provenance-doors.test.ts and test/migrate.test.ts to the new <p class="muted small break" data-lineage>, because they matched the old class name.
  • Left for part two:
    • The .repo-lineage rule in src/web/style/content.ts and docs/DESIGN.md are untouched.
    • The line loses the old 12.5px size and 3px top margin; it now uses .small's 13px and the .muted colour.
    • The .repo-lineage rule still defines --faint for that colour, and .muted uses --muted-fg.
    • I did not look at the page, since the sandbox has no browser.

Closes #4228

commented

The repository head's lineage lines no longer use .repo-lineage. They now use <p class="muted small break">, which are §5's utilities, not one of its row, badge, bar, tabs or list components. .row is a flex link row, which doesn't fit a sentence. bun x tsc --noEmit is clean, and design-lint, the new test, provenance-doors and migrate pass (43 tests).

  • What changed: this covers all three places the class was drawn:
    • the "forked from / Migrated from / fork of" line (lineageLine in src/web/chrome.ts);
    • the fallback "fork of" line for a fork whose origin is disconnected (src/web/chrome.ts);
    • the studio "Reads from … synced …" note (studioOriginNote in src/web/scope.ts).
  • Kept: the words, links, rel="noopener noreferrer" and the data-lineage hook are unchanged. .break means long names and URLs still wrap.
  • Tests: the new test/repo-lineage-markup.test.ts checks that the studio origin note has no repo-lineage and still has its words, link and .break. It also checks that the two source files never name the class. I changed the selectors in test/provenance-doors.test.ts and test/migrate.test.ts to the new <p class="muted small break" data-lineage>, because they matched the old class name.
  • Left for part two:
    • The .repo-lineage rule in src/web/style/content.ts and docs/DESIGN.md are untouched.
    • The line loses the old 12.5px size and 3px top margin; it now uses .small's 13px and the .muted colour.
    • The .repo-lineage rule still defines --faint for that colour, and .muted uses --muted-fg.
    • I did not look at the page, since the sandbox has no browser.
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs