From fdf331048d53fbedfc3796f17bf94df851fd1007 Mon Sep 17 00:00:00 2001 From: naftis Date: Fri, 14 Jun 2024 13:12:54 +0300 Subject: [PATCH 1/4] chore: deprecate admin ui menu items --- packages/client/src/App.tsx | 38 ------ .../src/components/interface/Navigation.tsx | 113 ++++-------------- 2 files changed, 22 insertions(+), 129 deletions(-) diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index 84d79b934b5..af613f7f7ae 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -47,8 +47,6 @@ import { AppStore } from './store' import { CorrectionForm, CorrectionReviewForm } from './views/CorrectionForm' import { VerifyCorrector } from './views/CorrectionForm/VerifyCorrector' import { RecordAudit } from './views/RecordAudit/RecordAudit' -import { ApplicationConfig } from './views/SysAdmin/Config/Application' -import { CertificatesConfig } from './views/SysAdmin/Config/Certificates' import { UserList } from './views/SysAdmin/Team/user/UserList' import { SystemList } from './views/SysAdmin/Config/Systems/Systems' import VSExport from './views/SysAdmin/Vsexports/VSExport' @@ -62,11 +60,9 @@ import { Leaderboards } from '@client/views/Performance/Leaderboards' import { PerformanceDashboard } from '@client/views/Performance/Dashboard' import { SystemRoleType } from '@client/utils/gateway' import { AdministrativeLevels } from '@client/views/Organisation/AdministrativeLevels' -import InformantNotification from '@client/views/SysAdmin/Communications/InformantSMSNotification/InformantSMSNotification' import { VerifyCertificatePage } from '@client/views/VerifyCertificate/VerifyCertificatePage' import { IssueCertificate } from '@client/views/IssueCertificate/IssueCertificate' import { IssuePayment } from '@client/views/IssueCertificate/IssueCollectorForm/IssuePayment' -import UserRoles from '@client/views/SysAdmin/Config/UserRoles/UserRoles' import { OIDPVerificationCallback } from './views/OIDPVerificationCallback/OIDPVerificationCallback' import { ApolloProvider } from '@client/utils/ApolloProvider' import { Home } from '@client/views/OfficeHome/Home' @@ -257,24 +253,6 @@ export function App(props: IAppProps) { } component={OfficeHome} /> - - - - { enableMenuSelection = true, loadWorkqueueStatuses = true, activeMenuItem, - goToCertificateConfigAction, - goToUserRolesConfigAction, goToVSExportsAction, goToSystemViewAction, - goToApplicationConfigAction, goToAdvancedSearchResultAction, navigationWidth, workqueue, @@ -321,7 +310,6 @@ const NavigationView = (props: IFullProps) => { goToPerformanceStatistics, goToDashboardView, goToLeaderBoardsView, - goToInformantNotification, goToAllUserEmail, className } = props @@ -721,54 +709,17 @@ const NavigationView = (props: IFullProps) => { /> {(isConfigExpanded || configTab.includes(activeMenuItem)) && ( - <> - - - - - - - + )} )} @@ -802,33 +753,17 @@ const NavigationView = (props: IFullProps) => { /> {(isCommunationExpanded || conmmunicationTab.includes(activeMenuItem)) && ( - <> - - - + )} )} @@ -1027,9 +962,6 @@ export const Navigation = connect< IStoreState >(mapStateToProps, { goToHomeTab, - goToCertificateConfigAction: goToCertificateConfig, - goToUserRolesConfigAction: goToUserRolesConfig, - goToApplicationConfigAction: goToApplicationConfig, goToAdvancedSearchResultAction: goToAdvancedSearchResult, goToVSExportsAction: goToVSExport, goToPerformanceViewAction: goToPerformanceView, @@ -1043,7 +975,6 @@ export const Navigation = connect< goToPerformanceStatistics, goToLeaderBoardsView, goToDashboardView, - goToInformantNotification, goToAllUserEmail })(injectIntl(withRouter(NavigationView))) From 7d793c836bf66b7b3e2fb488e6cbd06f01aced53 Mon Sep 17 00:00:00 2001 From: naftis Date: Fri, 14 Jun 2024 13:33:17 +0300 Subject: [PATCH 2/4] chore(changelog) --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e4aa795e7c..b796a369be6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,10 @@ We are dropping support for 'agentDefault' to be used as initial value for SELECT_WITH_DYNAMIC_OPTIONS type of fields. The country config package now must return the form with prepopulated initial values to show default addresses. [#6871](https://github.com/opencrvs/opencrvs-core/issues/6871) +- #### Remove system admin UI items: Application, Certificates, User roles, Communications / Informant notifications + + We have now moved to configuring these items directly from country configuration repository. + ## New features - Add loading spinners before JavaScript bundle has loaded for both login and client From f27165ef198c4e48ec0d263d596dac393e7e1d16 Mon Sep 17 00:00:00 2001 From: naftis Date: Fri, 14 Jun 2024 13:33:57 +0300 Subject: [PATCH 3/4] fix: remove tests for application and certificate --- packages/client/src/components/interface/Navigation.test.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/client/src/components/interface/Navigation.test.tsx b/packages/client/src/components/interface/Navigation.test.tsx index e0baa618c7c..1a08cd527f7 100644 --- a/packages/client/src/components/interface/Navigation.test.tsx +++ b/packages/client/src/components/interface/Navigation.test.tsx @@ -109,8 +109,6 @@ describe('Navigation for national system admin related tests', () => { expect(testComponent.exists('#navigation_config_main')).toBeTruthy() testComponent.find('#navigation_config_main').hostNodes().simulate('click') testComponent.update() - expect(testComponent.exists('#navigation_application')).toBeTruthy() - expect(testComponent.exists('#navigation_certificate')).toBeTruthy() }) it('No application related tabs', async () => { From e46eb94bf21e6d60db284261327a9959d2ab052a Mon Sep 17 00:00:00 2001 From: naftis Date: Fri, 14 Jun 2024 13:34:52 +0300 Subject: [PATCH 4/4] chore(changelog): update wording --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b796a369be6..6ed024e0ebc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,7 +41,7 @@ We are dropping support for 'agentDefault' to be used as initial value for SELECT_WITH_DYNAMIC_OPTIONS type of fields. The country config package now must return the form with prepopulated initial values to show default addresses. [#6871](https://github.com/opencrvs/opencrvs-core/issues/6871) -- #### Remove system admin UI items: Application, Certificates, User roles, Communications / Informant notifications +- #### Remove system admin UI items: Application, Certificates, User roles, Informant notifications We have now moved to configuring these items directly from country configuration repository.