Skip to content

feat(agent-task): rename agentic workflow - #2907

Merged
rmnbrd merged 2 commits into
stagingfrom
feat/rename-agent-task
Aug 27, 2026
Merged

feat(agent-task): rename agentic workflow#2907
rmnbrd merged 2 commits into
stagingfrom
feat/rename-agent-task

Conversation

@RemiBonnet

@RemiBonnet RemiBonnet commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

Issue: N/A

  • Rename the user-facing Agentic workflow terminology to Agent task across service creation, environment overview, settings, notifications, confirmation copy, document titles, and audit-log filters.
  • Present Agent tasks as one-time tasks delegated to AI agents.
  • Keep the existing AGENTIC_WORKFLOW API contracts, internal identifiers, routes, and telemetry values unchanged.
  • Centralize the audit-log target label and cover its API-to-product-name mapping with a unit test.

Screenshots / Recordings

Not included: this PR only updates product copy and does not change layout or behavior.

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • Focused Jest suites for services, service settings, and audit logs
  • Formatting checked
  • ESLint checked on all changed TypeScript files (zero errors; one pre-existing hook dependency warning)

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

Summary by cubic

Renames the user-facing "Agentic workflow" terminology to "Agent task" across service creation, settings, environment overview, notifications, confirmation copy, document titles, and audit-log filters. Only product copy changes; existing AGENTIC_WORKFLOW API contracts, internal identifiers, routes, and telemetry values remain unchanged.

  • Centralizes audit-log target type mapping in a getTargetTypeLabel helper so the AGENTIC_WORKFLOW API type displays as "Agent task" in filters, badges, and event rows, covered by unit tests.

Written for commit f4e5c49. Summary will update on new commits.

Review in cubic

@nx-cloud

nx-cloud Bot commented Aug 26, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit f4e5c49

Command Status Duration Result
nx run console:build --parallel=3 --configurati... ✅ Succeeded 55s View ↗
nx affected --target=test --parallel=3 --config... ✅ Succeeded 17s View ↗
nx affected --target=lint --parallel=3 ✅ Succeeded 2m 32s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 7s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-26 14:36:27 UTC

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 16 files

Confidence score: 4/5

  • In libs/domains/audit-logs/feature/src/lib/audit-logs/audit-logs.tsx, the target-type badge still shows Agentic workflow while the filter menu shows Agent task, creating an inconsistent product name for the same selection — reuse getTargetTypeLabel for the badge.
  • The new getTargetTypeLabel helper is only wired into the two filter menus, so other audit-log surfaces that render the same API value (e.g., active filters or list views) still show Agentic workflow — apply the helper consistently across those surfaces.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="libs/domains/audit-logs/feature/src/lib/audit-logs/audit-logs.tsx">

<violation number="1" location="libs/domains/audit-logs/feature/src/lib/audit-logs/audit-logs.tsx:144">
P2: When `AGENTIC_WORKFLOW` is selected, this menu shows `Agent task` but the audit-log target-type badge still shows `Agentic workflow`. Reuse `getTargetTypeLabel` for the badge so the filter has one product name.</violation>
</file>

<file name="libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx">

<violation number="1" location="libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx:21">
P2: The new `getTargetTypeLabel` helper is only wired into the two filter menus (audit-logs.tsx and audit-logs-view.tsx). Other audit-log surfaces that render the same API value still show "Agentic workflow": the active-filter badge in filter-section.tsx (`value: upperCaseFirstLetter(queryParams.targetType).split('_').join(' ')` at line 58, and again at line 108 for the target_id badge) and the Target type column in row-event.tsx (`upperCaseFirstLetter(event.target_type ?? '')?.replace(/_/g, ' ')` at line 315). After this change an AGENTIC_WORKFLOW look-up shows "Agent task" in the menu but "Agentic workflow" in the row and in the active-filter chip, so the rename the PR is meant to land is incomplete. Use `getTargetTypeLabel` at every site that formats `target_type`.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

return {
value: item,
name: upperCaseFirstLetter(item).replace(/_/g, ' '),
name: getTargetTypeLabel(item),

@cubic-dev-ai cubic-dev-ai Bot Aug 26, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: When AGENTIC_WORKFLOW is selected, this menu shows Agent task but the audit-log target-type badge still shows Agentic workflow. Reuse getTargetTypeLabel for the badge so the filter has one product name.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At libs/domains/audit-logs/feature/src/lib/audit-logs/audit-logs.tsx, line 144:

<comment>When `AGENTIC_WORKFLOW` is selected, this menu shows `Agent task` but the audit-log target-type badge still shows `Agentic workflow`. Reuse `getTargetTypeLabel` for the badge so the filter has one product name.</comment>

<file context>
@@ -141,7 +141,7 @@ function createTableDataHead(
           return {
             value: item,
-            name: upperCaseFirstLetter(item).replace(/_/g, ' '),
+            name: getTargetTypeLabel(item),
           }
         }),
</file context>
Fix with cubic

OrganizationEventTargetType.TERRAFORM,
])

export function getTargetTypeLabel(targetType: string) {

@cubic-dev-ai cubic-dev-ai Bot Aug 26, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The new getTargetTypeLabel helper is only wired into the two filter menus (audit-logs.tsx and audit-logs-view.tsx). Other audit-log surfaces that render the same API value still show "Agentic workflow": the active-filter badge in filter-section.tsx (value: upperCaseFirstLetter(queryParams.targetType).split('_').join(' ') at line 58, and again at line 108 for the target_id badge) and the Target type column in row-event.tsx (upperCaseFirstLetter(event.target_type ?? '')?.replace(/_/g, ' ') at line 315). After this change an AGENTIC_WORKFLOW look-up shows "Agent task" in the menu but "Agentic workflow" in the row and in the active-filter chip, so the rename the PR is meant to land is incomplete. Use getTargetTypeLabel at every site that formats target_type.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At libs/domains/audit-logs/feature/src/lib/utils/target-type-selection-utils.tsx, line 21:

<comment>The new `getTargetTypeLabel` helper is only wired into the two filter menus (audit-logs.tsx and audit-logs-view.tsx). Other audit-log surfaces that render the same API value still show "Agentic workflow": the active-filter badge in filter-section.tsx (`value: upperCaseFirstLetter(queryParams.targetType).split('_').join(' ')` at line 58, and again at line 108 for the target_id badge) and the Target type column in row-event.tsx (`upperCaseFirstLetter(event.target_type ?? '')?.replace(/_/g, ' ')` at line 315). After this change an AGENTIC_WORKFLOW look-up shows "Agent task" in the menu but "Agentic workflow" in the row and in the active-filter chip, so the rename the PR is meant to land is incomplete. Use `getTargetTypeLabel` at every site that formats `target_type`.</comment>

<file context>
@@ -17,6 +18,12 @@ const SERVICE_TARGET_TYPES: ReadonlySet<OrganizationEventTargetType> = new Set([
   OrganizationEventTargetType.TERRAFORM,
 ])
 
+export function getTargetTypeLabel(targetType: string) {
+  return targetType === OrganizationEventTargetType.AGENTIC_WORKFLOW
+    ? 'Agent task'
</file context>
Fix with cubic

@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.75%. Comparing base (eaaeba1) to head (f4e5c49).

Files with missing lines Patch % Lines
.../feature/src/lib/filter-section/filter-section.tsx 0.00% 0 Missing and 1 partial ⚠️
...audit-logs/feature/src/lib/row-event/row-event.tsx 0.00% 0 Missing and 1 partial ⚠️
...ic-workflow-settings/agentic-workflow-settings.tsx 0.00% 0 Missing and 1 partial ⚠️
...w-configuration/agentic-workflow-configuration.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #2907      +/-   ##
===========================================
- Coverage    48.46%   44.75%   -3.71%     
===========================================
  Files         1272      496     -776     
  Lines        27590    13577   -14013     
  Branches      8114     4171    -3943     
===========================================
- Hits         13372     6077    -7295     
+ Misses       11952     6420    -5532     
+ Partials      2266     1080    -1186     
Flag Coverage Δ
unittests 44.75% <20.00%> (-3.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 20 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more

Re-trigger cubic

@rmnbrd
rmnbrd merged commit 1562fd3 into staging Aug 27, 2026
8 of 9 checks passed
@rmnbrd
rmnbrd deleted the feat/rename-agent-task branch August 27, 2026 09:37
@RemiBonnet

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 1.344.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants