mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:07:19 +01:00
- Split ProfileSettings into Profile (public identity) and Account (auth/security) tabs - Add LocationSettings with two-tier model: homeCity/timezone/locale + currentCity/timezone/until for travelers - Add AccountSettings with email display, password change, connected OAuth providers, danger zone - New SettingsTabs with 7-tab horizontal nav (Profile · Account · Location · Agent · Projects · Team · Billing) - New user_preferences DB table with getUserPreferences/upsertUserPreferences query functions - New API routes: GET/PATCH /api/me/preferences, GET/DELETE /api/me/connected-accounts/[provider] - Wire user's active city into weather API; active timezone into cron default - beacon: replace "Waiting for Claude…" spinner with clean Standby screen (logo + text) - beacon: fix grep pipeline crash in agent-hook-bridge.sh (|| true guards), fix token lookup - beacon: fix _PROJECT_ROOT via agent-projects.conf, fix auto-start without zenity dialog Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 lines
328 B
SQL
6 lines
328 B
SQL
-- One project name per owner. Feeds project_states' (user_id, project_key) PK —
|
|
-- without this, a user could register two "cockpit" projects and their runtime
|
|
-- state would silently merge under the same composite key.
|
|
CREATE UNIQUE INDEX IF NOT EXISTS "uq_user_projects_user_name"
|
|
ON "user_projects" ("user_id", "name");
|