aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-comments.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(pages): refine Article pagesArmand Philippot2023-12-011-32/+0
| | | | | | | | | | | * use rehype to update code blocks class names * fix widget heading level (after a level 1 it should always be a level 2 and not 3) * replace Spinner with LoadingPage and LoadingPageComments components to keep layout coherent * refactor useArticle and useComments hooks * fix URLs in JSON LD schema * add Cypress tests
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-271-6/+15
| | | | | | | | | | | | The Typescript mapped types was useful for autocompletion in fetchers but their are harder to maintain. I think it's better to keep each query close to its fetcher to have a better understanding of the fetched data. So I: * colocate queries with their own fetcher * colocate mutations with their own mutator * remove Typescript mapped types for queries and mutations * move data convertors inside graphql services * rename most of data types and fetchers
* build(components, hooks): fix type errors introduced by deps upgradeArmand Philippot2023-11-161-0/+23
Since #7e37f2b Typescript was complaining about some types.