Organism · beta · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: The pull request
Rendered by repo-change.tsOpen example: What arrives in your repository · Do: The pull request Use the full-page example to follow page links.
Do: Japanese
Rendered by repo-change.tsOpen example: What arrives in your repository · Do: Japanese Use the full-page example to follow page links.
Don't: Claimed as a client run
Rendered by repo-change.tsOpen example: What arrives in your repository · Don't: Claimed as a client run Use the full-page example to follow page links.
Don't: Without the never list
Rendered by repo-change.tsOpen example: What arrives in your repository · Don't: Without the never list Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| What arrives in your repository is computed by Loom's code from a pull request Loom's own commands write on a sample repository at build time, not drawn by hand. | A showcase is proof only if the product's own code produced what it shows. | Automated: scripts/site/interactives/check.ts (recomputes the showcase data and fails on drift) |
| The showcase states that Loom never approves or merges. | Control stays with the team; the site must say so where the change is shown. | Automated: scripts/site/interactives/check.ts (checkRepoChange) |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
lang | en | ja | No | "en" | Interface language. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | repo-change |
| Layer | Organisms |
| Category | showcase |
| Owner | Site system lead |
| Status | beta |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/organisms/repo-change.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | What arrives in your repository: computed by Loom's code from a pull request Loom's own commands write on a sample repository at build time. |
Use when
- Where the page says Loom writes only through reviewable changes. Why: The real pull request is the proof.
Do not use when
- To suggest Loom ran on a client repository. Why: It ran on a sample repository; the caption says so.
Anatomy
| Part | What it is |
|---|---|
| root | div.ix-rc |
| pr | The pull request head and state |
| files | Changed files |
| checks | Check results with state words |
| perms | What the App may and may never do |
| caption | Sample repository, Loom's own commands |
Made of: showcase-frame, finding, table, caption.
Used in: pages directly.
Variants
| Variant | When | Why |
|---|---|---|
| full | On its demo page and its section. | The whole experience where the claim is made. |
States
| State | Rendered or not applicable |
|---|---|
| default | Build-time sample pull request, checks, permissions and closed native file disclosures are complete without scripting. |
| hover | Native summary/link affordances remain available. |
| focus-visible | File summaries, code pre regions and the permissions table wrapper take native focus with the Site ring. |
| active | Enter/Space on a summary toggles its native details; no timed playback or Pause control exists. |
| disabled | Not applicable: Native file disclosures are available; there is no disabled-file API. |
| loading | Not applicable: Sample repository output is read at build time; no optional runtime/data preparation is required for these disclosures. |
| empty | Not applicable: The fixed sample record supplies files/checks; there is no caller empty-data variant. |
| error | Not applicable: Missing/stale/invalid sample data is a build/check failure. This read-only renderer has no client request/retry error view. |
| current | Not applicable: Files are independent details disclosures, not a single current tab/frame. |
| visited | Not applicable: No visited state on this root; any contained native links retain their own browser history. |
| expanded | Each native details[open] reveals its file preview; the remaining-files disclosure reveals its list. Multiple files may be open. |
Tokens
| Part | Token |
|---|---|
| check.success | --teal-ink word |
| check.failure | --madder-ink word |
| never.rule | --rule --ink |
| --repo-change-ix-ok-teal-ink | var(--teal-ink) |
| --repo-change-ix-wait-saffron-ink | var(--saffron-ink) |
| --repo-change-ix-broken-madder-ink | var(--madder-ink) |
| --repo-change-ix-action-indigo-ink | var(--indigo-ink) |
| --repo-change-ix-ink-ink | var(--ink) |
| --repo-change-ix-ink-2-ink-2 | var(--ink-2) |
| --repo-change-ix-line-line | var(--line) |
| --repo-change-ix-surface-surface | var(--surface) |
| --repo-change-ix-ground-cotton | var(--cotton) |
| --repo-change-padding-space-6 | var(--space-6) |
| --repo-change-padding-space-8 | var(--space-8) |
| --repo-change-margin-space-8 | var(--space-8) |
| --repo-change-margin-space-5 | var(--space-5) |
| --repo-change-font-type-label | var(--type-label) |
| --repo-change-padding-space-2 | var(--space-2) |
| --repo-change-padding-space-4 | var(--space-4) |
| --repo-change-padding-bottom-space-5 | var(--space-5) |
| --repo-change-margin-bottom-space-6 | var(--space-6) |
| --repo-change-font-type-strong | var(--type-strong) |
| --repo-change-margin-space-2 | var(--space-2) |
| --repo-change-padding-space-3 | var(--space-3) |
| --repo-change-margin-right-space-3 | var(--space-3) |
| --repo-change-font-size-fs-small | var(--fs-small) |
| --repo-change-gap-space-7 | var(--space-7) |
| --repo-change-gap-space-9 | var(--space-9) |
| --repo-change-margin-space-4 | var(--space-4) |
| --repo-change-gap-space-5 | var(--space-5) |
| --repo-change-outline-focus | var(--focus) |
| --repo-change-padding-space-5 | var(--space-5) |
| --repo-change-margin-top-space-4 | var(--space-4) |
| --repo-change-padding-left-space-7 | var(--space-7) |
| --repo-change-gap-space-1 | var(--space-1) |
| --repo-change-margin-space-7 | var(--space-7) |
| --repo-change-border-top-rule-hair | var(--rule-hair) |
| --repo-change-margin-space-6 | var(--space-6) |
| --repo-change-margin-space-3 | var(--space-3) |
| --repo-change-gap-space-2 | var(--space-2) |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; columns stack under 768 px and controls fill the row on phones. |
| wrapping | Text wraps; code panes scroll inside their own focusable region. |
| textExpansion | Japanese strings come from the i18n tables and wrap; engine output stays English. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | Inside the Showcase frame's padding, controls and caption at its foot. |
| external | Full width of its section. |
| rhythm | One showcase per section, after the section's claim (D-SITE-008). |
Motion
| Aspect | Value |
|---|---|
| None | A pull request is read, not played. |
Runtime and reuse
Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.
Accessibility passport
| Aspect | Value |
|---|---|
| role | Read-only sample content with native details/summary, focusable code and a labelled permissions table region. |
| name | Its heading or caption |
| keyboard | Tab to a file summary; Enter/Space toggles it; focusable code/table regions scroll with native keyboard operation. |
| focus | Opening a file keeps focus on its summary; code/table regions follow in reading order. |
| screenReader | Native disclosure expanded state, actual check words and explicit no-merge/sample provenance; no frame announcements. |
| contrast | Ink on surface 14:1; state dyes only as marks with words. |
| target | Controls are 44 px. |
Content
| Slot | Length | Voice |
|---|---|---|
| caption | 2 sentences | Written by Loom's own commands on a sample repository |
Good: “Generated by Loom's own commands on a sample repository when this page was built.”
Bad: “Loom fixes your repo automatically.”
Japanese: i18n.ts ix.rc.*.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
220 uses across the built pages (measured by npm run site:system).
Tests
| Aspect | Value |
|---|---|
| unit | tests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns |
| visual | Not yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts |
| a11y | tests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark |
| parity | scripts/site/system/check.ts: Library examples are rendered by the same render function the site imports |
Figma
not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.