Skip to content

Conversation

@itsPronay
Copy link
Collaborator

@itsPronay itsPronay commented Sep 4, 2025

@itsPronay itsPronay marked this pull request as draft September 4, 2025 15:12
@itsPronay itsPronay changed the title draft feat: Share accounts UI Sep 5, 2025
@itsPronay itsPronay marked this pull request as ready for review September 5, 2025 06:07
MifosScaffold(
title = "Share Accounts",
onBackPressed = {},
) { paddingValues ->
Copy link
Contributor

Choose a reason for hiding this comment

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

move share Accounts to string Resources and why onBackPressed is empty

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

look in figma, thats not the scaffold we will be using, its just here for the time being.

}

ShareAccountsUiState.DialogState.Loading -> MifosCircularProgress()
null -> {}
Copy link
Contributor

@revanthkumarJ revanthkumarJ Sep 5, 2025

Choose a reason for hiding this comment

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

in the recent previous prs review conversation it is decided not to place CircularProgressbar inside dialog state

create another internal state and if it is Loading show loader , if success show screen

like in #2491

ShareAccountsAction.ToggleFiler -> {
mutableStateFlow.update {
it.copy(
isFilterActive = !state.isFilterActive,
Copy link
Contributor

Choose a reason for hiding this comment

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

create handle functions for each and don't update it in handleaction

use like
is NewLoanAccountAction.DismissDialog -> handleDismissAddCollateralDialog()

private fun handleDismissAddCollateralDialog() {
mutableStateFlow.update { it.copy(dialogState = null) }
}

@itsPronay itsPronay force-pushed the share_accounts_final branch from d04c7c8 to 52dba9e Compare September 5, 2025 06:52
@itsPronay itsPronay force-pushed the share_accounts_final branch from 7aa9d36 to a7f0531 Compare September 5, 2025 06:54
@therajanmaurya therajanmaurya merged commit 8eef36b into openMF:development Sep 5, 2025
2 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