GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 25, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@claude
feat(pm-aggregator): unified push registry + needs-user class (#14084 …
e74dda7
…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

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

claude added 3 commits November 25, 2026 01:26
@claude
test(pm-aggregator): follow the needs-user class rename; pin a prompt…
6b455cb
… literal type

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude
fix(pm-aggregator): keep a subscription's client when a resubscribe o…
ba99cb4
…mits it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude
test(pm-dashboard-backup): expected set grows by the five push regist…
1085fb1
…ry exports

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 marked this pull request as ready for review November 25, 2026 01:51
@dezren39
dezren39 merged commit b8b628f into main Nov 25, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the claude/project-thread-ozbjg5 branch November 25, 2026 01:51
This was referenced Nov 25, 2026
PM push unification: one registry, one sender, the Android app as a first-class endpoint #14084
Open
feat(pm-aggregator): needs-user list, send back and priority (#14084 S1) #14764
Merged
This was referenced Nov 27, 2026
PM push delivery dark since 2026-11-17: no push subscriptions registered in the alerts store #14048
Open
Push unification S2: unified sends ledger + observability (#14084) #16458
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@dezren39 @claude
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.