971d8b0a588bacd0fe4fb914af4598386b3cc06b
db: create user_preferences table (isletmem) — userId unique index,
theme/colorTheme/tweakcnTheme/radius/sidebar* columns
- user-prefs-actions.ts: getUserPrefs (server-side read, plain object),
saveUserPrefsAction (upsert by userId, Permission.user for row security)
- schema.ts: TABLES.userPreferences added
- layout.tsx: replace account.getPrefs+JSON.parse hack with getUserPrefs()
- dashboard-shell, prefs-initializer, theme-customizer: import UserPrefs
type and saveUserPrefsAction instead of old saveThemePrefsAction
- theme-prefs-actions.ts: deleted (no remaining references)
Reason: account.updatePrefs is shared across all apps in the same Appwrite
project (İşletmem + Emlak share project 69f27b51). A dedicated per-app
table gives proper isolation, typed schema, and no prototype-object issues.
Description
No description provided
Languages
TypeScript
99.5%
CSS
0.5%