-
Notifications
You must be signed in to change notification settings - Fork 906
feat(desktop): unified prompt-first new workspace modal #2391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AviPeltz
merged 13 commits into
main
from
can-you-make-it-so-you-can-attach-images-and-docum
Mar 15, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a53c52f
feat(desktop): replace tab-based new workspace modal with unified pro…
AviPeltz 89c17e3
Merge remote-tracking branch 'origin/main' into can-you-make-it-so-yo…
AviPeltz 3b3ab68
feat(desktop): use LinkedIssuePill with Linear branding and multi-iss…
AviPeltz 8d41910
feat(desktop): add PR linking to new workspace modal
AviPeltz 32dc166
feat(desktop): move project picker below prompt input
AviPeltz 5016efb
feat(desktop): convert PR link selector from modal to inline popover
AviPeltz bba2a17
feat(desktop): pass agent launch request through PR creation path
AviPeltz a65d6c6
feat(desktop): convert issue and PR link commands to virtualRef ancho…
AviPeltz 74ba86b
feat(desktop): add editable branch name input to new workspace modal
AviPeltz 6cf0896
fix(desktop): cap auto-generated branch name to 18 characters
AviPeltz 08fe2b8
Merge remote-tracking branch 'origin/main' into can-you-make-it-so-yo…
AviPeltz e65df53
Merge remote-tracking branch 'origin/main' into can-you-make-it-so-yo…
AviPeltz 8513536
fix(desktop): harden new workspace modal error handling and branch input
AviPeltz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
18 changes: 0 additions & 18 deletions
18
.../src/renderer/components/NewWorkspaceModal/components/BranchesGroup/BranchesGroup.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
In GitHub CLI docs forgh pr list --json, arestateandisDraftguaranteed to be present and non-null for each returned PR item?💡 Result:
GitHub CLI’s
gh pr listmanual listsstateandisDraftas valid--jsonfields, but it does not explicitly state any guarantee about those fields being “always present and non-null” in the output. [1]That said, those fields come from GitHub’s PullRequest GraphQL object, where both are defined as non-nullable (
isDraft: Boolean!andstate: PullRequestState!). So, whengh pr list --json state,isDraftsucceeds, each returned PR item should include them with non-null values (otherwise the GraphQL response would error rather than yieldnullfor those fields). [2]Answer: Not guaranteed by the
ghdocs themselves, but effectively yes on successful output, because the underlying GraphQL fields are non-nullable. [1][2]🏁 Script executed:
Repository: superset-sh/superset
Length of output: 460
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 91
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 1018
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 50376
Harden PR payload validation to match type guard declarations.
The type predicate declares
stateandisDraftas required fields (lines 331–337), but the filter only validates the presence ofnumber,title, andurl. This creates a type safety gap wherepr.statecould be undefined when.toLowerCase()is called on line 352, despite the type guard suggesting otherwise.While GitHub's CLI returns non-nullable fields in practice (GraphQL guarantees), the code should validate all declared fields for consistency. Consider using a zod schema to ensure complete validation:
Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents