Skip to content

Add assignment-notifier service and client-side assignment notification support#67

Closed
coder13 wants to merge 3 commits into
mainfrom
codex/scaffold-push-notification-solution
Closed

Add assignment-notifier service and client-side assignment notification support#67
coder13 wants to merge 3 commits into
mainfrom
codex/scaffold-push-notification-solution

Conversation

@coder13
Copy link
Copy Markdown
Owner

@coder13 coder13 commented May 11, 2026

Motivation

  • Introduce a lightweight notifier service that polls WCIFs, detects assignment changes, and generates push notification jobs so users can be informed of assignment updates.
  • Provide a client-side integration to register push subscriptions and allow users to enable assignment notifications in the app settings.

Description

  • Add a new service scaffold at services/assignment-notifier including TypeScript sources (src/), compiled output (dist/), tsconfig.json, a local JSON store (data/store.json), and a README.md describing configuration and next steps.
  • Implement snapshot/diff logic (createAssignmentSnapshots, buildNotificationJobs), WCIF client (fetchWcif), store persistence (readStore/saveStore), and a placeholder push sender that logs deliveries in src/ and compiled dist/.
  • Wire up client-side notification utilities in src/lib/notifications/assignmentNotifications.ts with subscription registration, backend sync, and periodic check bootstrap, plus a React hook useAssignmentNotifications and its index export.
  • Integrate UI and runtime hooks by importing bootstrapAssignmentNotificationChecks in src/App.tsx to auto-bootstrap when permission is granted and adding notification controls to src/pages/Settings/index.tsx, and add yarn scripts notify:service and notify:service:build to package.json.

Testing

  • No automated tests were added or executed as part of this change.

Codex Task

@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit 3670917
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6a0219f5d05b17000821f23f
😎 Deploy Preview https://deploy-preview-67--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: 67
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.

@coder13 coder13 closed this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant