parallel-code icon indicating copy to clipboard operation
parallel-code copied to clipboard

UX polish batch: nine small verified fixes

Open johannesjo opened this issue 4 months ago • 3 comments

All small, independently fixable, and verified against the code. Checklist form so they can be picked off one at a time (several are good first issues):

  • [ ] Setting label says "on merge" but acts on close. "Always delete branch and worklog on merge" (EditProjectDialog.tsx:348) toggles deleteBranchOnClose, whose only readers are close paths (tasks.ts:417, TaskPanel.tsx:598, CloseTaskDialog.tsx:99); the merge path uses a separate cleanupAfterMerge checkbox. Also "worklog" is presumably "worktree".
  • [ ] Worktree path clips without ellipsis. TaskBranchInfoBar.tsx:247 renders the full path inside a nested inline-flex <button>; the InfoBar's declared text-overflow: ellipsis (InfoBar.tsx:33-35) can't apply to a nested flex child, so long paths clip hard. Abbreviate with the ~-shortening already used in the sidebar and put the full path in the tooltip.
  • [ ] Dead overlay rule. .dialog-overlay background in styles.css:1363 (44% black) is always overridden by the inline rgba(0,0,0,0.55) in Dialog.tsx:94 — they disagree by 11%; delete one.
  • [ ] Import continues after Cancel. ImportWorktreesDialog Cancel is never disabled (:305-317); the sequential createImportedTask loop (:113-121) keeps running after close, reporting into an unmounted dialog. Disable Cancel while importing or toast on background completion.
  • [ ] Arena swallows Escape. App.tsx:685 if (store.showArena) return; — wire Escape to close the arena (or its internal back navigation).
  • [ ] Keybinding-migration banner reflows the whole app. Injected between titlebar and main (App.tsx:818-886), so every task column and terminal reflows when it appears/dismisses. Make it a toast/dialog instead.
  • [ ] Silent no-op shortcuts. mergeTask/pushTask early-return without feedback on precondition failure (tasks.ts:566-571, 613-616); the keyboard handlers (App.tsx:663-670) don't pre-check git isolation, so merge/push shortcuts on a non-worktree task do nothing silently. Show a brief notification.
  • [ ] Plan dialog abandons the brand font stack. styles.css:2097 uses -apple-system, … instead of var(--font-ui); 'JetBrains Mono' hardcoded at :2153,2163 and NewTaskDialog.tsx:1095 instead of var(--font-mono).
  • [ ] Plan-review inline comment cards overlap the paragraph text they annotate (visible in screens/islands-plan-review.png — the "Goal" paragraph is cut off by the floating comment card). Give the cards their own flow slot instead of overlaying.

From a full design/UX audit (2026-07-07); adversarially verified. Line numbers as of b342bbd (v1.12.0).

johannesjo avatar Jul 07 '26 12:07 johannesjo

I'd like to pick up three of these: "Import continues after Cancel", "Arena swallows Escape", and the plan dialog font stack. I'll send each as its own PR so they can be reviewed separately, and leave the rest of the checklist for anyone else who wants it.

jadhavgaurav avatar Oct 26 '26 12:10 jadhavgaurav

Sorry for the noise: I checked these against current main before starting and I'm dropping my claim on the three I mentioned. Cancel is already disabled while an import runs, Escape already closes the arena, and the plan styles in styles.css use --font-ui / --font-mono now. The checklist is from the v1.12.0 audit, so some of the other boxes may be stale too.

The only thing I still saw is a few inline 'JetBrains Mono', monospace values in components (PlanViewerDialog.tsx:305, NewTaskPanel.tsx:212 and :235), but there are many more of those across the app, so I'll leave that alone unless you'd like it done.

jadhavgaurav avatar Oct 26 '26 12:10 jadhavgaurav

Hi! I went through all nine checklist items against current main and every one appears to be done now (spread across many commits since this was filed):

  1. ✅ Label reworded — now "Delete branch and worktree when a task closes" (ProjectTaskSection.tsx), no more "on merge"/"worklog"
  2. ✅ Worktree path uses abbreviateHomePath with tooltip (TaskBranchInfoBar.tsx)
  3. ✅ The dead .dialog-overlay background rule is gone (only unrelated :focus selectors remain)
  4. ✅ Import Cancel is disabled while importing — disabled={closeDisabled()} → shouldDisableImportClose(importing)
  5. ✅ Escape closes the arena — closeDialogs handles store.showArena → closeArena()
  6. ✅ Keybinding notice is now position: fixed (toast-style overlay, no app reflow)
  7. ✅ mergeTask/pushTask throw descriptive errors on precondition failure ("Precondition failures throw so the merge dialog can say why nothing happened")
  8. ✅ Fonts go through the --font-ui/--font-mono tokens; -apple-system only remains inside the token definitions
  9. ✅ Plan-review comments got a real layout slot (.plan-review-flow-slot, "occupy real layout space after the selected block")

Unless something regressed, this can probably be closed. Thanks — the checklist format made verifying it straightforward!

truongthinh1412 avatar Nov 10 '26 01:11 truongthinh1412