Skip to content
This repository was archived by the owner on Aug 12, 2026. It is now read-only.

Commit ffc0b02

Browse files
committed
Remove plugin name from header
Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 741a7dd commit ffc0b02

5 files changed

Lines changed: 0 additions & 58 deletions

File tree

‎dashboard/src/components/AppView/AppView.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ export default function AppView() {
360360
<span>from an unknown package</span>
361361
)
362362
}
363-
plugin={selectedInstalledPkg?.availablePackageRef?.plugin}
364363
icon={icon}
365364
buttons={getButtons(selectedInstalledPkg, error, revision)}
366365
/>

‎dashboard/src/components/OperatorView/OperatorHeader.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default function OperatorHeader(props: IOperatorHeaderProps) {
1818
title={title}
1919
titleSize="md"
2020
icon={icon || placeholder}
21-
operator={true}
2221
version={
2322
version ? (
2423
<div className="header-version">

‎dashboard/src/components/PackageHeader/PackageHeader.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export default function PackageHeader({
4545
}
4646
titleSize="md"
4747
icon={availablePackageDetail?.iconUrl ? availablePackageDetail.iconUrl : placeholder}
48-
plugin={availablePackageDetail.availablePackageRef.plugin}
4948
version={
5049
hideVersionsSelector ? (
5150
<></>

‎dashboard/src/components/PageHeader/PageHeader.test.tsx‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { mount } from "enzyme";
5-
import { Plugin } from "gen/kubeappsapis/core/plugins/v1alpha1/plugins_pb";
65
import PageHeader from "./PageHeader";
76

87
const defaultProps = {
@@ -34,42 +33,6 @@ it("includes a filter component", () => {
3433
expect(wrapper.find("#foo")).toExist();
3534
});
3635

37-
it("renders a Helm subtitle", () => {
38-
const wrapper = mount(
39-
<PageHeader {...defaultProps} plugin={{ name: "helm.packages", version: "0.0.1" } as Plugin} />,
40-
);
41-
expect(wrapper.find("img").prop("src")).toBe("helm.svg");
42-
expect(wrapper.text()).toContain("Helm Chart");
43-
});
44-
45-
it("renders a Flux subtitle", () => {
46-
const wrapper = mount(
47-
<PageHeader
48-
{...defaultProps}
49-
plugin={{ name: "fluxv2.packages", version: "0.0.1" } as Plugin}
50-
/>,
51-
);
52-
expect(wrapper.find("img").prop("src")).toBe("flux.svg");
53-
expect(wrapper.text()).toContain("Helm Chart");
54-
});
55-
56-
it("renders a Carvel subtitle", () => {
57-
const wrapper = mount(
58-
<PageHeader
59-
{...defaultProps}
60-
plugin={{ name: "kapp_controller.packages", version: "0.0.1" } as Plugin}
61-
/>,
62-
);
63-
expect(wrapper.find("img").prop("src")).toBe("carvel.svg");
64-
expect(wrapper.text()).toContain("Carvel Package");
65-
});
66-
67-
it("renders an Operator subtitle", () => {
68-
const wrapper = mount(<PageHeader {...defaultProps} operator={true} />);
69-
expect(wrapper.find("img").prop("src")).toBe("olm-icon.svg");
70-
expect(wrapper.text()).toContain("Operator");
71-
});
72-
7336
it("renders a version section", () => {
7437
const wrapper = mount(<PageHeader {...defaultProps} version={<div id="foo" />} />);
7538
expect(wrapper.find("#foo")).toExist();

‎dashboard/src/components/PageHeader/PageHeader.tsx‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
import Icon from "components/Icon/Icon";
55
import Column from "components/Column";
66
import Row from "components/Row";
7-
import { getPluginIcon, getPluginPackageName } from "shared/utils";
87
import "./PageHeader.css";
9-
import { Plugin } from "gen/kubeappsapis/core/plugins/v1alpha1/plugins_pb";
108

119
export interface IPageHeaderProps {
1210
title: string;
1311
titleSize?: "lg" | "md";
1412
icon?: any;
1513
subtitle?: JSX.Element;
1614
filter?: JSX.Element;
17-
plugin?: Plugin;
18-
operator?: boolean;
1915
buttons?: JSX.Element[];
2016
version?: JSX.Element;
2117
}
@@ -26,9 +22,7 @@ function PageHeader({
2622
subtitle,
2723
filter,
2824
buttons,
29-
plugin,
3025
version,
31-
operator,
3226
}: IPageHeaderProps) {
3327
return (
3428
<header className="kubeapps-header">
@@ -40,18 +34,6 @@ function PageHeader({
4034
<div className="kubeapps-title-block">
4135
{titleSize === "lg" ? <h1>{title}</h1> : <h3>{title}</h3>}
4236
{subtitle && <div className="kubeapps-header-subtitle">{subtitle}</div>}
43-
{plugin && (
44-
<div className="kubeapps-header-subtitle">
45-
<img src={getPluginIcon(plugin)} alt="package-icon" />
46-
<span>{getPluginPackageName(plugin)}</span>
47-
</div>
48-
)}
49-
{operator && (
50-
<div className="kubeapps-header-subtitle">
51-
<img src={getPluginIcon("operator")} alt="olm-icon" />
52-
<span>{getPluginPackageName("operator")}</span>
53-
</div>
54-
)}
5537
</div>
5638
{filter}
5739
</div>

0 commit comments

Comments
 (0)