Skip to content

feat: add GraphQL (Strawberry) as new Python ecosystem category#146

Closed
Marve10s wants to merge 2 commits intomainfrom
feat/python-graphql
Closed

feat: add GraphQL (Strawberry) as new Python ecosystem category#146
Marve10s wants to merge 2 commits intomainfrom
feat/python-graphql

Conversation

@Marve10s
Copy link
Copy Markdown
Owner

@Marve10s Marve10s commented Apr 9, 2026

Summary

  • Adds PythonGraphqlSchema = z.enum(["strawberry", "none"]) as a new category in the Python ecosystem
  • Wires through all ~30 files following the new-category checklist (schemas, types, option-metadata, compatibility, CLI, web builder, smoke tests, tests)
  • Creates template files: graphql_schema.py.hbs with example Query/Mutation types, pyproject.toml.hbs deps with framework-specific extras, main.py.hbs GraphQL route mounting per framework, test_main.py.hbs with GraphQL tests
  • Strawberry package extras vary by framework: strawberry-graphql[fastapi], strawberry-graphql[flask], strawberry-graphql[django], strawberry-graphql (Litestar uses base package)

Test plan

  • bun test apps/cli/test/cli-builder-sync.test.ts -- 356 pass, 2 fail (pre-existing goOrm issues)
  • bun test apps/cli/test/generate-reproducible-command.test.ts -- 5 pass
  • bun run --cwd apps/web validate:tech-links -- passes
  • Scaffold 4 combos: fastapi+strawberry, flask+strawberry, litestar+strawberry, django+strawberry -- all succeed
  • python3 -m compileall on all 4 combos -- all pass

Add PythonGraphqlSchema with "strawberry" and "none" options. Wire through
all ~30 files following the new-category checklist: schemas, types,
option-metadata, compatibility, CLI (index, prompts, mcp, bts-config,
constants, command-handlers, config-processing, generate-reproducible-command),
web builder (constant, preview-config, stack-defaults, stack-url-keys,
stack-url-state, stack-utils, tech-icons, tech-resource-links), smoke test
wiring (options, presets), and test updates (reproducible-command, history).

Template changes:
- pyproject.toml.hbs: framework-specific strawberry-graphql extras
- main.py.hbs: mount /graphql route per framework (FastAPI/Flask/Django/Litestar)
- new graphql_schema.py.hbs: example Query/Mutation types with Book model
- test_main.py.hbs: GraphQL hello query tests per framework

Verified: all 4 framework combos scaffold + python3 -m compileall passes.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-fullstack-web Ignored Ignored Preview Apr 10, 2026 10:17am

@github-actions github-actions bot added size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 9, 2026
…pt functions

These functions were imported in config-prompts.ts but not defined in their
respective ecosystem files, causing CI build failures.
@github-actions github-actions bot added size:XL 500-999 effective changed lines (test files excluded in mixed PRs). and removed size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Apr 10, 2026
@Marve10s
Copy link
Copy Markdown
Owner Author

Closing — contaminated with cross-PR commits. Will recreate.

@Marve10s Marve10s closed this Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL 500-999 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant