Achieve your goals and keep your data private with Lotti. This life tracking app is designed to help you stay motivated and on track, all while keeping your personal information safe and secure. Now with on-device speech recognition.
This pull request includes significant updates to the survey feature, including the addition of a new survey, refactoring of existing survey-related files, and dependency updates. The most important changes are summarized below:
lib/features/surveys/tools/calculate.dart: Renamed from lib/surveys/calculate.dart and modified the calculateScores function to handle different types of survey choices.
This pull request includes significant updates to the survey feature, including the addition of a new survey, refactoring of existing survey-related files, and dependency updates. The most important changes are summarized below:
Refactoring and Code Organization:
lib/beamer/locations/journal_location.dart
: Updated import path forfill_survey_page.dart
to reflect its new location.lib/features/surveys/tools/calculate.dart
: Renamed fromlib/surveys/calculate.dart
and modified thecalculateScores
function to handle different types of survey choices.lib/features/surveys/tools/run_surveys.dart
: Renamed fromlib/surveys/run_surveys.dart
and added a new functionrunGhq12
for running the GHQ12 survey. [1] [2]lib/features/surveys/ui/fill_survey_page.dart
: Renamed fromlib/pages/create/fill_survey_page.dart
and updated import paths.lib/widgets/charts/dashboard_survey_chart.dart
: Updated to include the new GHQ12 survey and refactored survey type checks to use constants. [1] [2]lib/widgets/charts/dashboard_survey_data.dart
: Added constants for survey task names and included the new GHQ12 survey in thesurveyTypes
map. [1] [2]New Survey Addition:
lib/features/surveys/definitions/ghq12_survey.dart
: Added a new GHQ12 survey with multipleRPQuestionStep
andRPInstructionStep
instances, as well as completion and task definitions.Dependency Updates:
pubspec.yaml
: Updated theresearch_package
dependency to a specific commit from a GitHub repository. [1] [2]Test Updates:
test/pages/create/fill_survey_page_test.dart
: Updated import paths to reflect the new location offill_survey_page.dart
.