YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(workflows): align supporting sections and normalize spacing
louisf68f14a5eac3
diff --git a/packages/workflows-ui/src/workflows-app.module.css b/packages/workflows-ui/src/workflows-app.module.cssindex 1bfff85d8..613d94109 100644--- a/packages/workflows-ui/src/workflows-app.module.css+++ b/packages/workflows-ui/src/workflows-app.module.css@@ -991,3 +991,27 @@.navigationResize { position: absolute; top: 0; bottom: 0; right: -3px; width: 6px; z-index: 20; cursor: col-resize; touch-action: none; user-select: none; outline: none; }.navigationResize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 2px; width: 2px; background: transparent; }.navigationResize:hover::after, .navigationResize:focus-visible::after, .navigationResizing::after { background: var(--muted); }++/* Keep supporting details on the same document rhythm as editable steps. */+.workflowNotes { display: grid; gap: 24px; max-width: 780px; margin: 20px auto 0; }+.workflowNotes > .workflowReviewState { margin: 0; }+.workflowNotes > .panel { padding: 0; border: 0; border-radius: 0; background: transparent; }+.workflowNotes h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; font-weight: 600; }+.workflowNotes .sectionHeading { margin: 0 0 10px; }+.workflowNotes .sectionHeading h2 { margin: 0; }+.workflowNotes .plainList { gap: 6px; padding: 0; }+.workflowNotes .plainList li { padding: 0 0 0 15px; border: 0; font-size: 13px; line-height: 1.6; }+.workflowNotes .plainList li::before { top: 9px; left: 2px; width: 4px; height: 4px; background: var(--muted); box-shadow: none; }+.workflowNotes .bottleneckList { border: 0; border-radius: 0; background: transparent; }+.workflowNotes .bottleneckList article { min-height: 0; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 0; }+.workflowNotes .bottleneckList article:first-child { padding-top: 0; }+.workflowNotes .bottleneckMain > div { flex-wrap: wrap; gap: 8px; }+.workflowNotes .bottleneckMain h3 { margin: 8px 0 4px; font-size: 14px; line-height: 1.5; }+.workflowNotes .bottleneckMain p { margin: 0; font-size: 13px; line-height: 1.6; }+.workflowNotes > .workflowQuality { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }+.workflowNotes > .workflowQuality > summary { min-height: 36px; padding: 8px 0; font-size: 13px; }+.workflowNotes > .workflowQuality > summary > div { flex-wrap: wrap; gap: 6px; }+@container workflow-pane (max-width: 540px) {+ .workflowNotes .bottleneckList article { grid-template-columns: 20px minmax(0, 1fr); }+ .workflowNotes .bottleneckTime { grid-column: 2; }+}diff --git a/packages/workflows-ui/src/workflows-app.tsx b/packages/workflows-ui/src/workflows-app.tsxindex 3c306d497..afbc25fb3 100644--- a/packages/workflows-ui/src/workflows-app.tsx+++ b/packages/workflows-ui/src/workflows-app.tsx@@ -958,6 +958,7 @@ function WorkflowDetail({ workflow, navigate, platform, workProfile, saveCorrect<div><Pill>Evidence on {workflow.repetitions} captured day{workflow.repetitions === 1 ? "" : "s"}</Pill><h1>{workflow.title}</h1><p>{workflow.description}</p>{workflowActions}</div>{timing ? <div className={styles.detailTotal}><span>{timing.sampleCount > 1 ? "Avg. time / run" : "Time for one run"}</span><strong>{formatEstimatedMinutes(timing.averageMinutes)}</strong><small>{timing.sampleCount} run{timing.sampleCount === 1 ? "" : "s"} · estimated elapsed time</small></div> : measuredDuration && <div className={styles.detailTotal}><span>Observed meeting duration</span><strong>{workflowDurationLabel(workflow)}</strong></div>}</section>}+ <div className={styles.workflowNotes}><p className={styles.workflowReviewState}>{workflow.userEditedAt ? "Edited by you · sources kept as references" : workflow.evidenceStatus === "supported-steps" ? "Source-backed steps · not execution-tested" : "Needs review"}</p><details className={styles.workflowQuality}><summary>Captured example</summary><WorkflowReplay key={`replay:${workflow.title}`} workflow={workflow} loadRecording={platform.loadWorkflowRecording} releaseRecording={platform.releaseWorkflowRecording} openCapturedMoment={platform.openCapturedMoment} /></details>{saveCorrection && !platform.assistant?.saveFeedback && <WorkflowCorrection key={`correction:${workflow.title}`} workflow={workflow} save={saveCorrection} />}@@ -998,8 +999,8 @@ function WorkflowDetail({ workflow, navigate, platform, workProfile, saveCorrect<div className={styles.flowEndpoint}><span>Ends with</span><strong>{workflow.outcome}</strong></div></section>}{!!workflow.variations.length && <section className={styles.panel}><h2>Variations</h2><ul className={styles.plainList}>{workflow.variations.map(item => <li key={item}>{item}</li>)}</ul></section>}- {!!actionableFriction.length && <><div className={styles.sectionHeading}><div><span>Within reach</span><h2>Friction you can affect</h2></div></div><BottleneckList items={actionableFriction.map((item) => ({ ...item, workflowTitle: workflow.title, repetitions: workflow.repetitions }))} /></>}- {!!constraints.length && <><div className={styles.sectionHeading}><div><span>Plan around</span><h2>External and required constraints</h2></div></div><BottleneckList items={constraints.map((item) => ({ ...item, workflowTitle: workflow.title, repetitions: workflow.repetitions }))} numbered={false} /></>}+ {!!actionableFriction.length && <section><div className={styles.sectionHeading}><div><h2>Friction you can affect</h2></div></div><BottleneckList items={actionableFriction.map((item) => ({ ...item, workflowTitle: workflow.title, repetitions: workflow.repetitions }))} /></section>}+ {!!constraints.length && <section><div className={styles.sectionHeading}><div><h2>External and required constraints</h2></div></div><BottleneckList items={constraints.map((item) => ({ ...item, workflowTitle: workflow.title, repetitions: workflow.repetitions }))} numbered={false} /></section>}<details className={styles.workflowQuality}><summary><div><strong>Evidence and limitations</strong><span>{workflow.quality.evidenceCount} references · {workflow.quality.distinctDays} observed days</span></div><ChevronDown size={14} /></summary><section className={styles.detailStats}>@@ -1016,6 +1017,7 @@ function WorkflowDetail({ workflow, navigate, platform, workProfile, saveCorrect{!!workflow.openQuestions?.length && <section aria-label="Open questions"><strong>Open questions</strong><ul>{workflow.openQuestions.map(question => <li key={question}>{question}</li>)}</ul></section>}{!!workflow.limitations?.length && <ul>{workflow.limitations.map((limitation) => <li key={limitation}>{limitation}</li>)}</ul>}</details>+ </div>{skillOpen && <WorkflowSkillDialog workflow={workflow} draft={skillDraft} generating={skillGenerating} saving={skillSaving} saved={skillSaved} preview={platform.skillInstallMode === "preview"} progress={skillProgress} error={skillError} update={setSkillDraft} retry={generateSkill} save={saveSkill} close={() => setSkillOpen(false)} />}</>);