Skip to content

Feat(client) show loan status under type#2605

Closed
piyushs-05 wants to merge 4 commits intoopenMF:developmentfrom
piyushs-05:feat-client-show-loan-status-under-type
Closed

Feat(client) show loan status under type#2605
piyushs-05 wants to merge 4 commits intoopenMF:developmentfrom
piyushs-05:feat-client-show-loan-status-under-type

Conversation

@piyushs-05
Copy link
Contributor

@piyushs-05 piyushs-05 commented Feb 8, 2026

Fixes - Jira-#661

Please Add Screenshots If there are any UI changes.

Before After
image

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.

@coderabbitai
Copy link

coderabbitai bot commented Feb 8, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Box(
modifier = Modifier
.align(Alignment.TopEnd)
.padding(top = 8.dp, end = 8.dp) // Adjust padding to sit nicely on the icon corner
Copy link

@markrizkalla markrizkalla Feb 10, 2026

Choose a reason for hiding this comment

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

I think it is better to remove comments like those

(loan.amountPaid ?: "Not Available").toString()
),
type = loan.loanType?.value ?: "Not Available",
status = loan.status?.value ?: "Not Available",

Choose a reason for hiding this comment

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

it would be better if this is not hardcoded, I think

Box(
modifier = Modifier
.align(Alignment.TopEnd)
.padding(top = 8.dp, end = 8.dp) // Adjust padding to sit nicely on the icon corner
Copy link
Contributor

Choose a reason for hiding this comment

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

Use DesignToken.padding instead of hardcoded 8.dp. The 8.dp dot size might be too small - test on various devices. Also, add contentDescription for accessibility


@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun FilterBottomSheet(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can consider extracting this to a separate composable file if it grows

selectedStatuses: Set<LoanStatusFilter>,
clearFilters: () -> Unit,
) {
ModalBottomSheet(
Copy link
Contributor

Choose a reason for hiding this comment

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

The sheetState will reset on configuration changes or on rotation. Consider using rememberSaveable for the sheetState and verify the ViewModel properly persists selectedStatus across rotations.

@sonarqubecloud
Copy link

@piyushs-05 piyushs-05 closed this Feb 14, 2026
@piyushs-05 piyushs-05 deleted the feat-client-show-loan-status-under-type branch February 14, 2026 09:21
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