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
{{ message }}
Repository navigation
feat(company-os): CompanyWorkflowCreateModal and RolesView attach picker gated by viewer_can_manage (#14409) #21241
Parent: #14409. Blocked by #21240. Must land after PR #21198, which touches the same files (RolesView.vue).
Problem
The role detail view has no way to create a workflow, attaches by free-text id, and shows mutation controls to viewers who cannot use them (autobot-frontend/src/views/llc/RolesView.vue:18-24, :158-168).
Scope
New kit-based CompanyWorkflowCreateModal component.
RolesView.vue: attach picker with real options, controls hidden unless viewer_can_manage (maintainer decision 2026-11-09, like the org chart), create-then-attach (maintainer decision), explicit empty and unavailable states.
i18n strings in all locale files. Only the controls this work touches move to kit components.
RolesView.vue is under a shrink-only line ratchet: net change must be <= 0 lines (extract logic into the composable/modal).
Acceptance criteria
A company admin creates a workflow in the modal and it is attached to the role in one flow
The attach control is a picker over attachable workflows, not a free-text id
Mutation controls are hidden when viewer_can_manage is false
Empty (nothing attachable) and unavailable (load failed) states are distinct and shown
Owner decision 2026-11-21: per-locale translation dropped; strings are i18n keys in the English locale with English fallback, translatable later. No hardcoded UI strings.
Status from PR #21458 (not merged yet): every acceptance criterion here is delivered in that PR except 'strings in every locale file'. The PR adds the new strings to the English locale only, following the repository's locale policy (new keys land in English; other locales may lag and fall back to English at runtime — see the docstring of repo_tests/i18n_untranslated_ratchet_test.py, owner rule dated 2026-10-18, and locale_completeness_allow_missing_18922_test.py). That criterion is deliberately left unticked, so the PR says Refs, not Closes. Closing this issue needs an owner decision: amend the criterion to English-only, or add the strings to the other ten locale files.
PR keyword: Refs, so this issue stays open. Evidence from origin/main.
Criterion
Evidence
Ticked
Admin creates a workflow in the modal and it is attached in one flow
components/llc/CompanyWorkflowCreateModal.vue:6,29 (create, then attach when roleId given); mounted at components/llc/RoleWorkflowsPanel.vue:183, panel mounted at views/llc/RolesView.vue:159; test __tests__/RoleWorkflowsPanel.test.ts:210
yes
Attach control is a picker, not free text
RoleWorkflowsPanel.vue:157BaseSelectMenu over options
yes
Mutation controls hidden when viewer_can_manage is false
RoleWorkflowsPanel.vue:44,127,154,184 (viewerCanManage); test RoleWorkflowsPanel.test.ts:150
yes
Empty and unavailable states distinct
RoleWorkflowsPanel.vue:143 (role-workflows-unavailable) vs :173 (role-workflows-nothing-attachable); tests :169, :183
yes
All new strings in every locale file
only autobot-frontend/src/i18n/locales/en.json gained keys in #21458 (+25); e.g. llc.workflows.newWorkflow and llc.orgChart.processNothingAttachable are absent from the other ten locale files
no: deliberately unmet under the English-only locale policy; owner decision pending
RolesView.vue net line change <= 0
1026 lines before the train, 1015 on main
yes
Remaining
The every-locale-file criterion, pending the owner's decision on the locale policy. Parent: #14409.
Locale criterion amended and verified (owner decision 2026-11-21)
Per-locale translation is dropped. Each new string is an i18n key, defined in en.json (the llc.workflows block, autobot-frontend/src/i18n/locales/en.json:9508-9527), with an English fallback.
No hardcoded UI strings: a scan of the templates and scripts of CompanyWorkflowCreateModal.vue and RoleWorkflowsPanel.vue finds no English literal rendered to the user; the only literals are a log message (CompanyWorkflowCreateModal.vue:130) and code comments. The detach glyph × carries a translated aria-label (RoleWorkflowsPanel.vue:131).
English fallback (verified at origin/main @ d8cbd91925):
autobot-frontend/src/i18n/index.ts:43fallbackLocale: 'en'; :94-98initI18n() always loads en alongside the active locale, so a key absent from another locale renders English.
for each English key added by that PR, check the exact "key":"value" pair is in the English locale chunk of the deployed frontend bundle (the release directory the web server serves, built 21:21 Riga)
grep the built chunks for the llc.workflows. / llc.orgChart. key references
llc.workflows.* keys referenced from the built RolesView and OrgChart chunks; CompanyWorkflowCreateModal ships as its own chunk
Verdict
Verified for the deployed strings and code. The behavioural ACs (create-and-attach flow, viewer_can_manage gating) were not exercised on the host, because that needs mutating requests.
Activity
fix(company-os): review findings on the company-workflow UI — service…
mrveiss commentedon Nov 13, 2026
Status from PR #21458 (not merged yet): every acceptance criterion here is delivered in that PR except 'strings in every locale file'. The PR adds the new strings to the English locale only, following the repository's locale policy (new keys land in English; other locales may lag and fall back to English at runtime — see the docstring of
repo_tests/i18n_untranslated_ratchet_test.py, owner rule dated 2026-10-18, andlocale_completeness_allow_missing_18922_test.py). That criterion is deliberately left unticked, so the PR saysRefs, notCloses. Closing this issue needs an owner decision: amend the criterion to English-only, or add the strings to the other ten locale files.fix(company-os): an unmounted create-workflow form attaches nothing; …
github-actions commentedon Nov 13, 2026
Landed via the merge train (#21475, merge
1ccdc9655d) via #21458mrveiss commentedon Nov 13, 2026
Landed in #21458 (merge 1ccdc96)
PR keyword:
Refs, so this issue stays open. Evidence fromorigin/main.components/llc/CompanyWorkflowCreateModal.vue:6,29(create, then attach whenroleIdgiven); mounted atcomponents/llc/RoleWorkflowsPanel.vue:183, panel mounted atviews/llc/RolesView.vue:159; test__tests__/RoleWorkflowsPanel.test.ts:210RoleWorkflowsPanel.vue:157BaseSelectMenuoveroptionsviewer_can_manageis falseRoleWorkflowsPanel.vue:44,127,154,184(viewerCanManage); testRoleWorkflowsPanel.test.ts:150RoleWorkflowsPanel.vue:143(role-workflows-unavailable) vs:173(role-workflows-nothing-attachable); tests:169,:183autobot-frontend/src/i18n/locales/en.jsongained keys in #21458 (+25); e.g.llc.workflows.newWorkflowandllc.orgChart.processNothingAttachableare absent from the other ten locale filesRolesView.vuenet line change <= 0Remaining
The every-locale-file criterion, pending the owner's decision on the locale policy. Parent: #14409.
feat(company-os): create and attach company workflows from the Roles …
mrveiss commentedon Nov 21, 2026
Locale criterion amended and verified (owner decision 2026-11-21)
Per-locale translation is dropped. Each new string is an i18n key, defined in
en.json(thellc.workflowsblock,autobot-frontend/src/i18n/locales/en.json:9508-9527), with an English fallback.llc.workflows.*)autobot-frontend/src/components/llc/)createTitle,fieldId,idHint,fieldNameCompanyWorkflowCreateModal.vue:141,153,154,162working,attachCreated,createAndAttachCompanyWorkflowCreateModal.vue:60,61,62createForbidden,createFailed,attachCreatedFailedCompanyWorkflowCreateModal.vue:91,92,98newWorkflowRoleWorkflowsPanel.vue:169loading,unavailable,standingUnavailableRoleWorkflowsPanel.vue:141,144,151pickerLabel,pickerPlaceholderRoleWorkflowsPanel.vue:160,161nothingAttachable,allAttachedRoleWorkflowsPanel.vue:178No hardcoded UI strings: a scan of the templates and scripts of
CompanyWorkflowCreateModal.vueandRoleWorkflowsPanel.vuefinds no English literal rendered to the user; the only literals are a log message (CompanyWorkflowCreateModal.vue:130) and code comments. The detach glyph×carries a translatedaria-label(RoleWorkflowsPanel.vue:131).English fallback (verified at
origin/main@d8cbd91925):autobot-frontend/src/i18n/index.ts:43fallbackLocale: 'en';:94-98initI18n()always loadsenalongside the active locale, so a key absent from another locale renders English.autobot-frontend/src/i18n/__tests__/locale-parity.test.tsonly fails on keys present in a locale but absent fromen.json(the missing-key direction was removed in i18n: make locale parity one-directional, and stop the untranslated ratchet going blind when it is #16063);autobot-frontend/package.json:37runscheck-locale-completeness.py --allow-missing(ci(i18n): the locale-completeness gate fails every new English-only key, contradicting the English-only ruling #18922);repo_tests/i18n_untranslated_ratchet_test.pyfails only when an existing translation is lost. Missing keys are counted as untranslated debt, so they stay translatable later.Every acceptance criterion is now ticked. Closing.
mrveiss commentedon Nov 21, 2026
Host evidence (install at d8cbd91)
Checked 2026-11-21 ~21:38 Riga. Deployed commit marker on the install =
d8cbd91925a19c7e4bc27696382e8b6a01ef2c0d(=origin/main); backend and SLM backend servicesactive. All checks read-only.Commands (generic)
"key":"value"pair is in the English locale chunk of the deployed frontend bundle (the release directory the web server serves, built 21:21 Riga)llc.workflows./llc.orgChart.key referencesResults
scripts/frontend_file_size_known_large.py), is not part of the installllc.workflows.*English keys (18:newWorkflow,createTitle,fieldId,idHint,fieldName,working,createAndAttach,attachCreated,createForbidden,createFailed,attachCreatedFailed,pickerLabel,pickerPlaceholder,loading,unavailable,nothingAttachable,allAttached,standingUnavailable)llc.orgChart.*keys added (4:processNodesUnavailable,processNoneAttached,processNothingAttachable,workflowsUnavailable)llc.workflows.*keys referenced from the builtRolesViewandOrgChartchunks;CompanyWorkflowCreateModalships as its own chunkVerdict
Verified for the deployed strings and code. The behavioural ACs (create-and-attach flow,
viewer_can_managegating) were not exercised on the host, because that needs mutating requests.