Skip to content

FAQ: connect existing FAQ page to GET /api/v1/faqs - #488

Open
tamnhule wants to merge 2 commits into
mainfrom
tamnhule/feature/faq-api-integration
Open

FAQ: connect existing FAQ page to GET /api/v1/faqs#488
tamnhule wants to merge 2 commits into
mainfrom
tamnhule/feature/faq-api-integration

Conversation

@tamnhule

@tamnhule tamnhule commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Removes the hardcoded mockFaqData and wires the existing FAQs page up to the real backend endpoint (GET /api/v1/faqs) via the shared api.js axios instance. Existing loading, error, empty-state, search, and expand/collapse behavior is unchanged.

Removes the hardcoded mockFaqData and wires the existing FAQs page up to the real backend endpoint (GET /api/v1/faqs) via the shared api.js axios instance. Existing loading, error, empty-state, search, and expand/collapse behavior is unchanged.
Reads err.response.data.message from the backend's error response first, falling back to the generic axios err.message, then the existing fallback string. Gives users a more accurate error when the /faqs API call fails.
@tamnhule
tamnhule marked this pull request as ready for review August 9, 2026 13:02
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.

1 participant