Fix #21: Implement account centre page#29
Open
tobegeeky wants to merge 1 commit into
Open
Conversation
- add profiles table migration with RLS policies and signup trigger - implement editable name, read-only email, bio, hobbies chips - add BottomNav shared component with active state for account icon
|
@tobegeeky is attempting to deploy a commit to the lightcreator1007's projects Team on Vercel. A member of the Team first needs to authorize it. |
Collaborator
|
There are a few changes in figma, please look into it. sound good? |
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
Fixes issue #21 - account centre page for YDO with reusable chips:
Schema Changes
New table:
profiles(id,name,bio,hobbies text[],updated_at)Run
supabase db resetorsupabase migration upto apply locally.Migration:
supabase/migrations/20260622120000_create_profiles.sqlReviewer Guidance
Start with
app/account/page.tsx— it's the entry point. It handles auth, fetches the profile row, and passes data down toAccountForm.From there,
app/account/AccountForm.tsxis the core of the change — all the interactive UI lives here (editable fields, hobby chips, save logic). TheFloatingFieldcomponent at the top is unused and should be ignored; it's a leftover stub with no usages in the return.app/account/actions.tsis the server action — validates name, bio word count, and hobby tags before writing to Supabase. This is where the 35-word bio limit and 5-hobby cap are enforced server-side.supabase/migrations/20260622120000_create_profiles.sqlis the only schema change — adds theprofilestable with RLS policies and an auto-provisioning trigger on signup.components/BottomNav.tsxis a shared component intended for reuse across Home and Search pages (issues #20). It uses Lucide icons andvar(--color-secondary)/var(--color-primary)from the design tokens.public/YDO.svgandpublic/BgStrokes.svgare static assets exported from Figma, rendered vianext/image.Help needed:
#F9B63C) since no token exists for it yet. Need direction for scale and positioning.lib/constants.tsare the single source of truth shared with the future Search page, so need to know exactly what hobby options are required.Essential Checklist
Fix #bugnum:, followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title withFix part of #bugnum: ....)mainormaster.Proof of Work
AI Usage Disclosure