Skip to content

Conversation

andreaskienle
Copy link
Contributor

@andreaskienle andreaskienle commented Sep 30, 2025

Implements openmcp-project/backlog#284

The backlog item says to show the display name. With the previous changes, we already show this name as the main title, so I added the k8s resource name statically to the header instead.

image

@Copilot Copilot AI review requested due to automatic review settings September 30, 2025 10:41
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a header component to the MCP (Managed Control Plane) page displaying metadata information including name, creation date, and creator.

  • Creates a new McpHeader component that displays MCP metadata in a grid layout
  • Integrates the header component into the existing MCP page using ObjectPageHeader
  • Updates the API type definition to include creationTimestamp and optional creator annotation

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/spaces/mcp/pages/McpPage.tsx Integrates the new McpHeader component into the ObjectPage headerArea
src/spaces/mcp/components/McpHeader.tsx Creates the header component displaying MCP name, creation date, and creator
src/spaces/mcp/components/McpHeader.module.css Defines CSS styles for the header's grid layout and label styling
src/spaces/mcp/components/McpHeader.cy.tsx Adds Cypress tests for the header component functionality
src/lib/api/types/crate/controlPlanes.ts Updates type definitions and API query to include creationTimestamp and optional created-by annotation
public/locales/en.json Adds English translations for the header labels

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andreaskienle andreaskienle changed the title Ft/header feat: show MCP metadata in the header Sep 30, 2025
Copy link
Contributor

@Hubert-Szczepanski-SAP Hubert-Szczepanski-SAP left a comment

Choose a reason for hiding this comment

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

Good job! Nothing to add from my side :)

@andreaskienle andreaskienle merged commit a7b2a81 into main Oct 2, 2025
5 checks passed
@andreaskienle andreaskienle deleted the ft/header branch October 2, 2025 10:39
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