AI media harness for planning, generating, and editing locally
TypeScript
Sort Add effect list alphabetically
Bittif232aee4a5eb
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdindex 780e931..ada4914 100644--- a/RELEASE_NOTES.md+++ b/RELEASE_NOTES.md@@ -29,6 +29,7 @@ This alpha update adds Linux support, LAN generation workers, expanded color gra## Fixes and improvements+- The Add effect menu lists effects alphabetically.- New empty images created while browsing child images stay in the same image family.- The Save button keeps its label while saving, preventing the top bar tabs from shifting.- The Image toolbar spans the workspace, with canvas tools and view controls grouped in the center.diff --git a/src/components/workspace/ClipEffects.test.tsx b/src/components/workspace/ClipEffects.test.tsxindex d30e1ae..86a6e81 100644--- a/src/components/workspace/ClipEffects.test.tsx+++ b/src/components/workspace/ClipEffects.test.tsx@@ -307,9 +307,9 @@ describe("clip effects", () => {render(<ClipEffects clip={{ ...original, transition: { type: "wipe-left", durationMs: 800 } }} disabled={false} onChange={vi.fn()} />);expect(screen.getByRole("combobox", { name: "Clip transition" }).textContent).toContain("Wipe from left");fireEvent.click(screen.getByRole("button", { name: "Add effect" }));- expect(document.activeElement?.textContent).toBe("Look");+ expect(document.activeElement?.textContent).toBe("3D LUT");fireEvent.keyDown(document.activeElement!, { key: "ArrowDown" });- expect(document.activeElement?.textContent).toBe("Chroma key");+ expect(document.activeElement?.textContent).toBe("Basic Corrections");});it("disables effects for locked or nonvisual clips and closes the picker when selection changes", () => {diff --git a/src/components/workspace/ClipEffects.tsx b/src/components/workspace/ClipEffects.tsxindex 0c51b7f..52abd7b 100644--- a/src/components/workspace/ClipEffects.tsx+++ b/src/components/workspace/ClipEffects.tsx@@ -313,7 +313,7 @@ export function ClipEffects({ clip, disabled, onChange }: {const [open, setOpen] = useState(false);const trigger = useRef<HTMLButtonElement>(null);const list = useRef<HTMLDivElement>(null);- const available = EFFECTS.filter((effect) => !clip[effect.id]);+ const available = EFFECTS.filter((effect) => !clip[effect.id]).sort((a, b) => a.name.localeCompare(b.name));const update: Update = (patch, key) => { if (!disabled) onChange(patch, key); };useEffect(() => setOpen(false), [clip.id, disabled]);const moveFocus = (event: KeyboardEvent<HTMLDivElement>) => {