feature: additional validation and help messaging for shipthis game details and shipthis game create - #249
Conversation
|
Performing some testing
|
|
I don't like having a fixed list for the versions in the client - that will force people to upgrade to get the new version whereas the loose validation before meant they did not have to |
|
The answer is to expose the supported versions on the API. Implementing a straightforward version of that now with a fallback to a constant |
There was a problem hiding this comment.
Pull request overview
Adds contextual validation for game details across create, details, and ship workflows.
Changes:
- Adds field validators, warnings, and tests.
- Fetches supported Godot versions with a built-in fallback.
- Updates command flags, errors, and documentation.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
test/utils/validation.test.ts |
Tests validation rules and warnings. |
src/utils/validation.ts |
Implements game-detail validation. |
src/utils/index.ts |
Exports validation utilities. |
src/constants/index.ts |
Adds constrained detail flags. |
src/constants/godot.ts |
Defines fallback Godot versions. |
src/commands/game/ship.tsx |
Validates version overrides. |
src/commands/game/details.tsx |
Validates detail updates. |
src/commands/game/create.ts |
Validates project creation inputs. |
src/api/index.ts |
Fetches supported Godot versions. |
docs/game/ship.md |
Documents ship validation. |
docs/game/details.md |
Documents validation rules. |
docs/game/create.md |
Documents create validation. |
Suppressed comments (1)
src/commands/game/create.ts:68
- The detected-version warning also bypasses
--quiet, despite the flag promising to suppress non-error output. Include!quietin this condition.
if (!details.gameEngineVersion && !isSupportedGodotVersion(detectedVersion, godotVersions)) {
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@copilot - updated that to address the outstanding ones - can you review the changes? |
I reviewed the latest updates in commit |
shipthis game details and shipthis game create
|
Prod API is deployed to https://api.shipth.is/api/1.0.0/godot/versions I will merge |
This is to resolve #245
What's changed
game detailsfieldserrorfunction which takes arefandsuggestions