-
Notifications
You must be signed in to change notification settings - Fork 103
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
base: develop
Are you sure you want to change the base?
Conversation
...tes/src/androidMain/kotlin/org/dhis2/mobile/aggregates/data/DataSetInstanceRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
@@ -20,3 +22,16 @@ sealed class DataSetScreenState { | |||
|
|||
abstract fun allowTwoPane(canUseTwoPane: Boolean): Boolean | |||
} | |||
|
|||
sealed class DataSetSectionTable { |
There was a problem hiding this comment.
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
...ates/src/commonMain/kotlin/org/dhis2/mobile/aggregates/ui/viewModel/DataSetTableViewModel.kt
Outdated
Show resolved
Hide resolved
...ates/src/commonMain/kotlin/org/dhis2/mobile/aggregates/ui/viewModel/DataSetTableViewModel.kt
Show resolved
Hide resolved
aggregates/src/commonMain/kotlin/org/dhis2/mobile/aggregates/data/DataSetInstanceRepository.kt
Outdated
Show resolved
Hide resolved
467dab3
to
c6ade93
Compare
@@ -59,6 +59,23 @@ fun TrackedEntityDataValue?.userFriendlyValue( | |||
} | |||
} | |||
|
|||
fun String.userFriendlyValue( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true!
60870d9
to
f11717c
Compare
|
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?
Which Android versions did you test this issue?
Checklist