333 lines
7.6 KiB
Markdown
333 lines
7.6 KiB
Markdown
# RE Workflow Management System - Task Timeline
|
|
## SSO-Based Authentication | Realistic Progress Tracking
|
|
|
|
**Version:** 2.0
|
|
**Date:** October 23, 2025
|
|
**Authentication:** SSO via RE SSO Bridge (No login/signup screens)
|
|
**Current Status:** Frontend UI 80% extracted, Backend 70% setup
|
|
|
|
---
|
|
|
|
## 🎯 Current Project Status
|
|
|
|
### Overall Progress: 10%
|
|
- **Backend:** 10% (repo 70% setup, database 0%, APIs 0%)
|
|
- **Frontend:** 16% (UI 80% extracted, but no functionality)
|
|
|
|
### Reality Check:
|
|
✅ **What We Have:**
|
|
- Frontend UI components from Figma (80% extracted, mobile responsive)
|
|
- Work notes UI + partial functionality (emoji, document selection working)
|
|
- Dependencies installed
|
|
- Repository structure in progress
|
|
|
|
❌ **What We DON'T Have:**
|
|
- No Redux store created
|
|
- No API service layer
|
|
- No form validations
|
|
- No API integration
|
|
- No business logic
|
|
- No authentication working
|
|
- No database setup
|
|
|
|
**Translation:** Having UI ≠ Having features. We have the "look" but not the "functionality."
|
|
|
|
---
|
|
|
|
## 🔐 SSO Authentication (No Login Screens)
|
|
|
|
### How SSO Works:
|
|
1. User visits app → App redirects to RE SSO Bridge
|
|
2. User logs in with RE credentials (handled by SSO)
|
|
3. SSO redirects back to app with token
|
|
4. App validates token, syncs user from Active Directory
|
|
5. User lands on dashboard (logged in)
|
|
|
|
### What We Build:
|
|
**Frontend (1.5 days):**
|
|
- SSO callback handler page
|
|
- Protected route guards
|
|
- Logout button
|
|
|
|
**Backend (2 days):**
|
|
- SSO OAuth2 integration
|
|
- User sync from Active Directory
|
|
- JWT session management
|
|
|
|
**No Need For:**
|
|
- ❌ Login page
|
|
- ❌ Signup page
|
|
- ❌ Password reset pages
|
|
- ❌ Email verification
|
|
|
|
---
|
|
|
|
## 📅 Week-by-Week Timeline (10 Weeks)
|
|
|
|
### **Week 1 (Completed):** Sprint 0 Setup
|
|
- ✅ Frontend UI extraction 80% (Figma)
|
|
- 🔄 Backend repo setup 70%
|
|
- ❌ Database: Not started
|
|
- ❌ Redux: Not created
|
|
- ❌ API layer: Not configured
|
|
|
|
---
|
|
|
|
### **Week 2 (CURRENT):** Complete Foundation
|
|
|
|
**Backend (3 days):**
|
|
- 🔥 Database schema setup (1 day) ← CRITICAL
|
|
- Express + middleware configuration (0.5 days)
|
|
- Sequelize ORM + models (1.5 days)
|
|
|
|
**Frontend (4 days):**
|
|
- Complete UI extraction 20% remaining (1 day)
|
|
- 🔥 Setup Redux store + 8 slices (2 days) ← CRITICAL
|
|
- 🔥 Configure Axios API layer (1 day) ← CRITICAL
|
|
|
|
**Target:** Foundation ready for feature development
|
|
|
|
---
|
|
|
|
### **Week 3:** SSO Authentication
|
|
|
|
**Backend (2 days):**
|
|
- SSO Bridge OAuth2 integration
|
|
- User sync from Active Directory
|
|
- JWT token generation
|
|
- Auth APIs
|
|
|
|
**Frontend (1.5 days):**
|
|
- SSO callback page
|
|
- Protected routes
|
|
- Logout button
|
|
- User profile display
|
|
|
|
**Target:** Users can login via SSO
|
|
|
|
---
|
|
|
|
### **Week 4:** Workflow Creation Wizard (Part 1)
|
|
|
|
**Backend (4 days):**
|
|
- Workflow CRUD APIs
|
|
- Approval levels APIs
|
|
- User search API
|
|
- TAT calculation logic
|
|
|
|
**Frontend (4 days):**
|
|
- Template selection (connect to Redux)
|
|
- Basic information form (validation)
|
|
- Approval workflow builder (complex!)
|
|
- Dynamic levels
|
|
- User @mention search
|
|
- Real-time TAT calculation
|
|
|
|
**Target:** First 3 wizard steps functional
|
|
|
|
---
|
|
|
|
### **Week 5:** Workflow Creation Wizard (Part 2)
|
|
|
|
**Backend (3 days):**
|
|
- Participant management APIs
|
|
- Document upload APIs (GCP storage)
|
|
- Workflow submission logic
|
|
|
|
**Frontend (4 days):**
|
|
- Participants step (spectator @mention)
|
|
- Documents step (drag-drop upload)
|
|
- Review & submit step
|
|
- Multi-step API integration
|
|
|
|
**Target:** Complete workflow creation working
|
|
|
|
---
|
|
|
|
### **Week 6:** Request Management
|
|
|
|
**Backend (4 days):**
|
|
- Workflow listing APIs (filters, search, pagination)
|
|
- Approval/rejection APIs
|
|
- TAT tracking service
|
|
- Activity logging
|
|
|
|
**Frontend (4 days):**
|
|
- My Requests page (tabs, search, filter)
|
|
- Open/Closed Requests pages
|
|
- Request detail page (Overview tab)
|
|
- TAT progress bar component
|
|
|
|
**Target:** Users can view all their requests
|
|
|
|
---
|
|
|
|
### **Week 7:** Approval Actions
|
|
|
|
**Backend (3 days):**
|
|
- Approve/reject workflow logic
|
|
- TAT monitoring cron job (every 30 min)
|
|
- Notification system (8 types)
|
|
|
|
**Frontend (4 days):**
|
|
- Workflow tab (approval timeline)
|
|
- Documents tab (preview, download)
|
|
- Activity tab (timeline)
|
|
- Approve/Reject modals
|
|
|
|
**Target:** Users can approve/reject requests
|
|
|
|
---
|
|
|
|
### **Week 8:** Collaboration Features
|
|
|
|
**Backend (4 days):**
|
|
- Work notes APIs (@mentions)
|
|
- Document preview/download
|
|
- Activity timeline APIs
|
|
|
|
**Frontend (2 days):**
|
|
- Connect work notes to backend
|
|
- Connect document APIs
|
|
- Notification bell with polling
|
|
|
|
**Target:** Work notes and documents working
|
|
|
|
---
|
|
|
|
### **Week 9:** Dashboard & Analytics
|
|
|
|
**Backend (3 days):**
|
|
- Dashboard statistics APIs
|
|
- AI conclusion generation
|
|
- Workflow closure API
|
|
|
|
**Frontend (4 days):**
|
|
- Dashboard with charts
|
|
- Search & filter components
|
|
- Conclusion display & edit
|
|
- Closure functionality
|
|
|
|
**Target:** Dashboard and AI conclusions working
|
|
|
|
---
|
|
|
|
### **Week 10:** Testing & Deployment
|
|
|
|
**Backend (4 days):**
|
|
- Unit tests (Jest)
|
|
- Integration tests
|
|
- API documentation (Swagger)
|
|
- Deployment setup
|
|
|
|
**Frontend (4 days):**
|
|
- Component tests (Vitest)
|
|
- Integration tests
|
|
- Performance optimization
|
|
- Production build & deployment
|
|
|
|
**Target:** Production launch! 🚀
|
|
|
|
---
|
|
|
|
## 📊 Task Summary
|
|
|
|
### Backend: 25 Tasks
|
|
- Sprint 0: 4 tasks (3 days)
|
|
- Sprint 1: 2 tasks (2 days) - SSO
|
|
- Sprint 2: 4 tasks (8 days) - Workflow creation
|
|
- Sprint 3: 3 tasks (6 days) - Approvals & TAT
|
|
- Sprint 4: 3 tasks (5 days) - Documents & Work notes
|
|
- Sprint 5: 3 tasks (4 days) - Dashboard & AI
|
|
- Sprint 6: 6 tasks (8 days) - Testing & deployment
|
|
|
|
**Total: ~8 weeks (42 days)**
|
|
|
|
---
|
|
|
|
### Frontend: 30 Tasks (Reduced - No login screens!)
|
|
- Sprint 0: 5 tasks (4 days) - Foundation
|
|
- Sprint 1: 3 tasks (2.5 days) - SSO callback
|
|
- Sprint 2: 8 tasks (9 days) - Workflow wizard
|
|
- Sprint 3: 9 tasks (10 days) - Request management
|
|
- Sprint 4: 4 tasks (5 days) - Collaboration
|
|
- Sprint 5: 4 tasks (4 days) - Dashboard
|
|
- Sprint 6: 4 tasks (5 days) - Testing
|
|
|
|
**Total: ~8 weeks (40 days)**
|
|
|
|
---
|
|
|
|
## 🎯 This Week's Priorities (Week 2)
|
|
|
|
### Backend Must Complete:
|
|
1. 🔥 **Database schema** - Blocks everything (1 day)
|
|
2. Express.js configuration (0.5 days)
|
|
3. Sequelize ORM + all models (1.5 days)
|
|
|
|
### Frontend Must Complete:
|
|
1. Complete UI extraction 20% (1 day)
|
|
2. 🔥 **Setup Redux store + 8 slices** - Cannot skip (2 days)
|
|
3. 🔥 **Configure Axios API layer** - Cannot skip (1 day)
|
|
|
|
**End of Week 2:** Both teams ready for feature development
|
|
|
|
---
|
|
|
|
## 📋 Core Features Focus
|
|
|
|
### 1. Workflow Creation (Week 4-5) - CORE FEATURE
|
|
- 6-step wizard
|
|
- Approval hierarchy builder (dynamic levels, @mention, TAT)
|
|
- Document upload
|
|
- Submit workflow
|
|
|
|
### 2. Approval Actions (Week 6-7) - CORE FEATURE
|
|
- Approve/reject with comments
|
|
- TAT tracking (working days vs calendar days)
|
|
- Notifications
|
|
- Activity timeline
|
|
|
|
### 3. Collaboration (Week 8) - CORE FEATURE
|
|
- Work notes (chat with @mentions, emojis)
|
|
- Document management
|
|
- Real-time notifications
|
|
|
|
### 4. Analytics (Week 9) - SECONDARY
|
|
- Dashboard with charts
|
|
- AI-powered conclusions
|
|
- Search & filters
|
|
|
|
---
|
|
|
|
## 📖 Documentation References
|
|
|
|
|
|
|
|
|
|
## ⚠️ Key Insights
|
|
|
|
1. **SSO = No login screens** (saves 3-4 days frontend work)
|
|
2. **80% UI ≠ 80% done** (actually 16% of total work)
|
|
3. **Integration is 80% of work** (Redux, API, validation, logic)
|
|
5. **Focus on core features** (workflow creation, approvals, work notes)
|
|
|
|
---
|
|
|
|
## 🚀 Success Metrics
|
|
|
|
**Week 2:** ✅ Foundation complete (database + Redux)
|
|
**Week 3:** ✅ SSO authentication working
|
|
**Week 5:** ✅ Can create workflows
|
|
**Week 7:** ✅ Can approve/reject
|
|
**Week 9:** ✅ All features functional
|
|
**Week 10:** ✅ Production deployment
|
|
|
|
---
|
|
|
|
**Prepared By:** .NET Expert Team
|
|
**Target Launch:** End of December 2025
|
|
**Current Progress:** 10% Complete
|
|
**Focus:** Core workflow features (creation, approvals, collaboration)
|
|
|