Repository navigation
Name hosted screen review Screens in the CLI - #81
Draft
raghubetina wants to merge 1 commit into
Draft
raghubetina wants to merge 1 commit into
raghubetina wants to merge 1 commit into
Conversation
The service already calls the hosted review Screens, but the CLI still published with `firstdraft sketches publish`, read `sketches/` and spoke the API's sketch-review names. The owner chose to finish the rename in the 0.25 release (firstdraft/firstdraft#1045), where users already upgrade and start new Projects, so the break lands once. The command becomes `firstdraft screens publish`, sources move to `screens/`, local receipts and reviewed sources follow, and the request, header, response field and error codes match the service's screen-review names. Element keys and labels become data-screen-key and data-screen-label, the names the service's canvas now reads.
raghubetina
force-pushed
the
claude/screens-rename
branch
from
December 4, 2026 22:14
7d92f98 to
d8a6761
Compare
This branch has not been deployed
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.
Summary
The CLI names hosted screen review Screens, matching the service.
firstdraft screens publishreplacesfirstdraft sketches publish, sources live inscreens/withscreens/board.json, and local receipts and a Compile's reviewed sources move toscreen-reviewanddesign/screenspaths. The request usesPUT /v1/projects/{project_id}/screen-reviews/{revision_id}, media typeapplication/vnd.firstdraft.screen-review+json, headerFirstDraft-Screen-Revisionand response fieldscreen_revision_id; failures reportscreen_review_failedwith service codesscreen_review_conflict,screen_review_changed,invalid_screen_reviewandscreen_quota_reached.The owner chose to finish the rename in the 0.25 release (firstdraft/firstdraft#1045), where users already upgrade and start new Projects, so the break lands once. Element keys and labels become
data-screen-keyanddata-screen-label, the names the service's canvas reads (owner's choice, 2026-12-04); the changelog tells authors to rename them in an existing planning folder. A publication left pending by CLI 0.12.x is not replayed by this CLI.Base:
codex/plan-025-cliat13f10e1. The rename is a re-runnable script; it will be re-applied to the refreshed candidate before landing, so this draft shows the full set of changes rather than final bytes. It needs the service's matching Screens rename to work end to end.Docs: updated docs/commands.md (including the element key example), docs/errors.md and the 0.13.0 CHANGELOG entry.
Validation
npm run checkon Node 24.18.0 passed: typecheck, lint, format, all 401 tests without skips, the package allowlist and the packed CLI smoke. After the attribute change,npm test,npm run lint,npm run format:checkandnpm run typecheckpassed again. The service'sscript/review_theme_system_test.rbran this CLI against firstdraft/firstdraft#1466: it published screens withfirstdraft screens publish, selected a keyed element on the canvas, and downloaded and booted the generated app.