Skip to content

Fix demo: lockfile drift, SOAP editor import, root-redirect funnel leak#3

Open
evangauer wants to merge 2 commits into
mainfrom
fix/lockfile-tiptap
Open

Fix demo: lockfile drift, SOAP editor import, root-redirect funnel leak#3
evangauer wants to merge 2 commits into
mainfrom
fix/lockfile-tiptap

Conversation

@evangauer
Copy link
Copy Markdown
Owner

@evangauer evangauer commented Jun 2, 2026

What was failing / leaking

main was red on CI + Vercel, and the demo subdomain leaked visitors. Three issues, all surfacing now:

  1. Outdated lockfileapps/web/package.json declares @tiptap/* but pnpm-lock.yaml never got those entries, so pnpm install --frozen-lockfile (CI + Vercel) failed with ERR_PNPM_OUTDATED_LOCKFILE.
  2. Unresolved importrecords/new-soap imports @/components/SoapNoteEditor, but the file lived in app/components/ (the @/* alias maps to the app root). tsc failed with TS2307.
  3. Demo funnel leak — unauthenticated visitors at demo.openvpm.com/ were 307-redirected to the marketing site, dead-ending anyone who came straight to the demo to try it.

Fix

  • Regenerated pnpm-lock.yaml (adds the TipTap dependency tree; lockfile-only).
  • Moved SoapNoteEditor + SoapNoteDisplay into components/ to match repo convention so the import resolves.
  • Demo root now redirects to /login (one-click demo access) instead of bouncing to marketing.

Verified locally

pnpm install --frozen-lockfile, pnpm type-check, pnpm test (119 passing), and pnpm build (both apps) all pass.

🤖 Generated with Claude Code

Two pre-existing breakages on main (from the TipTap PR) that fail CI and Vercel:

1. pnpm-lock.yaml was missing the @tiptap/* dependencies declared in
   apps/web/package.json, so 'pnpm install --frozen-lockfile' (CI + Vercel)
   failed with ERR_PNPM_OUTDATED_LOCKFILE. Regenerated the lockfile.
2. records/new-soap imported '@/components/SoapNoteEditor', but the component
   lived in app/components/ (the @/ alias resolves to the app root, not app/).
   Moved SoapNoteEditor + SoapNoteDisplay into components/ to match the
   repo convention (components/{ui,layout,common}) so the import resolves.

Verified: pnpm install --frozen-lockfile, type-check, test (119), and build
all pass for both apps.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
openvpm Ready Ready Preview, Comment Jun 2, 2026 8:34pm

Request Review

A visitor who came straight to demo.openvpm.com hit a 307 to the marketing
site (unauthenticated root -> NEXT_PUBLIC_WWW_URL), which dead-ended anyone
trying to actually try the demo. Now unauthenticated root redirects to /login,
which offers one-click demo access. Removes the funnel leak on the demo
subdomain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@evangauer evangauer changed the title Fix main build: lockfile drift + SOAP editor import path Fix demo: lockfile drift, SOAP editor import, root-redirect funnel leak Jun 2, 2026
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