fix: correct announcement API endpoint and add optional content fields #20

Merged
naomi merged 4 commits from fix/announce into main 2026-03-23 15:59:42 -07:00
Owner

Summary

  • Fixes the announcement API URL from /announcement to /api/announcement
  • Adds three optional additional content text inputs (Parts 2–4) to the announcement modal
  • The bot concatenates all non-empty content fields with double newlines before forwarding to the API
  • Only the first content field and the category selector remain required

Test Plan

  • Run /announcement and verify the modal opens with four content fields and a category selector
  • Submit with only the first content field filled — verify it sends correctly
  • Submit with multiple content fields filled — verify they are concatenated in the API request
  • Verify the API no longer returns HTTP 405
## Summary - Fixes the announcement API URL from `/announcement` to `/api/announcement` - Adds three optional additional content text inputs (Parts 2–4) to the announcement modal - The bot concatenates all non-empty content fields with double newlines before forwarding to the API - Only the first content field and the category selector remain required ## Test Plan - [ ] Run `/announcement` and verify the modal opens with four content fields and a category selector - [ ] Submit with only the first content field filled — verify it sends correctly - [ ] Submit with multiple content fields filled — verify they are concatenated in the API request - [ ] Verify the API no longer returns HTTP 405
hikari added 2 commits 2026-03-23 15:06:44 -07:00
feat: add three optional content fields to announcement modal
Node.js CI / CI (pull_request) Successful in 1m41s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 2m0s
1c4bc9ca03
hikari added 1 commit 2026-03-23 15:08:47 -07:00
refactor: replace entitledUsers owner gate with naomiId
Node.js CI / CI (pull_request) Failing after 1m5s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m48s
b5d29025b3
hikari added 1 commit 2026-03-23 15:25:15 -07:00
chore: commit naomiId entitlement config
Node.js CI / CI (pull_request) Successful in 43s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m6s
ee796b6e57
naomi merged commit 39b22c9514 into main 2026-03-23 15:59:42 -07:00
naomi deleted branch fix/announce 2026-03-23 15:59:42 -07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari#20