Skip to content

Conversation

@Arinyadav1
Copy link
Contributor

Fixes - Jira-#582

Screenshot 2025-08-29 030334 Screenshot 2025-08-29 030413 Screenshot 2025-08-29 030534 Screenshot 2025-08-29 030622 Screenshot 2025-08-29 030657 Screenshot 2025-08-29 030712

)

OutlinedTextField(
value = state.textFieldNotesPayload.note ?: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

we have MifosOutLined TextField can't we use it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah we can use but make some changes like shape, textstyle and color use. one MifosOutLined TextField composable have these all but it have trailing space which is the text is not start from starting.

Copy link
Contributor

Choose a reason for hiding this comment

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

i think some one edited it it is taking leading icon space eventhough it was not there

see once

}
}.onFailure {
mutableStateFlow.update {
it.copy(
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we use

DataState.Loading
DataState.Success
DataState.Failure

that approach because it was the one following in mifos repos

Copy link
Contributor

Choose a reason for hiding this comment

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

this one?

composable<NoteRoute> { updateNoteList ->
NoteScreenScaffold(
onNavigateBack = onNavigateBack,
onNavigateAddEditNote = onNavigateAddEditNote,
Copy link
Contributor

Choose a reason for hiding this comment

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

instead fetch this in viewmodel from savedStateHandle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when I go back from edit screen then the previous screen not automatically update and when I use savedStateHandle in viewModel then it not call loadnote function again to refresh data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I means viemModel not fetch savedStateHandle data when I navigateBack from editnoteScreen to noteListScreen

Copy link
Contributor

Choose a reason for hiding this comment

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

ok understood

@therajanmaurya therajanmaurya enabled auto-merge (squash) August 30, 2025 12:24
@therajanmaurya therajanmaurya merged commit c3aaec1 into openMF:development Aug 30, 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