Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin/Backend] App-wide notifications for booth admin users #60

Open
somnisomni opened this issue Jul 19, 2024 · 0 comments
Open

[Admin/Backend] App-wide notifications for booth admin users #60

somnisomni opened this issue Jul 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@somnisomni
Copy link
Owner

somnisomni commented Jul 19, 2024

  • Add notification panel in admin layout
  • Store read status per admin users
  • App update chagelog, maintenance, etc...
  • Notification can be added in superadmin page
  • Content is in Markdown format – parse in frontend

Notification types

  • App update notice
  • Fair info changes
  • Maintenance
  • Known Issues
  • Emergency notice
  • General notice
  • (Unspecified)

New DB schema — Notification

  • id int not null primary key auto increment
  • title varchar(256) not null
  • type enum not null default "unspecified" *see above*
  • visibility enum[adminOnly, all] not null default "adminOnly"
  • content text not null *markdown text*
  • createdDate managed by Sequelize but this will be used in the app too

DB schema alteration — Account

  • create readNotificationIds json(array) null

New Backend APIs

  • GET /admin/notification ‐ Gets all notifications regardless of read status
  • POST /admin/notification – Create a new notification
  • GET /admin/notification/:id – Get single notification
  • PATCH /admin/notification/:id – Edit an existing notification
  • DELETE /admin/notification/:id – Delete an existing notification
  • POST /admin/notification/:id/read – Update read status of specified notification by adding notification ID in readNotificationIds of current authenticated account
@somnisomni somnisomni added the enhancement New feature or request label Jul 19, 2024
@somnisomni somnisomni added this to the Release v0.7.0 milestone Jul 19, 2024
@somnisomni somnisomni changed the title [Admin] App-wide notifications for booth admin users [Admin/Backend] App-wide notifications for booth admin users Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant