Skip to content

refactor(feature:client): merge dialog ViewModel into main ViewModel in client identifiers - #2438

Merged
niyajali merged 6 commits into
openMF:kmp-implfrom
biplab1:MIFOSAC-496-client-identifier-merge-viewmodels
Jul 29, 2025
Merged

refactor(feature:client): merge dialog ViewModel into main ViewModel in client identifiers#2438
niyajali merged 6 commits into
openMF:kmp-implfrom
biplab1:MIFOSAC-496-client-identifier-merge-viewmodels

Conversation

@biplab1

@biplab1 biplab1 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

Fixes - Jira-#496

Screen recording uploaded in the ticket.

  • Run the static analysis check ./gradlew check or ci-prepush.sh to make sure you didn't break anything

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

@biplab1

biplab1 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

Note: I am not actively working on this PR at the moment. I have pushed the work done so far in case someone else wants to pick it up and continue from here. Feel free to close this PR once someone picks up the ticket.

@biplab1

biplab1 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

This is almost done, however, can't test it and upload the screen recording since login is not working currently.

@biplab1
biplab1 marked this pull request as ready for review July 29, 2025 17:03
@biplab1

biplab1 commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

@niyajali I too tested it, and it was working fine except for a state issue — the dialog name and close (×) icon remain visible even after a successful submission. I believe this can be addressed when the new UI/UX mockups are incorporated.

If everything looks good, kindly go ahead and merge it.

@biplab1

biplab1 commented Jul 29, 2025

Copy link
Copy Markdown
Contributor Author

Taken from the ticket and pasted here for quick reference:

Before Fix:

Before_CIVM.webm

After Fix:

After_CIVM.webm

Originally uploaded by @sam-arth07

@niyajali

Copy link
Copy Markdown
Collaborator

Then close the dialog after form submission in ViewModel @biplab1

actions = {
IconButton(
onClick = {
onShowDialog()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And see here, you're showing the dialog but I'm not seeing any codebase which closes this dialog state.

showCreateIdentifierDialog = false
showCreateSuccessMessage = true
onIdentifierCreated()
reloadIdentifiers()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Try this like a before and why don't you handle the Dialog state from ViewModel

showCreateIdentifierDialog = false

@niyajali

Copy link
Copy Markdown
Collaborator

Okay, @biplab1 I don't see any difference after watching both videos, can you create a ticket for the issue and all and others will take a look. And I'm merging this now

@niyajali
niyajali merged commit 401a017 into openMF:kmp-impl Jul 29, 2025
2 checks passed
itsPronay pushed a commit to itsPronay/android-client that referenced this pull request Aug 5, 2025
itsPronay pushed a commit to itsPronay/android-client that referenced this pull request Aug 5, 2025
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