Skip to content

feat: update report name label and add BIRT translation (WEB-821)#3383

Merged
IOhacker merged 1 commit intoopenMF:devfrom
vaishnavirrapolu-06:feat/web-821-report-details
Mar 16, 2026
Merged

feat: update report name label and add BIRT translation (WEB-821)#3383
IOhacker merged 1 commit intoopenMF:devfrom
vaishnavirrapolu-06:feat/web-821-report-details

Conversation

@vaishnavirrapolu-06
Copy link
Copy Markdown
Contributor

@vaishnavirrapolu-06 vaishnavirrapolu-06 commented Mar 15, 2026

Hi @IOhacker Sir!

Following your feedback, I have moved this task to the correct openMF/web-app repository.

Summary of changes:

  1. Added the missing "Mifos Reporting Plugin for Eclipse Birt" translation to en-US.json.
  2. Updated the reports.component.html header to use the correct translation label.
  3. Cleaned up the commit history so it only includes these specific changes.

Thank you for your guidance!

Summary by CodeRabbit

  • Style

    • Updated the reports table header for the report name column to use the BIRT label with improved line breaks for clearer display.
  • Chores (Localization)

    • Added a BIRT label and a "Mifos Reporting Plugin for Eclipse Birt" label across multiple locales and populated the Pentaho translation where previously empty.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 15, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Replaced the reports table header translation key in src/app/reports/reports.component.html to use labels.text.BIRT; added labels.BIRT and labels["Mifos Reporting Plugin for Eclipse Birt"] entries and set labels.Pentaho to "Mifos Reporting Plugin for Pentaho" across multiple locale JSON files.

Changes

Cohort / File(s) Summary
Reports Component Template
src/app/reports/reports.component.html
Changed the "reportName" column header translation from labels.inputs.name to labels.text.BIRT and adjusted header content/line breaks.
Locale translations (added/updated keys)
src/assets/translations/en-US.json, src/assets/translations/cs-CS.json, src/assets/translations/de-DE.json, src/assets/translations/es-CL.json, src/assets/translations/es-MX.json, src/assets/translations/fr-FR.json, src/assets/translations/it-IT.json, src/assets/translations/ko-KO.json, src/assets/translations/lt-LT.json, src/assets/translations/lv-LV.json, src/assets/translations/ne-NE.json, src/assets/translations/pt-PT.json, src/assets/translations/sw-SW.json
Added labels.BIRT (usually mapping to "Mifos Reporting Plugin for Eclipse Birt"), sometimes added labels["Mifos Reporting Plugin for Eclipse Birt"], and updated labels.Pentaho from an empty string to "Mifos Reporting Plugin for Pentaho" across locales.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • IOhacker
  • gkbishnoi07
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main changes: updating the report name label and adding BIRT translation, with ticket reference WEB-821.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can approve the review once all CodeRabbit's comments are resolved.

Enable the reviews.request_changes_workflow setting to automatically approve the review once all CodeRabbit's comments are resolved.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/assets/translations/en-US.json`:
- Line 292: Add the new translation key "Mifos Reporting Plugin for Eclipse
Birt" to every locale JSON (cs-CS, de-DE, es-CL, es-MX, fr-FR, it-IT, ko-KO,
lt-LT, lv-LV, ne-NE, pt-PT, sw-SW) so non-en-US users see the intended label
used in reports.component.html; either provide proper localized strings or copy
the en-US value for now, and keep the key name identical to the one added in
en-US.json. Also verify the CustomMissingTranslationHandler still behaves as
expected (it currently strips labels.catalogs. and returns the key) and if you
prefer runtime fallback to en-US instead, implement that fallback in
CustomMissingTranslationHandler.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4643684d-daea-413f-8722-725ce56a4ea9

📥 Commits

Reviewing files that changed from the base of the PR and between a3139ae and cf67434.

📒 Files selected for processing (2)
  • src/app/reports/reports.component.html
  • src/assets/translations/en-US.json

Comment thread src/assets/translations/en-US.json
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/assets/translations/ko-KO.json`:
- Line 291: The translation for the key "Mifos Reporting Plugin for Eclipse
Birt" is still in English; replace its value with an appropriate Korean
translation (e.g., a concise Korean phrase conveying "Mifos Reporting Plugin for
Eclipse BIRT") in src/assets/translations/ko-KO.json by updating the value for
that exact key, then run Prettier (npx prettier --write .) to ensure formatting
before committing.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 870a9f3b-378a-410b-bf7f-e94194626b6f

📥 Commits

Reviewing files that changed from the base of the PR and between cf67434 and 942f8c8.

📒 Files selected for processing (12)
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json
✅ Files skipped from review due to trivial changes (3)
  • src/assets/translations/de-DE.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/es-CL.json

Comment thread src/assets/translations/ko-KO.json
@vaishnavirrapolu-06 vaishnavirrapolu-06 force-pushed the feat/web-821-report-details branch from f54acb2 to 7c5b3de Compare March 15, 2026 09:51
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/assets/translations/en-US.json (1)

292-292: Consider removing the redundant top-level BIRT string key.

Line 292 adds labels["Mifos Reporting Plugin for Eclipse Birt"], but current report rendering uses labels.text.BIRT / labels.text.<reportType>. If there’s no consumer for this top-level key, removing it would avoid translation-path drift.

♻️ Suggested cleanup
-    "Mifos Reporting Plugin for Eclipse Birt": "Mifos Reporting Plugin for Eclipse Birt",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/assets/translations/en-US.json` at line 292, Remove the redundant
top-level translation key "Mifos Reporting Plugin for Eclipse Birt" from the
en-US JSON and ensure the canonical report key is only present under the nested
path used by rendering (e.g., labels.text.BIRT / labels.text.<reportType>);
delete the top-level "Mifos Reporting Plugin for Eclipse Birt" entry and, if
needed, consolidate its value under labels.text.BIRT so there’s a single source
of truth for the BIRT label.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/assets/translations/en-US.json`:
- Line 292: Remove the redundant top-level translation key "Mifos Reporting
Plugin for Eclipse Birt" from the en-US JSON and ensure the canonical report key
is only present under the nested path used by rendering (e.g., labels.text.BIRT
/ labels.text.<reportType>); delete the top-level "Mifos Reporting Plugin for
Eclipse Birt" entry and, if needed, consolidate its value under labels.text.BIRT
so there’s a single source of truth for the BIRT label.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f4fe97c9-b1f7-45c2-a7dc-6e0d89fc412f

📥 Commits

Reviewing files that changed from the base of the PR and between f54acb2 and 7c5b3de.

📒 Files selected for processing (14)
  • src/app/reports/reports.component.html
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json
🚧 Files skipped from review as they are similar to previous changes (10)
  • src/assets/translations/fr-FR.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/es-CL.json
  • src/app/reports/reports.component.html
  • src/assets/translations/sw-SW.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/lv-LV.json

@vaishnavirrapolu-06
Copy link
Copy Markdown
Contributor Author

Hi @IOhacker , I've completed the requested changes. All checks are now green, including the Single Commit requirement. I have:

  • Updated all locale files with BIRT and Pentaho translations in alphabetical order.
  • Correctly nested the keys under labels.text as per the Jira description.
  • Updated the HTML to use {{ 'labels.text.BIRT' | translate }}.

Ready for final review!

Comment thread src/app/reports/reports.component.html
Comment thread src/assets/translations/es-MX.json
Comment thread src/assets/translations/es-MX.json Outdated
Comment thread src/assets/translations/es-MX.json Outdated
@IOhacker
Copy link
Copy Markdown
Contributor

@vaishnavirrapolu-06 kindly review my comments

@vaishnavirrapolu-06
Copy link
Copy Markdown
Contributor Author

@lohacker, Thank you very much for reviewing my PR and for the feedback! I have noted your 4 comments. I will be at college during the day tomorrow, but I will implement all the requested changes and update the PR as soon as I return in the evening. Looking forward to getting this perfected! 😊

@IOhacker
Copy link
Copy Markdown
Contributor

@vaishnavirrapolu-06 thank you for your response

@vaishnavirrapolu-06 vaishnavirrapolu-06 force-pushed the feat/web-821-report-details branch from 7c5b3de to 3cbff39 Compare March 16, 2026 14:05
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
src/app/reports/reports.component.html (1)

20-22: ⚠️ Potential issue | 🟠 Major

Use a generic header for reportName at Line 21.

Line 21 hardcodes a BIRT-specific label for a generic report-name column, which can mislead users when rows include Pentaho/other report types.

Suggested fix
-          {{ 'labels.text.BIRT' | translate }}
+          {{ 'labels.inputs.name' | translate }}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/reports/reports.component.html` around lines 20 - 22, The header for
the report-name column is using a BIRT-specific translation key
('labels.text.BIRT') in the <th mat-header-cell *matHeaderCellDef
mat-sort-header> element, which should be a generic label; update that
translation key to a neutral one (e.g. 'labels.text.reportName' or
'labels.text.report') so the header reflects any report type and keep the
existing mat-sort-header and *matHeaderCellDef on the same <th> element (locate
the <th mat-header-cell *matHeaderCellDef mat-sort-header> / reportName column
in reports.component.html and replace the specific key with the generic key).
src/assets/translations/es-MX.json (1)

291-291: ⚠️ Potential issue | 🟡 Minor

Localize the ES-MX value at Line 291.

Line 291 still keeps the value in English, so this key can show mixed-language UI in the es-MX locale.

Suggested fix
-    "Mifos Reporting Plugin for Eclipse Birt": "Mifos Reporting Plugin for Eclipse Birt",
+    "Mifos Reporting Plugin for Eclipse Birt": "Mifos Plugin para generar informes usando Eclipse Birt",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/assets/translations/es-MX.json` at line 291, The ES-MX translation for
the key "Mifos Reporting Plugin for Eclipse Birt" is still in English; update
the value for that JSON key to a proper Spanish (Mexico) localization (for
example: "Complemento de informes de Mifos para Eclipse BIRT") so the es-MX
locale does not show mixed-language UI.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@src/app/reports/reports.component.html`:
- Around line 20-22: The header for the report-name column is using a
BIRT-specific translation key ('labels.text.BIRT') in the <th mat-header-cell
*matHeaderCellDef mat-sort-header> element, which should be a generic label;
update that translation key to a neutral one (e.g. 'labels.text.reportName' or
'labels.text.report') so the header reflects any report type and keep the
existing mat-sort-header and *matHeaderCellDef on the same <th> element (locate
the <th mat-header-cell *matHeaderCellDef mat-sort-header> / reportName column
in reports.component.html and replace the specific key with the generic key).

In `@src/assets/translations/es-MX.json`:
- Line 291: The ES-MX translation for the key "Mifos Reporting Plugin for
Eclipse Birt" is still in English; update the value for that JSON key to a
proper Spanish (Mexico) localization (for example: "Complemento de informes de
Mifos para Eclipse BIRT") so the es-MX locale does not show mixed-language UI.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e48f50e9-6db9-4eee-8a9c-71c969f1e993

📥 Commits

Reviewing files that changed from the base of the PR and between 7c5b3de and 3cbff39.

📒 Files selected for processing (14)
  • src/app/reports/reports.component.html
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json
🚧 Files skipped from review as they are similar to previous changes (8)
  • src/assets/translations/ne-NE.json
  • src/assets/translations/cs-CS.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/en-US.json

@vaishnavirrapolu-06
Copy link
Copy Markdown
Contributor Author

Hi @lohacker! I've updated the logic in reports.component.html to dynamically handle both BIRT and Pentaho report types. I've also updated es-MX.json with the Spanish translations you provided for both types. The PR is updated (still a single commit). Ready for your final review! 😊

Copy link
Copy Markdown
Contributor

@IOhacker IOhacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IOhacker IOhacker merged commit d0b020a into openMF:dev Mar 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants