Integrate PauseNotificationCard into notification feed
epic-pause-status-notifications-ui-task-003 — Register the PauseNotificationCard as a renderable notification type within the existing notification feed infrastructure. Update the notification list item factory or switch-case renderer to route pause-event notification payloads to the PauseNotificationCard widget. Verify the card appears correctly in the coordinator's notification centre screen.
Acceptance Criteria
Technical Requirements
Execution Context
Tier 2 - 518 tasks
Can start after Tier 1 completes
Implementation Notes
Locate the existing notification list item factory — likely a `switch` on `notificationType` string or a `Map
Testing Requirements
Widget test: render the `NotificationFeedList` widget with a mixed list including one `pause_status` item and two other notification types; assert `PauseNotificationCard` appears exactly once and other card types appear with correct counts. Unit test for the factory: assert that `factory.build(type: 'pause_status', data: {...})` returns a `PauseNotificationCard` instance. Regression test: snapshot/golden test of the full notification feed with existing item types to detect unintended rendering changes. Manual QA checklist: coordinator sees pause card, peer mentor does not.
The existing notification feed component may expect a specific notification model shape that does not map cleanly to the pause notification payload structure, requiring either payload transformation or feed refactoring.
Mitigation & Contingency
Mitigation: Review the notification-list-item and notification-model contracts before building the card. Design the pause-notification-card to extend or wrap the existing list item pattern rather than replacing it.
Contingency: If the feed contract is incompatible, implement a lightweight adapter that maps the pause notification payload to the feed's expected model shape, keeping the adapter isolated from the core card widget.
The app's existing toast/banner infrastructure may not support the auto-dismiss timeout duration or dismissal animation required for the peer mentor confirmation banner, necessitating a custom implementation that diverges from the design system.
Mitigation & Contingency
Mitigation: Audit the existing banner and toast components (in-app-notification-banner, notification-list-item) for configurable dismiss timeout before starting implementation. Prefer configuration over custom code.
Contingency: If the existing infrastructure cannot be configured, implement the banner as a thin wrapper with a custom auto-dismiss timer while reusing all visual tokens (colours, spacing, typography) from the design system to maintain consistency.