Skip to content

498. Remove the visible DialogBox after Identifier creation submission#2445

Closed
Shreyash16b wants to merge 1 commit intoopenMF:developmentfrom
Shreyash16b:MIFOSAC-498
Closed

498. Remove the visible DialogBox after Identifier creation submission#2445
Shreyash16b wants to merge 1 commit intoopenMF:developmentfrom
Shreyash16b:MIFOSAC-498

Conversation

@Shreyash16b
Copy link
Contributor

@Shreyash16b Shreyash16b commented Aug 4, 2025

Fixes - MIFSOAC-498

Before :

MIFOSAC-498_Before.mp4

There exists this dialog box (at 8 seconds in above video) even after successful creation of the identifier
MIFOSAC-498_DialogBox

After :

MIFOSAC-498_After.mp4

Changes:

  • Added a check for ClientIdentifierDialogUiState.IdentifierCreatedSuccessfully and not display the dialog if successful.

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

  • 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.

Comment on lines +96 to +103
if (state is ClientIdentifierDialogUiState.IdentifierCreatedSuccessfully) {
Toast.makeText(
LocalContext.current,
stringResource(id = R.string.feature_client_identifier_created_successfully),
Toast.LENGTH_SHORT,
).show()
onIdentifierCreated()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

why you adding it here! We exactly have the same code inside the when block

Copy link
Contributor Author

@Shreyash16b Shreyash16b Aug 4, 2025

Choose a reason for hiding this comment

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

The issue to be solved has the dialog box showing the Create Identifier text and close icon even after submission and Loading Dialog Box. I have updated the Before video to show it on my device. Using the development branch for this.

  1. Look at 8 second mark you see the screenshot in this PR after clicking submit (just for one frame) before the success toast. So, I added a success check before the dialog box.
  2. At around 11 second mark I click on the add identifier icon again, but it shows the success toast again instead of dialog box.

@therajanmaurya
Copy link
Member

Closing in response of #2450

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