Commit Graph

143 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
45cfb3691e feat: show unread categories based on unread topics (#12317)
* feat: show unread categories based on unread topics

if a category has unread topics in one of its children then mark category unread
deprecate cid:<cid>:read_by_uid sets
upgrade script to remove the old sets

* chore: up harmony
2024-01-30 17:47:06 -05:00
Peter Jaszkowiak
b56d9e12b5 chore: eslint prefer-arrow-callback 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5 chore: eslint prefer-template 2021-02-08 18:06:44 -05:00
Barış Soner Uşaklı
47299ea587 Categories refactor (#9257)
* 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

* feat: new category filter/search WIP

* feat: remove categories from /tag

* fix: dont load all categories when showing move modal

* feat: allow adding custom categories to list

* breaking: dont load entire category tree on post queue

removed unused code
add hooks to filter/selector
add options to filter/selector

* feat: make selector modal work again

* feat: replace old search module

* fix: topic move selector

* feat: dont load all categories on create category modal

* fix: fix more categorySelectors

* feat: dont load entire category tree on group details page

* feat: dont load all categories on home page and user settings page

* feat: add pagination to /user/:userslug/categories

* fix: update schemas

* fix: more tests

* fix: test

* feat: flags page, dont return entire category tree

* fix: flag test

* feat: categories manage page

dont load all categories
allow changing root category
clear caches properly

* fix: spec

* feat: admins&mods page

dont load all categories

* fix: spec

* fix: dont load all children when opening dropdown

* fix: on search results dont return all children

* refactor: pass all options, rename options.cids to options.selectedCids

* fix: #9266

* fix: index 0

* fix: spec

* feat: #9265, add setObjectBulk

* refactor: shoter updateOrder

* feat: selectors on categories/category

* fix: tests and search filter

* fix: category update test

* feat: pagination on acp categories page

show order in set order modal

* fix: allow drag&drop on pages > 1 in /admin/manage/categories

* fix: teasers for deep nested categories

fix sub category display on /category page

* fix: spec

* refactor: use eslint-disable-next-line

* refactor: shorter
2021-02-07 15:09:52 -05:00
Barış Soner Uşaklı
d1364c3130 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
2021-02-01 15:19:32 -05:00
Barış Soner Uşaklı
aad0880f7c feat: add filter:categories.getRecentTopicReplies
pass req.query to getRecentTopicReplies
2020-05-08 22:36:16 -04:00
Baris Usakli
e9fd49e234 feat: convert categories controller to async/await 2019-08-07 13:46:19 -04:00
Barış Soner Uşaklı
53ad2bbd6e Categories optimize (#6999)
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
2018-11-25 19:08:38 -05:00
Barış Soner Uşaklı
cf1173b0c4 closes https://github.com/NodeBB/nodebb-theme-persona/issues/408 2018-10-10 17:24:57 -04:00
Baris Usakli
f177b01022 closes #6147 2017-12-06 11:54:08 -05:00
Barış Soner Uşaklı
c406d26beb if route is home display home as title 2017-12-05 16:21:06 -05:00
Barış Soner Uşaklı
fe3a75812f closes #6113 closes #6114 2017-11-27 14:07:59 -05:00
Baris Usakli
38e52a65be fix breadcrumbs and home /api route not loading 2017-11-15 14:48:28 -05:00
Barış Soner Uşaklı
cc4f4e7282 style changes 2017-07-15 16:57:41 -04:00
barisusakli
33e8ecc1f4 closes #5404 2017-04-22 19:07:57 -04:00
barisusakli
a3b4c83e8b remove description from categories
it gets added in src/meta/tags
2017-03-03 19:59:37 +03:00
barisusakli
ea871384d8 remove fallbacks 2017-03-03 16:45:18 +03:00
barisusakli
3b8d14bf12 closes #5493 2017-03-03 16:15:01 +03:00
barisusakli
bb1045c5a0 remove unused require 2017-02-28 12:29:49 +03:00
barisusakli
feb359f7d4 closes #5479 2017-02-27 20:16:44 +03:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
07fe5057e1 make sure validator.escape() receives strings only 2016-08-27 15:45:15 +03:00
barisusakli
b3fa5583f8 closes #4650 2016-05-16 12:34:47 +03:00
psychobunny
bafbcad163 use filter:categories.build instead of .get 2016-05-06 03:54:33 -04:00
psychobunny
0287703047 missed plugins req 2016-05-06 00:07:05 -04:00
psychobunny
458d4996a6 filter:categories.get 2016-05-06 00:05:58 -04:00
barisusakli
25f3a31ff1 closes #4587 2016-04-30 10:47:28 +03:00
Raphael Beer
006496efe3 Add pid to teaser ajaxify data 2016-04-10 14:09:33 +02:00
barisusakli
c7ca045d0b fix teaserTimestamp 2016-03-03 20:28:30 +02:00
barisusakli
6b9a07bbcf closes #4132 2016-02-01 19:31:13 +02:00
barisusakli
96aa94ee10 refactor categories 2016-01-06 12:49:27 +02:00
barisusakli
53d29e29af performance improvements
store parsed category description
removed mongo _key from returns
dont get category teaser for parent
2015-10-18 18:30:17 -04:00
barisusakli
fa4875d78d category teaser 2015-10-07 17:36:27 -04:00
barisusakli
2d96cdba1c closes #3720 2015-10-07 16:13:42 -04:00
barisusakli
df95d47c4c ocd 2015-09-29 20:31:40 -04:00
barisusakli
5a3a627fcd fix rel tag urls 2015-09-29 20:30:42 -04:00
barisusakli
5950f97f96 more refactors 2015-09-25 17:38:58 -04:00
barisusakli
f3b6a5fbb9 generic getObject 2015-09-21 12:59:41 -04:00
barisusakli
c139dfa843 closes #3631 2015-09-20 16:06:21 -04:00
barisusakli
8af64ba984 closes #3626 2015-09-17 13:37:04 -04:00
barisusakli
cb9b51e8a5 closes #3475 2015-09-11 23:57:46 -04:00
barisusakli
25502f0687 closes #3508 2015-08-28 14:31:41 -04:00
psychobunny
61cc0ee597 /categories: og:title and <title> should be the same 2015-08-27 15:07:26 -04:00
barisusakli
eaefd9d24c remove meta/title.js and meta.title.build #3481 2015-08-26 15:55:00 -04:00
barisusakli
7db41275a3 closes #3227 2015-08-19 15:53:37 -04:00
barisusakli
5b87af4389 closes #3447
recursively get all children
calculate topic/post count from children
new sorted set `cid:<id>:children`
fix search query params
2015-08-18 14:17:25 -04:00
barisusakli
fe5f1b8c1d moved recent popular 2015-08-17 16:38:12 -04:00