Skip to content

Fix review findings: preview origins, inquiry form reset, CI format check - #29

Merged
JonasFocus merged 1 commit into
mainfrom
fix/review-findings
Nov 11, 2026
Merged

JonasFocus merged 1 commit into
mainfrom
fix/review-findings

Conversation

@JonasFocus

Copy link
Copy Markdown
Owner

What changed

  • Preview origins: isAllowedOrigin now also accepts VERCEL_BRANCH_URL. Before, the inquiry form and /api/admin/session returned 403 when a preview was opened through its branch alias. Covered by a new tests/origin.test.ts.
  • Inquiry form reset: after a request is sent, closing the dialog remounts the form, so a visitor can send another request without reloading. Drafts that were not sent are still kept. Covered by a new public UI regression test that mocks /api/requests.
  • CI formatting: the workflow now runs oxfmt --check. README.md and tests/database.test.ts were reformatted (no content change in the test file).
  • CI triggers: push is limited to main, so PR commits no longer run the workflow twice.

Verification

Locally: lint, format check, typecheck, 34 unit and database tests, production build, and 6 public UI tests pass.

Not covered: the authenticated e2e specs, and the branch-alias fix on a real Vercel preview (unit-tested only).

🤖 Generated with Claude Code

…rmatting in CI

- Allow VERCEL_BRANCH_URL so the form and admin sign-in work on branch preview links
- Give the inquiry dialog a fresh form after a request was sent
- Run oxfmt --check in CI and format the two drifted files
- Run CI on pull requests and pushes to main only, not twice per PR commit

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
jonas-dev Ready Ready Preview Nov 11, 2026 3:38pm UTC

@JonasFocus
JonasFocus merged commit b472aa8 into main Nov 11, 2026
3 checks passed
@JonasFocus
JonasFocus deleted the fix/review-findings branch November 11, 2026 15:40

This branch was successfully deployed

1 active deployment
Preview — 7db0ccca Deployed Nov 11, 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