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

Linking class to ui #144

Merged
merged 18 commits into from
Oct 10, 2020

Conversation

seanjyjy
Copy link

@seanjyjy seanjyjy commented Oct 10, 2020

Implemented the linking of the data types to the UI and made a few other changes along the way.

PR overview:

  • Link displays(right-hand side) to the data types. changeDisplay method in MainWindow.java is not yet completed, have to see the implementation of view.

  • Added 1 more boolean value to commandResults for view.

  • Reformatted and edited some magic strings that we all have in common in getMapping into PanelDisplayKeyword.java.

  • Added StubDatas in tempStubData for us to see whether the implementation is fine, to be deleted, and also link to model once the implementation to link the data types to UI is ok.

  • Some slight UI issue that arises are

    • the words inside the tags are unable to aligned yet,
    • For Company, I am not sure what is the Internship representation is supposed to be on the right display.
    • For Profile, I am not sure if I should put everything inside the right display.
    • It might look a bit empty for the profile.
  • The three different screens current UI are below.

Screenshot 2020-10-10 at 7 05 18 PM

Screenshot 2020-10-10 at 7 05 11 PM

Screenshot 2020-10-10 at 7 05 14 PM

@seanjyjy seanjyjy self-assigned this Oct 10, 2020
@codecov-io
Copy link

codecov-io commented Oct 10, 2020

Codecov Report

Merging #144 into master will decrease coverage by 4.57%.
The diff coverage is 2.18%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #144      +/-   ##
============================================
- Coverage     36.41%   31.83%   -4.58%     
- Complexity      419      420       +1     
============================================
  Files           151      154       +3     
  Lines          2565     2940     +375     
  Branches        283      296      +13     
============================================
+ Hits            934      936       +2     
- Misses         1585     1957     +372     
- Partials         46       47       +1     
Impacted Files Coverage Δ Complexity Δ
...seedu/address/logic/commands/util/CommandUtil.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...edu/address/model/application/ApplicationItem.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../java/seedu/address/model/company/CompanyItem.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...seedu/address/model/internship/InternshipItem.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../java/seedu/address/model/profile/ProfileItem.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...c/main/java/seedu/address/model/util/DateUtil.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/main/java/seedu/address/ui/HelpWindow.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
src/main/java/seedu/address/ui/MainWindow.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/main/java/seedu/address/ui/TempStubData.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...n/java/seedu/address/ui/cards/ApplicationCard.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 766d7dc...6bcc298. Read the comment docs.

@seanjyjy seanjyjy added this to the v1.2b milestone Oct 10, 2020
@seanjyjy seanjyjy linked an issue Oct 10, 2020 that may be closed by this pull request
@@ -129,9 +152,10 @@ public boolean equals(Object other) {
return false;
}

@SuppressWarnings("unchecked")
Copy link
Author

Choose a reason for hiding this comment

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

Not very sure how to resolve this portion. Maybe I should a raw type parameterized instead?

…into linking-class-to-ui

� Conflicts:
�	src/main/java/seedu/address/logic/commands/util/CommandUtil.java
Copy link

@shawn-nyk shawn-nyk left a comment

Choose a reason for hiding this comment

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

Fantastic work Sean! Just left a few comments but they are very minor so LGTM! Regarding the issues brought up, perhaps we can settle them during subsequent meetings.

@shawn-nyk shawn-nyk merged commit 8dbfdf0 into AY2021S1-CS2103T-T15-4:master Oct 10, 2020
@orzymandias orzymandias modified the milestones: v1.2b, v1.2 Oct 12, 2020
@seanjyjy seanjyjy added the Code label Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Link data types to UI
4 participants