From a47be857e0820dc8f7ebffcdd4ee3e3aedfade9a Mon Sep 17 00:00:00 2001 From: Christopher Fry Date: Fri, 11 Nov 2022 14:45:49 -0800 Subject: [PATCH] feat: rename repositories list page to package management (#210) This change renames the Repositories List Page to Package Management. --- .../cad/src/components/AddPackagePage/AddPackagePage.tsx | 6 +++--- plugins/cad/src/components/LandingPage/LandingPage.tsx | 4 ++-- .../Links/{RepositoriesLink.tsx => LandingPageLink.tsx} | 8 ++++---- plugins/cad/src/components/Links/index.ts | 2 +- .../PackageManagementPage.tsx} | 6 +++--- .../components/RepositoriesTable.tsx | 0 .../index.ts | 2 +- .../PackageRevisionPage/PackageRevisionPage.tsx | 4 ++-- .../RegisterRepositoryPage/RegisterRepositoryPage.tsx | 6 +++--- .../cad/src/components/RepositoryPage/RepositoryPage.tsx | 4 ++-- .../components/AdvancedRepositoryOptions.tsx | 4 ++-- 11 files changed, 23 insertions(+), 23 deletions(-) rename plugins/cad/src/components/Links/{RepositoriesLink.tsx => LandingPageLink.tsx} (82%) rename plugins/cad/src/components/{RepositoryListPage/RepositoryListPage.tsx => PackageManagementPage/PackageManagementPage.tsx} (96%) rename plugins/cad/src/components/{RepositoryListPage => PackageManagementPage}/components/RepositoriesTable.tsx (100%) rename plugins/cad/src/components/{RepositoryListPage => PackageManagementPage}/index.ts (90%) diff --git a/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx b/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx index ef86e933..ebe4fa47 100644 --- a/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx +++ b/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx @@ -63,7 +63,7 @@ import { sortByLabel } from '../../utils/selectItem'; import { emptyIfUndefined, toLowerCase } from '../../utils/string'; import { dumpYaml, loadYaml } from '../../utils/yaml'; import { Checkbox, Select } from '../Controls'; -import { PackageLink, RepositoriesLink, RepositoryLink } from '../Links'; +import { LandingPageLink, PackageLink, RepositoryLink } from '../Links'; import { applyNamespaceState, getNamespaceDefaultState, @@ -503,7 +503,7 @@ export const AddPackagePage = ({ action }: AddPackagePageProps) => { {isCloneNamedPackageAction && ( - + { {isAddPackageAction && ( - + { @@ -77,7 +77,7 @@ export const LandingPage = () => { return ( - } /> + } /> } diff --git a/plugins/cad/src/components/Links/RepositoriesLink.tsx b/plugins/cad/src/components/Links/LandingPageLink.tsx similarity index 82% rename from plugins/cad/src/components/Links/RepositoriesLink.tsx rename to plugins/cad/src/components/Links/LandingPageLink.tsx index 8baed3c2..c39ec839 100644 --- a/plugins/cad/src/components/Links/RepositoriesLink.tsx +++ b/plugins/cad/src/components/Links/LandingPageLink.tsx @@ -24,15 +24,15 @@ type RepositoriesLinkProps = { breadcrumb?: boolean; }; -export const RepositoriesLink = ({ breadcrumb }: RepositoriesLinkProps) => { - const repositoriesRef = useRouteRef(rootRouteRef); +export const LandingPageLink = ({ breadcrumb }: RepositoriesLinkProps) => { + const packageManagementRef = useRouteRef(rootRouteRef); const classes = useLinkStyles(); const className = breadcrumb ? classes.breadcrumb : ''; return ( - - Repositories + + Package Management ); }; diff --git a/plugins/cad/src/components/Links/index.ts b/plugins/cad/src/components/Links/index.ts index 1b382517..b6d6a5a6 100644 --- a/plugins/cad/src/components/Links/index.ts +++ b/plugins/cad/src/components/Links/index.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -export { RepositoriesLink } from './RepositoriesLink'; +export { LandingPageLink } from './LandingPageLink'; export { RepositoryLink } from './RepositoryLink'; export { PackageLink } from './PackageLink'; diff --git a/plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx b/plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx similarity index 96% rename from plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx rename to plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx index b7ecc04f..9d26d617 100644 --- a/plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx +++ b/plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx @@ -49,7 +49,7 @@ export const useStyles = makeStyles({ }, }); -export const RepositoryListPage = () => { +export const PackageManagementPage = () => { const classes = useStyles(); const api = useApi(configAsDataApiRef); @@ -93,10 +93,10 @@ export const RepositoryListPage = () => { return (
- Repositories + Package Management - +