Organize/lib/actions
Brian Fertig f66c7731d1 Add per-project theme assignment with scoped theming
- Extract theme constants (THEMES, THEME_CLASSES, DARK_SURFACES) into a new
  framework-free lib/themes.ts so server and client code share one source of
  truth; re-export from theme-provider for backward compatibility.
- Add nullable `theme` column to Project (Prisma migration + schema), plus
  ProjectThemeSchema validation and a setProjectTheme server action.
- Introduce a ThemeScope context in the provider: a subtree can temporarily
  override the global preference via useThemeScope().setScope(name); the
  scoped theme wins for resolvedTheme/DOM while active, then lifts on cleanup.
- Render an inline no-FOUC script (themeSwitchScript) on project pages that
  applies the theme class before first paint and leaves a data-project-theme
  marker the provider reads at hydration.
- Add ProjectThemeScope component that sets/clears the scope from live
  ProjectsContext state, so picking a new theme updates instantly without
  waiting for the server re-render.
- Add ProjectThemePicker dropdown (Default + light/dark options) rendered
  beside the project title in the kanban board header.
- Wire optimistic setProjectTheme into ProjectsContext with rollback and
  error toast on failure.
- Update use-dark-theme hooks to read resolvedTheme from context instead of
  resolving locally, so they reflect scoped themes correctly.
2026-08-29 22:07:10 -06:00
..
admin.ts
ai.ts
auth.ts
categories.ts
chat-ai.ts # Conversation Summary 2026-08-19 08:35:00 -06:00
group-ai.ts
group-status-ai.ts # Conversation Summary 2026-08-19 08:35:00 -06:00
groups.ts
notes.ts
projects.ts Add per-project theme assignment with scoped theming 2026-08-29 22:07:10 -06:00
scheduled-todos.ts Reminders and Notifications -- on scheduled to dos 2026-08-28 13:19:25 -06:00
summarize.ts Added AI Summary 2026-08-28 14:25:57 -06:00
todo-ai.ts Add scheduled (recurring) to-dos, AI to-do generation, and in-place building upgrades 2026-08-17 15:03:13 -06:00
todos.ts Add scheduled (recurring) to-dos, AI to-do generation, and in-place building upgrades 2026-08-17 15:03:13 -06:00