# Next Steps ## Story Manager Handoff **Reference Architecture:** This document provides complete architectural blueprint for 3-portal cohort management enhancement. **Key Integration Requirements (Validated):** - **Authentication:** Extend existing Devise + JWT without modification - **Database:** Additive schema changes only, maintain 100% backward compatibility - **API:** Extend existing v1 endpoints, follow RESTful patterns - **UI:** Custom TailwindCSS design system for portals, mobile-first responsive - **PDF Processing:** Reuse existing HexaPDF and form builder components - **Email/Notifications:** Leverage existing DocuSeal email infrastructure - **Storage:** Use existing Active Storage with multi-backend support **First Story to Implement:** **Story 1.1 - Institution and Admin Management** - **Why first:** Foundation for multi-tenancy, enables all subsequent stories - **Integration checkpoints:** 1. Verify Institution model doesn't conflict with existing Account 2. Test role-based permissions with existing Cancancan 3. Ensure admin invitation uses existing Devise patterns 4. Validate data isolation between institutions - **Success criteria:** Admin can create institution, invite other admins, manage permissions **Implementation Sequencing:** 1. **Story 1.1** → Institution & Admin Management (foundation) 2. **Story 1.2** → Cohort Creation & Templates (builds on 1.1) 3. **Story 1.3** → Student Enrollment (requires 1.2) 4. **Story 1.4** → Admin Verification (parallel with 1.3) 5. **Story 1.5** → Student Portal (requires 1.3) 6. **Story 1.6** → Sponsor Portal (requires 1.5) 7. **Story 1.7** → Admin Finalization (requires 1.6) 8. **Story 1.8** → Notifications (can run parallel) 9. **Story 1.9** → Dashboard & Analytics (requires all above) 10. **Story 1.10** → State Management (refinement throughout) ## Developer Handoff **Architecture Reference:** This document is the source of truth for all architectural decisions. **Key Technical Constraints (Based on Real Project Analysis):** - **Ruby 3.4.2, Rails 7.x** - Maintain exact versions - **Vue 3.3.2, Composition API** - All new components use `