Skip to content

Commit

Permalink
Fix bugs related to documentation and slot management (#177)
Browse files Browse the repository at this point in the history
* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Merge  (#18)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* Resolve conflicts

* Merge (#19)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Merge (#21)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags

* Resolve merge conflicts

* Merge (#24)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags

* Merge (#23)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Add KeyStore to store encryption key

* change some ab3 references to planmysem

* export location only if location exists

* Enhance list and find functionality to include tags (#111)

* Merge  (#18)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Resolve conflicts

* Merge (#19)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags

* Update User Guide and Dev Guide for encryption (#114)

* merge upstream (#6)

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags (#111)

* Merge  (#18)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Resolve conflicts

* Merge (#19)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags

* Update docs

* Fix checkstyle

* Merge codacy

* Resolve conflicts

* resolve whitesapce

* Merge (#27)

* Resolve checkstyle errors

* Update use cases in developer guide

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Add KeyStore to store encryption key

* change some ab3 references to planmysem

* export location only if location exists

* Enhance list and find functionality to include tags (#111)

* Merge  (#18)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Resolve conflicts

* Merge (#19)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags

* Update User Guide and Dev Guide for encryption (#114)

* merge upstream (#6)

* Update User Guide (#105)

* Update use cases in developer guide

* edit user guide

* add encryption key skeleton

* user guide edits

* Update User Guide (#106)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update README.adoc and UserGuide.adoc: change table layouts  (#110)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update UserGuide.adoc with feedback from peers

* Update UserGuide.adoc with nicer tables

* Update UserGuide.adoc: fix formatting issues

* UserGuide.adoc Remove potential Netlify breaking code

* README.adoc revert changes

* UserGuide.adoc revert Netlify breakdown test code

* Update User Guide (#108)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Enhance list and find functionality to include tags (#111)

* Merge  (#18)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Add config file for Reposense

* Add config file for Reposense (#102)

* Move config.json to _reposense folder

* Move config.json to _reposense folder (#103)

* Edit config file for reposense

* Resolve conflicts

* Merge (#19)

* Resolve checkstyle errors

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide documentation (#99)

* Planner: Initialize weekType for each Day

* Planner: Fix Codacy issue

* Planner: Update code for initialisation of semester

* Planner: Fix Codacy and checkstyle issues

* Planner: Fix build error

* Planner: Dynamic generation of semester from date

* PlannerTest: Add JUnit test for generateSemester

* Update documentation for view command

* Add view command for monthly calendar view

* Fix Codacy issue

* UserGuide: Update user guide documentation

* UserGuide: Update user guide documentation

* Update UserGuide.adoc  (#100)

* v1.1

* fix some errors and typos

* Refactor entire project, remove all traces of Addressbook

* Update developer guide for ExportCommandP (#80)

* Update documentation for view command (#81)

* Remove remaining Addressbook classes

* Refactor some classes

* fix missing files issue

* Add test cases for add function, Utils and other code enhancements

* fix codacy issues

* fix codacy issues

* Add tests for Utils

* Add diagrams

* Update Ui.png

* fix issue with Ui.png

* Update Codacy Badge link due to reinitialization.

* Enhance ordering of slots printed

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide

* Update User Guide (#101)

* Merge (#17)

* FIx Bug in FindCommand (#97)

Fix Bug in FindCommand

* Update User Guide documentation (#98)

* Update User Guide…
  • Loading branch information
seanieyap authored and marcus-pzj committed Apr 4, 2019
1 parent 6397b20 commit ca8b388
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 138 deletions.
Binary file modified docs/images/Help_Command_Output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 16 additions & 35 deletions src/planmysem/common/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javafx.util.Pair;
Expand All @@ -24,14 +23,19 @@ public class Messages {
public static final String MESSAGE_WELCOME = "Welcome to PlanMySem!";
public static final String MESSAGE_USING_STORAGE_FILE = "Using storage file : %1$s";
public static final String MESSAGE_NOTHING_TO_EDIT = "There are no details to edit.";
public static final String MESSAGE_INVALID_DATE = "Date have to be in either these two formats:"
public static final String MESSAGE_INVALID_DATE_OR_DAY = "Date have to be in either these two formats:"
+ "\n\tIn the form of \"dd-mm\". e.g. \"01-01\""
+ "\n\tIn the form of \"dd-mm-yyyy\". e.g. \"01-01-2019\""
+ "\n\tOr perhaps target the next day of week. e.g. \"Monday\", \"mon\", \"1\"";
+ "\n\tOr perhaps target the next day of week."
+ "\n\t\tIn the form of the day itself, \"Monday\", in 3-letter short forms, \"mon\" "
+ "or numbered day of week, \"1\"";
public static final String MESSAGE_INVALID_TIME = "Time have to be in either these two formats:"
+ "\n\t24-Hour in the form of “hh:mm”. e.g. \"23:00\""
+ "\n\t12-Hour in the form of `hh:mm+AM|PM`. e.g. \"12:30am\""
+ "\n\t12-Hour in the form of `hh:mm AM|PM`. e.g. \"12:30 am\""
+ "\n\tOr perhaps type a duration in minutes. e.g. \"60\" to represent 60 minutes";
public static final String MESSAGE_INVALID_ENDTIME = "A slot is not able to have an end time that is "
+ "before it's start time.";

public static final String MESSAGE_INVALID_TAG = "Tags cannot be empty !";
public static final String MESSAGE_ILLEGAL_VALUE = "Illegal value detected!";
public static final String MESSAGE_ILLEGAL_WEEK_VALUE = "No such week is found in the current semester!";
Expand Down Expand Up @@ -72,7 +76,7 @@ public static String craftSelectedMessage(int index) {
* Craft selected message with header.
*/
public static String craftSelectedMessage(String header,
Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots) {
List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots) {
StringBuilder sb = new StringBuilder();
sb.append(header);
sb.append("\n");
Expand Down Expand Up @@ -107,37 +111,12 @@ public static String craftListMessageWeighted(List<WeightedName> tries) {
return sb.toString();
}

/**
* Craft list message.
*/
public static String craftListMessage(Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots) {
StringBuilder sb = new StringBuilder();

int count = 1;
for (Map.Entry<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots.entrySet()) {
sb.append("\n");
sb.append(count + ".\t");
sb.append("Name: ");
sb.append(entry.getValue().getValue().getName());
sb.append(",\n\t");
sb.append("Date: ");
sb.append(entry.getKey().toString());
sb.append(",\n\t");
sb.append("Start Time: ");
sb.append(entry.getValue().getValue().getStartTime());
sb.append("\n\t");
sb.append("Tags: ");
sb.append(entry.getValue().getValue().getTags());
sb.append("\n");
count++;
}
return sb.toString();
}

/**
* Craft list message.
*/
public static String craftListMessage(List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots) {
selectedSlots.sort((p1, p2) -> p1.getKey().compareTo(p2.getKey()));

StringBuilder sb = new StringBuilder();

int count = 1;
Expand All @@ -164,12 +143,14 @@ public static String craftListMessage(List<Pair<LocalDate, Pair<ReadOnlyDay, Rea
/**
* Craft selected message.
*/
private static String getSelectedMessage(Map<LocalDate,
Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots) {
private static String getSelectedMessage(
List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots) {
selectedSlots.sort((p1, p2) -> p1.getKey().compareTo(p2.getKey()));

StringBuilder sb = new StringBuilder();

int count = 1;
for (Map.Entry<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots.entrySet()) {
for (Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots) {
sb.append(count);
sb.append(".\t");
sb.append(entry.getValue().getValue().getName());
Expand Down
67 changes: 47 additions & 20 deletions src/planmysem/common/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.time.LocalTime;
import java.time.Year;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.time.temporal.TemporalAdjusters;
import java.util.Collection;
import java.util.HashSet;
Expand All @@ -17,14 +18,6 @@
* Utility methods
*/
public class Utils {
public static final Pattern DATE_FORMAT =
Pattern.compile("(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\d\\d)");
public static final Pattern DATE_FORMAT_NO_YEAR =
Pattern.compile("(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])");
public static final Pattern TWELVE_HOUR_FORMAT =
Pattern.compile("(1[012]|[1-9]):[0-5][0-9](\\s)?(?i)(AM|PM)");
public static final Pattern TWENTY_FOUR_HOUR_FORMAT =
Pattern.compile("([01]?[0-9]|2[0-3]):[0-5][0-9]");
public static final Pattern INTEGER_FORMAT =
Pattern.compile("\\d+");

Expand Down Expand Up @@ -72,7 +65,7 @@ public static int parseDay(String unknown) {
break;

case "tuesday":
case "tues":
case "tue":
case "2":
result = 2;
break;
Expand All @@ -84,7 +77,7 @@ public static int parseDay(String unknown) {
break;

case "thursday":
case "thurs":
case "thu":
case "4":
result = 4;
break;
Expand Down Expand Up @@ -122,13 +115,26 @@ public static LocalDate parseDate(String date) {
if (date == null) {
return null;
}
if (DATE_FORMAT.matcher(date).matches()) {
return LocalDate.parse(date, DateTimeFormatter.ofPattern("d-MM-yyyy"));
} else if (DATE_FORMAT_NO_YEAR.matcher(date).matches()) {
return LocalDate.parse(date + "-" + Year.now().getValue(), DateTimeFormatter.ofPattern("d-MM-yyyy"));

LocalDate result;

// with year
try {
result = LocalDate.parse(date, DateTimeFormatter.ofPattern("d-MM-yyyy"));
} catch (DateTimeParseException dtpe) {
result = null;
}

return null;
// without year
if (result == null) {
try {
result = LocalDate.parse(date + "-" + Year.now().getValue(), DateTimeFormatter.ofPattern("d-MM-yyyy"));
} catch (DateTimeParseException dtpe) {
result = null;
}
}

return result;
}

/**
Expand All @@ -138,13 +144,34 @@ public static LocalTime parseTime(String time) {
if (time == null) {
return null;
}
if (TWELVE_HOUR_FORMAT.matcher(time).matches()) {
return LocalTime.parse(time.toUpperCase(), DateTimeFormatter.ofPattern("h[h]:mm a"));
} else if (TWENTY_FOUR_HOUR_FORMAT.matcher(time).matches()) {
return LocalTime.parse(time, DateTimeFormatter.ofPattern("H[H]:mm"));

LocalTime result;

// Twelve hour format
try {
result = LocalTime.parse(time.toUpperCase(), DateTimeFormatter.ofPattern("h[h]:mma"));
} catch (DateTimeParseException dtpe) {
result = null;
}

if (result == null) {
try {
result = LocalTime.parse(time.toUpperCase(), DateTimeFormatter.ofPattern("h[h]:mm a"));
} catch (DateTimeParseException dtpe) {
result = null;
}
}

return null;
if (result == null) {
// Twenty-four hour format
try {
result = LocalTime.parse(time, DateTimeFormatter.ofPattern("H[H]:mm"));
} catch (DateTimeParseException dtpe) {
result = null;
}
}

return result;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/planmysem/logic/commands/CommandResult.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package planmysem.logic.commands;

import java.time.LocalDate;
import java.util.Map;
import java.util.List;
import java.util.Objects;
import java.util.Optional;

Expand All @@ -22,7 +22,7 @@ public class CommandResult {
/**
* The list of Slots that was produced by the command
*/
private final Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> slots;
private final List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> slots;

public CommandResult(String feedbackToUser) {
this.feedbackToUser = feedbackToUser;
Expand All @@ -32,7 +32,7 @@ public CommandResult(String feedbackToUser) {
/**
* Returns list of Slots relevant to the command command result, if any.
*/
public Optional<Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> getRelevantSlots() {
public Optional<List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>>> getRelevantSlots() {
return Optional.ofNullable(slots);
}

Expand Down
12 changes: 6 additions & 6 deletions src/planmysem/logic/commands/DeleteCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import static planmysem.common.Messages.MESSAGE_INVALID_SLOT_DISPLAYED_INDEX;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Map;
import java.util.List;
import java.util.Set;
import java.util.TreeMap;

import javafx.util.Pair;
import planmysem.common.Messages;
Expand Down Expand Up @@ -58,20 +58,20 @@ public DeleteCommand(int index) {

@Override
public CommandResult execute(Model model, CommandHistory commandHistory) throws CommandException {
final Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots = new TreeMap<>();
final List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots = new ArrayList<>();
String messageSelected;
String messageSlots;

if (targetIndex == -1) {
selectedSlots.putAll(model.getSlots(tags));
selectedSlots.addAll(model.getSlots(tags));

if (selectedSlots.size() == 0) {
throw new CommandException(String.format(MESSAGE_SUCCESS_NO_CHANGE,
Messages.craftSelectedMessage(tags)));
}

// perform deletion of slots from the planner
for (Map.Entry<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots.entrySet()) {
for (Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots) {
model.removeSlot(entry.getKey(), entry.getValue().getValue());
}
messageSelected = Messages.craftSelectedMessage(tags);
Expand All @@ -85,7 +85,7 @@ public CommandResult execute(Model model, CommandHistory commandHistory) throws
throw new CommandException(MESSAGE_SLOT_NOT_IN_PLANNER);
}

selectedSlots.put(target.getKey(), target.getValue());
selectedSlots.add(target);

model.removeSlot(target);

Expand Down
15 changes: 7 additions & 8 deletions src/planmysem/logic/commands/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Map;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.StringJoiner;
import java.util.TreeMap;

import javafx.util.Pair;
import planmysem.common.Messages;
Expand All @@ -24,7 +24,6 @@ public class EditCommand extends Command {

public static final String COMMAND_WORD = "edit";
public static final String COMMAND_WORD_SHORT = "e";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edit single or multiple slots in the Planner."
+ "\n\tParameters: "
+ "\n\t\tMandatory: t/TAG... or INDEX"
Expand Down Expand Up @@ -88,12 +87,12 @@ public EditCommand(int index, String name, LocalDate date, LocalTime startTime,

@Override
public CommandResult execute(Model model, CommandHistory commandHistory) throws CommandException {
final Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots = new TreeMap<>();
final List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots = new ArrayList<>();
String messageSelected;
String messageSlots;

if (targetIndex == -1) {
selectedSlots.putAll(model.getSlots(tags));
selectedSlots.addAll(model.getSlots(tags));

if (selectedSlots.size() == 0) {
throw new CommandException(String.format(MESSAGE_SUCCESS_NO_CHANGE,
Expand All @@ -103,7 +102,7 @@ public CommandResult execute(Model model, CommandHistory commandHistory) throws
// Need to craft success message earlier to get original instead of edited Slots
messageSlots = craftSuccessMessage(selectedSlots);

for (Map.Entry<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots.entrySet()) {
for (Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> entry : selectedSlots) {
model.editSlot(entry.getKey(), entry.getValue().getValue(), date,
startTime, duration, name, location, description, newTags);
}
Expand All @@ -112,7 +111,7 @@ public CommandResult execute(Model model, CommandHistory commandHistory) throws
} else {
try {
final Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> target = model.getLastShownItem(targetIndex);
selectedSlots.put(target.getKey(), target.getValue());
selectedSlots.add(target);

// Need to craft success message earlier to get original instead of edited Slots
messageSlots = craftSuccessMessage(selectedSlots);
Expand All @@ -135,7 +134,7 @@ public CommandResult execute(Model model, CommandHistory commandHistory) throws
/**
* Craft success message.
*/
public String craftSuccessMessage(Map<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>> selectedSlots) {
public String craftSuccessMessage(List<Pair<LocalDate, Pair<ReadOnlyDay, ReadOnlySlot>>> selectedSlots) {
StringBuilder sb = new StringBuilder();

sb.append("Details Edited: ");
Expand Down
9 changes: 7 additions & 2 deletions src/planmysem/logic/parser/AddCommandParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import static planmysem.common.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static planmysem.common.Messages.MESSAGE_INVALID_COMMAND_FORMAT_ADDITIONAL;
import static planmysem.common.Messages.MESSAGE_INVALID_DATE;
import static planmysem.common.Messages.MESSAGE_INVALID_DATE_OR_DAY;
import static planmysem.common.Messages.MESSAGE_INVALID_ENDTIME;
import static planmysem.common.Messages.MESSAGE_INVALID_TAG;
import static planmysem.common.Messages.MESSAGE_INVALID_TIME;

Expand Down Expand Up @@ -51,7 +52,7 @@ public AddCommand parse(String args) throws ParseException {
}
if (day == -1 && date == null) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT_ADDITIONAL,
AddCommand.MESSAGE_USAGE, MESSAGE_INVALID_DATE));
AddCommand.MESSAGE_USAGE, MESSAGE_INVALID_DATE_OR_DAY));
}

// Start time is mandatory
Expand All @@ -73,6 +74,10 @@ public AddCommand parse(String args) throws ParseException {
AddCommand.MESSAGE_USAGE, MESSAGE_INVALID_TIME));
}
duration = Utils.getDuration(startTime, endTime);
if (duration < 0) {
throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT_ADDITIONAL,
AddCommand.MESSAGE_USAGE, MESSAGE_INVALID_ENDTIME));
}
}

// Description is not mandatory and can be null
Expand Down
4 changes: 2 additions & 2 deletions src/planmysem/logic/parser/ViewCommandParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static planmysem.common.Messages.MESSAGE_ILLEGAL_WEEK_VALUE;
import static planmysem.common.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static planmysem.common.Messages.MESSAGE_INVALID_DATE;
import static planmysem.common.Messages.MESSAGE_INVALID_DATE_OR_DAY;

import java.time.LocalDate;

Expand Down Expand Up @@ -90,7 +90,7 @@ public ViewCommand parse(String args) throws ParseException {
day = Utils.parseDay(viewArgs[1]);
}
if (day == -1 && date == null) {
throw new ParseException(String.format(MESSAGE_INVALID_DATE, ViewCommand.MESSAGE_USAGE));
throw new ParseException(String.format(MESSAGE_INVALID_DATE_OR_DAY, ViewCommand.MESSAGE_USAGE));
}

return new ViewCommand(viewArgs);
Expand Down
Loading

0 comments on commit ca8b388

Please sign in to comment.