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

Settings › Traffic › Scrapes speaks the home page's language #9807

shipped production is serving it opened this has it
opened this

The owner reads /settings/traffic/scrapes (scrapesPage in src/web/pages/scrapes.ts) to see who read their files, from which networks, and whether one actor is behind many addresses. Today it is a stack of cards. It should read like the settings pages already done, such as Settings › Accounts (#9772).

Done looks like:

  • [x] Each of the four parts (What was read, Who it is, One actor across addresses, Networks on file) is a <section class="settings-block"> with its <h2>. The card( wrappers around the prefix table, the groups table and the networks form are gone. The tables keep their .table-scroll wrapper, caption and data-dense.
  • [x] readsCard, captureCard and groupDetail draw headings and rows on the one background, not cards. The capture start and stop buttons and the networks textarea work as they do today, with the same POST routes and limits.
  • [x] Empty states are one plain sentence each: no reads in the window, no prefixes, no groups yet.
  • [x] test/scrape-evidence.test.ts and test/server-timing-sweep.test.ts pass unchanged. A new test renders the page for an admin with one capture group and one network on file, finds the four headings, and finds no .card. It fails on main.
  • [x] docs/design/areas/settings.md records the shape. bun scripts/design-lint.ts is clean and bun test passes.

Files: src/web/pages/scrapes.ts, docs/design/areas/settings.md, test/. Risks: user agents, header names, prefixes and abuse contacts come from strangers, so every one stays escaped. Change no grouping, counting or network lookup, only how the results are shown. /settings/traffic itself belongs to #9775, so do not touch traffic.ts or sources.ts.

commented

Reviewed pull #9823 at its head: ticked Each of the four parts (What was read, Who it is, One actor across addresses, Networks on file) is a <section class="settings-block"> with its <h2>. The card( wrappers around the prefix table, the groups table and the networks form are gone. The tables keep their .table-scroll wrapper, caption and data-dense.; readsCard, captureCard and groupDetail draw headings and rows on the one background, not cards. The capture start and stop buttons and the networks textarea work as they do today, with the same POST routes and limits.; Empty states are one plain sentence each: no reads in the window, no prefixes, no groups yet.; test/scrape-evidence.test.ts and test/server-timing-sweep.test.ts pass unchanged. A new test renders the page for an admin with one capture group and one network on file, finds the four headings, and finds no .card. It fails on main.; docs/design/areas/settings.md records the shape. bun scripts/design-lint.ts is clean and bun test passes..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs