Skip to content

Release 2026.9.1 - #298

Merged
abroa01 merged 6 commits into
mainfrom
development
Feb 25, 2026
Merged

abroa01 merged 6 commits into
mainfrom
development

Conversation

@abroa01

@abroa01 abroa01 commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator

Proper Error Messages to UI

Copilot AI and others added 6 commits February 25, 2026 16:07
Co-authored-by: abroa01 <142853163+abroa01@users.noreply.github.com>
- Add `errorCode` field to all /send-notification error responses for
  machine-readable classification (user-not-found, no-devices, etc.)
- Map Meteor.Error codes to proper HTTP status codes instead of
  hardcoding 404 for all client-safe errors
- Extract shared error helpers into utils/errorHelpers.js:
  - classifyError() + ERROR_HINTS for client-side UI display
  - mapMeteorError() + HTTP_STATUS_MAP for server-side responses
- Refactor adminApi.js catch blocks to use shared mapMeteorError()
- Fix ReferenceError: `username` not defined in admin login catch block
- Add warning toast type and session-expiry detection to admin dashboard
- Show actionable hints and HTTP status in WebNotificationPage errors
fix: surface Meteor.Error reason in /send-notification responses
@abroa01
abroa01 merged commit 701c6ee into main Feb 25, 2026
2 checks passed
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.

2 participants