Skip to content

Commit

Permalink
refs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmadigan committed Jul 30, 2024
1 parent 0a4fad3 commit 4821ccf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"properties": {
"exact": true,
"path": "/k8s/ns/:ns/rhcl",
"component": { "$codeRef": "RHCLDashboardPage" }
"component": { "$codeRef": "KuadrantDashboardPage" }
}
},
{
"type": "console.page/route",
"properties": {
"exact": true,
"path": "/k8s/all-namespaces/rhcl",
"component": { "$codeRef": "RHCLDashboardPage" }
"component": { "$codeRef": "KuadrantDashboardPage" }
}
},
{
"type": "console.navigation/section",
"properties": {
"id": "connectivity-link-section",
"name": "%plugin__console-plugin-template~Connectivity Link%",
"id": "kuadrant-section",
"name": "%plugin__console-plugin-template~Kuadrant%",
"perspective": "dev"
}
},
Expand All @@ -30,7 +30,7 @@
"name": "%plugin__console-plugin-template~Dashboard%",
"href": "/k8s/all-namespaces/rhcl",
"perspective": "dev",
"section": "connectivity-link-section"
"section": "kuadrant-section"
}
}
]
2 changes: 1 addition & 1 deletion integration-tests/tests/example-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('Console plugin template test', () => {

it('Verify the example page title', () => {
cy.get('[data-quickstart-id="qs-nav-home"]').click();
cy.get('[data-test="nav"]').contains('Connectivity Link').click();
cy.get('[data-test="nav"]').contains('Kuadrant').click();
cy.url().should('include', '/example');
cy.get('[data-test="example-page-title"]').should('contain', 'Hello, Plugin!');
});
Expand Down
1 change: 1 addition & 0 deletions locales/en/plugin__console-plugin-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"Hello, Plugin!": "Hello, Plugin!",
"in package.json mapping the reference to the module.": "in package.json mapping the reference to the module.",
"Connectivity Link": "Connectivity Link",
"Kuadrant": "Kuadrant",
"Success!": "Success!",
"This is a custom page contributed by the console plugin template. The extension that adds the page is declared in console-extensions.json in the project root along with the corresponding nav item. Update console-extensions.json to change or add extensions. Code references in console-extensions.json must have a corresponding property": "This is a custom page contributed by the console plugin template. The extension that adds the page is declared in console-extensions.json in the project root along with the corresponding nav item. Update console-extensions.json to change or add extensions. Code references in console-extensions.json must have a corresponding property",
"Your plugin is working.": "Your plugin is working.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"displayName": "OpenShift Console Plugin Template",
"description": "Template project for OpenShift Console plugins. Edit package.json to change this message and the plugin name.",
"exposedModules": {
"RHCLDashboardPage": "./components/RHCLDashboardPage"
"KuadrantDashboardPage": "./components/KuadrantDashboardPage"
},
"dependencies": {
"@console/pluginAPI": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const resources: Resource[] = [
{ name: 'TLSPolicies', gvk: { group: 'kuadrant.io', version: 'v1alpha1', kind: 'TLSPolicy' } },
];

const RHCLDashboardPage: React.FC = () => {
const KuadrantDashboardPage: React.FC = () => {
const { t } = useTranslation('plugin__console-plugin-template');
const { ns } = useParams<{ ns: string }>();
const [activeNamespace, setActiveNamespace] = useActiveNamespace();
Expand Down Expand Up @@ -105,11 +105,11 @@ const RHCLDashboardPage: React.FC = () => {
return (
<>
<Helmet>
<title data-test="example-page-title">{t('Connectivity Link')}</title>
<title data-test="example-page-title">{t('Kuadrant')}</title>
</Helmet>
<Page>
<PageSection variant="light">
<Title headingLevel="h1">{t('Connectivity Link')}</Title>
<Title headingLevel="h1">{t('Kuadrant')}</Title>
</PageSection>
{resources.map((resource) => {
const { group, version, kind } = resource.gvk;
Expand All @@ -126,4 +126,4 @@ const RHCLDashboardPage: React.FC = () => {
);
};

export default RHCLDashboardPage;
export default KuadrantDashboardPage;

0 comments on commit 4821ccf

Please sign in to comment.