Skip to content

FLPATH-4773: Reflect change introduced by environment agent to UI - #4464

Merged
mareklibra merged 2 commits into
redhat-developer:mainfrom
asmasarw:feature/agents-tab
Sep 2, 2026
Merged

FLPATH-4773: Reflect change introduced by environment agent to UI#4464
mareklibra merged 2 commits into
redhat-developer:mainfrom
asmasarw:feature/agents-tab

Conversation

@asmasarw

@asmasarw asmasarw commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Replace Providers tab with Agents tab

Removes all Providers-related code and introduces a new Agents tab as the default landing tab in the DCM plugin.

dcm-common

  • Deleted ProvidersApi, ProvidersClient, ProvidersClient.test.ts, and types/providers.ts
  • Added AgentsApi, AgentsClient, AgentsClient.test.ts, and types/agents.ts with types derived from the Agent API OpenAPI spec (v1alpha1): Agent, AgentList, AgentRegistrationRequest, AgentCost, AgentHealthStatus, HeartbeatRequest

dcm (frontend plugin)

  • Replaced providersApiRef / providersRouteRef with agentsApiRef / agentsRouteRef
  • Deleted the pages/providers/ directory (all provider UI components)
  • Added pages/agents/ with:
    • AgentsTabContent — paginated table with health-status filtering and agent registration dialog
    • AgentFormFields — registration form backed by service types fetched live from the Catalog API
    • AgentHealthStatus — status badge component
    • CopyButton — reusable clipboard copy component
    • agentFormTypes — form state, Yup validation, and mapping helpers
  • Updated all translation files (ref.ts, de, es, fr, it, ja) to replace providers.* keys with agents.* keys
  • Updated API report files for both packages
  • Added a changeset (minor bump for both packages)

@rhdh-gh-app

rhdh-gh-app Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-bui-test
  • @red-hat-developer-hub/backstage-plugin-theme

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-dcm-common workspaces/dcm/plugins/dcm-common major v1.0.0
@red-hat-developer-hub/backstage-plugin-dcm workspaces/dcm/plugins/dcm major v1.0.0
@red-hat-developer-hub/backstage-plugin-bui-test workspaces/theme/plugins/bui-test none v0.5.0
@red-hat-developer-hub/backstage-plugin-theme workspaces/theme/plugins/theme none v1.1.0

@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.91960% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.65%. Comparing base (c7f1b5d) to head (b79f169).
⚠️ Report is 43 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4464      +/-   ##
==========================================
+ Coverage   58.62%   58.65%   +0.03%     
==========================================
  Files        2547     2547              
  Lines      101638   101668      +30     
  Branches    28588    28583       -5     
==========================================
+ Hits        59585    59637      +52     
+ Misses      40252    40229      -23     
- Partials     1801     1802       +1     
Flag Coverage Δ *Carryforward flag
adoption-insights 84.55% <ø> (ø) Carriedforward from c7f1b5d
ai-integrations 67.70% <ø> (ø) Carriedforward from c7f1b5d
app-defaults 48.37% <ø> (ø) Carriedforward from c7f1b5d
augment 46.67% <ø> (ø) Carriedforward from c7f1b5d
boost 79.84% <ø> (ø) Carriedforward from c7f1b5d
bulk-import 72.79% <ø> (ø) Carriedforward from c7f1b5d
cost-management 13.55% <ø> (ø) Carriedforward from c7f1b5d
dcm 73.47% <83.91%> (+1.37%) ⬆️
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from c7f1b5d
e2e-extensions 62.13% <ø> (ø) Carriedforward from c7f1b5d
e2e-global-header 49.45% <ø> (ø) Carriedforward from c7f1b5d
e2e-homepage 61.11% <ø> (ø) Carriedforward from c7f1b5d
e2e-intelligent-assistant 46.68% <ø> (ø) Carriedforward from c7f1b5d
e2e-orchestrator 49.52% <ø> (ø) Carriedforward from c7f1b5d
e2e-quickstart 55.21% <ø> (ø) Carriedforward from c7f1b5d
e2e-scorecard 50.21% <ø> (ø) Carriedforward from c7f1b5d
e2e-theme 16.36% <ø> (ø) Carriedforward from c7f1b5d
extensions 56.59% <ø> (ø) Carriedforward from c7f1b5d
global-floating-action-button 71.18% <ø> (ø) Carriedforward from c7f1b5d
global-header 66.50% <ø> (ø) Carriedforward from c7f1b5d
homepage 48.39% <ø> (ø) Carriedforward from c7f1b5d
install-dynamic-plugins 58.57% <ø> (ø) Carriedforward from c7f1b5d
intelligent-assistant 75.35% <ø> (ø) Carriedforward from c7f1b5d
konflux 91.98% <ø> (ø) Carriedforward from c7f1b5d
lightspeed 69.02% <ø> (ø) Carriedforward from c7f1b5d
mcp-integrations 84.14% <ø> (ø) Carriedforward from c7f1b5d
orchestrator 70.87% <ø> (ø) Carriedforward from c7f1b5d
quickstart 63.74% <ø> (ø) Carriedforward from c7f1b5d
sandbox 79.56% <ø> (ø) Carriedforward from c7f1b5d
scorecard 87.40% <ø> (ø) Carriedforward from c7f1b5d
theme 88.91% <ø> (ø) Carriedforward from c7f1b5d
translations 5.12% <ø> (ø) Carriedforward from c7f1b5d
x2a 12.40% <ø> (ø) Carriedforward from c7f1b5d

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7f1b5d...b79f169. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asmasarw asmasarw changed the title Implement Agents and remove Providers FLPATH-4773: Reflect change introduced by environment agent to UI Aug 25, 2026

@mareklibra mareklibra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few comments, nothing serious.

Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx Outdated
Comment thread workspaces/dcm/.changeset/replace-providers-with-agents.md Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx
Comment thread workspaces/dcm/plugins/dcm/src/translations/ref.ts
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/agentFormTypes.ts
Comment thread workspaces/dcm/plugins/dcm-common/src/clients/AgentsApi.ts Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx Outdated
@asmasarw
asmasarw requested a review from mareklibra August 31, 2026 10:27

@mareklibra mareklibra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

More comments

Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx
Comment thread workspaces/dcm/plugins/dcm/src/components/DcmCrudTabLayout.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/components/DcmCrudTabLayout.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/AgentsTabContent.tsx
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/components/AgentFormFields.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/hooks/usePaginatedCrudTab.ts Outdated
@asmasarw
asmasarw requested a review from mareklibra September 1, 2026 11:09
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/components/AgentFormFields.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/components/CopyButton.test.tsx Outdated
Comment thread workspaces/dcm/plugins/dcm/src/pages/data-center/DataCenterPage.tsx
Comment thread workspaces/dcm/plugins/dcm/src/pages/agents/agentFormTypes.test.ts
@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

@asmasarw
asmasarw requested a review from mareklibra September 1, 2026 12:31
@mareklibra
mareklibra enabled auto-merge (squash) September 2, 2026 12:37
@mareklibra
mareklibra merged commit 5fba63c into redhat-developer:main Sep 2, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants