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

[euchangxian] iP #520

Open
wants to merge 120 commits into
base: master
Choose a base branch
from
Open

Commits on Aug 8, 2023

  1. Add Gradle support

    damithc authored and damithc committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    28ad2b8 View commit details
    Browse the repository at this point in the history
  2. Bump gradle and lib version

    Eclipse-Dominator authored and damithc committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    ed6d4d2 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    4b0f973 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d0555f View commit details
    Browse the repository at this point in the history
  3. Replace usage of System.out.println with echo()

    This reduces repeated code.
    euchangxian committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    6cb6190 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2023

  1. Configuration menu
    Copy the full SHA
    dc4d576 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8fc0b5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19b3d6d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a29887 View commit details
    Browse the repository at this point in the history
  5. Add taskList field

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    8101159 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6acaa3f View commit details
    Browse the repository at this point in the history
  7. Update echo() output text

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    a7c17e3 View commit details
    Browse the repository at this point in the history
  8. Update echo() to take in a prefix

    This is done by adding an overloaded echo() method to maintain the
    functionality of existing code.
    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    d85ffb3 View commit details
    Browse the repository at this point in the history
  9. Add printTasks() method

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    7647a56 View commit details
    Browse the repository at this point in the history
  10. Add line breaks in between methods

    For improved readablity
    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    5122a40 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4e7bd85 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    da290a2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    87fd0f1 View commit details
    Browse the repository at this point in the history
  14. Add Task class

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    2071d57 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d60dcc2 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    82ce6a1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a882d89 View commit details
    Browse the repository at this point in the history
  18. Add cases for mark and unmark

    Update startParse() to first split by spaces to handle commands with
    multiple words, like mark x or unmark x, where x is the index of the
    command.
    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    c78a6b4 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6804017 View commit details
    Browse the repository at this point in the history
  20. Extract print methods to OutputService

    This is to prevent Duke class from getting too bloated.
    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    28ee5f5 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    814e1e1 View commit details
    Browse the repository at this point in the history
  22. Change entry point of program to CliParserService

    This is to prevent bloating of Duke class
    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    4623a32 View commit details
    Browse the repository at this point in the history
  23. Add custom Exceptions

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    cc457e3 View commit details
    Browse the repository at this point in the history
  24. Add TaskType enum

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    612ae9a View commit details
    Browse the repository at this point in the history
  25. Add variants of Tasks

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    7a2e15b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c4bd922 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    98972ec View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    54dba68 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    d3d7e5d View commit details
    Browse the repository at this point in the history
  30. Add delete functionality

    euchangxian committed Aug 27, 2023
    Configuration menu
    Copy the full SHA
    01e88b3 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Add getNumberOfTasks()

    Also removed usage of `this` where relevant to maintain consistency.
    euchangxian committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    c277987 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    987d942 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20db7ec View commit details
    Browse the repository at this point in the history
  4. Add handleDelete()

    This is to handle the printing of extra information for the delete
    command.
    euchangxian committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    e72c0b9 View commit details
    Browse the repository at this point in the history
  5. Refactor createTask()

    Move printing of error message to CliParserService
    euchangxian committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    ff58386 View commit details
    Browse the repository at this point in the history
  6. Fix dependency injection

    euchangxian committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    aab8095 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Change DukeException to a Checked Exception

    Update method signature of relevant methods.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    736608e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58ece4e View commit details
    Browse the repository at this point in the history
  3. Implement Serializable interface for Task

    This allows object persistence for Task by making it serializable.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    461913c View commit details
    Browse the repository at this point in the history
  4. Change DukeException to a Checked Exception

    Update method signature of relevant methods.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    7357425 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    90a9d62 View commit details
    Browse the repository at this point in the history
  6. Add StorageService class

    This class handles the read/write to files for object persistence,
    specifically taskList.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    6f4deae View commit details
    Browse the repository at this point in the history
  7. Update StorageService thrown exceptions

    StorageService now throws DukeStorageException instead of DukeException
    for more specificity and different erorr handling.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    3bb7235 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1087444 View commit details
    Browse the repository at this point in the history
  9. Remove caching of taskList

    The added complexity is not worth it for the increase in performance,
    because the assumption was that the taskList would contain at most 100
    Tasks only.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    4df571b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ecafb5b View commit details
    Browse the repository at this point in the history
  11. Merge branch 'branch-Level-7'

    Add Tasks List persistence ability to Duke.
    euchangxian committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    64f6c6a View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Rework parseTaskCommand() and createTask()

    deadline commands must have an end date as argument, prefixed with 'by',
    while event commands must have a start date prefixed with 'from', end
    date prefixed with 'to' as arguments.
    euchangxian committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    543c90e View commit details
    Browse the repository at this point in the history
  2. Add TimeUtilException

    euchangxian committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    b02026c View commit details
    Browse the repository at this point in the history
  3. Add TimeUtil class

    euchangxian committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    84e404b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a3c1d94 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98aeb3d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cd71218 View commit details
    Browse the repository at this point in the history
  7. Fix TimeUtil::parseDateTimeString

    Fix parseDateTimeString() wrongly parsing yyyy-mm-dd, or inputs
    containing Date only, as invalid inputs.
    euchangxian committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    28fe2e2 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'branch-Level-8'

    Update Duke to parse date inputs.
    euchangxian committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    9e7beb1 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Add UiService class.

    This class is responsible for the printing of messages to the console
    output, and uses OutputService to handle the formatting and indentation
    of Strings.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    eba9ed2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc2ac5b View commit details
    Browse the repository at this point in the history
  3. Add TaskList class

    Operations on the TaskList like add, delete, mark etc will be handled by
    TaskList.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    245be67 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd76b79 View commit details
    Browse the repository at this point in the history
  5. Update parsing of special strings into dates

    "today" and "tomorrow" both return the end of their respective days.
    Display formatting is updated to display minutes too.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    690a5eb View commit details
    Browse the repository at this point in the history
  6. Merge branch 'branch-A-MoreOOP'

    Abstract methods and responsibilities into separate classes for
    separation of concern.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    3a2a64b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bda2ff2 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'branch-A-Packages'

    This is to provide a logical grouping for different classes and their
    responsibilities, improving readability.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    31592e9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3548287 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3fffbef View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3f07d63 View commit details
    Browse the repository at this point in the history
  12. Add abstract Command and subclasses

    Abstracts logic of inputs into individual Commands subclasses.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    ebdbb39 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3119228 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    69ded70 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3372a29 View commit details
    Browse the repository at this point in the history
  16. Merge branch 'branch-A-Gradle'

    Add Gradle support to Duke project.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    1457f3a View commit details
    Browse the repository at this point in the history
  17. Add TimeUtil tests

    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    ef8d5fc View commit details
    Browse the repository at this point in the history
  18. Extract out parsing of input to its own method

    This is to allow for a more straightforward unit testing of
    CliParserService.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    ea799b3 View commit details
    Browse the repository at this point in the history
  19. Move responsiblity of trimming input

    Move from parse() to parseCommandAndArguments(). This is to allow for
    better unit testing as well
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    8c67cdc View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    b3962bb View commit details
    Browse the repository at this point in the history
  21. Add CliParserServiceTest

    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    30f3268 View commit details
    Browse the repository at this point in the history
  22. Merge branch 'branch-A-JUnit'

    Add JUnit tests for CliParserService and TimeUtil, as these are critical
    service/util classes.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    d90de50 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    78de089 View commit details
    Browse the repository at this point in the history
  24. Merge branch 'branch-A-JavaDoc'

    Adds JavaDocs to classes and methods. This improves maintainability.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    65374d2 View commit details
    Browse the repository at this point in the history
  25. Add checkstyle to Gradle

    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    b65918e View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    50b44b0 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6949e33 View commit details
    Browse the repository at this point in the history
  28. Merge branch 'branch-A-CodingStandard'

    Implement checkstyle and fix checkstyle violations.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    1abc3bc View commit details
    Browse the repository at this point in the history
  29. Add printFoundTasks in UiService

    Refactor printTask in OutputService to formatTaskList for increased
    flexibility.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    bc6cae4 View commit details
    Browse the repository at this point in the history
  30. Add find command

    find searches the taskList for taskNames containing the given keyword,
    then prints the matching tasks.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    670cd85 View commit details
    Browse the repository at this point in the history
  31. Merge branch 'branch-Level-9'

    Add find command which allows users to search for tasks based on a
    keyword.
    euchangxian committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    0c5578c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2023

  1. Add JavaDocs for methods invoked by find command

    Fixes CheckStyle violations
    euchangxian committed Sep 3, 2023
    Configuration menu
    Copy the full SHA
    61ae94e View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Configuration menu
    Copy the full SHA
    3c89a10 View commit details
    Browse the repository at this point in the history
  2. Extract main method from Duke to Main class

    This is in preparation to integrate JavaFX with Duke, preventing the
    Duke class from becoming too bloated.
    euchangxian committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    55ea565 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Refactor Duke class

    euchangxian committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    877ec10 View commit details
    Browse the repository at this point in the history
  2. Add JavaFX GUI

    Refactor existing classes, mainly changing the return type of UiService
    to return a String which is displayed in the GUI window.
    euchangxian committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    f0ad6c2 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'branch-Level-10'

    Add a GUI to Duke.
    euchangxian committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    2ab6853 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Add assert statements to TaskList

    TaskFactory is responsible for the creation of new Tasks, and in no
    cases does it return a null task.
    Since there should only be one way of adding a task to TaskList, by
    calling TaskList::add, there should be no null tasks added to the
    TaskList. Neither should there by any null task retrieved by any
    exposed methods.
    euchangxian committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    3aa9508 View commit details
    Browse the repository at this point in the history
  2. Add final modifier to ParseResult fields

    This is to better reflect immutability.
    euchangxian committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    dbfbd5c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44f797d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4178a85 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    86a595e View commit details
    Browse the repository at this point in the history
  6. Remove unused import

    euchangxian committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    e2f88dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e135e8e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0d25470 View commit details
    Browse the repository at this point in the history
  9. Merge pull request #3 from euchangxian/branch-A-Assertions

    Add assert statements to TaskList
    euchangxian authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    a9d312f View commit details
    Browse the repository at this point in the history
  10. Merge pull request #2 from euchangxian/branch-A-Streams

    Branch-A-Streams
    euchangxian authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    418fb96 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #1 from euchangxian/branch-A-CI

    Add java_ci.yml file to ensure code quality
    euchangxian authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    ac9b0fd View commit details
    Browse the repository at this point in the history
  12. Fix checkstyle violations

    euchangxian committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    8382d84 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #5 from euchangxian/branch-A-CodeQuality

    Improve Code Quality
    euchangxian authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    64a92fb View commit details
    Browse the repository at this point in the history
  14. Add more strings that can be understood as dates

    Duke can now parse dates like "monday", "tuesday",..., etc
    and understands it as the next Monday, Tuesday etc.
    euchangxian committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    60f35f8 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ef21747 View commit details
    Browse the repository at this point in the history
  16. Merge pull request #6 from euchangxian/branch-C-NaturalDates

    Add more special date inputs
    euchangxian authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    4086743 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Update Event Task date arguments logic

    If the start date supplied is after the end date, an exception is
    thrown.
    euchangxian committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    e41a0f7 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    34135b7 View commit details
    Browse the repository at this point in the history
  2. Add Ui.png

    euchangxian committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    36e88d0 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    euchangxian committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    7322b31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    430035b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d6f200 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. Configuration menu
    Copy the full SHA
    9e8d6ad View commit details
    Browse the repository at this point in the history