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

A public app's owner-view pictures are its writers' alone; the looks test joins the gate #717

Closed opened this
Closed without merging

Follows #684, which merged at its first commit. Two things a review of the front page turned up, plus a test file that is green again. Owner-view pictures are the writers' alone.

Notes

stopped closed without shipping deploy e7f3cc1

opened this

Follows #684, which merged at its first commit. Two things a review of the front page turned up, plus a test file that is green again.

  • Owner-view pictures are the writers' alone. The phone and desktop pictures are taken signed in as the owner, an admin. Until now any reader of a public repository could fetch them by URL, see them on a pull's Look card, and see the desktop picture on the app's page when no thumb existed. Now the picture route serves phone and desktop only to someone who can write the repository; a pull's Look card is hidden from readers who cannot write; the app's page shows a reader the thumb only. The thumb (taken as a stranger since #684) stays public.
  • The sweep does not retake a picture that failed at this head. A sweep-queued look skips kinds that already failed at the commit, so a broken page does not start a browser every ten minutes. The next deploy still tries again.
  • test/looks.test.ts joins the gate. It is green with thumbs taken from the reduced page, and gains the refusal test: a stranger and a reader get 404 for phone and desktop and 200 for the thumb; a writer gets 200 for all three.

Tests: bun test test/looks.test.ts test/studio.test.ts 177 pass. tsc --noEmit clean. test/check-list.test.ts green.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs