You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parent: #14409. Blocked by the backend issue #21239.
Problem
Nothing in the frontend lists, creates, or picks company workflows. Attach/detach calls live inline in the views, and a load failure is indistinguishable from an empty list.
Scope
New composable autobot-frontend/src/composables/llc/useCompanyWorkflows.ts:
load workflows with kind=workflow for a company;
create through the path-scoped route (maintainer decision 2026-11-09);
attach/detach moved here from the views;
attachable options (workflows not yet attached to the role);
state distinguishes failed from empty.
Widen the path type in autobot-frontend/src/composables/llc/workflowPlanRequest.ts so it accepts the path-scoped workflow routes.
Landed in #21393 via merge train #21394, merge commit 923b9e902e on main, checked 2026-11-12 (Riga). Evidence below is read from main at that commit. CI of #21394 at its head: vue-tsc-baseline, frontend-tests, verify-types-run SUCCESS.
useCompanyWorkflows.ts load catch sets state='failed', workflows=[]; test "a thrown load is failed, never an empty ready list"
Create uses path-scoped route; 403 typed
met
LIST='/api/llc/workflows/{company_id}'; WorkflowWriteError.forbidden = status === 403; test "create surfaces a 403 as a typed forbidden error"
workflowPlanRequest path type widened, callers still type-check
met
workflowPlanRequest.ts:17-23 adds /api/llc/workflows/${string} and /api/llc/roles/${string}/workflows${string}; vue-tsc-baseline SUCCESS on #21394
No new direct fetch, shared ApiClient
met
grep fetch|console. in the file: no match; uses useApiClient() + planRequest
Logger, no console.*
met
createLogger('useCompanyWorkflows')
All ACs delivered: stays closed. Note: "attachable" disables already-attached ids (disabled: on.has(id)) rather than omitting them; the AC wording is satisfied either way.
Activity
fix(guard): the two company-workflow routes the composable now calls …
github-actions commentedon Nov 12, 2026
Landed via the merge train (#21394, merge
923b9e902e) via #21393mrveiss commentedon Nov 12, 2026
Landed in #21393 via merge train #21394, merge commit
923b9e902eon main, checked 2026-11-12 (Riga). Evidence below is read from main at that commit. CI of #21394 at its head:vue-tsc-baseline,frontend-tests,verify-types-runSUCCESS.useCompanyWorkflows.ts:146returnsload, create, attach, detach, attachableuseCompanyWorkflows.tsload catch setsstate='failed',workflows=[]; test "a thrown load is failed, never an empty ready list"LIST='/api/llc/workflows/{company_id}';WorkflowWriteError.forbidden = status === 403; test "create surfaces a 403 as a typed forbidden error"workflowPlanRequestpath type widened, callers still type-checkworkflowPlanRequest.ts:17-23adds/api/llc/workflows/${string}and/api/llc/roles/${string}/workflows${string};vue-tsc-baselineSUCCESS on #21394fetch, shared ApiClientfetch|console.in the file: no match; usesuseApiClient()+planRequestconsole.*createLogger('useCompanyWorkflows')All ACs delivered: stays closed. Note: "attachable" disables already-attached ids (
disabled: on.has(id)) rather than omitting them; the AC wording is satisfied either way.feat(company-os): useCompanyWorkflows composable (mrveiss#21240)