Skip to content

The license, once: MIT text, footer line, hero badge and license page (APS 17, 0.3.0) - #17

Merged
samifouad merged 6 commits into
mainfrom
claude/mit-license-site-aps17
Nov 9, 2026
Merged

samifouad merged 6 commits into
mainfrom
claude/mit-license-site-aps17

Conversation

@samifouad

@samifouad samifouad commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

What

Addis products are MIT (APS 17, addiscorp/aps#17). This puts the license in the kit once, so every site shows it the same way:

  • License: one description of a product's license: year (2026), holder (Sami Fouad), optional github handle, upstream notices a fork arrived with, a preface line, source (public repositories only), href (/license/).
  • mitLicense(license): the LICENSE file's text, byte for byte. MIT_LICENSE is the default (Copyright (c) 2026 Sami Fouad). Upstream notices stay above ours (p8: Di Wu, then Sami Fouad).
  • Footer: license prop → MIT · © 2026 Sami Fouad (Sami's call: "MIT", not "MIT License"), linking to /license/, then · source only when source is passed. ToolSite and DocsLayout pass it through.
  • Status and license pills (Sami: nobody should think we're at 1.0): Hero's status ('alpha' | 'beta') and license render as two pills of one shape, side by side above the buttons: ( Status: Alpha | Beta ) ( License: MIT ). Both have the same height, font and dot, with the value in bold. Beta has a filled dot and alpha a hollow one, in the site's accent, light and dark. The License pill links to /license/. Per Sami's review, the pills carry only that text (no notes), and the earlier "✓ MIT licensed" badge (LicenseBadge) is removed. ProductPills renders the pair on any page; StatusPill, LicensePill, statusText and LICENSE_PILL_TEXT are its parts. This replaces Hero's free-text status string, which is fine because 0.3.0 isn't published yet. Tests: tests/status.test.mjs.
  • LicenseView: the page: a heading, "<product> is MIT licensed: use it, change it, ship it, commercially or not; keep the notice.", an optional note (a part under another license), the source when public, and the full text in monospace at a readable width, in the site's --ak-* colours, light and dark. On a phone each paragraph reflows instead of keeping the file's 80-column breaks; the DOM text is still the file's, byte for byte.
  • Honesty: nothing links a repository or says "open source" unless the site passes source. Tested.
  • Also: the tool header's links now wrap instead of pushing the page sideways at phone width (p8-site has four links and scrolled 19 px sideways at 390 px).
  • Version 0.2.7 → 0.3.0 (npm version minor --no-git-tag-version; no tag). README has a "The license" section.

Why

APS 17 relicenses the products to MIT and Sami wants the sites to show it proudly. AGENTS.md §3: if two artifacts must agree, share one function. The footer, badge, page and LICENSE text all come from one License value.

Evidence

CI (.github/workflows/ci.yml), run locally:

npm ci             → exit 0
npm run typecheck  → exit 0
npm test           → tests 33, pass 33, fail 0   (7 new in tests/license.test.mjs, 5 in tests/status.test.mjs)

tests/fixtures/harar-LICENSE is addiscorp/harar claude/mit-license-aps17 (PR #107), sha256 20ba8463…a999. tests/fixtures/p8-runtime-LICENSE is p8runtime/runtime main, sha256 1ee77bc7…3296. addiscorp/p8-test-suite's LICENSE on main is byte-identical to MIT_LICENSE too.

Proof the test bites: with 'MIT License' changed to 'MIT License ' in mitLicense, npm test → exit 1, 3 failing (both byte-for-byte tests and the p8 page test). Reverted.

Screenshots of the kit pieces on all nine sites (light/dark, desktop/phone) are under /Volumes/Projects/claude/license-sites/kit-agent/shots/<site>/ on the iMac.

After merge

The sites' PRs pin @addiscorp/kit 0.3.0, which needs this tagged (v0.3.0) and published by publish.yml. Their CI fails until then; that's expected. Ava handles the tag.

Not changed here: kit's own LICENSE and "license": "Apache-2.0" in package.json (the relicensing PRs own those).

-claude

… from one License (APS 17) (0.3.0)

mitLicense() builds the LICENSE file's text byte for byte (tested against
harar's and p8's files, upstream notices kept above ours); LicenseLink,
LicenseBadge and LicenseView show it. A source link appears only when a
site passes one. The tool header's links wrap at phone width.
@samifouad
samifouad merged commit 013b952 into main Nov 9, 2026
1 check passed
@samifouad
samifouad deleted the claude/mit-license-site-aps17 branch November 9, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant