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

Ui for Plan #72

Merged
merged 7 commits into from Oct 15, 2019
Merged

Ui for Plan #72

merged 7 commits into from Oct 15, 2019

Conversation

Seris370
Copy link

No description provided.

@coveralls
Copy link

coveralls commented Oct 14, 2019

Pull Request Test Coverage Report for Build 173

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 93 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.6%) to 37.078%

Files with Coverage Reduction New Missed Lines %
file:/home/travis/build/AY1920S1-CS2103T-W11-1/main/src/main/java/seedu/algobase/ui/ProblemListPanel.java 6 0.0%
file:/home/travis/build/AY1920S1-CS2103T-W11-1/main/src/main/java/seedu/algobase/logic/LogicManager.java 7 63.64%
file:/home/travis/build/AY1920S1-CS2103T-W11-1/main/src/main/java/seedu/algobase/model/plan/Plan.java 22 0.0%
file:/home/travis/build/AY1920S1-CS2103T-W11-1/main/src/main/java/seedu/algobase/logic/parser/ParserUtil.java 23 35.14%
file:/home/travis/build/AY1920S1-CS2103T-W11-1/main/src/main/java/seedu/algobase/ui/MainWindow.java 35 0.0%
Totals Coverage Status
Change from base Build 170: -0.6%
Covered Lines: 868
Relevant Lines: 2341

💛 - Coveralls

@le0tan le0tan added this to the v1.2 milestone Oct 15, 2019
@le0tan le0tan added this to In progress in AlgoBase via automation Oct 15, 2019
Copy link

@tiuweehan tiuweehan left a comment

Choose a reason for hiding this comment

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

Good job! Can consider writing some tests for the features as well.

* As a consequence, UI elements' variable names cannot be set to such keywords
* or an exception will be thrown by JavaFX during runtime.
*
* @see <a href="https://github.com/se-edu/addressbook-level4/issues/336">The issue on AddressBook level 4</a>

Choose a reason for hiding this comment

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

I realize this comment can be removed


@Override
public boolean equals(Object other) {
// short circuit if same object

Choose a reason for hiding this comment

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

Try to avoid using comments that describe 'how'. They should be used for describing 'why'

endDate.setText(plan.getEndDate().format(Plan.FORMATTER));
plan.getTasks().stream()
.sorted(Comparator.comparing(Task::getDateTime))
.forEach(task -> tasks.getChildren().add(new Label(task.getProblem().toString() + '\n'

Choose a reason for hiding this comment

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

Could abstract this out into a formatter

AlgoBase automation moved this from In progress to Reviewer approved Oct 15, 2019
Copy link

@jiayushe jiayushe left a comment

Choose a reason for hiding this comment

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

LGTM

@Seris370 Seris370 merged commit be89ac2 into AY1920S1-CS2103T-W11-1:master Oct 15, 2019
AlgoBase automation moved this from Reviewer approved to Done Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
AlgoBase
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants