Skip to content

feat: admin maintenance banner#691

Merged
greatest0fallt1me merged 2 commits into
CalloraOrg:mainfrom
Ugooweb:feature/maintenance-banner
Jul 24, 2026
Merged

feat: admin maintenance banner#691
greatest0fallt1me merged 2 commits into
CalloraOrg:mainfrom
Ugooweb:feature/maintenance-banner

Conversation

@Ugooweb

@Ugooweb Ugooweb commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Closes #622

This PR introduces the /api/admin/maintenance/banner endpoint which allows administrators to set and update the system-wide maintenance banner. The existing implementation for the banner was successfully hooked up and mounted onto the admin router.

Changes

  • Mounted createMaintenanceBannerRouter to /maintenance/banner within src/routes/admin.ts.
  • Validated inputs via the underlying route implementation (ensures message is non-empty, and isActive is a boolean).
  • Included structured audit logging for banner updates.

Testing

  • Tests are included for the /api/admin/maintenance/banner route in banner.test.ts ensuring success behavior.
  • Validated edge cases where the input is missing or malformed (e.g., returns 400 BadRequest if message is empty or if isActive is a string instead of boolean).
  • Run the repository's standard test suite to ensure existing components and endpoints remain unaffected.

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Ugooweb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit e4af565 into CalloraOrg:main Jul 24, 2026
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Great work, this looks good. Thanks for the contribution!

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.

Add /api/admin/maintenance/banner

2 participants