Skip to content

Fix the account page after sign-in; point links at the new name - #44

Merged
JFrusher merged 4 commits into
mainfrom
claude/elegant-carson-5o5558
Oct 3, 2026
Merged

JFrusher merged 4 commits into
mainfrom
claude/elegant-carson-5o5558

Conversation

@JFrusher

@JFrusher JFrusher commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Follow-up to #43.

Fix: "Something went wrong" on the account page after signing in

Every call to wedding_people (who has access to a wedding) failed:

structure of query does not match function result type — Returned type character varying(255) does not match expected type text in column 2

The function declares email text, but auth.users.email is varchar(255), and return query does not convert. Found in the Postgres log for a real Google sign-in; not specific to Google, every signed-in caller hit it.

  • New migration 20261003142447_wedding_people_email.sql casts u.email::text. Same signature, so existing grants/revokes are kept.
  • Already applied to the hosted project (recorded as 20261003142447, matching the file name). Verified there: the fix is in the function body, authenticated can execute and anon cannot, and calling it as a member returns the member row.
  • Why tests missed it: the PGlite stubs in lib/accounts and lib/documents declared auth.users.email as text. Both now use varchar(255) like Supabase; the existing wedding_people test failed with the production error before the fix and passes after.

Rename follow-up

  • Links now point at https://knotwork-suite.vercel.app (knotwork.vercel.app is taken) and github.com/JFrusher/Knotwork: README and badges, docs, marketing copy, landing page, package.json, the support page's issues link. The old addresses keep working.
  • Marketing images showing a browser address bar are re-rendered with the new address.
  • marketing/assets/images/logo-120.png / logo-512.png: the app mark (suite/app/icon.svg) as bitmaps; 120×120 is Google's OAuth branding size.

Checks

Suite unit tests (1,938) and the account/document migration tests (167) pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ns6xSyytpwWuhH7vCJ8Dam


Generated by Claude Code

claude added 4 commits October 3, 2026 13:55
The repo is renamed and the Vercel project now answers on
knotwork-suite.vercel.app (knotwork.vercel.app is taken). README, docs,
marketing copy, the landing page, package.json and the support page's
issues link move over; the framed marketing images are re-rendered with
the new address in their browser bar. The old addresses still work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ns6xSyytpwWuhH7vCJ8Dam
… auth.users

After signing in, the account page showed 'something went wrong'. Postgres
log: 'structure of query does not match function result type — Returned
type character varying(255) does not match expected type text in column 2'.
return query does not convert, and auth.users.email is varchar(255).

New migration casts it. The PGlite test stubs declared auth.users.email as
text, which is why the existing wedding_people test passed; both stubs now
match Supabase, and that test failed with the production error before the
fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ns6xSyytpwWuhH7vCJ8Dam
The round-table mark from suite/app/icon.svg, rendered for places that
take a bitmap: 120x120 is Google's OAuth branding size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ns6xSyytpwWuhH7vCJ8Dam
Applied to the hosted project as 20261003142447; the file matches, so
'supabase db push' sees it as already run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ns6xSyytpwWuhH7vCJ8Dam
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
knotwork-suite Ready Ready Preview Oct 3, 2026 2:27pm UTC

@JFrusher
JFrusher merged commit 172d235 into main Oct 3, 2026
9 of 10 checks passed
@JFrusher
JFrusher deleted the claude/elegant-carson-5o5558 branch October 3, 2026 14:33

This branch was successfully deployed

1 active deployment
Preview — 4d9066c2 Deployed Oct 3, 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.

2 participants