How nimalansivakumar/theboard works
TheBoard is a workspace collaboration app: users sign in, join or create a space, then work with boards and documents. The tree also indicates teams, calendar views, settings, Gmail integration, and an AI endpoint. The graph preserves these product areas, but several UI and domain implementations were not excerpted; those relationships are omitted rather than inferred. Supabase provides the persistence and session layer, with typed schema and client setup.
Main entry points: supabase-client-ops.ts Supabase operations · login/page.tsx Sign in · route.ts Gmail sync API · [org]/page.tsx Space entry
Components 26
Identity and setup
- Sign in
app/login/page.tsx - Auth context
app/context/AuthContext.tsx - Space onboarding
app/onboarding/page.tsx - Sign up
app/signup/page.tsx - Profile and settings
app/settings/page.tsx
Workspace collaboration
- Space entry
app/space/[org]/page.tsx - Workspace shell
app/space/[org]/Space.tsx - Boards and calendar
app/space/[org]/board - Teams
app/space/[org]/teams/teams.tsx - Documents editor
app/space/[org]/mydocs/Editor.ts - Editor toolbar
components/EditorComponents/EditorController.tsx
Integrations
- Gmail sync API
app/api/gsync/route.ts - Email reader
app/api/gsync/gmail-reader.ts - Google authorization
app/api/gauth/gauth-util.ts - AI endpoint
app/api/runai/route.ts - Text pipeline
app/api/transformers/pipeline.ts - Hugging Face adapter
app/api/transformers/huggingface.ts
Data and shared UI
- Supabase operations
supabase/service/supabase-client-ops.ts - Server operations
supabase/service/serveroperations.ts - Browser client
supabase/client.ts - Server client
supabase/server.ts - Database schema
supabase/schema/supabase.ts - Row types
supabase/schema/row-types.ts - Database types
database.types.ts - Shared UI primitives
components/ui
Other components
- User
Connections 32
- User → Sign in: signs in
app/login/page.tsx - Sign in → Supabase operations: authenticates
app/login/page.tsx - Sign in → Auth context: sets session
app/login/page.tsx - Sign in → Space onboarding: routes new users
app/login/page.tsx - Sign in → Space entry: routes members
app/login/page.tsx - User → Space onboarding: creates workspace
app/onboarding/page.tsx - Space onboarding → Supabase operations: creates space and account
app/onboarding/page.tsx - User → Sign up: registers
- Space entry → Server client: creates server session client
app/space/[org]/page.tsx - Space entry → Server operations: loads workspace data
app/space/[org]/page.tsx - Space entry → Workspace shell: renders
app/space/[org]/page.tsx - Workspace shell → Boards and calendar: shows boards
- Workspace shell → Teams: shows teams
- Workspace shell → Documents editor: opens documents
- User → Profile and settings: updates profile
- Profile and settings → Supabase operations: updates profile data
- Editor toolbar → Documents editor: controls editor
components/EditorComponents/EditorController.tsx - Gmail sync API → Email reader: reads messages
app/api/gsync/route.ts - Gmail sync API → Google authorization: refreshes authorization
app/api/gsync/route.ts - Gmail sync API → Supabase operations: reads board details
app/api/gsync/route.ts - Gmail sync API → Supabase operations: stores imported items
app/api/gsync/route.ts - User → Gmail sync API: requests email import
- AI endpoint → Text pipeline: uses pipeline
app/api/runai/route.ts - AI endpoint → Hugging Face adapter: uses adapter
app/api/runai/route.ts - Supabase operations → Browser client: creates client
supabase/service/supabase-client-ops.ts - Browser client → Database schema: types client
supabase/client.ts - Server client → Database schema: types client
supabase/server.ts - Row types → Database types: derives row types
supabase/schema/row-types.ts - Supabase operations → Database types: uses database types
supabase/service/supabase-client-ops.ts - Supabase operations → Database schema: queries Supabase
- Sign in → Shared UI primitives: renders controls
app/login/page.tsx - Space onboarding → Shared UI primitives: renders controls
app/onboarding/page.tsx