What's Changed
Features
- Organization plugin integration: Migrated core authentication and team-handling logic into a dedicated organization plugin, enabling more scalable and modular multi-organization support across the web app.
Improvements
- Simplified team context handling: Removed reliance on
defaultTeamIdacross auth flows (Electron auth consume/finalize), API routes, and client-side auth utilities—reducing ambiguity and improving consistency when resolving the current organization or team.
Fixes
- Database migration reliability: Updated Drizzle migration tooling and added repair scripts to ensure consistent schema state across PostgreSQL and pglite environments, especially after organization-related schema changes.
Docs
- README updates: Multiple iterative improvements to documentation clarity, including setup instructions, architecture notes, and usage guidance for the new organization-aware workflows.
Internal
- Refactored auth layer: Consolidated and simplified auth utilities (
auth.ts,current-organization.ts,migration-state.ts) to align with the organization plugin abstraction, removing redundant defaults and tightening type safety. - Migration cleanup: Dropped obsolete migration files and journal entries related to legacy team-id assumptions, streamlining the database migration history.