From e58899f80432f94ad43ec45cb026ab19407e9dd9 Mon Sep 17 00:00:00 2001 From: "Mat.Busby" Date: Tue, 19 Nov 2024 11:06:42 -0700 Subject: [PATCH 1/2] Rename "Final Application" to "Application" Updated code references and URLs to change "Final Application" to "Application". This includes link paths, titles, and switch cases to maintain consistency across the project. --- .gitignore | 1 + .../components/mine/Projects/MajorMineApplicationTab.js | 4 ++-- .../core-web/src/components/mine/Projects/Project.tsx | 6 +++--- .../src/components/mine/Projects/ProjectOverviewTab.tsx | 4 ++-- services/core-web/src/constants/routes.ts | 8 ++++---- .../__snapshots__/ProjectOverviewTab.spec.tsx.snap | 4 ++-- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index eea12bebe5..ceb7f522dc 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ gitops/tenant-gitops-4c2ba9 .vscode/settings.json services/document-manager/document-manager.iml /services/filesystem-provider/ej2-amazon-s3-aspcore-file-provider/Folder.DotSettings.user +/services/core-api/core-api.iml diff --git a/services/core-web/src/components/mine/Projects/MajorMineApplicationTab.js b/services/core-web/src/components/mine/Projects/MajorMineApplicationTab.js index 1d627ac938..e4816d0052 100644 --- a/services/core-web/src/components/mine/Projects/MajorMineApplicationTab.js +++ b/services/core-web/src/components/mine/Projects/MajorMineApplicationTab.js @@ -76,7 +76,7 @@ export class MajorMineApplicationTab extends Component { componentDidUpdate(nextProps) { if ( nextProps.match.params.tab !== this.props.match.params.tab && - this.props.match.params.tab === "final-app" + this.props.match.params.tab === "app" ) { this.fetchData(); } @@ -204,7 +204,7 @@ export class MajorMineApplicationTab extends Component {
diff --git a/services/core-web/src/components/mine/Projects/Project.tsx b/services/core-web/src/components/mine/Projects/Project.tsx index 2cfdda3ec5..2f7696a092 100644 --- a/services/core-web/src/components/mine/Projects/Project.tsx +++ b/services/core-web/src/components/mine/Projects/Project.tsx @@ -65,7 +65,7 @@ const Project: FC = () => { switch (newActiveTab) { case "final-app": - url = routes.PROJECT_FINAL_APPLICATION.dynamicRoute(projectGuid); + url = routes.PROJECT_APPLICATION.dynamicRoute(projectGuid); break; case "decision-package": url = routes.PROJECT_DECISION_PACKAGE.dynamicRoute(projectGuid); @@ -139,8 +139,8 @@ const Project: FC = () => { ), }, { - key: "final-app", - label: "Final Application", + key: "app", + label: "Application", disabled: !hasFinalAplication, children: (
diff --git a/services/core-web/src/components/mine/Projects/ProjectOverviewTab.tsx b/services/core-web/src/components/mine/Projects/ProjectOverviewTab.tsx index 430f4f3e73..498358d5d8 100644 --- a/services/core-web/src/components/mine/Projects/ProjectOverviewTab.tsx +++ b/services/core-web/src/components/mine/Projects/ProjectOverviewTab.tsx @@ -97,14 +97,14 @@ export const ProjectOverviewTab: FC = () => { ), }, { - title: "Final Application", + title: "Application", key: `ps-${project.major_mine_application.major_mine_application_id}`, status: project.major_mine_application.status_code, statusHash: majorMineApplicationStatusCodeHash, link: (
@@ -360,7 +360,7 @@ exports[`ProjectOverviewTab renders properly 1`] = ` >