Declaration Screen
Component Detail
User Interface
low complexity
mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Full-screen declaration view that fetches the organisation's declaration template and renders the legally binding text. The accept button is disabled until the user has scrolled to the bottom of the text, preventing uninformed acceptance. Handles submission state, loading indicators, and success/error feedback.
declaration-screen
Responsibilities
- Fetch and render organisation-specific declaration template text
- Track scroll position and unlock accept button only when user reaches the bottom
- Trigger declaration acceptance and show confirmation feedback
- Meet WCAG 2.2 AA requirements including keyboard-navigable scroll region and sufficient contrast on the accept button
Interfaces
build(context, activityId, assignmentId)
onAccepted(declarationId)
_onScrollUpdate(scrollPosition)
_submitDeclaration()