Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update lesson labels to not display when completed #56

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

leepoeaik
Copy link

No description provided.

@leepoeaik leepoeaik added this to the V1.3 milestone Mar 25, 2024
@leepoeaik leepoeaik self-assigned this Mar 25, 2024
@@ -61,6 +61,7 @@ public StudentCard(Student student, int displayedIndex) {
remark.setText(student.getRemark().value);
student.getLessons().stream()
.sorted(Comparator.comparing(Lesson::getLessonValue))
.forEach(lesson -> lessons.getChildren().add(new Label(lesson.getLessonValue())));
.filter(x -> x.getLessonStatus() == 0)
.forEach(lesson -> lessons.getChildren().add(new Label(lesson.toString())));

Choose a reason for hiding this comment

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

Didn't think of this, amazing!

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 75.42%. Comparing base (dafb1e6) to head (ece91b3).

Files Patch % Lines
src/main/java/seedu/address/ui/StudentCard.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #56      +/-   ##
============================================
+ Coverage     75.35%   75.42%   +0.06%     
- Complexity      445      446       +1     
============================================
  Files            75       75              
  Lines          1473     1473              
  Branches        144      144              
============================================
+ Hits           1110     1111       +1     
+ Misses          324      323       -1     
  Partials         39       39              

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

@leepoeaik leepoeaik merged commit 11e6056 into AY2324S2-CS2103T-T16-4:master Mar 25, 2024
4 of 5 checks passed
@leepoeaik leepoeaik linked an issue Mar 30, 2024 that may be closed by this pull request
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.

Improve lesson labels visibility under studentCard
2 participants