Skip to content

0.1.6: a colour used in many places prints its first ten texts and counts the rest - #11

Merged
0thernet merged 1 commit into
mainfrom
print/repeated-contrast
Nov 18, 2026
Merged

0thernet merged 1 commit into
mainfrom
print/repeated-contrast

Conversation

@0thernet

Copy link
Copy Markdown
Member

Why

One faint colour used for every row of a list made a look print a line for every row. I ran ra look https://news.ycombinator.com/ from a clean install of 0.1.5: 237 findings at desktop, 235 of them the same grey (#828282 on #f6f6ef, 3.5:1 where 4.5:1 is needed), in 532 lines. Each line was true, and together they buried the other findings and broke the README's claim that a look is short.

What changes

  • The printed report (ra look and ra check) names the first ten texts that share the same colours, ratio and needed ratio, and then prints one line: 225 more texts have the same colours. --json lists every one. In ra check, texts are counted together only when they show at the same views.
  • Only the printing changes. The count of findings, the exit code, accept matching, snapshots and --json are as before.
  • --at can be given more than once (--at phone --at desktop). Before, the last one won without a word.
  • docs/findings.md, the skill and the README say so in a sentence each. The version is 0.1.6.

Ten, and not one, because the first ten usually show which kinds of element use the colour (on that page: rank, site, score, byline, user, age, hide, comments).

Checked

  • bun run check: 47 tests pass (four new ones for the printed text).
  • bun run test:browser: 41 pass (two new: --at twice, and a page of twelve pale rows whose look prints ten and counts two while --json keeps all twelve). Chromium 158 from playwright-core 1.65.0, through the machine's browser lane.
  • ra look broken --at phone on the fixture site prints the same 123 lines as before the change, so the sentences in the README picture and on hraness.com/ra still match.
  • The Hacker News front page with this branch: 83 lines at desktop, for the same 237 findings.

Left for later

ra diff still prints one new finding line for each text when a colour turns faint.

🤖 Generated with Claude Code

…unts the rest

One faint colour used for every row of a list made a look print a line for
every row. On Hacker News's front page, 235 of 237 findings at desktop were
the same grey (#828282 on #f6f6ef, 3.5:1), and the look ran to 532 lines.

The printed report now names the first ten texts that share the same colours
and counts the rest on one line. Only the printing changes: the count of
findings, the exit code, accept and --json leave none out, and ra's own
fixture pages print exactly what they printed before.

--at can also be given more than once. Before, the last one won without a word.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@0thernet
0thernet enabled auto-merge (squash) November 18, 2026 22:35
@0thernet
0thernet merged commit 3be5562 into main Nov 18, 2026
9 checks passed
@0thernet
0thernet deleted the print/repeated-contrast branch November 18, 2026 22:38
0thernet added a commit to hraness/stripe-history that referenced this pull request Nov 19, 2026
Moves ra from 0.1.3 to
[0.1.6](https://github.com/hraness/ra/releases/tag/v0.1.6), the latest
release. Between them:

- 0.1.4 ([ra #5](hraness/ra#5)) leaves alone
text behind a dialog that makes the rest of the page `inert` or
`aria-hidden`, measures a wrapped line that keeps its spaces from its
first letter to its last, and no longer waits for the tab icon.
- 0.1.5 ([ra #6](hraness/ra#6)) gives a request
that starts late as long to finish as the first ones had.
- 0.1.6 ([ra #11](hraness/ra#11)) prints the
first ten texts of a colour used in many places and counts the rest. The
release's other changes are to ra's README.

- `package.json` points at the v0.1.6 release asset. `bun.lock` holds
its sha512, which matches the asset `gh release verify-asset v0.1.6
hraness-ra-0.1.6.tgz -R hraness/ra` verified.
- ra declares the same peer dependency as 0.1.3 (playwright-core ≥ 1.58)
and has no dependencies of its own, so nothing else in the lockfile
changed.

Local checks on this head:
- `bun run check` passed (the cost surfaces, the typecheck, lint and 402
tests), and so did `bun run build`.
- `bun run ra check` passed: 15 states, 72 looks in 92 s, with 21 notes;
Chromium 151.0.7922.34 (Chrome for Testing, playwright-core 1.62.0).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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