feat(settings): profile menu, danger zones and DaisyUI buttons
Merged
DA
4d ago+671+671+012345678901234567890123456789-484-484-012345678901234567890123456789
Summary
- Profile menu: clicking the user name opens a popover with Account settings and Log out. Sign out is removed from the account settings page on the web; the native app keeps it there because it has no sidebar.
- Settings entry: the main sidebar gets a Settings item that opens the current organization's settings (still tab based).
- Buttons: settings buttons use the DaisyUI classes from the AGENTS.md rule (
d-btn-primaryfor Save,d-btn-outlinefor secondary actions,d-btn-errorfor deletes). Save buttons read Save, are left aligned and have no separator on account, change password, organization and app settings. - Danger zones: delete account, delete organization and delete app move into a Danger zone card that says why it is dangerous and what each action removes. App settings draw their own card so the danger zone sits below it.
Screenshots (left: before, right: after)
The settings pages keep their existing tabs; dedicated settings sidebars were dropped from this PR. Screenshots below predate that change and still show the settings sidebar.
Profile menu (before: clicking the name navigated straight to account settings)

Account settings

Change password

Organization settings

App settings (bottom of the page)

Test plan
-
bun run lint,bun run typecheck -
tests/account-deletion-page.unit.test.ts,tests/organization-tabs.unit.test.ts - Local stack: profile popover, account/org sidebars, Go back, Save on each form, Delete app / org / account dialogs open
š¤ Generated with Claude Code
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
-
New Features
- Added organization settings to the workspace sidebar when an organization is selected.
- Added an accessible profile menu with keyboard navigation, dismissal controls, and improved sign-out feedback.
- Added separate Danger zone sections for eligible account, app, and organization deletion actions, with warnings about their consequences.
-
Improvements
- Updated settings forms with clearer save buttons, loading indicators, and more reliable save handling.
- Applied consistent button styling across account, app, organization, and password settings.