Repository navigation
feat(site): saved workflows settings page (fork-workflows) - #387
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7a7e7ddd35
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
To use Codex here, create an environment for this repo. |
… save The lost-response recovery in the saved workflow editor compared only the script, so a description, args schema, or phases edit that lost its response closed the editor and reported success while the refetched workflow still showed the old values.
…workflows-settings
The lost-response comparison of a saved workflow update normalized the missing-schema case (undefined on the server, null in the request) and compared schemas as canonical JSON, so nested schemas and schemas the server stores as absent fields recover the same way plain ones do.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 731ff93be5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The lost-response create confirmation now compares every submitted field, the confirmed delete drops the workflow's cached detail query, and the organization section no longer claims every member can run a workflow whose permissions were narrowed.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a8398dd68
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Lead takeover: the previous workstream made no commit for 17 hours, so it is archived. A new workstream (Opus) owns this PR on the same branch. It will drop the lost-response reconciliation, fix the two P1s (delete by name checks the id first; the editor seeds only after the refetch), handle the P2s on the limit, copy, personal tier, unsafe integers and focus, then run fork-ci and Codex. |
…r-pr-387-opus-09b1941c
Remove the lost-response reconciliation: a failed save shows an error and the user retries. Delete checks that the name still holds the picked workflow. The editor seeds only from a fetch made after it opened. New workflow is disabled at the limit of 100 with a tooltip. The personal tier shows only to organization members. The args schema rejects integers JSON cannot keep exactly and counts its compact size. The description field keeps line breaks. Read-only tables return focus to a name button.
…aces The organization picker now sits above both tiers, so switching to an organization without the personal tier keeps its focus. The New workflow tooltip wraps the button either way. A DELETE that 404s after the id check reports the workflow as changed. The args schema check rejects nonzero numbers that underflow to 0, and the detail dialog keeps the description's line breaks.
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48f1fb91f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The delete success handler filtered the list by name, so a same-name workflow cached while the delete was in flight vanished. It now matches the deleted id, for the list and the detail query.
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f880a2f0f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… checks A create now writes its response to the detail cache, so an older same-name workflow cached there no longer shows. The description and script limits measure the trimmed values the request sends. The name input references its help text, and the limit test no longer checks rendered state the AtLimit story covers.
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2185010e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…th the same name The detail cache is keyed by name, so after a delete and recreate in another tab it could show the earlier workflow for the new row.
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged at head Gates on this exact head:
Tests I ran on
Review notes:
Not exercised: a dev build with two members editing and sharing workflows. Member and sharing behavior is covered only by unit tests and stories. |
Part of #327 (the AI settings page). #391 completes it.
What
New AI Settings page for saved workflows, behind the
fork-workflowsexperiment. It lists the personal and organization saved workflows of the selected organization in two sections, with:All UI lives in fork files. Upstream files carry one hook line each: a lazy route in
forkRoutes.tsx, sidebar nav items inAISettingsSidebarView.tsx, and a nav hook inforkAISettingsNav.ts. No backend changes.Behavior worth review
UpdateForkSavedWorkflowRequest.args_schemacannot hold null, but the API treats null as "remove the schema" and an absent key as "leave unchanged".UpdateSavedWorkflowRequestinapi/forkSavedWorkflows.tswidens the field toRecord<string, string> | null;buildUpdateSavedWorkflowRequestalways sends the key, null when the field is cleared.forkAgentDefinitionsis a follow-up.Tests
Run in
site/on d414ff3:pnpm exec vitest run --project unit src/pages/AISettingsPage src/api/queries: 41 files, 659 passedpnpm exec vitest run --project storybook src/pages/AISettingsPage/ForkWorkflowsPage: 5 files, 42 passedpnpm exec tsc -p .: cleanbiome checkandoxlinton the touched files: cleanpnpm lint(on 48f1fb9): biome, oxlint, tsc and circular deps clean.lint:compilerfails only onForkHtmlAttachmentViewer.tsx(on main).lint:sentence-casereports the same 25 findings with and without this change.knipreports onlychatPinnedSkillsKeyandexcludedPluginPacksKey(on main).Negative controls, each verified to fail and then restored:
deleteSavedWorkflowfails "deletes nothing when the name holds a recreated workflow" and "deletes nothing when the name now holds another workflow".cached ?? workflow) fails "replaces an older same-name workflow in the detail cache".aria-describedbyfails "creates a workflow from the editor form".Follow-ups: #391 (personal Workflows page in Agent settings for members), #392 (id-conditional PATCH and DELETE on the server).
Not exercised: live member and sharing behavior against a dev build (stories and unit tests only).