fix(post): show feedback when posts are held for moderation (#162)
* feat(pages): migrate accessibility page to CMS
- Update footer link from /accessibility to /p/accessibility
- Remove hardcoded accessibility page and test
* fix(ci): remove /accessibility from Lighthouse URLs
The hardcoded /accessibility page is replaced by the CMS page at
/p/accessibility which requires the API backend. Since the Lighthouse CI
only runs the Next.js standalone server, CMS pages can't be tested.
Accessibility coverage for CMS pages is handled by vitest-axe tests.
* fix(post): show feedback when posts are held for moderation
Previously, held posts appeared to succeed silently -- users saw
"Reply posted" or got redirected but their content never appeared.
Changes:
- Parse API error responses as JSON, show human-readable messages
instead of raw JSON strings (fixes #75)
- Add CreateTopicResponse/CreateReplyResponse types with
moderationStatus field (fixes #74)
- Show "pending review" message when topic/reply is held
- Detect "Onboarding required" errors and trigger the onboarding
modal instead of showing a raw error (fixes #76)
- Extract throwApiError() helper for consistent error handling
- Update tests for new error message format
Fixes barazo-forum/barazo-workspace#74
Fixes barazo-forum/barazo-workspace#75
Fixes barazo-forum/barazo-workspace#76
authored by