Add immersive focus mode for task editing #300
Reference in New Issue
Block a user
Delete Branch "claude/dreamy-brahmagupta-1gx4i1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements an immersive focus mode for task particle editing that dims and blurs the surrounding stream chrome while a field is focused, and prevents navigation away from the editor mid-edit.
Closes #286
Key Changes
TaskParticleView: Added
immersiveandonEditingChangeprops to support focus mode UI and state synchronizationonEditingChangecallbackexitFocushandler to blur active elements and exit edit modeuseStreamNavigationKeys: Enhanced to respect edit focus mode
editingandonExitEditingparametersStreamView: Integrated focus mode into the stream navigation flow
taskEditingstate variableImplementation Details
https://claude.ai/code/session_01BDWBJjERKk8zUmh6bcKWSM
Summary by CodeRabbit
📝 Walkthrough
Walkthrough
TaskParticleViewgains an optionalimmersiveprop that, whentrueand the card is in editing mode, installs a capture-phase keydown handler (Escape exits focus; navigation keys are suppressed), renders a full-screen dim/blur overlay, elevates card styling, and shows aKeyHint.stream-view.tsxpassesimmersivetoTaskParticleView.Immersive Editing Mode
immersiveprop,exitFocus, and keydown interceptionjs/desktop/src/features/particles/task-particle-view.tsximmersive?: booleantoTaskParticleViewProps(with JSDoc), importsisTypingTargetandKeyHint, destructuresimmersivedefaulting tofalse, definesexitFocus(blurs active element), and installs/removes a capture-phasekeydownhandler whenimmersive && editing: Escape callsexitFocus; navigation keys are stopped unless the target is a typing field.js/desktop/src/features/particles/task-particle-view.tsx,js/desktop/src/features/particles/stream-view.tsxexitFocus) and elevated card container styling duringimmersive && editing. Renders a fixedKeyHintfor Esc. Passesimmersiveprop from stream-view toTaskParticleView.Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Comment
@coderabbitai helpto get the list of available commands and usage tips.