aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page/page-layout.test.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace PageLayout template with PageArmand Philippot2023-11-201-113/+0
| | | | | | | | | * split pages in smaller components (it is both easier to maintain and more readable, we avoid the use of fragments in pages directory) * extract breadcrumbs from article tag (the navigation is not related to the page contents) * remove useReadingTime hook * remove layout options except `isHome`
* refactor(components): rewrite CommentsList componentArmand Philippot2023-11-111-2/+9
| | | | | | * use ApprovedCommentProps to make CommentData type * add the author name of the parent on reply form heading * add tests
* refactor(components): rewrite CommentForm componentArmand Philippot2023-11-111-1/+1
| | | | | | * remove `Notice` prop to handle it directly in the form * replace `saveComment` prop with `onSubmit` * use `useForm` hook to handle the form
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-111-10/+8
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* build: convert project to esmArmand Philippot2023-10-241-0/+1
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-1/+1
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-2/+2
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* test: install and configure cypressArmand Philippot2022-06-021-1/+1
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-12/+1
|
* fix: render all images unoptimized in StorybookArmand Philippot2022-05-221-2/+0
| | | | | | There is a bug with next/image and Storybook. I was manually adding `unoptimized` to images. Instead we can use a workaround by adding an extra config in Storybook `preview.js` file.
* chore: fix minor styles/typescript issues introduced during refactoringArmand Philippot2022-05-181-0/+1
|
* refactor: use custom hook for breadcrumb items and schemaArmand Philippot2022-05-161-6/+35
|
* chore: add a PageLayout componentArmand Philippot2022-04-251-0/+90