Skip to content

feat: introduce role-based student and mentor portals with enhanced doubt management - #69

Open
rishithareddychalla wants to merge 3 commits into
NxtLabTech:mainfrom
rishithareddychalla:feature/smart-solution-suggester
Open

rishithareddychalla wants to merge 3 commits into
NxtLabTech:mainfrom
rishithareddychalla:feature/smart-solution-suggester

Conversation

@rishithareddychalla

Copy link
Copy Markdown

What changed?

Introduces role-based workflows, dedicated student and mentor portals, smart solution assistance, and an interactive learning hub to DoubtQueue:

  • Role-Based Authentication & Portals:

    • Implemented token-based authentication on the backend (/auth/login, /auth/register, /auth/me, /auth/logout) with strict role-based access control (UserRole, ForbiddenException).
    • Added dedicated navigation portals:
      • Student Portal: Tabbed experience for browsing sessions, live queue tracking under My Doubts, Learn Hub, and Account.
      • Mentor Portal: Session lifecycle controls, real-time queue management, resolution note logging, and doubt statistics.
    • Redesigned profile and authentication sheets into fluid, keyboard-aware bottom sheets.
  • Smart Solution Suggester & Topic Intelligence:

    • Added backend text similarity matching (DoubtSimilarityService) to identify similar previously resolved doubts.
    • Implemented SolutionSuggestionsCard and TopicIntelligenceCard to surface immediate answers and suggested solutions while students wait in queue.
  • Learning Hub & Spaced Repetition:

    • Added a personal revision system with flashcards, mastery tracking, and spaced-repetition schedules (LearnService, PreferencesLearnStorage).
    • Allows students to save resolved doubts to their knowledge library and review them over time.
  • Queue Experience & Responsive Layouts:

    • Added live queue position countdown (Queue Position: #X (Y ahead)) with a voluntary Self-resolved? button to help clear queues faster.
    • Fixed horizontal layout constraints across cards, chips, and action rows to ensure zero overflow across all mobile and desktop screen sizes (360px–1440px).

How was it tested?

  • Backend Unit & Service Tests:
    cd backend
    composer test
    
    cd app
    flutter test
    
    cd app
    flutter analyze
    

…or portals

- Add users and auth_tokens tables for both SQLite and MySQL schemas
- Implement AuthService, AuthController, bearer token authentication, and bcrypt password hashing
- Enforce strict server-side role and resource authorization with privacy masking and mentor registration secrets
- Introduce PortalEntryScreen with distinct student and mentor login/register flows
- Introduce StudentPortalScreen with Sessions, My Doubts (tracking & self-resolve), Learn, and Account tabs
- Introduce MentorPortalScreen with My Sessions, Live Queue (take next student & resolution notes), Intelligence, and Account tabs
- Add comprehensive test coverage in PHPUnit (57 tests) and Flutter (132 tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant