Skip to content

Conversation

@priyans11
Copy link
Contributor

@priyans11 priyans11 commented Jan 1, 2026

Summary

This PR corrects incorrect references to mifos_lg-logo.png and replaces them
with the correct asset mifos_lg-logo.jpg.

The PNG file does not exist in the assets directory. Although the UI continued
to work due to an OR fallback (tenantLogoUrl || assets/images/mifos_lg-logo.jpg),
the incorrect reference was misleading and fragile.

Impact

  • No visible UI change (fallback already handled rendering)
  • Improves correctness, consistency, and future maintainability

Changes

  • Updated logo references from .png to .jpg in:
    • environment.ts
    • environment.prod.ts
    • _dark_content.scss

Evidence

  • Screenshot attached showing the existing asset
Screenshot 2026-01-02 at 9 20 01 PM

Jira

  • WEB-546

Copilot AI review requested due to automatic review settings January 1, 2026 21:54
@coderabbitai
Copy link

coderabbitai bot commented Jan 1, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive 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

The pull request updates logo file references across environment and theme configuration files, changing the tenantLogoUrl property and CSS selector from PNG to JPG file extension format in production and development configurations.

Changes

Cohort / File(s) Summary
Environment Configurations
src/environments/environment.prod.ts, src/environments/environment.ts
Updated tenantLogoUrl property value from 'assets/images/mifos_lg-logo.png' to 'assets/images/mifos_lg-logo.jpg'
Theme Styling
src/theme/_dark_content.scss
Updated CSS attribute selector for dark-theme home logo from [src*='mifos_lg-logo.png'] to [src*='mifos_lg-logo.jpg']

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • IOhacker

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: correcting mifos logo image references from PNG to JPG format across configuration and style files.
✨ Finishing touches
  • 📝 Generate docstrings

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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes incorrect logo image references in the Mifos application by changing the file extension from .png to .jpg to match the actual asset file that exists in the project. The changes ensure the Mifos large logo renders correctly across different parts of the application.

Key Changes:

  • Updated logo file references from mifos_lg-logo.png to mifos_lg-logo.jpg in environment configurations
  • Updated CSS selector in dark theme to match the corrected .jpg extension
  • Modified proxy configuration (appears unrelated to logo fix)

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/theme/_dark_content.scss Updated attribute selector from .png to .jpg for dark mode logo replacement
src/environments/environment.ts Corrected default tenant logo URL from .png to .jpg
src/environments/environment.prod.ts Corrected default tenant logo URL from .png to .jpg in production environment
proxy.conf.js Changed proxy target from Chuck Norris API to Mifos sandbox with additional logging (unrelated to PR purpose)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

proxy.conf.js Outdated
Comment on lines 13 to 20
context: ['/fineract-provider'],
target: 'https://sandbox.mifos.community',
changeOrigin: true,
secure: false
secure: true,
logLevel: 'debug',
onProxyReq: function(proxyReq, req, res) {
console.log('[Proxy] Proxying:', req.method, req.url, '->', 'https://sandbox.mifos.community' + req.url);
}
Copy link

Copilot AI Jan 1, 2026

Choose a reason for hiding this comment

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

The changes to proxy.conf.js appear to be unrelated to the PR's stated purpose of fixing logo image references. This PR changes the proxy configuration from a Chuck Norris API to the Mifos sandbox, adds debug logging, and changes security settings. These changes should either be removed from this PR and submitted separately with appropriate documentation, or the PR description should be updated to explain why these proxy configuration changes are being made.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@shubhamkumar9199 shubhamkumar9199 Jan 1, 2026

Choose a reason for hiding this comment

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

@priyans11 These changes in proxy.conf.js don’t seem related to the stated purpose of this PR (fixing logo image references). The proxy configuration update, debug logging, and security setting changes appear to be out of scope for this PR.

Copy link

@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: 0

🧹 Nitpick comments (1)
proxy.conf.js (1)

18-20: Avoid hardcoding the target URL in the logging function.

The logging is helpful for debugging, but the target URL is hardcoded on Line 19 instead of referencing the target variable defined on Line 14. This creates a maintenance risk if the target changes.

🔎 Proposed refactor
-    onProxyReq: function(proxyReq, req, res) {
-      console.log('[Proxy] Proxying:', req.method, req.url, '->', 'https://sandbox.mifos.community' + req.url);
-    }
+    onProxyReq: function(proxyReq, req, res, options) {
+      console.log('[Proxy] Proxying:', req.method, req.url, '->', options.target + req.url);
+    }
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c28f729 and 1ea3879.

📒 Files selected for processing (4)
  • proxy.conf.js
  • src/environments/environment.prod.ts
  • src/environments/environment.ts
  • src/theme/_dark_content.scss
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Upload results
🔇 Additional comments (3)
src/theme/_dark_content.scss (1)

274-274: LGTM!

The CSS selector update is consistent with the environment configuration changes and correctly matches the new JPG asset.

src/environments/environment.prod.ts (1)

55-55: LGTM!

The production environment logo reference is correctly updated to match the JPG asset, maintaining consistency with the development environment.

src/environments/environment.ts (1)

59-59: Asset path is correct. The JPG logo file exists at src/assets/images/mifos_lg-logo.jpg.

@shubhamkumar9199
Copy link
Contributor

shubhamkumar9199 commented Jan 1, 2026

A Jira ticket Web-546 has been created for this please assign it to yourself before making any changes. Going forward, before creating any issue or PR, please ensure a Jira ticket is created first.
For any UI/UX-related changes, please include relevant screenshots or images in the PR for clarity.
Also, kindly squash all commits into a single commit before requesting a review. If there are multiple unrelated changes, please open a separate Jira ticket and submit them as a separate PR.

@priyans11
Copy link
Contributor Author

@shubhamkumar9199 Ok understood.

Correct incorrect references to `mifos_lg-logo.png`.

The PNG asset does not exist; the correct file is `mifos_lg-logo.jpg`.
Although the UI rendered correctly due to fallback logic, the incorrect
reference was misleading and could cause issues in future refactors.
@priyans11
Copy link
Contributor Author

priyans11 commented Jan 2, 2026

@shubhamkumar9199 Updated the PR

@shubhamkumar9199
Copy link
Contributor

LGTM. @IOhacker, could you please review?

@priyans11 priyans11 changed the title fix(images): correct mifos logo reference from png to jpg WEB-546 fix(images): correct mifos logo reference from png to jpg Jan 2, 2026
Copy link
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 379a733 into openMF:dev Jan 2, 2026
4 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.

3 participants