Skip to content

fix(audit-logs): support agentic workflow targets - #2858

Merged
RemiBonnet merged 3 commits into
feat/agentic-workflow-ui-updatesfrom
fix/agentic-workflow-audit-logs
Aug 11, 2026
Merged

fix(audit-logs): support agentic workflow targets#2858
RemiBonnet merged 3 commits into
feat/agentic-workflow-ui-updatesfrom
fix/agentic-workflow-audit-logs

Conversation

@RemiBonnet

@RemiBonnet RemiBonnet commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

Issue: N/A — regression found on AWS tests

Fix the organization audit log view and target filter when agentic workflow events are returned.

  • Update qovery-typescript-axios to 1.1.947, which exposes OrganizationEventTargetType.AGENTIC_WORKFLOW.
  • Treat agentic workflow targets as typed services and link them to their service overview.
  • Add agentic workflows to the hierarchical target dropdown: project → environment → workflow.
  • Gracefully render unsupported future target types as plain text instead of crashing the entire audit log view.
  • Add regression coverage for agentic workflow rendering, unknown target types, and dropdown navigation.

Root cause: the backend returned AGENTIC_WORKFLOW audit targets before that value was available in the generated TypeScript client enum. The row renderer assumed every runtime target type existed in its link-renderer map, while the hierarchical dropdown did not classify agentic workflows as services.

Screenshots / Recordings

Not applicable — behavior-only crash and filter fix.

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots)
  • yarn format
  • yarn lint

Validation details:

  • Row event tests: 22 passed.
  • Agentic workflow dropdown hierarchy test: passed.
  • Audit logs feature: 37 tests passed, 38 skipped before the dropdown follow-up.
  • ESLint: no errors; existing warnings only.
  • git diff --check: passed.

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

@RemiBonnet
RemiBonnet marked this pull request as ready for review August 11, 2026 11:01
@nx-cloud

nx-cloud Bot commented Aug 11, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 2b49a4c

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

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


☁️ Nx Cloud last updated this comment at 2026-08-11 12:25:54 UTC

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.11111% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.56%. Comparing base (5cc602a) to head (1a63f51).

Files with missing lines Patch % Lines
...ture/src/lib/utils/target-type-selection-utils.tsx 46.15% 7 Missing ⚠️
Additional details and impacted files
@@                         Coverage Diff                          @@
##           feat/agentic-workflow-ui-updates    #2858      +/-   ##
====================================================================
+ Coverage                             47.51%   48.56%   +1.04%     
====================================================================
  Files                                  1278     1276       -2     
  Lines                                 27534    27397     -137     
  Branches                               8037     7983      -54     
====================================================================
+ Hits                                  13082    13304     +222     
+ Misses                                12233    11834     -399     
- Partials                               2219     2259      +40     
Flag Coverage Δ
unittests 48.56% <61.11%> (+1.04%) ⬆️

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.

@RemiBonnet
RemiBonnet merged commit c4ef978 into feat/agentic-workflow-ui-updates Aug 11, 2026
8 checks passed
@RemiBonnet
RemiBonnet deleted the fix/agentic-workflow-audit-logs branch August 11, 2026 12:32
@RemiBonnet
RemiBonnet restored the fix/agentic-workflow-audit-logs branch August 11, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants