aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/helpers/convert-post-preview-to-article-preview.test.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(pages,services): make thematics & topics pages usable againArmand Philippot2023-11-291-2/+2
| | | | | | | | | | When I refactored the fetchers and convertors in #f111685 I forgot to convert WPThematicPreview and WPTopicPreview so the thematics and topics pages was broken. I also: * removed the ToC added by error in #70b4f63 * fix heading styles * fix website url in topics pages
* refactor(services, types): reorganize GraphQL fetchers and data typesArmand Philippot2023-11-271-0/+130
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