GeezerVison is showing github.com — feat(pm-aggregator): unified push registry + needs-user class (#14084 S1) by dezren39 · Pull Request #14698 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: browser push subscriptions live in one legacy table with no idea of which client they belong to, no delivery settings, and the answerable notification class is called needs-drew.
After: one push registry holds every endpoint (browser or Android app) with its device id, label and delivery settings (send immediately by default, optional rate cap, grouping, group reminders). The answerable class is needs-user, and stored needs-drew preferences are read as needs-user. Items have a stage model: needs-review first, then needs-user, with send back, resolve, reopen, priority and blocked-by count.
How: new src/push-registry.ts creates the tables (no literal defaults, so the Turso statement bridge stays happy) and seeds once from alerts_push_subscriptions, guarded by a marker so a deleted endpoint is never brought back. AlertsStore reads and writes the registry; the Turso export, the dashboard backup manifest and pm-stack/platform/stores.json cover the new tables. Tests run the real SQL through bun:sqlite.
Part of #14084 (S1, slice 1). Stage API routes, the needs-user list UI and the send-back answer option come in the next slice.
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…S1)
- New push registry (push_endpoints, push_preferences, push_item_stages,
push_item_stage_events, push_registry_meta) with a one-shot seed from
the legacy alerts_push_subscriptions table.
- Subscriptions now carry transport, client (browser | android-app),
device id, label and delivery settings (immediate by default, optional
rate cap, grouping, group reminders).
- Rename the answerable notification class needs-drew -> needs-user;
stored needs-drew preferences are read as needs-user.
- Item stage store: needs-review -> needs-user, send back, resolve,
reopen, priority and blocked-by count, ordered for answering.
- Export, backup manifest and platform stores list cover the new tables.
Refs #14084
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 35 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a243b511-40f1-4a1f-8680-39c32c76dbda
Commits
-
Reviewing files that changed from the base of the PR and between cb73aed and 1085fb1.
Files selected for processing: 13
-
nixos/home/pm-dashboard-backup-manifest.test.sh
nixos/home/pm-dashboard-backup.sh
pm-stack/aggregator/scripts/export-turso-stores.ts
pm-stack/aggregator/src/alerts.ts
pm-stack/aggregator/src/notifications.ts
pm-stack/aggregator/src/notify-relay.ts
pm-stack/aggregator/src/prompts.test.ts
pm-stack/aggregator/src/push-registry.ts
pm-stack/aggregator/test/alerts.test.ts
pm-stack/aggregator/test/notification-preferences-3318.test.ts
pm-stack/aggregator/test/notifications.test.ts
pm-stack/aggregator/test/push-registry-14084.test.ts
pm-stack/platform/stores.json
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
This was referenced Nov 27, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|