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

Branch UI change #101

Merged

Conversation

hjuntan
Copy link

@hjuntan hjuntan commented Mar 26, 2024

No description provided.

hjuntan added 6 commits March 26, 2024 21:11
Change position of tag to align to the right side of the person card.
Added color background for tag ui
If there is no tag assign to the person, no tag ui will be displayed
@hjuntan hjuntan added type.Story A user story priority.High Must do labels Mar 26, 2024
@hjuntan hjuntan added this to the v1.3 milestone Mar 26, 2024
@hjuntan hjuntan self-assigned this Mar 26, 2024
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

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

Project coverage is 75.68%. Comparing base (02d35e7) to head (23cefd3).

Files Patch % Lines
src/main/java/seedu/address/ui/PersonCard.java 0.00% 18 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##             ui-beautification     #101      +/-   ##
=======================================================
- Coverage                76.44%   75.68%   -0.77%     
  Complexity                 521      521              
=======================================================
  Files                       82       82              
  Lines                     1690     1707      +17     
  Branches                   169      171       +2     
=======================================================
  Hits                      1292     1292              
- Misses                     347      364      +17     
  Partials                    51       51              

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

TagType tagType = person.getTag().value;
switch (tagType) {
case Professor:
tagColor = Color.HOTPINK;

Choose a reason for hiding this comment

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

Very Hot...

Comment on lines +34 to +35
<!-- Spacer for aligning the tag at the right -->
<Region HBox.hgrow="ALWAYS"/>

Choose a reason for hiding this comment

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

Good comment that details the functionality of the following line

TagType tagType = person.getTag().value;
switch (tagType) {
case Professor:
tagColor = Color.HOTPINK;

Choose a reason for hiding this comment

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

Good choice of color!

Comment on lines 30 to 32
</Label>
<Label fx:id="nusId" text="\$first" styleClass="cell_big_label" />
<Label fx:id="name" text="\$first" styleClass="cell_big_label" />

Choose a reason for hiding this comment

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

Good edge case handling

@Rikko1204 Rikko1204 merged commit 97093ed into AY2324S2-CS2103T-T15-2:ui-beautification Mar 30, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do type.Story A user story
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants