Skip to content

Commit

Permalink
Merge branch 'main' into improve-sync-progress-ux
Browse files Browse the repository at this point in the history
Signed-off-by: Elly Kitoto <[email protected]>
  • Loading branch information
ellykits committed Dec 10, 2024
2 parents 06c56e0 + 7506143 commit 8e329f3
Show file tree
Hide file tree
Showing 84 changed files with 2,484 additions and 1,635 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1. Added a new class (PdfGenerator) for generating PDF documents from HTML content using Android's WebView and PrintManager
2. Introduced a new class (HtmlPopulator) to populate HTML templates with data from a Questionnaire Response
3. Implemented functionality to launch PDF generation using a configuration setup
- Added Save draft MVP functionality
- Added Save draft MVP functionality
- Added Delete saved draft feature
- Add configurable confirmation dialog on form submission

## [1.1.0] - 2024-02-15

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ data class QuestionnaireConfig(
val uniqueIdAssignment: UniqueIdAssignmentConfig? = null,
val linkIds: List<LinkIdConfig>? = null,
val showSubmitAnywayButton: String = "false",
val showSubmissionConfirmationDialog: String = "false",
) : java.io.Serializable, Parcelable {

fun interpolate(computedValuesMap: Map<String, Any>) =
Expand Down Expand Up @@ -102,6 +103,8 @@ data class QuestionnaireConfig(
linkIds = linkIds?.onEach { it.linkId.interpolate(computedValuesMap) },
saveButtonText = saveButtonText?.interpolate(computedValuesMap),
showSubmitAnywayButton = showSubmitAnywayButton.interpolate(computedValuesMap),
showSubmissionConfirmationDialog =
showSubmissionConfirmationDialog.interpolate(computedValuesMap),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.smartregister.fhircore.engine.domain.model.RuleConfig
data class MigrationConfig(
val updateValues: List<UpdateValueConfig>,
val resourceConfig: FhirResourceConfig,
val rules: List<RuleConfig>,
val rules: List<RuleConfig> = emptyList(),
val version: Int,
val purgeAffectedResources: Boolean = false,
val createLocalChangeEntitiesAfterPurge: Boolean = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data class RegisterConfiguration(
val registerCard: RegisterCardConfig = RegisterCardConfig(),
val fabActions: List<NavigationMenuConfig> = emptyList(),
val noResults: NoResultsConfig? = null,
val pageSize: Int = 10,
val pageSize: Int = 20,
val activeResourceFilters: List<ActiveResourceFilterConfig> =
listOf(
ActiveResourceFilterConfig(resourceType = ResourceType.Patient, active = true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data class RegisterContentConfig(
val separator: String? = null,
val display: String? = null,
val placeholderColor: String? = null,
val rules: List<RuleConfig>? = null,
val rules: List<RuleConfig> = emptyList(),
val visible: Boolean? = null,
val computedRules: List<String>? = null,
val searchByQrCode: Boolean? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ enum class ApplicationWorkflow {

/** A workflow to launch pdf generation */
LAUNCH_PDF_GENERATION,

/** A workflow to launch delete draft questionnaires */
DELETE_DRAFT_QUESTIONNAIRE,
}
Loading

0 comments on commit 8e329f3

Please sign in to comment.