Repository navigation
feat: home shows the papers waiting for you to mark - #624
Merged
Merged
Conversation
Home now reads the caller's own Attempts (GET /api/people/assessment-attempts/mine) when the Account may sit Assessments — it holds the sit permission or carries no permissions at all, the same rule the sitting route's guard applies — and draws one card per open Attempt (assigned or in progress) in an Assessments group right after Actions. The running Attempt comes first, then the soonest deadline or due date, then the number; a tap opens the sitting. A 403 (no Employee) is an empty list, nothing open draws nothing, and any other failure is the section's own failure with its own retry. No backend change. AppStatTile's figure becomes optional so an Attempt card, a task rather than a tally, shows no count; tiles with a figure draw exactly as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Marker now finds the submitted Attempts waiting for them right on Home, in a "To mark" group placed after Assessments. HomeBloc earns the new section by the same rule as the marking route's guard (the PPL_ASSESSMENT_MARK permission, or a maintenance role when no permissions are recorded), reads the marking queue concurrently with the other sections, treats a 403 as an empty queue, and has its own retry. Home lists up to six papers oldest first, each opening its marking screen, plus a card with the queue's total that opens the whole queue when more are waiting. An empty queue draws nothing, and the all-clear check counts the queue's total. New EN/VI strings were added and the generated localizations were edited by hand because no Flutter SDK was available. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # frontend/lib/home_bloc.dart # frontend/lib/home_screen.dart # frontend/lib/l10n/app_en.arb # frontend/lib/l10n/app_localizations.dart # frontend/lib/l10n/app_localizations_en.dart # frontend/lib/l10n/app_localizations_vi.dart # frontend/lib/l10n/app_vi.arb # frontend/test/home_test.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Home now shows a Marker the papers waiting for them, the counterpart of #622 for the candidate side.
Stacked on #622 (base
wt/t_7b65fe73): both edithome_bloc.dart/home_screen.dart. Merge #622 first; GitHub retargets this PR tomainwhen that branch goes.GET /api/people/assessment-marking(already scoped to the caller's write reach). No backend change./assessments/marking.PPL_ASSESSMENT_MARK, or a maintenance role when no permissions are recorded). Hidden when the queue is empty, and a 403 is read as empty. Any other error gets its own failure state with a retry.Tests:
home_test.dartgroup "Papers to mark" (6 cases).Kanban t_fcbec07d.