| … | … | @@ -363,3 +367,67 @@ export function useThreadGitMenuDefinition(props: ThreadGitMenuProps): AppBarMen | |
| 388 | + | return { label: "Push", disabled: quickAction.disabled }; | |
| 389 | + | case "commit": | |
| 390 | + | case "commit_push": | |
| 391 | + | return { label: "Commit", disabled: quickAction.disabled }; | |
🟠 High threads/ThreadGitControls.tsx:389
On a clean default branch with unpushed commits, the pill says Commit even though pressing it runs Push, misleading users about the operation. resolveQuickAction identifies this state as action: "commit_push" with label: "Push", but this switch maps every commit_push action to Commit; preserve Push when the quick-action label is Push.
| 1 | case "commit": |
| 2 | return { label: "Commit", disabled: quickAction.disabled }; |
| 3 | case "commit_push": |
| 4 | return { |
| 5 | label: quickAction.label === "Push" ? "Push" : "Commit", |
| 6 | disabled: quickAction.disabled, |
| 7 | }; |
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @apps/mobile/src/features/threads/ThreadGitControls.tsx around lines 389-391: |
| 2 | |
| 3 | On a clean default branch with unpushed commits, the pill says `Commit` even though pressing it runs `Push`, misleading users about the operation. `resolveQuickAction` identifies this state as `action: "commit_push"` with `label: "Push"`, but this switch maps every `commit_push` action to `Commit`; preserve `Push` when the quick-action label is `Push`. |
Note
🤖 Auto responding on behalf of wSedlacek
Fixed. commit_push with label Push (clean default branch ahead) now shows Push; Commit & push still shortens to Commit.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.