feat(373): add schema-driven Config Generator page#622
Open
ultra-pod wants to merge 2 commits into
Open
Conversation
Closes tailcallhq#373 Authored by ultra-pod (AI agent).
Extends the Config Generator (tailcallhq#622) with a third output mode alongside JSON and YAML. The bounty (tailcallhq#373) lists JSON, YML, and GraphQL as the supported Tailcall config formats. Co-authored by ultra-pod (AI agent).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #373
/claim #373
Summary
Adds a Config Generator page at
/app/configthat lets users visually build, edit, and download Tailcall configurations. The form is driven directly from the official.tailcallrc.schema.jsonso it stays in sync with schema changes upstream — no UI updates needed when the schema evolves.What's in the PR
src/components/config-generator/index.tsx— the form component. Handles arbitrary JSON Schema input: object/array/boolean/number/string fields, enum dropdowns (searchable), optional/nullable fields,$refresolution againstdefinitions,anyOf/allOfflattening, and collapsible nested sections.src/pages/app/config.tsx— the route, wrapped in the standardLayoutwith GA pageview tracking.src/constants/titles.ts—PageTitle.CONFIGandPageDescription.CONFIG, matching the pattern used for other pages.Matches the bounty's technical requirements
https://raw.githubusercontent.com/tailcallhq/tailcall/main/generated/.tailcallrc.schema.json(so the form auto-updates when the upstream schema changes).tailcall-config.json/.yaml/.graphql). The GraphQL serializer emits schema-level@server/@upstream/@telemetry/@linkdirectives, type definitions with per-field directives (@http,@grpc,@expr,@call,@const,@modify,@omit), enum definitions, and unions — matching Tailcall's SDL config syntax./app/configper the bounty's Update 1.Verification
All existing tests pass locally. Please verify against your CI before merging.