Skip to content

Added late loan count on admin page and main page - #709

Merged
Marc-Andrieu merged 6 commits into
mainfrom
late-loan-count
Sep 8, 2026
Merged

Marc-Andrieu merged 6 commits into
mainfrom
late-loan-count

Conversation

@Rausterr

@Rausterr Rausterr commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

Added late loan count on admin page and main page.
So it's easier to see how many loans are late, and how many students need to be reminded.

image image

Summary

...

Issues/PR dependencies

Issues to be resolved

Required PRs

Changes Made

  • ...
  • ...

Additional Notes

Classification

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 🔨 Refactor (non-breaking change that neither fixes a bug nor adds a feature)
  • 🔧 Infra CI/CD (changes to configs of workflows)
  • 💥 BREAKING CHANGE (fix or feature that require a new minimal version of the front-end)
  • 😶‍🌫️ No impact for the end-users

Impact & Scope

  • Core functionality changes
  • Single module changes
  • Multiple modules changes
  • Other: ...

Testing

  • 1. Tested this locally
  • 2. Added/modified tests that pass the CI (or tested in a downstream fork)
  • 3. Tested in a local client using a pre-prod backend
  • 0. Untestable (exceptionally), will be tested in prod directly

Documentation

  • Updated the docs accordingly :
  • // Comments
  • No documentation needed

@codecov-commenter

codecov-commenter commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.98%. Comparing base (2abf207) to head (a96147b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #709   +/-   ##
=======================================
  Coverage   50.98%   50.98%           
=======================================
  Files         168      168           
  Lines        3789     3789           
=======================================
  Hits         1932     1932           
  Misses       1857     1857           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Luhmos Luhmos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would have reworded it to something like "n prêts en cours, dont x en retard." to be just a bit clearer, apart from that lgtm!

@cotanoine cotanoine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put .toLowerCase in every use of your new string constants instead of directly setting it in lowercase ?

@Marc-Andrieu Marc-Andrieu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread lib/loan/tools/constants.dart Outdated
Comment thread lib/loan/tools/constants.dart Outdated
Comment thread lib/loan/ui/pages/admin_page/on_going_loan.dart Outdated
Comment thread lib/loan/ui/pages/admin_page/on_going_loan.dart Outdated

@Marc-Andrieu Marc-Andrieu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Marc-Andrieu
Marc-Andrieu merged commit e31bc83 into main Sep 8, 2026
4 checks passed
@Marc-Andrieu
Marc-Andrieu deleted the late-loan-count branch September 8, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants