feat(learn): pick up learning on Home, the studysets studied latest first, and Progress closer to Vaia's

Home gets a widget of its own, Pick up learning, below the goal: the
studysets at the top of the library that were studied, the one rated last
first, so one studied long ago sinks. Three show, the others behind Show
more. Each shows its name, which opens it, how much is learnt, when it was
last studied, and today's task (cards to review, new cards to learn), which
starts studying it, outlined while reviews wait. The progress is the
library's, worked out once for every screen; when each was last studied
comes from the reviews Home reads anyway. With nothing studied it takes no
room.

A dashboard arranged before it gets the widget below the goal, wherever
the goal is: a widget a layout misses now goes after the one before it in
a new dashboard, no longer at the end.

On a studyset's Progress, the tiles are filled without an outline, To
review has a history icon (amber while cards are due), the learnt bar is
thicker, and the exam follows the figures, as Vaia asks for its date
there: an invitation to choose it, opening the study plan's sheet, or,
once chosen, how ready the person is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-11-02 09:03:05 +01:00
commit a0bb75f1ad
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -160,6 +160,7 @@ void main() {
order: [
HomeWidget.activity,
HomeWidget.goal,
HomeWidget.pickUp,
HomeWidget.pomodoro,
HomeWidget.deadlines,
HomeWidget.week,
@ -172,7 +173,8 @@ void main() {
});
test('a home layout from another version keeps the widgets this one '
'knows, and adds those it misses', () {
'knows, and adds those it misses, each after the one a new dashboard '
'has before it', () {
final settings = decodeSettingsPayload(
encodePayload(3, {
'studyTags': {},
@ -184,15 +186,39 @@ void main() {
);
expect(settings.home.order, [
HomeWidget.activity,
HomeWidget.goal,
HomeWidget.pickUp,
HomeWidget.pomodoro,
HomeWidget.deadlines,
HomeWidget.week,
HomeWidget.activity,
]);
expect(settings.home.hidden, isEmpty);
});
test('a dashboard arranged before Pick up learning gets it below the '
'goal, wherever the goal is', () {
final settings = decodeSettingsPayload(
encodePayload(3, {
'studyTags': {},
'home': {
'order': ['week', 'activity', 'goal', 'pomodoro', 'deadlines'],
'hidden': ['pomodoro'],
},
}),
);
expect(settings.home.order, [
HomeWidget.week,
HomeWidget.activity,
HomeWidget.goal,
HomeWidget.pickUp,
HomeWidget.pomodoro,
HomeWidget.deadlines,
]);
expect(settings.home.hidden, {HomeWidget.pomodoro});
});
test('folding keeps both rest days, and the goal one of them has', () {
final mine = PersonSettings(restDays: {DateTime(2026, 10, 5)});
final theirs = PersonSettings(