Skip to content

feat(check-in): a portrait for the desk, and both pictures save and adjust with their forms - #284

Merged
aleskiontherun merged 3 commits into
mainfrom
claude/web-1-portrait
Sep 24, 2026
Merged

aleskiontherun merged 3 commits into
mainfrom
claude/web-1-portrait

Conversation

@aleskiontherun

@aleskiontherun aleskiontherun commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

The check-in page shows the diver's portrait, 7:9 like a passport photo, in the picture column beside their name. The avatar and initials never stand in for it. With no portrait nothing prints there, and the screen offers an empty frame that opens About you. Each picture is a field of the form it saves with: the avatar in Profile Information, the portrait in Check-in details and About you. The form holds one pending edit and sends it after PATCH /user. The edit is a replace, an adjust, a remove, or for the portrait "Use profile picture". A failed picture leaves the saved fields saved and names itself in a toast. A pick is uploaded as the file itself with its crop, and "Adjust" re-crops the original the API holds, starting from the stored crop. The picker takes JPEG and PNG only, read from the bytes. It refuses up front what the API would refuse by size: over 10 MB, over 50 MP, or over 4032 × 3024 once decoded, which mirrors Pillow's JPEG draft. The export card, README, privacy page and DECISIONS.md name the portrait and the kept originals.

Verified with npm run ci (224 files, 7200 tests), tsc --strict and format:check, including new render tests for request order, cancel, Adjust, the copy and the pick-time refusals.

🤖 Generated with Claude Code

aleskiontherun and others added 3 commits September 24, 2026 17:16
…djust with their forms

The avatar moves into Profile Information and the portrait into Check-in
details and About you; each is a pending edit sent after PATCH /user.
The picked file goes as picked with its crop, Adjust re-crops from the
stored original, and the check-in page shows the portrait in the picture
column instead of the avatar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the feat New user-visible behaviour label Sep 24, 2026
@aleskiontherun
aleskiontherun merged commit d42aa72 into main Sep 24, 2026
14 checks passed
@aleskiontherun
aleskiontherun deleted the claude/web-1-portrait branch September 24, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New user-visible behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant