feat(settings): profile menu, danger zones and DaisyUI buttons

Merged
DA
4d ago
+671-484

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-primary for Save, d-btn-outline for secondary actions, d-btn-error for 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)
menu

Account settings
account

Change password
password

Organization settings
org

App settings (bottom of the page)
app

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 Autofix with [code]smith
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.