mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat: add push notifications with VAPID (#110)
* Add OAuth authentication support for MCP servers * Improve mobile text sizing with responsive text classes * refactor: improve virtualized text viewer with React Query infinite scroll and simplified buffering * Add push notifications with VAPID and PWA support * feat: add VAPID environment variables for push notifications * Replace SquareFill with MicOff icon for stop recording buttons * Send push notifications when app is not focused * Fix stop generation button icons to use X instead of MicOff * feat: enhance push notification logging and debugging - Add structured logging throughout push notification flow - Improve error handling with detailed diagnostics - Add /api/notifications/debug endpoint for troubleshooting - Enhanced test notification response with per-subscription results - Add service worker logging and better install/activate handling * Improve VAPID push notification configuration with validation and better defaults - Add validation warnings for VAPID_SUBJECT format (requires mailto: prefix for iOS/Safari) - Expose VAPID details via notifications API endpoint - Update default VAPID_SUBJECT from mailto:admin@opencode.local to empty string - Enhance VAPID logging with key lengths and subject info - Improve documentation in .env.example with setup instructions * Fix notification URL to use repo ID instead of filesystem path * Clean up push notification logging and debug endpoints * Add push notifications documentation
This commit is contained in:
1 parent
3d9e9b8322
commit
ae644e851d
47 files changed
+4506
-67
No files matched your search
@@ -30,6 +30,12 @@ import {
|
||||
SessionSchema,
|
||||
MessageSchema,
|
||||
} from '../schemas/opencode'
|
||||
import {
|
||||
NotificationPreferencesSchema,
|
||||
PushSubscriptionRequestSchema,
|
||||
PushSubscriptionRecordSchema,
|
||||
PushNotificationPayloadSchema,
|
||||
} from '../schemas/notifications'
|
||||
|
||||
export type UserPreferences = z.infer<typeof UserPreferencesSchema>
|
||||
export type SettingsResponse = z.infer<typeof SettingsResponseSchema>
|
||||
@@ -58,6 +64,11 @@ export type FilePatchRequest = z.infer<typeof FilePatchRequestSchema>
|
||||
export type Session = z.infer<typeof SessionSchema>
|
||||
export type Message = z.infer<typeof MessageSchema>
|
||||
|
||||
export type NotificationPreferences = z.infer<typeof NotificationPreferencesSchema>
|
||||
export type PushSubscriptionRequest = z.infer<typeof PushSubscriptionRequestSchema>
|
||||
export type PushSubscriptionRecord = z.infer<typeof PushSubscriptionRecordSchema>
|
||||
export type PushNotificationPayload = z.infer<typeof PushNotificationPayloadSchema>
|
||||
|
||||
export interface ErrorResponse {
|
||||
error: string
|
||||
details?: unknown
|
||||
|
||||
Reference in new issue
Block a user