Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [ANDROAPP-6755] Implement design system table into DataSetInstanceScreen #3978

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

Balcan
Copy link
Collaborator

@Balcan Balcan commented Feb 4, 2025

Description

Please include a summary of the change and include the related jira issue if it exists.

[ jira issue ](https://dhis2.atlassian.net/browse/ANDROAPP-

Solution description

If this PR is a fix include a brief description on how the issue is solved.

Covered unit test cases

Describe the tests that you ran to verify your changes.

Where did you test this issue?

  • Smartphone Emulator
  • Tablet Emulator
  • Smartphone
  • Tablet

Which Android versions did you test this issue?

  • 4.4
  • 5.X - 6.X
  • 7.X
  • 8.X
  • 9.X - 10.X
  • 11.X - 13.X
  • Other

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@@ -20,3 +22,16 @@ sealed class DataSetScreenState {

abstract fun allowTwoPane(canUseTwoPane: Boolean): Boolean
}

sealed class DataSetSectionTable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would extract each class to a specific file except if they are internal

Base automatically changed from ANDROAPP-6767 to develop February 6, 2025 12:33
@Balcan Balcan requested a review from andresmr February 6, 2025 12:35
@@ -59,6 +59,23 @@ fun TrackedEntityDataValue?.userFriendlyValue(
}
}

fun String.userFriendlyValue(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this duplicated in the app? where are you using it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is part of the app. It just encapsulate the code to be reusable to any string value instead of the TrackedEntityDataValue or TrackendEntityAttributeValue classes in the SDK

@@ -51,4 +61,225 @@ internal class DataSetInstanceRepositoryImpl(
} ?: DataSetRenderingConfig(
useVerticalTabs = true,
)

override fun categoryOptionCombinations(categoryUids: List<String>): List<String> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

public methods in repository should be suspend

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true!

@Balcan Balcan requested a review from andresmr February 10, 2025 15:10
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