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
Remove workflow context section from detail view
Louis Beaumont928dd3dad216
diff --git a/packages/workflows-ui/src/workflows-app.module.css b/packages/workflows-ui/src/workflows-app.module.cssindex cf02fa45a..af5061f03 100644--- a/packages/workflows-ui/src/workflows-app.module.css+++ b/packages/workflows-ui/src/workflows-app.module.css@@ -821,11 +821,6 @@.sourceTopbar .search { flex: 1 1 220px; min-width: 220px; width: auto; margin-right: 0; }}--.workflowContext { max-width: 1180px; margin: 20px auto 0; }-.workflowContext > summary { width: fit-content; cursor: pointer; font-size: 12px; color: var(--muted); padding: 8px 0; }-.workflowContext > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }-/* The workflow document uses Studio's breadcrumb bar and content insets. */.detailMain { padding: 32px 32px 70px; background:var(--panel); }.workspace:has(.detailMain) { background:var(--panel); }diff --git a/packages/workflows-ui/src/workflows-app.tsx b/packages/workflows-ui/src/workflows-app.tsxindex 9ff838413..0e497eef4 100644--- a/packages/workflows-ui/src/workflows-app.tsx+++ b/packages/workflows-ui/src/workflows-app.tsx@@ -72,15 +72,10 @@ import {sanitizeWorkflowAnalysis,WORKFLOW_CATALOG_DAYS,} from "./catalog";-import {- controlLabel,- isActionableBottleneck,-} from "./controllability";import {type WorkProfile,type WorkProfileKpi,type WorkflowAnalysis,- type WorkflowBottleneck,type WorkflowMap,type WorkflowRuntime,type SavedWorkflowSkill,@@ -783,8 +778,6 @@ export function WorkflowDetail({ breadcrumb, relatedWorkflows, openRelated, editif (workflow && guideOpen && platform.guides) return <WorkflowGuide key={workflow.id || workflow.title} workflow={workflow} platform={platform.guides} onShareDocument={onShareDocument} downloadDocument={platform.library?.downloadDocument} loadScreenshot={platform.loadWorkflowScreenshot} close={() => setGuideOpen(false)} />;if (!workflow) return <section className={styles.emptyState}><ListTree size={23} /><h2>No workflow selected</h2><button className={styles.primaryButton} onClick={() => navigate("workflows")}>View workflows</button></section>;- const actionableFriction = workflow.bottlenecks.filter(isActionableBottleneck);- const constraints = workflow.bottlenecks.filter((item) => !isActionableBottleneck(item));const agentActions = workflowAgentActions?.(workflow);const workflowActions = <div className={styles.workflowActions}>{agentActions}{onShareWorkflow && <button className={styles.skillButton} type="button" onClick={() => onShareWorkflow(workflow)}><Share2 size={14} />Share</button>}</div>;const secondaryActions: WorkflowSecondaryAction[] = [@@ -813,15 +806,6 @@ export function WorkflowDetail({ breadcrumb, relatedWorkflows, openRelated, editthrow error;}} : undefined} />}- {(workflow.variations.length > 0 || actionableFriction.length > 0 || constraints.length > 0) && <details className={styles.workflowContext}>- <summary>Workflow context</summary>- <p className={styles.workflowReviewState}>{workflow.userEditedAt ? ui("Edited by you · sources kept as references") : workflow.evidenceStatus === "supported-steps" ? ui("Source-backed steps · not execution-tested") : ui("Needs review")}</p>- {!!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 && <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>}</div>{skillOpen && <WorkflowSkillDialog workflow={workflow} draft={skillDraft} generating={skillGenerating} saving={skillSaving} saved={skillSaved} preview={platform.skillInstallMode === "preview"} progress={skillProgress} error={skillError} update={draft => {setSkillDraft(draft);@@ -831,20 +815,6 @@ export function WorkflowDetail({ breadcrumb, relatedWorkflows, openRelated, edit);}-type RankedBottleneck = WorkflowBottleneck & { workflowTitle: string; repetitions: number };--function BottleneckList({ items, openWorkflow, numbered = true }: { items: RankedBottleneck[]; openWorkflow?: (title: string) => void; numbered?: boolean }) {- const ui = useGT();- return <div className={styles.bottleneckList}>{items.map((item, index) => (- <article key={`${item.workflowTitle}-${item.label}-${index}`}>- <div className={styles.bottleneckRank}>{numbered ? String(index + 1).padStart(2, "0") : "—"}</div>- <div className={styles.bottleneckMain}><div><Pill tone={isActionableBottleneck(item) ? "warm" : "plain"}>{controlLabel(item)}</Pill><span>{item.stage}</span></div><h3>{item.label}</h3><p>{item.detail}</p></div>- {!!item.estimatedMinutesPerRun && <div className={styles.bottleneckTime}><span>Observed delay</span><strong>{formatMinutes(item.estimatedMinutesPerRun)}</strong></div>}- {openWorkflow && <button className={styles.iconLink} onClick={() => openWorkflow(item.workflowTitle)} aria-label={ui("Open {value1}", { value1: item.workflowTitle })}><ChevronRight size={16} /></button>}- </article>- ))}</div>;-}-const EMPTY_PROFILE_KPI: WorkProfileKpi = {name: "",definition: "",