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 product website, UG and minor code refactoring #98

Merged
merged 10 commits into from
Oct 14, 2020

Conversation

TanLeYang
Copy link
Collaborator

@TanLeYang TanLeYang commented Oct 14, 2020

Some minor additions and fixes for #92

  • Change Ui.png, which is displayed in the user guide and product website to be a screenshot of the new Ui
  • Remove references to the scraped library due date feature in index.md
  • Fix some inconsistencies found in the UG
  • Removed the old constructor of Book that didn't require taking in a Bookmark and TotalPages and the leftover usages of the constructor
  • Display the percentage completion of a Book in DetailedBookCard
  • Some improvements to code quality to better adhere to the LAW OF DEMETER!

@TanLeYang TanLeYang changed the title Update Ui screenshots and minor code refactoring Update product website, UG and minor code refactoring Oct 14, 2020
@codecov-io
Copy link

codecov-io commented Oct 14, 2020

Codecov Report

Merging #98 into master will increase coverage by 0.09%.
The diff coverage is 7.14%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #98      +/-   ##
============================================
+ Coverage     67.40%   67.49%   +0.09%     
- Complexity      448      451       +3     
============================================
  Files            80       80              
  Lines          1448     1449       +1     
  Branches        152      152              
============================================
+ Hits            976      978       +2     
+ Misses          425      423       -2     
- Partials         47       48       +1     
Impacted Files Coverage Δ Complexity Δ
src/main/java/seedu/bookmark/MainApp.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...java/seedu/bookmark/model/util/SampleDataUtil.java 20.00% <0.00%> (ø) 1.00 <0.00> (ø)
src/main/java/seedu/bookmark/ui/BookCard.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../main/java/seedu/bookmark/ui/DetailedBookCard.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/main/java/seedu/bookmark/ui/SidebarPanel.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
src/main/java/seedu/bookmark/model/book/Book.java 95.91% <66.66%> (+12.58%) 25.00 <3.00> (+3.00)

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 de7a06b...067cd49. Read the comment docs.

Copy link
Collaborator

@angrybunny123 angrybunny123 left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines 34 to 36
int pagesRead = book.getPagesRead();
int totalPages = book.getTotalPagesNumber();
return (int) (((float) pagesRead / totalPages) * 100);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe it will be better to immediately cast the float type upon instantiation instead of typecasting at Ln36?

Else, LGTM!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good suggestion! I've made the necessary changes

@TanLeYang TanLeYang merged commit 9dac2cb into AY2021S1-CS2103T-F13-2:master Oct 14, 2020
@TanLeYang TanLeYang added this to the v1.2b milestone Oct 15, 2020
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.

None yet

4 participants