Skip to content

Regenerate gql types - #2064

Merged
GregorShear merged 1 commit into
mainfrom
greg/gql-types-refresh
Aug 25, 2026
Merged

Regenerate gql types#2064
GregorShear merged 1 commit into
mainfrom
greg/gql-types-refresh

Conversation

@GregorShear

@GregorShear GregorShear commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

The GraphQL Schema Check (codegen:check) introspects the live schema at api.estuary.dev and diffs it against the committed src/gql-types. Production added DataPlane.id, an IdFilter input, and a DataPlanesFilter.id field, so the checked-in schema.graphql and graphql.ts went stale and the check failed on every open PR. Regenerated with npm run codegen.
@github-actions

Copy link
Copy Markdown

⚪ Code Health

No change to the dead-code surface.

48 Unused files

File imported nowhere — delete (or import) it.

     src/hooks/useDelay.ts
     src/hooks/useDraft.ts
     src/pages/NoGrants.tsx
     src/pages/OAuth.tsx
     src/services/encryption.ts
     src/types/global.ts
     src/types/vitest.ts
     src/components/graphs/TaskHoursByMonthGraph.tsx
     src/components/tables/Link.tsx
     src/context/LoopIndex/index.tsx
…and 38 more

66 Unused exports

Exported symbol with no references outside its own file — un-export it, or delete it if unused entirely

     src/context/Theme.tsx : logoColors
     src/context/Theme.tsx : intensifiedOutlineThick
     src/context/Theme.tsx : tableAlternateRowsSx
     src/context/Theme.tsx : draggableChipIconSx
     src/context/Theme.tsx : hiddenButAccessibleInput
     src/context/Theme.tsx : primaryColoredBackground_hovered
     src/context/Theme.tsx : detailsPanelBgColor
     src/context/Theme.tsx : menuBackgroundColor
     src/context/Theme.tsx : flexGrowToSiblingsSx
     src/context/Theme.tsx : shardTableRow
…and 56 more

30 Unused exported types

Exported type with no references outside its own file — un-export it, or delete it if unused entirely

     src/utils/billing-utils.ts : FREE_GB_BY_TIER
     src/types/index.ts : InferredSchemas
     src/types/index.ts : Shard
     src/components/shared/WizardDialog/index.ts : WizardStep
     src/api/dataPlanes.ts : AwsDnsEntry
     src/stores/ShardDetail/types.ts : TaskShardDetailsWithShard
     src/stores/ShardDetail/types.ts : ShardDetails
     src/components/tables/Logs/types.ts : RefreshLogsFunction
     src/types/schemaModels.ts : CollectionSchema
     src/components/editor/Bindings/types.ts : SelectedCollectionChangeData
…and 20 more

14 Unused exported enum members

An enum member referenced nowhere

     src/services/supabase.ts : CONNECTOR_TAGS
     src/services/supabase.ts : DRAFTS_EXT
     src/services/supabase.ts : TASKS_BY_DAY
     src/stores/Tables/hooks.ts : accessGrants
     src/stores/Tables/hooks.ts : accessLinks
     src/stores/Tables/hooks.ts : billing
     src/stores/Tables/hooks.ts : connectors
     src/stores/Tables/hooks.ts : entitySelector
     src/stores/Tables/hooks.ts : prefixes
     src/stores/Tables/hooks.ts : prefixAlerts
…and 4 more

5 Unused dependencies

In package.json but never imported

     package.json : @mui/lab
     package.json : @testing-library/jest-dom
     package.json : @urql/exchange-retry
     package.json : logrocket-react
     package.json : stripe

3 Unused devDependencies

In package.json devDependencies but never used

     package.json : @types/logrocket-react
     package.json : @types/react-inspector
     package.json : sharp

@GregorShear
GregorShear marked this pull request as ready for review August 25, 2026 03:20
@GregorShear
GregorShear requested a review from a team as a code owner August 25, 2026 03:20
@GregorShear GregorShear changed the title gql-types: regenerate to match current production schema Regenerate gql types Aug 25, 2026
GregorShear added a commit that referenced this pull request Aug 25, 2026
…ash, stale e2e assertion

- useStorageMappings now walks every page via useAllPages instead of taking the server's silent 50-row default page, so the edit dialog can resolve any clicked row and PrefixCard's duplicate/coverage validators see the complete list. A dedupe by catalogPrefix guards against a graphcache invalidation re-appending the refetched page.
- Gate the edit dialog's notFound self-close on the storage mappings loading flag (deep-link race) and on query errors (notFound previously closed the dialog before the error state could render).
- Drop refetchMappings from create/update: graphcache already invalidates every storageMappings query on those mutations, and a first-page-only network refetch is misleading now that the query paginates.
- Guard row.spec.data_planes in the settings table and type it optional: the server omits the field from the spec JSON when the list is empty (serde skip_serializing_if), which crashed the whole Settings section on such a mapping.
- Remove the Playwright assertion on the removed "Last Updated" column. The GraphQL StorageMapping type carries no timestamp field, so the column cannot come back client-side.
- gql-types regenerated for the query change only; the DataPlane.id/IdFilter schema drift stays in #2064.
@GregorShear
GregorShear merged commit 276ca88 into main Aug 25, 2026
8 checks passed
@GregorShear
GregorShear deleted the greg/gql-types-refresh branch August 25, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants