feat(app): implement account and public profile in settings - #218
feat(app): implement account and public profile in settings#218Carter907 wants to merge 45 commits into
Conversation
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
…arn into fix/settings-page-1
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
…arn into fix/settings-page-1
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: Tonycs <lam.tony540@gmail.com>
…arn into fix/settings-page-1
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: andyrodrigues30 <andrea.melissa.rodrigues@gmail.com>
Signed-off-by: Carter <speers.carter@gmail.com>
Signed-off-by: Carter <speers.carter@gmail.com>
Signed-off-by: Carter <speers.carter@gmail.com>
6603976 to
6916283
Compare
andyrodrigues30
left a comment
There was a problem hiding this comment.
Looks like it's still in the process of the functionality being added, but see comments made on the UI stuff.
Have a look at the error in the ThemeProvider please and see if you can fix it/ensure changing stuff does break anything else.
| {!isEmailEditing && ( | ||
| <Button | ||
| variant="outline" | ||
| onClick={() => setIsEmailEditing(true)} |
There was a problem hiding this comment.
Add the following to the button:
className="btn-sec"
| )} | ||
| <Button | ||
| variant="ghost" | ||
| onClick={() => { |
There was a problem hiding this comment.
Add the following to the button:
className="btn-sec"
| > | ||
| Cancel | ||
| </Button> | ||
| <Button onClick={handleSave} disabled={saving}> |
There was a problem hiding this comment.
Add the following to the button:
className="btn-pri"
| </div> | ||
| {!isPasswordEditing && ( | ||
| <Button | ||
| variant="outline" |
There was a problem hiding this comment.
Add the following to the button:
className="btn-sec"
| <p className="mono-micro text-destructive">{updateError}</p> | ||
| )} | ||
| <Button | ||
| variant="ghost" |
There was a problem hiding this comment.
Add the following to the button:
className="btn-sec"
| > | ||
| Cancel | ||
| </Button> | ||
| <Button onClick={handleUpdate} disabled={updating}> |
There was a problem hiding this comment.
Add the following to the button:
className="btn-pri"
| const ThemeContext = createContext<ThemeContextType | null>(null); | ||
|
|
||
| export function ThemeProvider({ children }: { children: ReactNode }) { | ||
| const [theme, setThemeState] = useState<Theme>("light"); |
There was a problem hiding this comment.
change theme to themeState
check if this causes any other issues when changing it.
| </div> | ||
|
|
||
| {isEmailEditing && ( | ||
| <div className="space-y-4 rounded-md border p-4"> |
There was a problem hiding this comment.
remove the border and rounded corners
| </div> | ||
|
|
||
| {isPasswordEditing && ( | ||
| <div className="space-y-4 rounded-md border p-4"> |
There was a problem hiding this comment.
remove border and rounded corners
| </p> | ||
| <Button | ||
| variant="destructive" | ||
| className="font-mono tracking-[0.08em] uppercase" |
There was a problem hiding this comment.
add functionality to delete account
Signed-off-by: Carter <speers.carter@gmail.com>
…at/settings-page-2
5eb1ea7 to
d09e3fd
Compare
Adds client-side validation and old password verification using Supabase before updating to the new password. Signed-off-by: Carter <speers.carter@gmail.com>
Signed-off-by: Carter <speers.carter@gmail.com>
Signed-off-by: Carter <speers.carter@gmail.com>
opted for TanStack Router loader pattern settings.account.tsx with getMyIdentity, replacing the client-side useAuth hook for fetching initial data. Signed-off-by: Carter <speers.carter@gmail.com>
fd00b76 to
7661e04
Compare
Summary
This PR is based on PR 212.
updateEmailfrom@/lib/auth@/lib/authcloses #50
Type of change
Verification
pnpm -r typecheckpassespnpm -r buildpasses