Profile, email change, alerts, and not-found #48
Reference in New Issue
Block a user
Delete Branch "adilallo/feature/ProfileShareAndUtility"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
This branch delivers an authenticated profile experience with rules surfaced in the UI, a secure email-change flow (request + verify) backed by API routes and persistence, sharper alert/create modal behavior (including accessibility hooks and a reusable dialog/frame pattern), navigation/link and layout polish (Footer, TopNav, new
LinkandDividerutilities), and a redesigned App Routernot-foundpage with localized copy and refreshed E2E snapshots. Supporting updates include create-flow/session integration where needed, docs, and Cursor rules touches.Changes
Profile & rules
app/(app)/profile/*, rule cards (RuleCard), list layout (List,ListEntry,listSizeLayout), icons and branding assets (Icon, logo)./api/rules/*(rule by id, duplicate,/rules/me),/api/user/me, session/mail/helpers as in the merge diff.Email change
POST/related handlers for/api/user/email-change/requestand/api/user/email-change/verify.userEmailChangeSchemas), Prisma migration and schema updates for pending email-change state.Modals & shell
Alert,Create(modal frame view +useCreateModalA11y), newDialogmodule;LoginFormtweaks;Footer,HeaderLockup; newnavigation/Linkandutility/Dividerwith Storybook and tests.404
app/not-found.tsx,messages/en/pages/notFoundPage.json,app/tailwind.cssadditions, Playwright screenshots for the 404 case.Other
lib/create/api.tsand related create-flow/session pieces; localized strings (messages/en, including profile and completed flows); docs (docs/create-flow.md, Figma/backend guides); tooling/config (next.config.mjs).Screenshots
How to Test
npx vitest run— especiallytests/unit/userEmailChange*rulesById*,rulesMeRoute, profile/component tests referenced in the diff./profile; confirm lists/cards render; spot-check rule links and logout/footer behavior if applicable../node_modules/.bin/playwright testor project script for suites that reference404-*snapshots, if applicable.