feat(settings): add merchant profile edit page - #609
Open
frankrichard99 wants to merge 3 commits into
Open
Conversation
- Add /settings/api-keys page with list, create, and revoke flows - Add ApiKey type and API methods (list, create, revoke) to lib/api.ts - Add Settings link to wallet sidebar - Show full key once after creation with copy-to-clipboard - Mask key values after initial creation - Confirm before revoking with destructive action dialog - Handle loading, empty, and error states consistently Closes kellymusk#498
- Add /settings page with editable merchant name and personal name - Add change-email flow with verification email before updating - Add danger zone with delete account confirmation dialog - Update session provider to expose refreshMe and cached me data - Update wallet page to read merchant name from session context so changes reflect immediately without a page reload - Add Profile nav link to settings layout alongside API Keys Closes kellymusk#497
|
@frankrichard99 is attempting to deploy a commit to the kelly musk's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@frankrichard99 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…firmations - Add usePushNotifications hook for SW registration, permission handling, subscription management, and iOS graceful fallback - Add PushNotificationToggle component with backend sync via custom events - Add push subscription API methods (subscribe, unsubscribe, status) - Add Notifications section to /settings page with opt-in toggle - Replace stale generated sw.js with clean custom service worker that imports the existing push-handler.js for push events and notification clicks - Register service worker at root layout for background delivery - Handle unsupported browsers, denied permissions, and loading states Closes kellymusk#496
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a complete merchant profile management page at
/settingswhere merchants can update their name, business name, and email, with a danger zone for account deletion.What's included
/mePOSTAlertDialogconfirmation; calls/meDELETE, clears session, redirects to loginFiles changed
lib/api.tsUpdateProfileRequest,UpdateProfileResponse,ChangeEmailRequest,ChangeEmailResponse,DeleteAccountResponse, andupdateProfile,changeEmail,deleteAccountmethodscomponents/session-provider.tsxrefreshMecallback andmestate to cache profile data across the appapp/(app)/settings/layout.tsxapp/(app)/settings/page.tsxapp/(app)/wallet/page.tsxmefromuseSessioninstead of local state for live name updatesScreenshots
(Add screenshots in the PR if possible)
Testing
npm run buildCloses #497