Skip to content

Use one photo action in AI Tells Bingo - #1202

Merged
prithvi2206 merged 1 commit into
mainfrom
prithvi2206/codex/bingo-single-photo-action
Oct 25, 2026
Merged

prithvi2206 merged 1 commit into
mainfrom
prithvi2206/codex/bingo-single-photo-action

Conversation

@prithvi2206

Copy link
Copy Markdown
Contributor

Proposed changes

AI Tells Bingo currently offers separate camera and upload buttons even though the upload action already opens the iPhone chooser with Photo Library, Take Photo, and Choose File. Replace both actions with one button labeled exactly Take or Upload Photo, including when replacing a photo.

Keep the existing upload input, accepted image types, selection handler, reset behavior, and bingo_upload tracking attribute. Remove the camera-only input and its capture="environment" attribute. No photo processing, storage, or backend behavior changes.

Update the browser regression suite to click the new button, verify one file input without forced capture, check mobile button layout, and cover cancellation with a draft or saved photo plus same-file retry.

Validation

  • npm run test:bingo: 10 passed.
  • npm run test:bingo:browser: passed, including mobile layouts, chooser wiring, cancellation/retry, replacement, storage-failure recovery, and axe accessibility checks. No external requests or page errors.
  • npm run typecheck: 0 errors, 0 warnings (45 existing hints).
  • Markdown, MCP, and search tests: 15, 22, and 39 passed respectively.
  • npm run build and npm run test:search:build: passed; 14 search-quality tests passed.
  • node --import tsx --test tests/smoke/smoke.spec.ts: 29 passed. The npm/tsx invocation encountered local loopback ECONNRESET errors in the redirects test; the direct Node invocation passed the full suite.
  • git diff --check: passed.

The initial npm run check reached prebuild before the sandbox blocked tsx's local IPC pipe. Build and subsequent checks were completed outside that restriction.

Screenshots and device coverage

Viewed the supplied iPhone reference and local screenshots at 320 px and 390 px, including the same “If you want, I can…” square. The single button fits without clipping. Local review images are available as mobile-photo-action.png and mobile-photo-action-320.png; they are not committed or attached here.

The native iOS chooser was not exercised on a physical phone. The existing upload input and handler are preserved unchanged, with no capture attribute; automated tests exercise the browser file-chooser event and simulate cancellation.

Checklist

  • Instructions and examples match the current product behavior.
  • Links and image references are valid (unchanged).
  • Changed pages render correctly.

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
promptless-docs Ready Ready Preview Oct 25, 2026 5:54pm UTC

Request Review

@prithvi2206
prithvi2206 marked this pull request as ready for review October 25, 2026 18:29
@prithvi2206
prithvi2206 merged commit 5050648 into main Oct 25, 2026
3 checks passed
@promptless

promptless Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Promptless documentation updates

This branch was successfully deployed

1 active deployment
Preview — edd0eebd Deployed Oct 25, 2026 by vercel[bot]
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