Skip to content

Commit

Permalink
fix: added legend for participant activity tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn committed Jul 15, 2024
1 parent bcb8000 commit 190db38
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,46 +17,46 @@ class ParticipantLegend extends StatelessWidget {
style: const TextStyle(fontWeight: FontWeight.bold),
),
const SizedBox(height: 8.0),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
Row(
children: [
Row(
children: [
_buildLegendItem(
color: completeColor,
tr.participant_details_color_legend_completed,
tr.participant_details_completed_legend_tooltip,
),
const SizedBox(width: 16.0),
_buildLegendItem(
color: partiallyCompleteColor,
tr.participant_details_color_legend_partially_completed,
tr.participant_details_partially_completed_legend_tooltip,
gradient: true,
),
const SizedBox(width: 16.0),
_buildLegendItem(
color: incompleteColor,
tr.participant_details_color_legend_missed,
tr.participant_details_incomplete_legend_tooltip,
),
],
_buildLegendItem(
color: completeColor,
tr.participant_details_color_legend_completed,
tr.participant_details_completed_legend_tooltip,
),
const SizedBox(height: 8.0),
Row(
children: [
_buildLegendItem(
widget: const Text('\u{2705}'),
tr.participant_details_color_legend_completed_task,
tr.participant_details_color_legend_completed_task_tooltip,
),
const SizedBox(width: 16.0),
_buildLegendItem(
widget: const Text('\u{274C}'),
tr.participant_details_color_legend_missed_task,
tr.participant_details_color_legend_missed_task_tooltip,
),
],
const SizedBox(width: 16.0),
_buildLegendItem(
color: partiallyCompleteColor,
tr.participant_details_color_legend_partially_completed,
tr.participant_details_partially_completed_legend_tooltip,
gradient: true,
),
const SizedBox(width: 16.0),
_buildLegendItem(
color: incompleteColor,
tr.participant_details_color_legend_missed,
tr.participant_details_incomplete_legend_tooltip,
),
],
),
const SizedBox(height: 16.0),
Text(
tr.participant_details_color_tooltip_legend_title,
style: const TextStyle(fontWeight: FontWeight.bold),
),
const SizedBox(height: 8.0),
Row(
children: [
_buildLegendItem(
widget: const Text('\u{2705}'),
tr.participant_details_color_legend_completed_task,
tr.participant_details_color_legend_completed_task_tooltip,
),
const SizedBox(width: 16.0),
_buildLegendItem(
widget: const Text('\u{274C}'),
tr.participant_details_color_legend_missed_task,
tr.participant_details_color_legend_missed_task_tooltip,
),
],
),
Expand Down
1 change: 1 addition & 0 deletions designer_v2/lib/localization/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@
"participant_details_study_days_overview": "Übersicht über Studientage",
"participant_details_study_days_description": "Dieser Abschnitt bietet einen Überblick über die täglichen Aktivitäten des Teilnehmers in der Studie. Die Farblegende zeigt den Status der täglichen Aufgaben an. Bewege den Mauszeiger über die Studientage, um mehr Details über die tägliche Aktivität des Teilnehmers zu erfahren.",
"participant_details_color_legend_title": "Legende",
"participant_details_color_tooltip_legend_title": "Aktivitätsdetail Legende",
"participant_details_color_legend_completed_task": "Completed task",
"participant_details_color_legend_completed_task_tooltip": "The participant has completed this task",
"participant_details_color_legend_missed_task": "Missed task",
Expand Down
1 change: 1 addition & 0 deletions designer_v2/lib/localization/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@
"participant_details_study_days_overview": "Study days overview",
"participant_details_study_days_description": "This section provides an overview of the participant's progress in the study. The color coding indicates the status of the participant's tasks on each day. Hover over each day to see more details about the participant's activity.",
"participant_details_color_legend_title": "Legend",
"participant_details_color_tooltip_legend_title": "Activity Detail Legend",
"participant_details_color_legend_completed_task": "Completed task",
"participant_details_color_legend_completed_task_tooltip": "The participant has completed this task",
"participant_details_color_legend_missed_task": "Missed task",
Expand Down

0 comments on commit 190db38

Please sign in to comment.