Skip to content

fix(ui): Align import page labels, defaults, and sections - #1175

Merged
mrsabath merged 4 commits into
rossoctl:mainfrom
mrsabath:fix/import-ui-consistency
Apr 9, 2026
Merged

mrsabath merged 4 commits into
rossoctl:mainfrom
mrsabath:fix/import-ui-consistency

Conversation

@mrsabath

@mrsabath mrsabath commented Apr 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Align labels, defaults, and section titles between Import Agent and Import Tool pages for a consistent look and feel
  • Agent page: rename field labels ("Git Branch or Tag", "Select Agent", "Source Subfolder"), simplify section titles ("Container Registry", "Build Configuration (Advanced)"), default SPIRE to ON
  • Tool page: rename labels ("Git Branch or Tag", "Select Tool"), change default port to 9090, default env URL to .env.authbridge

Test plan

Closes #762
Depends on #1174

@huang195 huang195 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.

Cześć again Mariusz, double feature dzisiaj! This is a clean cosmetic + defaults alignment PR stacked on #1174.

The incremental changes (commit 2) are small and focused:

  • Agent page: Label renames ("Git Branch or Tag", "Select Agent", "Source Subfolder"), section title update ("Build Configuration (Advanced)"), SPIRE defaults ON
  • Tool page: Label renames to match agent page, default port 8000→9090, default env URL .env.openai→.env.authbridge

No security issues, no logic changes beyond defaults. Both commits are signed-off. Deploy & Test CI failure is a Docker Hub timeout (infra flake, not PR-related). All other 18 checks pass.

Areas reviewed: Frontend (React/TS)
Commits: 2 commits (1st from #1174 dependency), all signed-off: ✅
CI status: 18/19 passing, Deploy & Test failed (Docker Hub timeout — infra flake)

Bardzo czyste zmiany, Mariusz — prosto i do celu! 🎯

@mrsabath

mrsabath commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @mrsabath
Commit: 9124d1255318c07724599a5361f6e90c3cceead0
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

mrsabath added 4 commits April 8, 2026 18:01
Wire envoyProxyInject, spiffeHelperInject, and clientRegistrationInject
through the full stack (React UI, API types, FastAPI backend, TUI) so
users can opt-out individual AuthBridge sidecars at import time.

- Agents default AuthBridge ON; tools default OFF (opt-in checkbox)
- Advanced Injection Controls section appears when AuthBridge is enabled
- Backend sets kagenti.io/envoy-proxy-inject, spiffe-helper-inject, and
  client-registration-inject labels on workload pod templates
- Shipwright build annotations and finalize flow propagate the fields
- TUI request structs carry the new optional fields

Closes #836
Ref #1167, #1168

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
…nt-registration by default

- Fix JSX indentation inside authBridgeEnabled conditional blocks to
  follow conventional 2-level nesting (ImportAgentPage, ImportToolPage)
- Reset per-sidecar injection states to defaults when AuthBridge is
  toggled back on, preventing stale state from confusing users
- Enable client-registration sidecar by default (was opt-in) since
  operator-managed registration is not yet available; will be swapped
  in a follow-up PR
- Update checkbox label from "Legacy Client Registration Sidecar" to
  "Client Registration" with a clearer description

Signed-off-by: Mariusz Sabath <[email protected]>
- Agent page: "Git Branch" -> "Git Branch or Tag", "Select Example" ->
  "Select Agent", "Source Path" -> "Source Subfolder", section title
  renames, SPIRE defaults ON
- Tool page: "Branch or Tag" -> "Git Branch or Tag", "Example Tools" ->
  "Select Tool", default port 9090, env URL defaults to .env.authbridge

Closes #762

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
Keep .env.openai as the default "Load from .env" URL since most
existing tool repos use that filename. Changing to .env.authbridge
would silently break the load button for existing users.

Signed-off-by: Mariusz Sabath <[email protected]>
@mrsabath
mrsabath force-pushed the fix/import-ui-consistency branch from 9124d12 to 057e6aa Compare April 8, 2026 22:01
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 057e6aa

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@mrsabath

mrsabath commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @mrsabath
Commit: 057e6aa3f9139ae436fd79bb850bd6bb5f3275a2
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 9124d1255318c07724599a5361f6e90c3cceead0
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 057e6aa3f9139ae436fd79bb850bd6bb5f3275a2
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@mrsabath
mrsabath merged commit e213ec2 into rossoctl:main Apr 9, 2026
22 checks passed
huang195 added a commit that referenced this pull request May 2, 2026
The UI defaults tool servicePorts to port 9090 / targetPort 9090 (since
PR #1175), but _build_tool_env_vars always injected PORT=8000 from
DEFAULT_ENV_VARS. This caused containers to listen on 8000 while the
K8s Service routed to 9090, resulting in connection resets.

Now _build_tool_env_vars accepts a service_ports parameter and overrides
the PORT value to match the first entry's targetPort, ensuring the app
listens where the Service expects.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
huang195 added a commit to rossoctl/examples that referenced this pull request May 3, 2026
The Kagenti UI defaults tool service ports to 9090 (since rossoctl/rossoctl#1175).
These .env files still referenced port 8000, causing connection failures when
agents tried to reach tools via the K8s service.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
aslom pushed a commit to aslom/rossoctl that referenced this pull request May 11, 2026
The UI defaults tool servicePorts to port 9090 / targetPort 9090 (since
PR rossoctl#1175), but _build_tool_env_vars always injected PORT=8000 from
DEFAULT_ENV_VARS. This caused containers to listen on 8000 while the
K8s Service routed to 9090, resulting in connection resets.

Now _build_tool_env_vars accepts a service_ports parameter and overrides
the PORT value to match the first entry's targetPort, ensuring the app
listens where the Service expects.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Maintainer reviewed - safe to run E2E tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

UI: Consistent look and feel for import Agents and Tools

2 participants