How sethtra/gdt-organiztional-chart works
GDT Organizational Chart combines individually owned, shareable organization-chart editing with a separate HR directory and position-management system. The main workflow is chart creation and editing through access-controlled routes, with local recovery and cloud persistence; HR administrators separately maintain staff, organizational structure, assignments, job titles, and skills, which support workforce reporting. The graph preserves these documented capabilities. Some page and service internals were not sampled, so those connections are limited to README or SOURCE INDEX evidence.
Main entry points: App.jsx Routes and guards · supabaseClient.ts Supabase · FlowApp.jsx Chart editor · JobArchitecturePage.tsx Jobs and skills
Components 21
Application access
- Routes and guards
src/App.jsx - Authentication
src/hooks/useAuth.js
Chart workspace
- Chart dashboard
src/pages/DashboardTestPage.jsx - Chart editor
src/components/editor/FlowApp.jsx - Editor shell
src/components/editor/EditorShell.jsx - Chart persistence
src/hooks/useChartPersistence.ts - Backup and restore
src/utils/chartBackup.ts
HR operations
- Staff directory
src/pages/StaffDirectoryPage.tsx - Staff records
src/services/staffService.ts - Position assignments
src/services/positionAssignmentService.ts - Organization structure
src/pages/AdminOrgStructureTestPage.tsx - Organization data
src/hooks/useOrgStructure.ts - Jobs and skills
src/pages/JobArchitecturePage.tsx - Job architecture services
src/services/jobArchitectureService.ts - Skill catalog service
src/services/skillService.ts - HR dashboard
src/pages/AdminDashboardPage.tsx - Department coverage
src/components/admin/dashboard/DepartmentCoveragePanel.tsx - Coverage calculation
src/hooks/useDepartmentCoverage.ts
Services and data
- Supabase
src/supabaseClient.ts
Other components
- Chart users
- HR administrators
Connections 31
- Chart users → Routes and guards: opens app
README.md - HR administrators → Routes and guards: opens app
README.md - Routes and guards → Authentication: provides session
src/App.jsx - Routes and guards → Chart dashboard: routes to
src/App.jsx - Routes and guards → Editor shell: mounts editor
src/App.jsx - Routes and guards → Organization structure: guards route
src/App.jsx - Routes and guards → Jobs and skills: guards route
src/App.jsx - Editor shell → Chart editor: renders
src/components/editor/EditorShell.jsx - Chart users → Chart dashboard: manages charts
README.md - Chart dashboard → Chart editor: opens chart
README.md - Chart editor → Chart persistence: saves edits
README.md - Chart editor → Backup and restore: backs up or restores
README.md - HR administrators → Staff directory: maintains staff
README.md - Staff directory → Staff records: manages records
- Organization structure → Organization data: loads structure
- HR administrators → Organization structure: maintains hierarchy
README.md - HR administrators → Jobs and skills: maintains catalog
README.md - Jobs and skills → Job architecture services: saves job titles
src/pages/JobArchitecturePage.tsx - Jobs and skills → Skill catalog service: saves skills
src/pages/JobArchitecturePage.tsx - HR administrators → HR dashboard: views workforce
README.md - HR dashboard → Department coverage: renders panel
src/pages/AdminDashboardPage.tsx - Department coverage → Coverage calculation: displays results
src/components/admin/dashboard/DepartmentCoveragePanel.tsx - Coverage calculation → Staff records: loads staff
src/hooks/useDepartmentCoverage.ts - Authentication → Supabase: authenticates
src/hooks/useAuth.js - Chart persistence → Supabase: persists charts
src/hooks/useChartPersistence.ts - Staff records → Supabase: calls RPCs
src/services/staffService.ts - Organization data → Supabase: loads organization
src/hooks/useOrgStructure.ts - Job architecture services → Supabase: calls RPCs
src/services/jobArchitectureService.ts - Skill catalog service → Supabase: calls RPCs
- Position assignments → Supabase: assigns positions
src/services/positionAssignmentService.ts - Chart users → Chart editor: views shared charts
README.md