diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 78ade9d04a..c92daff042 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -437,61 +437,6 @@ ____________________________________________________________ ____________________________________________________________ ``` -### Adding a location: `location` -Adds a location to an existing travel activity. - -Format: `location INDEX LOCATION` - -* The `INDEX` must be a valid activity index -* -Example of usage: - -`location 3 Singapore` - -Expected outcome: -``` -____________________________________________________________ -I have added a location to this task: -Go to Japan :14 Dec 2026 :2 hours (Japan) -____________________________________________________________ -``` - -### Removing a location amount: `removelocation` -Removes a location to an existing travel activity. - -Format: `removelocation INDEX` - -* The `INDEX` must be a valid activity index. - -Example of usage: - -`removelocation 3` - -Expected outcome: -``` -____________________________________________________________ -Location removed from the task: -Go to Japan :14 Dec 2026 :2 hours -____________________________________________________________ -``` - -### Find activity from the list using activity location: `findlocation` - -Find an activity based on their location. All activities with the given location will be listed out. - -Format: `findlocation LOCATION` -* `LOCATION` has to match the activity location exactly to find the activity - -Examples of usage: `findlocation Japan` - -Expected outcome: -``` -____________________________________________________________ -Here are what you are looking for: -[ ] 1. General: Go to Japan :14 Dec 2026 :2 hours (Japan) -____________________________________________________________ -``` - Common currency codes: * USA: USD * EURO: EUR @@ -530,10 +475,9 @@ same location of your other computer to transfer all the activities. * Remove tag `untag INDEX` * Find activity using activity tag `findtag TAG` * Find activity using activity type `findtype TYPE` +* Lists out all tags `listtags` * Add expense `expense INDEX EXPENSE` * Remove expense `removeexpense INDEX` * Total expense `totalexpense [/type TYPE]` * Check currency exchange `change AMOUNT /from CODE /to CODE` -* Add location `location INDEX LOCATION` -* Remove location `removelocation INDEX` -* Find location `findlocation LOCATION` + diff --git a/docs/team/chenkangg.md b/docs/team/chenkangg.md index 85d8b97605..89f264968a 100644 --- a/docs/team/chenkangg.md +++ b/docs/team/chenkangg.md @@ -32,25 +32,18 @@ providing an easy way to assist a user to view all the commands. * Justification: This feature improves the product significantly because a user can add an expense to a travel activity which can help to track their finances and conveniently remove the expense to rectify if required. -#### Added the ability to add and remove location -* What it does: allows the user to add a location to an existing travel activity and remove a location from an - existing travel activity if needed. -* Justification: This feature improves the product significantly because a user can add a location to a travel activity - which can help to better organise their travel activities to a specific location and conveniently remove the location - to rectify if required. +#### Added the ability to list tags -#### Added the ability to find a location -* What it does: allows the user to find a location from existing travel activities. -* Justification: This feature improves the product significantly because a user it allows the user to search for - travel activities based on location and sort the travel planner in an organised manner. +* What it does: allows the user to list out all the tags that have been added. +* Justification: This feature improves the product significantly because a user may have forgotten what tags they have + given to different travel activities. This feature allows users to view all tags quickly and easily. #### Documentation: * Contributions to the UG: -Added documentation for the features `help`,`tag`,`untag`,`expense`,`removeexpense`,`location`, -`removelocation`,`findlocation`. +Added documentation for the features `help`,`tag`,`untag`,`expense`,`removeexpense`,`findtags`. * Contributions to the DG: Added description of implementation of `tag` feature + sequence diagram. Added documentation instructions for manual testing for the features `help`,`tag`,`untag`,`expense`, -`removeexpense`,`location`,`removelocation`,`findlocation`. +`removeexpense`,`findtags`. diff --git a/src/main/java/seedu/omnitravel/omnitravel/OmniTravel.java b/src/main/java/seedu/omnitravel/omnitravel/OmniTravel.java index 83dc3b0b1f..0840ee0d33 100644 --- a/src/main/java/seedu/omnitravel/omnitravel/OmniTravel.java +++ b/src/main/java/seedu/omnitravel/omnitravel/OmniTravel.java @@ -64,9 +64,6 @@ public static void main(String[] args) throws IOException { case "expense": case "removeexpense": case "totalexpense": - case "location": - case "removelocation": - case "findlocation": invokeCommand(command, line, list); break; case "help": diff --git a/src/main/java/seedu/omnitravel/ui/Ui.java b/src/main/java/seedu/omnitravel/ui/Ui.java index cd37225cb0..2c2871a919 100644 --- a/src/main/java/seedu/omnitravel/ui/Ui.java +++ b/src/main/java/seedu/omnitravel/ui/Ui.java @@ -98,13 +98,11 @@ public static void helpCommand(){ "14. update \n" + "15. findtag \n" + "16. findtype \n" + - "17. expense \n" + - "18. removeexpense \n" + - "19. totalexpense \n" + - "20. change /from /to \n" + - "21. location \n" + - "22. removelocation \n" + - "23. findlocation \n"); + "17. listtags \n" + + "18. expense \n" + + "19. removeexpense \n" + + "20. totalexpense \n" + + "21. change /from /to \n"); printLine(); } //@@author daryltay415