Skip to content

docs(readme): banner, generated badges, and one contributor identity - #6

Merged
imgul merged 1 commit into
mainfrom
arena/9bb3087d-env-compare
Oct 20, 2026
Merged

imgul merged 1 commit into
mainfrom
arena/9bb3087d-env-compare

Conversation

@imgul

@imgul imgul commented Oct 20, 2026

Copy link
Copy Markdown
Member

The front door

The README was accurate but read like release notes. This is the shape people actually read: banner → badges → the problem in the tool's own vocabulary → features → quick start → how each guarantee is enforced → how it decides → stack → layout → testing → roadmap → contributing → contributors → licence.

Assets, generated rather than drawn

  • docs/assets/banner.svg — 1280×320, same card language as the social preview: mark, wordmark, headline, one supporting line, and a miniature of the table with real state chips (Match · Missing · Placeholder · Different · Extra). Text is text: selectable, searchable, translatable, no font download.
  • docs/assets/badges/*.svg — six badges written by scripts/build-badges.mjs from one table of label, value and colour.

Three deliberate choices:

  1. Local SVG, not shields.io. The README renders in forks, offline and inside editors, and viewing it makes no third-party request — the same rule the product lives by.
  2. textLength + lengthAdjust="spacingAndGlyphs". Text is fitted to a known width, so the badge looks identical in every renderer regardless of available fonts. No baselines to guess, no metrics to drift.
  3. The aria-label is derived from the visible text (tests: 389 passing), so a badge cannot tell a screen reader something different from what it shows.

node scripts/build-badges.mjs regenerates them; the test suite fails if the badge, the generator and the README prose disagree on the number.

Preview

banner

One contributor identity

GitHub's contributor list comes from commit metadata, not from the current tree, so the automation Co-authored-by: trailers and the bot-authored initial commit kept a bot in the list. Fixed by rewriting history (26 commits), file-for-file identical to the previous tip before force-pushing:

  • every commit re-authored to imgul <92777653+imgul@users.noreply.github.com>, the address GitHub links to the profile;
  • every Co-authored-by: trailer removed;
  • .mailmap added so the older addresses fold into one identity for git shortlog and editors.

git shortlog -sne --all now reports a single contributor: 52 imgul.

Tests

tests/unit/readme.test.ts — 6 tests: every referenced asset exists, each badge keeps its role="img", <title> and aria-label, the test count agrees across badge/generator/prose, and every in-page anchor resolves to a real heading.

npx tsc · 389 tests / 20 files · npm run build · npm run privacy — green. Docs-only: no site output changed, so no deploy is needed.

- README rewritten in the shape a maintained project is read in: banner,
  badges, problem, feature table, quick start, how the guarantees are
  enforced, how it decides, stack, layout, testing, roadmap, contributing,
  contributors, license.
- docs/assets/banner.svg (1280x320) and six badges generated by
  scripts/build-badges.mjs. Local SVG rather than shields.io so the README
  renders offline and in forks without a third-party request; text fitted with
  textLength + lengthAdjust so the layout does not depend on the font; the
  accessible label is derived from the visible text.
- .mailmap folds the historical author addresses into the maintainer identity.
- tests/unit/readme.test.ts (6 tests): every referenced asset exists, badges
  carry a title and aria-label, the test count agrees across badge, generator
  and prose, and every in-page anchor has a heading.
- CONTRIBUTING and AGENTS explain how to regenerate badges and how to commit
  so the contributor list stays correct.

389 tests, typecheck, build and privacy guard green.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@imgul
imgul merged commit e7bc5e5 into main Oct 20, 2026
imgul added a commit that referenced this pull request Oct 20, 2026
docs(readme): banner, generated badges, and one contributor identity
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