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
refactor(sops): compact desktop toolbar actions
louis0b1360e307f3
diff --git a/apps/screenpipe-app-tauri/lib/workflows/guide.test.tsx b/apps/screenpipe-app-tauri/lib/workflows/guide.test.tsxindex e46d8a02f..2eca9c9b6 100644--- a/apps/screenpipe-app-tauri/lib/workflows/guide.test.tsx+++ b/apps/screenpipe-app-tauri/lib/workflows/guide.test.tsx@@ -342,7 +342,7 @@ describe("SOP assistant and web editor", () => {}}/>,);- fireEvent.click(await screen.findByText("Open web editor"));+ fireEvent.click(await screen.findByRole("button", { name: "Open web editor", exact: true }));expect(openWeb).not.toHaveBeenCalled();expect(screen.queryByText("Create a short video")).not.toBeInTheDocument();fireEvent.click(screen.getByText("Continue to web editor"));diff --git a/packages/workflows-ui/src/workflow-guide.module.css b/packages/workflows-ui/src/workflow-guide.module.cssindex 0fecf1649..0ad13c25a 100644--- a/packages/workflows-ui/src/workflow-guide.module.css+++ b/packages/workflows-ui/src/workflow-guide.module.css@@ -54,6 +54,33 @@color: var(--muted, #777b70);font-size: 12px;}+.guide .iconButton {+ width: 40px;+ height: 40px;+ padding: 0;+ flex-shrink: 0;+}+.guide .iconButton:hover,+.guide .iconButton[aria-pressed="true"] {+ background: var(--soft, #f1f2ec);+ border-color: var(--muted, #777b70);+}+.saveStatus {+ display: inline-flex;+ align-items: center;+ gap: 8px;+}+.srOnly {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ white-space: nowrap;+ border: 0;+}.layout {display: grid;grid-template-columns: 205px minmax(0, 820px);@@ -391,9 +418,7 @@ label.result {.toolbar > div {flex-wrap: wrap;}- .toolbar span {- width: 100%;- }+.section {padding: 18px;}diff --git a/packages/workflows-ui/src/workflow-guide.tsx b/packages/workflows-ui/src/workflow-guide.tsxindex d6ec4abf8..6bb68082b 100644--- a/packages/workflows-ui/src/workflow-guide.tsx+++ b/packages/workflows-ui/src/workflow-guide.tsx@@ -179,7 +179,24 @@ export function WorkflowGuide({Back to workflow</button><div>- <span role="status">{saved}</span>+ <span role="status" className={styles.saveStatus} title={saved}>+ {saved.startsWith("Could not") ? (+ saved+ ) : (+ <>+ {saved === "Saving…" ? (+ <Loader2+ size={16}+ className={styles.spin}+ aria-hidden="true"+ />+ ) : saved ? (+ <Check size={16} aria-hidden="true" />+ ) : null}+ <span className={styles.srOnly}>{saved}</span>+ </>+ )}+ </span>{saved.startsWith("Could not") && (<buttononClick={() => latest.current && void persist(latest.current)}@@ -191,29 +208,41 @@ export function WorkflowGuide({<>{platform.openWeb && (<button- className={styles.primary}+ className={styles.iconButton}+ aria-label="Open web editor"+ title="Open web editor"onClick={() => {setWebReview(true);setWebError("");}}>- <ExternalLink size={15} />- Open web editor+ <ExternalLink size={18} aria-hidden="true" /></button>)}- <button onClick={() => setEditing(!editing)}>- {editing ? <Check size={15} /> : <Pencil size={15} />}- {editing ? "Done editing" : "Edit SOP"}+ <button+ className={styles.iconButton}+ aria-label={editing ? "Done editing" : "Edit SOP"}+ title={editing ? "Done editing" : "Edit SOP"}+ aria-pressed={editing}+ onClick={() => setEditing(!editing)}+ >+ {editing ? (+ <Check size={18} aria-hidden="true" />+ ) : (+ <Pencil size={18} aria-hidden="true" />+ )}</button><button+ className={styles.iconButton}+ aria-label="Export SOP"+ title="Export SOP"onClick={() => {setImages(false);setExportError("");dialog.current?.showModal();}}>- <Download size={15} />- Export SOP+ <Download size={18} aria-hidden="true" /></button></>)}