User Interface high complexity mobile
2
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Entry screen for Peer Mentor role users, assembled at runtime from the enabled module set via the Module Registry Service. Displays recent activity summary, quick-log shortcuts, upcoming events, and notification highlights in a low-cognitive-load layout.

Feature: Role-Specific Home Dashboard

peer-mentor-home-screen

Responsibilities

  • Subscribe to Module Registry Service stream and mount only enabled home widgets for the Peer Mentor role
  • Render WCAG 2.2 AA compliant layout with accessible touch targets and semantic labels
  • Serve cached Drift data when offline so the screen always renders meaningful content
  • Provide quick-action shortcuts that deep-link into activity logging and event flows

Interfaces

build(BuildContext) → Widget
onModuleSetChanged(List<String> enabledModules) → void

Relationships

Dependencies (2)

Components this component depends on

Sub-Components (3)

Recent Activity Summary Widget
component low

Compact widget on the Peer Mentor home screen showing the last 3-5 logged activities from the local Drift cache. Tapping navigates to the full activity history screen.

  • Read recent activities from local Drift cache and render in a compact list
  • Provide tap navigation to activity detail and full history
Quick Log Shortcut Widget
component low

One-tap shortcut button on the Peer Mentor home screen that launches the minimal activity logging flow with default values pre-filled (today's date, 30 min duration). Meets WCAG 2.2 AA 48x48 logical-pixel touch target requirement.

  • Render accessible quick-log button with 48x48px touch target and VoiceOver semantic label
  • Launch activity log form with pre-populated defaults to minimize required input
Upcoming Events Widget
component low

Compact home-screen widget listing the peer mentor's next upcoming events from the local cache, with tap-through to event detail and sign-up screens.

  • Fetch and display nearest upcoming events from Drift local cache
  • Link to event detail screen and event sign-up widget

Related Data Entities (1)

Data entities managed by this component