aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/posts-list.fixture.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite PostsList componentArmand Philippot2023-11-131-62/+0
| | | | | | | | | | | | | | | * 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)
* refactor(components): replace Summary component with PostPreviewArmand Philippot2023-11-111-0/+62
| | | | | | | | | | | * rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component
* refactor(components): rewrite List componentArmand Philippot2023-11-111-63/+0
| | | | | | | | | * change `items` prop to children * replace `kind` prop with `isHierarchical`, `isOrdered` & `isInline` props * add `hideMarker` prop * add `spacing` prop to control item spacing * move lists styles to Sass placeholders to avoid repeats because of headless WordPress
* chore: add a search form when posts list prints no resultsArmand Philippot2022-05-241-0/+2
|
* fix: ensure all topics/thematics have the base urlArmand Philippot2022-05-231-4/+4
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-0/+61