Skip to content

WEB-814 Make easier to upload client Identifiers#3300

Open
Varun789-mx wants to merge 2 commits intoopenMF:devfrom
Varun789-mx:WEB-814-Make-easier-to-upload-client-Identifiers
Open

WEB-814 Make easier to upload client Identifiers#3300
Varun789-mx wants to merge 2 commits intoopenMF:devfrom
Varun789-mx:WEB-814-Make-easier-to-upload-client-Identifiers

Conversation

@Varun789-mx
Copy link
Contributor

@Varun789-mx Varun789-mx commented Mar 4, 2026

Description

When adding a client identifier, the dialog required users to manually type the file name into a separate "File Name" field after already selecting a file via the Browse button. This was redundant and error-prone. The fix automatically populates the File Name field with the selected file's name when a file is chosen, improving the user experience and reducing unnecessary manual input.

Related issues and discussion

#WEB-814 Make easier to upload client Identifiers

Before

MIFOS-WEB-814-BEFORE.mp4

After

MIFOS-WEB-814-AFTER.mp4

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • If you have multiple commits please combine them into one commit by squashing them.

  • Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.

Summary by CodeRabbit

  • Bug Fixes

    • File upload form now syncs the selected file name into the form only when the file-name field is empty, preventing unintended overwrites.
  • Chores

    • Updated environment configuration version and build hash.

@coderabbitai
Copy link

coderabbitai bot commented Mar 4, 2026

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 12a62cdf-c316-4d95-84ac-9857de545731

📥 Commits

Reviewing files that changed from the base of the PR and between 711208a and 5cf6892.

📒 Files selected for processing (1)
  • src/app/clients/clients-view/custom-dialogs/upload-document-dialog/upload-document-dialog.component.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/app/clients/clients-view/custom-dialogs/upload-document-dialog/upload-document-dialog.component.ts

Walkthrough

Sets the selected File into the file form control and conditionally sets the fileName form control to the file's name only when fileName is empty; also updates generated environment values (mifos_x version and hash).

Changes

Cohort / File(s) Summary
Upload Document Dialog
src/app/clients/clients-view/custom-dialogs/upload-document-dialog/upload-document-dialog.component.ts
onFileSelect now assigns the selected File to the file form control and additionally sets fileName to the file's name only if fileName is currently empty; JSDoc updated to reflect behavior.
Environment Configuration
src/environments/.env.ts
Updated generated environment config values for mifos_x: version changed from '260108' to '260303' and hash from 'g5af11fe75' to 'g155aa7d0d'.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • IOhacker
🚥 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 accurately describes the main change: automatically populating the file name field when uploading client identifiers, making the upload process easier.
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

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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

@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/app/clients/clients-view/custom-dialogs/upload-document-dialog/upload-document-dialog.component.ts`:
- Around line 112-117: The onFileSelect handler currently only sets the fileName
control and leaves the file control as its initial empty string, causing uploads
to fail and .name access to throw in the consumer
(entity-documents-tab.component.ts). Update onFileSelect to also set the file
form control to the selected File object (use
uploadDocumentForm.get('file').setValue(file)) so dialogResponse.file is the
File, and optionally mark the control as touched/dirty or run validation after
setting; keep the existing fileName setValue behavior intact.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e28d4ead-37cf-45ce-813b-585eb7ac220f

📥 Commits

Reviewing files that changed from the base of the PR and between 0437580 and 711208a.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json and included by **/*
📒 Files selected for processing (2)
  • src/app/clients/clients-view/custom-dialogs/upload-document-dialog/upload-document-dialog.component.ts
  • src/environments/.env.ts

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.

Please review proposed fix, exclude from commit the json and the env files

Copy link
Contributor

Choose a reason for hiding this comment

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

Exclude this file from commit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the requested changes and also didn't commited the env file this sorry for the silly mistake i made earlier

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