aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/posts-list/posts-list.tsx
Commit message (Collapse)AuthorAgeFilesLines
* fix(layout): refine pagination when JS is disabledArmand Philippot2023-12-191-2/+4
| | | | | | | | * fix the total number of pages * hide the load more button and the progress bar * remove the informative notice since it is no longer necessary * if the page number is equal to 1, use Blog route directly (NextJS is not able to redirect the user when JS is disabled)
* refactor(stories): migrate stories to CSF3 formatArmand Philippot2023-12-151-1/+1
|
* refactor(pages): refine Topic pagesArmand Philippot2023-12-011-1/+13
| | | | | | * add useTopic and useTopicsList hooks to refresh data * add a table of contents * add Cypress tests
* refactor(components): rewrite PostsList componentArmand Philippot2023-11-131-0/+236
* remove NoResults component and move logic to Search page * add a usePostsList hook * remove Pagination from PostsList (it is only used if javascript is disabled and not on every posts list) * replace `byYear` prop with `sortByYear` * replace `loadMore` prop with `onLoadMore` * remove `showLoadMoreBtn` (we can use `loadMore` prop instead to determine if we need to display the button) * replace `titleLevel` prop with `headingLvl` * add `firstNewResult` prop to handle focus on the new results when loading more article (we should not focus a useless span but the item directly)