Categories refactor (#9233)

* feat: wip categories pagination

* feat: add subCategoriesPerPage setting

* feat: add load more sub categories button to category page

* fix: openapi spec

* feat: show sub categories left on category page

hide button when no more categories left

* breaking: rename categories to allCategories on /search

categories contains the search results

* fix: spec

* refactor: remove cidsPerPage

* fix: tests

* feat: use component for subcategories

* fix: prevent negative subCategoriesLeft
This commit is contained in:
Barış Soner Uşaklı
2021-02-01 15:19:32 -05:00
committed by GitHub
parent 4c12e0aaf8
commit d1364c3130
18 changed files with 152 additions and 27 deletions

View File

@@ -72,6 +72,9 @@ CategoryObject:
totalTopicCount:
type: number
description: The number of topics in the category
subCategoriesPerPage:
type: number
description: The number of subcategories to display on the categories and category page
- type: object
description: Optional properties that may or may not be present (except for `cid`, which is always present, and is only here as a hack to pass validation)
properties: