feat(kb): filter article list by category from category cards #206
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-193-kb-category-card-filter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Category cards on the KB home previously all navigated to the unfiltered
article list because the card only received title/description and the list
route had no category parameter. Add a
categoryslot to theKBArticleListroute (/kb/articles?:q&:tag&:category), pass eachcategory id into
CategoryCard, and push it on click so the card lands onthe list pre-filtered to that category.
On the list page, seed the category dropdown from the new
initial_categoryprop (kept in sync via
use_reactivelike the tag filter), so the existingfetch issues
GET /kb/articles?category_id=...and the dropdown reflectsthe selection. The page heading now shows the selected category name. The
dropdown's onchange pushes the route so the filtered view is shareable and
back-button-safe, and selecting "All Categories" clears the filter. The
breadcrumb category links and the home search
?q=forwarding are updatedto carry the new route field unchanged in behavior.
#MAPPS-193