-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add GraphQL code generation #130
Conversation
…codegen configuration
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 10 out of 25 changed files in this pull request and generated 2 suggestions.
Files not reviewed (15)
- ios/NeulandNext.xcodeproj/project.pbxproj: Language not supported
- package.json: Language not supported
- src/generated/gql/fragment-masking.ts: Language not supported
- src/generated/gql/gql.ts: Language not supported
- src/generated/gql/index.ts: Language not supported
- src/data/licenses.json: Language not supported
- src/components/Rows/EventRow.tsx: Evaluated as low risk
- src/contexts/preferences.ts: Evaluated as low risk
- src/api/neuland-api.ts: Evaluated as low risk
- src/app/(flow)/onboarding.tsx: Evaluated as low risk
- src/components/Rows/SportsRow.tsx: Evaluated as low risk
- src/components/Cards/PopUpCard.tsx: Evaluated as low risk
- src/components/Events/ClEventsPage.tsx: Evaluated as low risk
- src/components/Events/ClSportsPage.tsx: Evaluated as low risk
- src/components/Map/MapScreen.tsx: Evaluated as low risk
Comments skipped due to low confidence (2)
src/app/(tabs)/(index)/index.tsx:71
- The query key 'announcenments' is misspelled. It should be 'announcements'.
queryKey: ['announcenments'],
src/app/(screens)/clEvent.tsx:43
- Ensure that
startDateTime
andendDateTime
are notnull
before callingformatFriendlyDateTimeRange
to prevent potential errors.
const dateRange = formatFriendlyDateTimeRange(clEvent?.startDateTime != null ? new Date(clEvent.startDateTime) : null, clEvent?.endDateTime != null ? new Date(clEvent.endDateTime) : null)
…n HomeScreen queryKey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 11 out of 26 changed files in this pull request and generated no suggestions.
Files not reviewed (15)
- ios/NeulandNext.xcodeproj/project.pbxproj: Language not supported
- package.json: Language not supported
- src/generated/gql/fragment-masking.ts: Language not supported
- src/generated/gql/gql.ts: Language not supported
- src/generated/gql/index.ts: Language not supported
- src/data/licenses.json: Language not supported
- src/contexts/preferences.ts: Evaluated as low risk
- src/components/Rows/SportsRow.tsx: Evaluated as low risk
- src/components/Events/ClSportsPage.tsx: Evaluated as low risk
- src/components/Cards/PopUpCard.tsx: Evaluated as low risk
- src/components/Events/ClEventsPage.tsx: Evaluated as low risk
- src/components/Map/MapScreen.tsx: Evaluated as low risk
- src/app/(flow)/onboarding.tsx: Evaluated as low risk
- src/app/(tabs)/(index)/index.tsx: Evaluated as low risk
- src/app/(screens)/sportsEvent.tsx: Evaluated as low risk
Comments skipped due to low confidence (2)
src/components/Rows/EventRow.tsx:40
- Ensure that the fallback behavior for the title field (i.e., using an empty string if the value is null or undefined) is covered by tests.
title={event.titles[i18n.language as LanguageKey] ?? ''}
src/api/neuland-api.ts:56
- Typo in JSDoc comment: 'announcement ndata' should be 'announcement data'.
* Get the announcement ndata from the GraphQL API
No description provided.