feat(react)!: trim dead device/preference delegates from useClientNotifications (objectstack#3612 companion) - #2862
Merged
Conversation
…ifications (objectstack#3612 companion) registerDevice / getPreferences / updatePreferences delegated to @objectstack/client methods deleted in objectstack#3612 — the /notifications/devices and /notifications/preferences server routes they targeted were never built, so every call already errored at runtime. The hook keeps fetchNotifications and markAsRead (dispatcher-served and route-ledgered). No in-repo consumer destructured the removed functions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LX9ut3MK3KykE11S9bJmv5
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
os-zhuang
marked this pull request as ready for review
July 27, 2026 09:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Companion to objectstack-ai/objectstack#3616 (closes objectstack#3612 there).
What
useClientNotificationsexposed three delegates —registerDevice,getPreferences,updatePreferences— that forwarded to@objectstack/clientmethods deleted in objectstack#3612: the/notifications/devicesand/notifications/preferencesserver routes they targeted were never built (ADR-0012's device-registry section was aspirational), so every call already surfaced an error at runtime today. This trims the delegates, theirUseClientNotificationsResultentries, and the stale JSDoc.Kept:
fetchNotificationsandmarkAsRead— both delegate to dispatcher-served, route-ledgered SDK methods (notifications.list/markRead).Breaking only for code destructuring the removed functions from the hook result; a repo-wide sweep found no consumer (the hook is barrel-exported only). Changeset:
@object-ui/reactminor withfeat(react)!marker, matching the launch-window convention.Verification
@object-ui/react: 12 test files / 91 tests pass;tsc -pclean (after rebuilding the stale local@object-ui/coredist — the one error seen was pre-existing staleness, not from this change).🤖 Generated with Claude Code
https://claude.ai/code/session_01LX9ut3MK3KykE11S9bJmv5
Generated by Claude Code