Repository navigation
[FEAT, DOCS] v2.0.0 stage 5: web generator page and CI check - #98
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7073b88ac9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| form.author = this.fields.author.value; | ||
| form.author_email = this.fields.author_email.value; | ||
| form.description = this.fields.description.value; | ||
| form.extra_packages = this.fields.extra_packages.value.split(",").map((item) => item.trim()).filter(Boolean); |
There was a problem hiding this comment.
Preserve commas within individual package requirements
When a user enters a requirement with multiple version constraints, such as httpx>=0.27,<1, or multiple extras, such as pydantic[email,timezone], splitting every comma turns it into separate invalid package entries. The Python form validator and CLI accept these requirements intact, but the page rejects the resulting fragments and blocks generation, leaving no way to express these dependencies. Use an unambiguous package separator, such as one requirement per line, or parse separators without breaking requirement syntax.
Useful? React with 👍 / 👎.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…e check on Windows
Requesting Merging
Description
Stage 5 of 2.0.0. Adds a web generator page to the documentation site: pick a level and options, and the page builds the project in the browser and downloads it as a zip. The zip has the same files as
fastkit init ... --no-venv, and the page shows the matching command line and the next steps. Nothing entered on the page is uploaded.Type of Change
Test Environment
dev99%mkdocs build --strictand the built-site check pass for all seven languagesMajor Changes
start/web-generatorin en, ko, ja, zh, es, fr and de. It runs fastkit in a Web Worker with a self-hosted, hash-pinned Pyodide, validates the form as you type, and shows the command for macOS/Linux or PowerShell.generation/browser.py): form model, validation with problem codes, build, zip and command-line text. Importingfastapi_fastkit.generationno longer loads rich or click.scripts/web_generator/): builds the page assets from a wheel, compares the Pyodide output with the CLI output, and checks the built site.web-generatorworkflow runs the Pyodide-vs-CLI comparison; the docs deploy builds the assets and must pass the same comparison first.test-runtimedependency group; the test workflow installs it, so the tests that start generated applications run instead of being skipped.pull_requestwithactions/labeler@v6. Pull requests from forks are not labelled.Screenshots (optional)
N/A
Etc
"; there is no cmd.exe form of the command.