Skip to content

feat(faq): dynamic numbering for categories and questions#74

Merged
xorinf merged 1 commit into
vicharanashala:feat/main-cat-yhfrom
shreyasmene06:feat/main-cat-yh
Jun 21, 2026
Merged

feat(faq): dynamic numbering for categories and questions#74
xorinf merged 1 commit into
vicharanashala:feat/main-cat-yhfrom
shreyasmene06:feat/main-cat-yh

Conversation

@shreyasmene06

@shreyasmene06 shreyasmene06 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Wire up applyQuestionNumbers to generate dynamic category numbers (1, 2, 3…) and question numbers (1.1, 1.2…) across all FAQ views. Numbers auto-recompute on fetch based on sorted category order, so new FAQs and categories renumber automatically. Display updated in category filter pills, category headers, default grid cards, and top-questions lists.

Changes

  • Import and apply applyQuestionNumbers on FAQ fetch and retry
  • Sort categories by computed categoryNumber for consistent display order
  • Add numbered prefixes to category pills, headers, and cards
  • Sub-question numbers (1.1, 1.2…) display in top-questions lists and expanded views

Test Plan

  • Category numbers display correctly (1, 2, 3…)
  • Question numbers display correctly (1.1, 1.2…)
  • Adding a new FAQ recomputes numbers automatically
  • Adding a new category inserts at correct number position
  • Detail view shows question number
  • Search results show question numbers

Wire up applyQuestionNumbers to generate dynamic category numbers (1, 2, 3…)
and question numbers (1.1, 1.2…) across all FAQ views. Numbers auto-recompute
on fetch based on sorted category order, so new FAQs/categories renumber
automatically. Display: category filter pills, headers, default cards, and
top-questions lists all show numbered prefixes.
@xorinf xorinf self-requested a review June 21, 2026 11:29
@xorinf xorinf merged commit 396819d into vicharanashala:feat/main-cat-yh Jun 21, 2026
@xorinf xorinf removed their request for review June 21, 2026 15:53
xorinf added a commit that referenced this pull request Jun 21, 2026
feat(faq): dynamic numbering for categories and questions

Re-merging the dynamic-numbering feature originally landed in PR #74,
which had become orphaned. The change introduces applyQuestionNumbers()
in faqUtils to assign stable categoryNumber / questionNumber fields so
the 1, 2, 3\u2026 labels stay in sync with display order regardless of
data source order.
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.

2 participants