From 2649efc80c002af4463087862171240b23ea8765 Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Wed, 31 Dec 2025 07:55:51 +0530 Subject: [PATCH] WEB-308: fix hardcoded documentation links (#2944) fix: Add security attributes to all external documentation links Fix:added the missing mapping in env.template.js Removed DocumentationLinkPipe from PipesModule --- env.sample | 3 + .../create-gl-account.component.html | 8 +- .../closing-entries.component.html | 2 +- .../create-journal-entry.component.html | 2 +- ...financial-activity-mappings.component.html | 8 +- .../migrate-opening-balances.component.html | 8 +- .../core/shell/sidenav/sidenav.component.ts | 4 +- .../core/shell/toolbar/toolbar.component.ts | 4 +- src/app/login/login.component.html | 40 +++++----- .../manage-currencies.component.html | 2 +- .../create-employee.component.html | 2 +- .../manage-funds/manage-funds.component.html | 2 +- .../create-office.component.html | 2 +- .../working-days/working-days.component.html | 2 +- src/app/pipes/documentation-link.pipe.ts | 12 +++ .../products/charges/charges.component.html | 2 +- .../fixed-deposit-products.component.html | 2 +- .../loan-products.component.html | 2 +- .../recurring-deposit-products.component.html | 2 +- .../saving-products.component.html | 2 +- .../share-products.component.html | 2 +- .../shared/constants/documentation-links.ts | 80 +++++++++++++++++++ .../services/documentation-links.service.ts | 48 +++++++++++ src/app/standalone-shared.module.ts | 2 + .../create-code/create-code.component.html | 2 +- .../global-configurations-tab.component.html | 2 +- ...nfigure-maker-checker-tasks.component.html | 8 +- .../create-data-table.component.html | 2 +- .../manage-scheduler-jobs.component.html | 2 +- .../view-scheduler-job.component.html | 2 +- .../manage-reports.component.html | 2 +- .../roles-and-permissions.component.html | 8 +- .../create-user/create-user.component.html | 2 +- src/app/web-app.component.ts | 6 +- .../create-user/create-user.component.html | 2 +- src/assets/env.template.js | 3 + src/environments/environment.prod.ts | 1 + src/environments/environment.ts | 1 + 38 files changed, 214 insertions(+), 72 deletions(-) create mode 100644 src/app/pipes/documentation-link.pipe.ts create mode 100644 src/app/shared/constants/documentation-links.ts create mode 100644 src/app/shared/services/documentation-links.service.ts diff --git a/env.sample b/env.sample index 170a60c38..62ba08158 100644 --- a/env.sample +++ b/env.sample @@ -16,6 +16,9 @@ FINERACT_PLATFORM_TENANTS_IDENTIFIER=default # Tenant Logo URL - supports external URLs (e.g., https://example.com/logo.png) or local paths. Leave empty to use default tenant-specific logos TENANT_LOGO_URL= +# Documentation base URL for in-app help links +MIFOS_DOCUMENTATION_BASE_URL=https://mifosforge.jira.com/wiki + MIFOS_DEFAULT_LANGUAGE=en-US MIFOS_SUPPORTED_LANGUAGES=cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT diff --git a/src/app/accounting/chart-of-accounts/create-gl-account/create-gl-account.component.html b/src/app/accounting/chart-of-accounts/create-gl-account/create-gl-account.component.html index c99682f2d..1cbf5c083 100644 --- a/src/app/accounting/chart-of-accounts/create-gl-account/create-gl-account.component.html +++ b/src/app/accounting/chart-of-accounts/create-gl-account/create-gl-account.component.html @@ -125,11 +125,9 @@

{{ 'labels.heading.Create GL account' | translate }}

{{ 'labels.text.Filling Details' | translate }} - {{ 'labels.inputs.Chart of Accounts' | translate }} + {{ + 'labels.inputs.Chart of Accounts' | translate + }}

- + {{ 'labels.text.Click Here To Generate Cron Expression' | translate }}
diff --git a/src/app/system/manage-reports/manage-reports.component.html b/src/app/system/manage-reports/manage-reports.component.html index 6944eb3a4..2c9821738 100644 --- a/src/app/system/manage-reports/manage-reports.component.html +++ b/src/app/system/manage-reports/manage-reports.component.html @@ -139,7 +139,7 @@

{{ 'labels.heading.List of all currently available reports' | translate }}: - {{ + {{ 'labels.heading.Manage Reports' | translate }}

diff --git a/src/app/system/roles-and-permissions/roles-and-permissions.component.html b/src/app/system/roles-and-permissions/roles-and-permissions.component.html index b3f90870c..e0a7656b1 100644 --- a/src/app/system/roles-and-permissions/roles-and-permissions.component.html +++ b/src/app/system/roles-and-permissions/roles-and-permissions.component.html @@ -108,11 +108,9 @@

{{ 'labels.heading.List of roles defined within the organization' | translate }}: - {{ 'labels.inputs.Manage Roles and Permission' | translate }} + {{ + 'labels.inputs.Manage Roles and Permission' | translate + }}