aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comments-list.test.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite CommentsList componentArmand Philippot2023-11-111-12/+0
| | | | | | * use ApprovedCommentProps to make CommentData type * add the author name of the parent on reply form heading * add tests
* refactor(components): split Comment component into 3 componentsArmand Philippot2023-11-111-2/+1
| | | | | | | | | * add ApprovedComment, PendingComment and ReplyCommentForm components * let consumer handle reply form visibility * move structured data into article page (each article already has the comments data and already handle json ltd schema so I prefered to move the schema in the final consumer instead of adding a script element foreach comment)
* refactor(components): rewrite CommentForm componentArmand Philippot2023-11-111-2/+2
| | | | | | * remove `Notice` prop to handle it directly in the form * replace `saveComment` prop with `onSubmit` * use `useForm` hook to handle the form
* 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-1/+1
| | | | | | 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-61/+3
|
* chore: add Article pagesArmand Philippot2022-05-151-1/+5
|
* chore: add a CommentsList componentArmand Philippot2022-04-221-0/+66