aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.test.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): split Comment component into 3 componentsArmand Philippot2023-11-111-44/+0
| | | | | | | | | * 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)
* feat(components): add a Time componentArmand Philippot2023-11-111-8/+2
| | | | | | Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task.
* refactor(components): rewrite DescriptionList componentArmand Philippot2023-11-111-13/+15
| | | | | | | | | | | | | * add a `spacing` prop * replace `layout` prop with `isInline` prop * remove `items` prop (and classNames props) in favor of new components: Description, Group, Term * remove `withSeparator` prop (CSS content is announced by screen readers and Firefox/Safari have no support for alternative text so the consumer should add itself an element with `aria-hidden` if it need a separator) Be aware, Meta component and its consumers can be visually broken, they should be refactored before using them in production.
* 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.
* chore: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-1/+1
|
* test: install and configure cypressArmand Philippot2022-06-021-1/+1
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* test: fix theme toggle and comment testsArmand Philippot2022-05-241-1/+1
|
* refactor: reduce the number of data transformationArmand Philippot2022-05-231-28/+11
|
* chore: add Article pagesArmand Philippot2022-05-151-2/+4
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-1/+1
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* chore: add a CommentsList componentArmand Philippot2022-04-221-2/+0
|
* chore: add a Comment componentArmand Philippot2022-04-211-0/+64