Skip to content

Commit

Permalink
registration_delivery package update
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenr-egov committed Dec 18, 2024
1 parent c87ce10 commit ebf8835
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/health_campaign_field_worker_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1856,10 +1856,10 @@ packages:
dependency: "direct main"
description:
name: registration_delivery
sha256: d40054149a0dc54872c11547a25addbd09a139d3f76b6bc50e58b1741a7d8002
sha256: "4dd6e6781e367edf806d838e58771dff838eeff0d444534079a468789cadfbcb"
url: "https://pub.dev"
source: hosted
version: "1.0.5+1"
version: "1.0.5+2"
remove_emoji_input_formatter:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion apps/health_campaign_field_worker_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies:
inventory_management: ^1.0.4
referral_reconciliation: ^1.0.3
digit_data_model: ^1.0.5
registration_delivery: ^1.0.5+1
registration_delivery: ^1.0.5+2
disable_battery_optimization: ^1.1.1
digit_dss: ^1.0.3
closed_household: ^1.0.3
Expand Down
4 changes: 4 additions & 0 deletions packages/registration_delivery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.5+2

* Action label and status change with projectType

## 1.0.5+1

* householdOverViewActionText localization fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class _HouseholdOverviewPageState
vertical: spacer2),
child: DigitButton(
label: localizations.translate(
'${RegistrationDeliverySingleton().selectedProject!.name}_${i18.memberCard.deliverDetailsUpdateLabel}',
'${RegistrationDeliverySingleton().selectedProject!.projectType}_${i18.memberCard.deliverDetailsUpdateLabel}',
),
capitalizeLetters: false,
isDisabled: state
Expand Down Expand Up @@ -143,7 +143,7 @@ class _HouseholdOverviewPageState
)
: DigitButton(
label: localizations.translate(
'${RegistrationDeliverySingleton().selectedProject!.name}_${i18.householdOverView.householdOverViewActionText}',
'${RegistrationDeliverySingleton().selectedProject!.projectType}_${i18.householdOverView.householdOverViewActionText}',
),
capitalizeLetters: false,
type: DigitButtonType.primary,
Expand Down Expand Up @@ -837,7 +837,7 @@ class _HouseholdOverviewPageState
textLabel = state.householdMemberWrapper.tasks?.isNotEmpty ?? false
? getTaskStatus(state.householdMemberWrapper.tasks ?? []).toValue() ==
Status.administeredSuccess.toValue()
? '${RegistrationDeliverySingleton().selectedProject!.name}_${getTaskStatus(state.householdMemberWrapper.tasks ?? []).toValue()}'
? '${RegistrationDeliverySingleton().selectedProject!.projectType}_${getTaskStatus(state.householdMemberWrapper.tasks ?? []).toValue()}'
: getTaskStatus(state.householdMemberWrapper.tasks ?? [])
.toValue()
: Status.registered.toValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class _SearchBeneficiaryPageState
.key;
if (mappedStatus != null) {
return mappedStatus == Status.administeredSuccess.toValue()
? '${RegistrationDeliverySingleton().selectedProject!.name}_$mappedStatus'
? '${RegistrationDeliverySingleton().selectedProject!.projectType}_$mappedStatus'
: mappedStatus;
} else {
return selectedFilter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BeneficiaryCard extends StatelessWidget {
label: RegistrationDeliveryLocalization.of(context)
.translate(status.toString() ==
Status.administeredSuccess.toValue()
? '${RegistrationDeliverySingleton().selectedProject!.name}_${status.toString()}'
? '${RegistrationDeliverySingleton().selectedProject!.projectType}_${status.toString()}'
: status.toString()),
capitalizeLetters: false,
textColor: theme.colorScheme.onSurfaceVariant,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class StatusFilterState extends LocalizedState<StatusFilter> {
valueMapper: (value) {
return localizations.translate(value ==
Status.administeredSuccess
? '${RegistrationDeliverySingleton().selectedProject!.name}_${value.toValue().toString()}'
? '${RegistrationDeliverySingleton().selectedProject!.projectType}_${value.toValue().toString()}'
: value.toValue().toString());
},
),
Expand Down
2 changes: 1 addition & 1 deletion packages/registration_delivery/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: registration_delivery
description: This package enables health facility workers to register a household and individual members and deliver the resources.
version: 1.0.5+1
version: 1.0.5+2
homepage: https://github.com/egovernments/health-campaign-field-worker-app/tree/master/packages/registration_delivery
repository: https://github.com/egovernments/health-campaign-field-worker-app

Expand Down

0 comments on commit ebf8835

Please sign in to comment.