@@ -14,7 +14,6 @@ type FactCheckResponse = {
1414 items : RawArticle [ ] ;
1515} ;
1616
17- /** One page of the fact-checks listing: the mapped cards + paging metadata. */
1817export type FactCheckListing = {
1918 stories : Story [ ] ;
2019 page : number ;
@@ -27,9 +26,10 @@ export type FactCheckListing = {
2726 * team-member profiles on the `team` route — so we scope listings to language
2827 * routes. No column distinguishes a language route from any other collection
2928 * (`team`, `climate-change`, … are all `type: "collection"`), so this set is
30- * editorial knowledge, not derivable from the schema. Confirmed on staging;
31- * mirrors the language collections in docs/migration-plan.md. PR4 reuses these
32- * for the language filter.
29+ * editorial knowledge, not derivable from the schema.
30+ *
31+ * These should ideally not be hard-coded here and should be revisited once
32+ * we have cleaner data on staging.
3333 */
3434export const LANGUAGE_ROUTE_SLUGS = [
3535 "english" ,
@@ -38,10 +38,6 @@ export const LANGUAGE_ROUTE_SLUGS = [
3838 "african-languages" ,
3939] ;
4040
41- /**
42- * Fact-checks per listing page. One large feature + one secondary + an 8-card
43- * grid fill a page (mirrors the Figma layout). Pages are fetched from the DB by offset
44- */
4541export const FACT_CHECKS_PAGE_SIZE = 10 ;
4642
4743/** Fetch a content list's language articles, in curated order, as `Story[]`. */
@@ -84,10 +80,7 @@ export function getHeroPreview(): Promise<Story[]> {
8480 * that server-side (see `GET_FACT_CHECK_ARTICLES`), which also excludes the
8581 * other published content sharing these routes (homepage content-blocks,
8682 * editorial test stubs). The filter is route-agnostic, so it keeps working once
87- * fact-checks are published under topic desks (staging desks are empty;
88- * everything currently sits on `english`).
89- *
90- * `page` is 1-based and clamped to `[1, totalPages]`.
83+ * fact-checks are published under topic desks.
9184 */
9285export async function getFactChecks ( page = 1 ) : Promise < FactCheckListing > {
9386 const { total, items } = await gql < FactCheckResponse > (
0 commit comments