feat(train): Home opens on this week, its totals and its seven days (ADR 0030, D60)

The week's time, distance and workouts above Home's list, and a strip of
its days, each as tall as the time trained on it, starting on the day the
person's language starts weeks on. Home's empty hint points to the Record
tab, where its button had gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-31 12:20:39 +01:00
commit 064c44bfa5
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64
5 changed files with 502 additions and 13 deletions

View file

@ -14,7 +14,7 @@
"aboutTitle": "Über Halkyon Train",
"homeRecordHint": "Zeichne eins mit dem Knopf unten auf.",
"homeRecordHint": "Zeichne eins im Tab Aufzeichnen auf.",
"recordAction": "Aufzeichnen",
"recordBack": "Zurück zur Aufzeichnung",
"recordSheetTitle": "Training aufzeichnen",
@ -568,5 +568,10 @@
"settingsTraining": "Training",
"settingsVersion": "Version {version} (Build {build})",
"recordingBarStopped": "Angehalten: speichern oder verwerfen",
"recordingBarDistance": "{km} km"
"recordingBarDistance": "{km} km",
"homeWeekTitle": "Diese Woche",
"homeWeekTime": "Zeit",
"homeWeekDistance": "Distanz",
"homeWeekWorkouts": "Trainings",
"homeWeekDuration": "{hours, plural, =0{{minutes} Min.} other{{hours} Std. {minutes} Min.}}"
}

View file

@ -16,7 +16,7 @@
"aboutTitle": "About Halkyon Train",
"homeRecordHint": "Record one with the button below.",
"homeRecordHint": "Record one from the Record tab.",
"recordAction": "Record",
"recordBack": "Back to the recording",
"recordSheetTitle": "Record a workout",
@ -717,5 +717,11 @@
"@settingsVersion": {"placeholders": {"version": {"type": "String"}, "build": {"type": "String"}}},
"recordingBarStopped": "Stopped: save or discard it",
"recordingBarDistance": "{km} km",
"@recordingBarDistance": {"placeholders": {"km": {"type": "String"}}}
"@recordingBarDistance": {"placeholders": {"km": {"type": "String"}}},
"homeWeekTitle": "This week",
"homeWeekTime": "Time",
"homeWeekDistance": "Distance",
"homeWeekWorkouts": "Workouts",
"homeWeekDuration": "{hours, plural, =0{{minutes} min} other{{hours} h {minutes} min}}",
"@homeWeekDuration": {"placeholders": {"hours": {"type": "int"}, "minutes": {"type": "int"}}}
}

View file

@ -151,7 +151,7 @@ abstract class AppLocalizations {
/// No description provided for @homeRecordHint.
///
/// In en, this message translates to:
/// **'Record one with the button below.'**
/// **'Record one from the Record tab.'**
String get homeRecordHint;
/// No description provided for @recordAction.
@ -3435,6 +3435,36 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'{km} km'**
String recordingBarDistance(String km);
/// No description provided for @homeWeekTitle.
///
/// In en, this message translates to:
/// **'This week'**
String get homeWeekTitle;
/// No description provided for @homeWeekTime.
///
/// In en, this message translates to:
/// **'Time'**
String get homeWeekTime;
/// No description provided for @homeWeekDistance.
///
/// In en, this message translates to:
/// **'Distance'**
String get homeWeekDistance;
/// No description provided for @homeWeekWorkouts.
///
/// In en, this message translates to:
/// **'Workouts'**
String get homeWeekWorkouts;
/// No description provided for @homeWeekDuration.
///
/// In en, this message translates to:
/// **'{hours, plural, =0{{minutes} min} other{{hours} h {minutes} min}}'**
String homeWeekDuration(int hours, int minutes);
}
class _AppLocalizationsDelegate

View file

@ -37,7 +37,7 @@ class AppLocalizationsDe extends AppLocalizations {
String get aboutTitle => 'Über Halkyon Train';
@override
String get homeRecordHint => 'Zeichne eins mit dem Knopf unten auf.';
String get homeRecordHint => 'Zeichne eins im Tab Aufzeichnen auf.';
@override
String get recordAction => 'Aufzeichnen';
@ -2060,4 +2060,27 @@ class AppLocalizationsDe extends AppLocalizations {
String recordingBarDistance(String km) {
return '$km km';
}
@override
String get homeWeekTitle => 'Diese Woche';
@override
String get homeWeekTime => 'Zeit';
@override
String get homeWeekDistance => 'Distanz';
@override
String get homeWeekWorkouts => 'Trainings';
@override
String homeWeekDuration(int hours, int minutes) {
String _temp0 = intl.Intl.pluralLogic(
hours,
locale: localeName,
other: '$hours Std. $minutes Min.',
zero: '$minutes Min.',
);
return '$_temp0';
}
}

View file

@ -36,7 +36,7 @@ class AppLocalizationsEn extends AppLocalizations {
String get aboutTitle => 'About Halkyon Train';
@override
String get homeRecordHint => 'Record one with the button below.';
String get homeRecordHint => 'Record one from the Record tab.';
@override
String get recordAction => 'Record';
@ -2048,6 +2048,29 @@ class AppLocalizationsEn extends AppLocalizations {
String recordingBarDistance(String km) {
return '$km km';
}
@override
String get homeWeekTitle => 'This week';
@override
String get homeWeekTime => 'Time';
@override
String get homeWeekDistance => 'Distance';
@override
String get homeWeekWorkouts => 'Workouts';
@override
String homeWeekDuration(int hours, int minutes) {
String _temp0 = intl.Intl.pluralLogic(
hours,
locale: localeName,
other: '$hours h $minutes min',
zero: '$minutes min',
);
return '$_temp0';
}
}
/// The translations for English, as used in the United Kingdom (`en_GB`).