Kuadrant / Kuadrant/kuadrant-console-plugin

MCP Wizard: Embedded create pages show duplicate UI chrome

Open
#759 0 comments 0 reactions 1 assignee Claimed by @pascazzioIsAbyayalan View on GitHub
bug enhancement triage/accepted
Dominant language
TypeScript
Stars
10
Forks
65
Avg merge
2d 8h
Merged PRs (30d)
44

Description

## Description

When `GatewayCreatePage` and `HTTPRouteCreatePage` are embedded in the MCP Setup Wizard, they render their own components that attempt to control the browser tab title. This creates duplicate Helmet components competing to manage the same DOM `` element.

## Current Behaviour

Both Helmets render simultaneously, causing:
- Two React components managing the same `<title>` element
- Unnecessary React work managing duplicate side-effects
- Fragile behavior dependent on render timing and react-helmet internals
- Semantic incorrectness: embedded components shouldn't control page-level metadata

## Expected Behaviour

Add `isEmbedded` prop to both create pages. When true:
- Hide Helmet (browser tab title management)
- Hide page heading (co-m-nav-title)

## Affected Files

- `src/components/mcp/MCPSetupWizard.tsx:227-238, 345-357`
- `src/components/gateway/GatewayCreatePage.tsx:1566-1582`
- `src/components/httproute/HTTPRouteCreatePage.tsx:599-612`

## Related

CodeRabbit comment in PR #734

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.