Skip to content

Implement anonymous feedback claiming on authentication - #35

Merged
Andreas-Froyland merged 2 commits into
mainfrom
claude/add-feedback-details-click-wY0c0
Feb 16, 2026
Merged

Andreas-Froyland merged 2 commits into
mainfrom
claude/add-feedback-details-click-wY0c0

Conversation

@Andreas-Froyland

Copy link
Copy Markdown
Member

Summary

This PR implements the ability to merge anonymous user feedback and votes into authenticated accounts when users log in or sign up. This ensures that feedback submitted before authentication is preserved and associated with the user's account.

Key Changes

  • Added /api/auth/merge-anonymous API call to three authentication entry points:
    • Login page (pages/login/index.vue)
    • Signup page (pages/signup/index.vue)
    • Dashboard initialization (pages/dashboard/index.vue)
  • Removed "Anonymous feedback claiming" from TODO list as this feature is now implemented

Implementation Details

  • The merge operation is called via POST request to /api/auth/merge-anonymous after successful authentication
  • Error handling uses .catch(() => {}) to silently fail if the merge operation encounters issues, preventing authentication flow disruption
  • In the dashboard, the merge is called during the initial load sequence before fetching session and organization data
  • In login/signup pages, the merge is called immediately after successful authentication and before navigation
  • The OAuth redirect flow is now covered by the dashboard initialization call, eliminating the need for merge logic on login/signup pages specifically for that flow

https://claude.ai/code/session_01To7EAUVXuzzwAPdHeovtFM

After a user signs in or signs up (email or OAuth), call the
merge-anonymous endpoint so any feedback or votes they submitted
while anonymous are transferred to their account.

- Login page: fire-and-forget merge after email sign-in success
- Signup page: fire-and-forget merge after email sign-up success
- Dashboard: fire-and-forget merge on mount to cover the OAuth
  redirect flow (no anon session → returns immediately, no cost)

https://claude.ai/code/session_01To7EAUVXuzzwAPdHeovtFM
@vercel

vercel Bot commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
veerify Ready Ready Preview, Comment Feb 16, 2026 9:31pm

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Andreas-Froyland
Andreas-Froyland merged commit 3208b86 into main Feb 16, 2026
5 of 8 checks passed
@Andreas-Froyland
Andreas-Froyland deleted the claude/add-feedback-details-click-wY0c0 branch February 16, 2026 21:29
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