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:
parent
447e00c52a
commit
a0bb75f1ad
1 changed files with 976 additions and 40 deletions
|
|
@ -2051,6 +2051,35 @@ void main() {
|
|||
expect(find.text('1 min'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('Progress invites choosing the exam below its figures, as '
|
||||
'Vaia asks for its date; chosen, it shows how ready the person is', (
|
||||
tester,
|
||||
) async {
|
||||
stored('japanese', 'Japanese');
|
||||
final neko = await card('japanese', '猫');
|
||||
await showApp(tester, location: RoutePaths.studyset('japanese'));
|
||||
final person = PersonDependencies.of(
|
||||
tester.element(find.byType(StudysetScreen)),
|
||||
);
|
||||
final n5 = await person.tags.create('JLPT-N5');
|
||||
await person.tags.setTagsOf(neko, {n5});
|
||||
await tester.pump(ExamCubit.settle);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await openPart(tester, 'Progress');
|
||||
expect(find.text('Preparing for an exam?'), findsOneWidget);
|
||||
await tester.tap(find.text('Choose the exam'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('JLPT N5'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Save'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Preparing for an exam?'), findsNothing);
|
||||
expect(find.textContaining('In 84 days'), findsOneWidget);
|
||||
expect(find.text('0 of 1 flashcard started'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('Progress also counts the steps of the learning paths done, '
|
||||
'and lists the PDFs not read to their end, begun first, across the '
|
||||
'topics; one opens where it is read', (tester) async {
|
||||
|
|
|
|||
Loading…
Reference in a new issue