1- import { LearnPagePath } from "@/components/learn-aggregator/learn-pages"
2- import { Kind , Topic } from "@/resources/types"
1+ import type { LearnPagePath } from "@/components/learn-aggregator/learn-pages"
2+ import type { Kind , Topic } from "@/resources/types"
3+ import type { WorkingGroupMeeting } from "@/../scripts/sync-working-groups/sync-working-groups"
34
45// TODO: If the pages need to be customized further, consider flattening [category]/page.tsx
56// into multiple page files and defining the following texts in usual JSX.
@@ -95,6 +96,15 @@ export const categoriesConfig: CategoriesConfig = {
9596 heading : "Latest updates on federation & composition" ,
9697 text : "Read the latest announcements and technical deep dives." ,
9798 } ,
99+ event : {
100+ heading : "Help shape the standards" ,
101+ text : "Join the Composite Schemas Working Group meetings to participate in the latest developments in Federation and Composite Schemas." ,
102+ predicate : ( event : WorkingGroupMeeting ) => {
103+ return (
104+ event . summary ?. toLowerCase ( ) . includes ( "composite schemas" ) || false
105+ )
106+ } ,
107+ } ,
98108 } ,
99109 } ,
100110 ai : {
@@ -109,6 +119,15 @@ export const categoriesConfig: CategoriesConfig = {
109119 heading : "Latest insights on AI & GraphQL" ,
110120 text : "Read the latest announcements and technical deep dives." ,
111121 } ,
122+ event : {
123+ heading : "AI Working Group" ,
124+ text : "Help define the intersection of GraphQL and AI. Join the working group meetings to contribute to the latest developments." ,
125+ predicate : ( event : WorkingGroupMeeting ) => {
126+ return (
127+ event . summary ?. toLowerCase ( ) . includes ( "ai working group" ) || false
128+ )
129+ } ,
130+ } ,
112131 } ,
113132 } ,
114133 security : {
@@ -152,6 +171,7 @@ export const sectionKindNames: Record<Kind, string> = {
152171 book : "Books" ,
153172 "blog-or-newsletter" : "Blogs & Newsletters" ,
154173 docs : "Documentation" ,
174+ event : "Upcoming events" ,
155175}
156176
157177export function slugify ( name : string ) : string {
@@ -177,6 +197,11 @@ type CategoriesConfig = {
177197 text : string
178198 docs ?: LearnPagePath [ ]
179199 }
200+ event ?: {
201+ heading : string
202+ text : string
203+ predicate : ( event : WorkingGroupMeeting ) => boolean
204+ }
180205 }
181206 }
182207}
0 commit comments