Skip to content

Align frontend GraphQL schema with backend #98

@0xdevcollins

Description

@0xdevcollins

The frontend's lib/graphql/schema.graphql is out of sync with the backend's auto-generated schema.gql. The frontend defines types (FEATURE, BUG, CLAIMED, Relay connections) that don't exist on the backend (FIXED_PRICE, MILESTONE_BASED, IN_PROGRESS, offset pagination).

Tasks

  • Replace lib/graphql/schema.graphql with the backend's actual schema.gql (or symlink it)
  • Update codegen.ts to point documents at a new lib/graphql/operations/ directory (see Issue 2)
  • Run npm run codegen and verify generated.ts reflects the real backend types
  • Update the Zod schemas in lib/api/bounties.ts to match the real BountyStatus and BountyType enums
  • Update any UI components mapping over old enum values (open/claimed/closedOPEN/IN_PROGRESS/COMPLETED/etc.)

Acceptance Criteria

  • npm run codegen succeeds with zero warnings
  • generated.ts types match the backend 1:1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions