-
Notifications
You must be signed in to change notification settings - Fork 0
feat: invite codes #33
Conversation
|
Updates to Preview Branch (add-invite-codes) ↗︎
Tasks are run on every commit but only new migration files are pushed.
❌ Branch Error • Fri, 21 Nov 2025 12:18:35 UTC View logs for this Workflow Run ↗︎. |
|
File:
|
Changes RequestedPlease address the following high-impact items before merging:
Summary of Changes
Overall Feedback
@Pertempto — ping me when you push fixes and I’ll re-check quickly. |
|
These changes reduce UX surprises and prevent stale state/edge-case failures. @Pertempto |
|
/opencode Please fix the styling in the invite manager. The Active Invites and History sections should have consistent border and padding |
|
Summary
No automated tests were run (UI-only styling change). Let me know if you’d like me to run any checks. |
Co-authored-by: Pertempto <Pertempto@users.noreply.github.com>
|
/opencode move breadcrumbs component in |
|
ProviderInitError |
|
To https://github.com/kwila-cloud/market |
|
APIError: |
|
/opencode move breadcrumbs component in src/pages/invites.astro to re-usable component that we could use from other pages in the future. Add a new Layout that includes this component and use it for the invite page. |
|
Summary
Let me know if you’d like this layout applied to other pages or want tests run. |
Co-authored-by: Pertempto <Pertempto@users.noreply.github.com>
|
File:
This will make client-side error handling more reliable and distinguish auth/ownership issues from server failures. |
|
/opencode Refactor the header/caption/optional right-side button from the invite page and dashboard page to a new re-usable component.
Remove this from the bottom of the dashboard and use similar wording for the caption on the dashboard page. |
|
ProviderInitError |
|
ProviderInitError |
|
Summary
Next Steps
|
|
File:
These changes will reduce spurious 500s and make collision handling more robust. |
Co-authored-by: Pertempto <Pertempto@users.noreply.github.com>
Fixed "Unauthorized" and RLS policy violation errors when creating or revoking invite codes. The issue was that API endpoints were not properly setting the JWT authentication context for RLS policy evaluation. Changes: - Added createSupabaseWithJWT() helper in auth.ts to create Supabase clients with JWT auth context - Updated /api/invites/create to use JWT-authenticated client for database operations - Updated /api/invites/revoke to use JWT-authenticated client for database operations - Fixed token validation to pass JWT to auth.getUser() Now auth.uid() in RLS policies correctly evaluates to the authenticated user's ID. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>



No description provided.