Skip to content

People search: hide yourself, show email, fix Date.now() error - #7

Merged
DY0810 merged 1 commit into
mainfrom
fix/people-search
Nov 4, 2026
Merged

DY0810 merged 1 commit into
mainfrom
fix/people-search

Conversation

@DY0810

@DY0810 DY0810 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to Chloe's feedback on /people.

  • Hide yourself: the signed-in user is left out of the results and the "matching hackers" count.
  • Same names: each card shows the person's email under their name, so two people with the same name can be told apart. Profiles are already keyed by their unique user id, so no data change was needed. The "(You)" label is removed since you no longer appear.
  • Date.now() error: getCurrentUser now calls await connection() before the Supabase auth client reads the clock. The error came from the header's sign-in status in the root layout, so it showed on every page, not just /people.

Checked: 16/16 tests, type-check, lint, and the dev server log no longer shows the Date.now() error on / or /people. Demo cards render with the email line at the same card height.

Not in this PR: / still logs a separate "URL data … outside <Suspense>" warning at getSchedule() in src/app/page.tsx. It was there before this change.

🤖 Generated with Claude Code

….now() prerender error

- /people leaves the signed-in user out of the results and the count.
- Cards show the person's email under their name so people with the
  same name can be told apart. The "(You)" label is gone.
- getCurrentUser awaits connection() before the Supabase auth client
  reads the clock, which removes the "unstable value Date.now()" error
  every page logged from the header's AuthStatus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
hacksc-portal Ready Ready Preview Nov 4, 2026 2:29am UTC

@DY0810
DY0810 merged commit c87d9bb into main Nov 4, 2026
4 checks passed
gellosparkles added a commit that referenced this pull request Nov 4, 2026
PR #7 landed the same await connection() change in src/lib/auth.ts, and
the auto-merge duplicated the import and call. Keep main's version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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