How gt228-tan/gtedits_clientportal works
EditDesk is a client portal and creative-operations workspace. Clients authenticate, review project work and deliverables, submit scoped requests and revisions, and view invoices; admins triage requests into projects, manage deliverables and payment tracking, and coordinate client communications. Firebase provides identity and client records, while the Express API and MongoDB support requests, projects, and deliverable workflows. The README documents AI planning and Google Drive automation. Several route, dashboard, and storage implementations were not sampled, so those links are shown only where documented or evidenced by imports.
Main entry points: ClientPortal.jsx Client portal · workRequests.js Work request API · deliverables.js Deliverable API · models Portal records
Components 23
Client workspace
- Client portal
src/pages/ClientPortal.jsx - Request form
src/components/WorkRequestForm.jsx - Deliverable preview
src/components/DeliverablePreviewModal.jsx - Invoice generation
src/generateInvoice.js
Admin operations
- Admin dashboard
src/pages/AdminDashboard.jsx - Request triage
src/components/WorkRequestsPanel.jsx - Deliverable management
src/components/DeliverableUploadModal.jsx
API workflows
- Work request API
server/routes/workRequests.js - AI planner API
server/routes/aiPlanner.js - Project API
server/routes/projects.js - Deliverable API
server/routes/deliverables.js - Drive API
server/routes/drive.js
Data and identity
- Role and session
src/contexts/AuthContext.jsx - Portal records
server/models - MongoDB
External services
- Firebase services
src/firebase.js - Brief planning
server/services/geminiPlanner.js - Drive provisioning
server/services/googleDriveService.js - Google Gemini
- Google Drive
- Email notifications
server/utils/sendEmail.js
Other components
- Client
- Admin
Connections 25
- Client → Client portal: uses
- Admin → Admin dashboard: uses
- Client portal → Role and session: reads session
src/pages/ClientPortal.jsx - Role and session → Firebase services: uses
src/contexts/AuthContext.jsx - Client portal → Request form: opens
src/pages/ClientPortal.jsx - Request form → Work request API: submits request
- Client portal → Deliverable preview: opens
src/pages/ClientPortal.jsx - Deliverable preview → Deliverable API: fetches preview
src/components/DeliverablePreviewModal.jsx - Client portal → Invoice generation: generates invoice
src/pages/ClientPortal.jsx - Admin dashboard → Request triage: manages requests
- Request triage → Work request API: triages requests
- Admin dashboard → Deliverable management: manages deliverables
- Deliverable management → Deliverable API: uploads files
- Client portal → Work request API: loads requests
src/pages/ClientPortal.jsx - Client portal → Project API: loads projects
src/pages/ClientPortal.jsx - Client portal → Deliverable API: loads deliverables
src/pages/ClientPortal.jsx - Work request API → Portal records: reads and writes
server/routes/workRequests.js - Project API → Portal records: persists projects
- Deliverable API → Portal records: reads and writes
server/routes/deliverables.js - Portal records → MongoDB: stores records
- Work request API → Email notifications: sends notifications
server/routes/workRequests.js - AI planner API → Brief planning: delegates planning
- Brief planning → Google Gemini: analyzes briefs
- Drive API → Drive provisioning: provisions folders
- Drive provisioning → Google Drive: creates folders