Feedback Status Update Script
Updated: 2026-03-25
Purpose
Provide an explicit, auditable way to update production feedback item status through the Bizcom admin API.
This script exists because:
scripts/fetch-feedback.shis read-only- nightly feedback hygiene should not rely on vague manual steps
- status write-back must be explicit and reviewable
Script
scripts/update-feedback-status.mjs
Actual path:
scripts/update-feedback-status.mjs
What it does
- reads Bizcom admin credentials from the secure workspace file
- logs into
https://bizcom.ph - captures the CSRF token from login response
- sends
PATCH /api/admin/feedback/:id - prints the updated feedback item JSON
Supported statuses
newacknowledgedin_progressresolveddismissed
Usage
bash
node scripts/update-feedback-status.mjs \
--id <feedback-id> \
--status in_progress \
--notes "Tracked in PR #143; merged to staging, pending validation"Safety rules
- Only update feedback status after verifying GitHub and release state when relevant
- Do not mark
resolvedwithout production evidence unless an explicit policy says otherwise - Prefer
dismissedfor stale/duplicate/superseded reports rather than leaving them asnew - Record the reason in notes when status meaning may not be obvious later
Recommended nightly usage pattern
- fetch production feedback
- verify GitHub state
- decide status changes
- apply only the changes that are clearly justified
- update durable docs with what changed and why
Current limitation
This script performs one update per invocation. That is intentional for now: lower blast radius, easier auditing, simpler failure handling.
