Skip to content

design: add supplier FAQ accordion with search - #504

Open
KingDavid9999 wants to merge 2 commits into
Chronopay-Org:mainfrom
KingDavid9999:fixes-issue-#258
Open

design: add supplier FAQ accordion with search#504
KingDavid9999 wants to merge 2 commits into
Chronopay-Org:mainfrom
KingDavid9999:fixes-issue-#258

Conversation

@KingDavid9999

@KingDavid9999 KingDavid9999 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Add SupplierFaqAccordion to the supplier profile, implementing the
WAI-ARIA disclosure pattern with searchable question/answer/category
matching, matched-term highlighting, and deep-linking via URL hash
(expand + scroll + focus on load, hash sync on toggle).

  • Keyboard support: Arrow Up/Down (wrapping), Home/End across visible headers
  • Collapsed panel content is unmounted (not just hidden) to avoid stale
    text for assistive tech and in-page search
  • Live region announces result-count changes on search
  • Covers long answers, empty search, empty entry list, unknown deep-link
    hash, dark mode, and RTL

Adds 25 tests (100% line/function coverage on the component) and
design-system documentation.

Note: npm run build fails on main due to pre-existing issues unrelated
to this change (theme-switcher.tsx default-export mismatch,
dashboard-data.ts missing exports referenced by design-review/page.tsx).
Verified this change introduces zero new lint or build errors.

CI lint failure is pre-existing on main, unrelated to this change (34 errors across ~15 files not touched by this PR — parsing errors, missing component references, setState-in-effect violations).

Closes #258

Add SupplierFaqAccordion to the supplier profile, implementing the
WAI-ARIA disclosure pattern with searchable question/answer/category
matching, matched-term highlighting, and deep-linking via URL hash
(expand + scroll + focus on load, hash sync on toggle).

- Keyboard support: Arrow Up/Down (wrapping), Home/End across visible headers
- Collapsed panel content is unmounted (not just hidden) to avoid stale
  text for assistive tech and in-page search
- Live region announces result-count changes on search
- Covers long answers, empty search, empty entry list, unknown deep-link
  hash, dark mode, and RTL

Adds 25 tests (100% line/function coverage on the component) and
design-system documentation.

Note: `npm run build` fails on main due to pre-existing issues unrelated
to this change (theme-switcher.tsx default-export mismatch,
dashboard-data.ts missing exports referenced by design-review/page.tsx).
Verified this change introduces zero new lint or build errors.

Closes Chronopay-Org#258
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@KingDavid9999 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

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.

[UI/UX Design] Design a supplier profile FAQ accordion with search

1 participant