cleanup and add toggle for sidebar

This commit is contained in:
Arjun Patel
2026-06-12 10:52:04 -07:00
parent 22ba0410a5
commit 91c973d862
5 changed files with 36 additions and 26 deletions
@@ -48,8 +48,7 @@ export type ComposeStep =
type RecordingSource = 'media' | 'screen';
type PendingArtifact =
| { type: 'task'; properties: TaskProperties };
type PendingArtifact = { type: 'task'; properties: TaskProperties };
interface ComposeOverlayProps {
networkId: string;
@@ -466,7 +465,7 @@ export function ComposeOverlay({
// --- Compose intent handlers ---
// Single source of truth for the step transitions triggered by the user.
// Both the keyboard handler and the intent store dispatch into these so
// guards (disabled, quota) and screen-vs-media branching live in one place.
// guards (quota) and screen-vs-media branching live in one place.
const guardIdle = useCallback((): boolean => {
if (stepRef.current !== 'idle') return false;
@@ -497,7 +496,6 @@ export function ComposeOverlay({
setStepSync('task');
}, [guardIdle, setStepSync]);
// Artifact submit: capture the artifact, then reuse the standard flow —
// reply mode creates it under targetPath, root mode configures a stream
// that will hold it as its first child.