Skip to content

[codex] Add assignment notification test action#74

Draft
coder13 wants to merge 1 commit into
betafrom
codex/assignment-notification-test
Draft

[codex] Add assignment notification test action#74
coder13 wants to merge 1 commit into
betafrom
codex/assignment-notification-test

Conversation

@coder13
Copy link
Copy Markdown
Owner

@coder13 coder13 commented May 28, 2026

Summary

Adds a Settings-page action for signed-in users with assignment notifications enabled to send a NotifyComp test push through the current push session.

The assignment notification hook now tracks test-send progress and success feedback separately from enable/disable state, and the notification client centralizes local state cleanup for invalid push sessions so stale sessions do not keep the UI marked enabled.

Validation

  • yarn test src/hooks/useAssignmentNotifications/useAssignmentNotifications.test.ts --runInBand
  • yarn check:type
  • yarn lint (passes with existing warnings unrelated to this change)
  • Pre-push hook: yarn lint && yarn check:type && yarn test (29 suites, 115 tests passed)

Adds a Settings action that sends a NotifyComp test push through the existing push session so users can verify their browser subscription. The hook now tracks test progress and success feedback separately from enable/disable state.

Also centralizes assignment notification state cleanup and clears stale push sessions on invalid session responses, so expired subscriptions do not keep the UI in an enabled state.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 28, 2026

Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit d9e7679
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6a17caef02d5950008f35a2e
😎 Deploy Preview https://deploy-preview-74--competition-groups.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68
Accessibility: 84
Best Practices: 100
SEO: 96
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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