diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-01 13:26:44 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-01 17:23:19 +0100 |
| commit | dfdbf6cac1fe3719dc71e130129d28e04ba4e225 (patch) | |
| tree | f865bdad53cef95bdfb10fc04174a0173ab36f15 /src/types | |
| parent | 5b762b1b669454a89899c4bdf6008027d9615acf (diff) | |
refactor(pages): refine Thematic pages
* add a table of contents (however posts heading are
not included)
* rename posts list section title
* add a useThematic hook to refresh thematic contents
* add a useThematicLists hook to refresh thematics list
* add a `notIn` filter in thematics list fetcher to directly
remove unwanted thematics
* add Cypress tests
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/data.ts | 2 | ||||
| -rw-r--r-- | src/types/gql.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/types/data.ts b/src/types/data.ts index 21f773e..80a8bf3 100644 --- a/src/types/data.ts +++ b/src/types/data.ts @@ -273,6 +273,7 @@ export type ThematicMeta = Omit<PageMeta, 'wordsCount'> & { }; export type Thematic = Page & { + id: number; meta: ThematicMeta; }; @@ -283,5 +284,6 @@ export type TopicMeta = Omit<PageMeta, 'wordsCount'> & { }; export type Topic = Page & { + id: number; meta: TopicMeta; }; diff --git a/src/types/gql.ts b/src/types/gql.ts index cec66c6..ac3ac36 100644 --- a/src/types/gql.ts +++ b/src/types/gql.ts @@ -70,4 +70,5 @@ export type GraphQLTaxonomyOrderBy = { export type GraphQLTaxonomyWhere = { search?: string; title?: string; + notIn?: number[]; }; |
