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

Jiayu #76

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
bdfe645
Set theme jekyll-theme-cayman
roanurquhart Feb 8, 2019
1fbc356
Updated about us
jkhiani Feb 19, 2019
4c0f8f7
Fixed image extension
jkhiani Feb 19, 2019
261def4
Updated about us
FanDongzhe Feb 19, 2019
4b97a8d
Merge branch 'master' of https://github.com/cs2103-ay1819s2-w16-3/main
jkhiani Feb 19, 2019
7252c31
Add profile picture and update my info in AboutUs
ZhangJiayu0303 Feb 19, 2019
d7d8879
Merge pull request #1 from ZhangJiayu0303/master
ZhangJiayu0303 Feb 19, 2019
f18c8dc
Update AboutUs.adoc
FanDongzhe Feb 19, 2019
8bd1064
Update AboutUs.adoc
FanDongzhe Feb 19, 2019
35bb2d5
Update README.adoc
FanDongzhe Feb 19, 2019
7d216fb
Merge pull request #1 from cs2103-ay1819s2-w16-3/master
roanurquhart Feb 19, 2019
2e90128
Update AboutUs.adoc
roanurquhart Feb 19, 2019
0a4facc
Added roanurquhart image
roanurquhart Feb 19, 2019
c201c0b
Updated GUI image
roanurquhart Feb 19, 2019
1799a69
Merge pull request #3 from roanurquhart/master
roanurquhart Feb 19, 2019
0d56fe6
Merge pull request #2 from cs2103-ay1819s2-w16-3/master
roanurquhart Feb 19, 2019
74981d3
Commented out Travis
roanurquhart Feb 19, 2019
66f5151
Commented out Travis
roanurquhart Feb 19, 2019
2e1c61b
Deleted Travis
roanurquhart Feb 19, 2019
b906cfb
Updated ReadMe
roanurquhart Feb 19, 2019
a384a3f
Merge pull request #4 from roanurquhart/master
roanurquhart Feb 19, 2019
c650334
Merge branch 'master' into FanDongzhe-patch-1
roanurquhart Feb 19, 2019
69af1e0
Merge pull request #2 from cs2103-ay1819s2-w16-3/FanDongzhe-patch-1
roanurquhart Feb 19, 2019
a6d081a
Merge pull request #3 from cs2103-ay1819s2-w16-3/master
roanurquhart Feb 19, 2019
48892ce
Update AboutUs.adoc
FanDongzhe Feb 19, 2019
e7651d3
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
9850a2c
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
be0418b
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
6101699
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
4eaaa8a
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
5699ad3
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
2b10e2f
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
eb1241e
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
bcec2c1
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
7cd108a
Update UserGuide.adoc
FanDongzhe Feb 19, 2019
c95674a
Merge pull request #5 from FanDongzhe/master
FanDongzhe Feb 19, 2019
a892027
Updated picture for roan
jkhiani Feb 20, 2019
bca7724
Updated to png
jkhiani Feb 20, 2019
022580d
Updated AboutUs
jkhiani Feb 20, 2019
d0d6f98
Update AboutUs
jkhiani Feb 20, 2019
7797d53
Merge pull request #7 from jkhiani/master
jkhiani Feb 20, 2019
c464a91
Added colors to tags
jkhiani Feb 21, 2019
756bb1d
Merge pull request #8 from jkhiani/master
jkhiani Feb 21, 2019
b1e62b1
Merge pull request #4 from cs2103-ay1819s2-w16-3/master
roanurquhart Feb 23, 2019
6724783
Added help alias command
roanurquhart Feb 23, 2019
515ec8c
Merge pull request #9 from roanurquhart/master
roanurquhart Feb 23, 2019
30db166
Merge pull request #5 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 3, 2019
c04f622
Added FavoriteCommand
roanurquhart Mar 4, 2019
7c49c8d
Merge pull request #10 from roanurquhart/master
roanurquhart Mar 4, 2019
16eb9ef
Merge pull request #1 from cs2103-ay1819s2-w16-3/master
jkhiani Mar 5, 2019
0f5be8e
When person card is clicked, address shows up on google map
jkhiani Mar 5, 2019
f539495
Merge pull request #11 from jkhiani/master
jkhiani Mar 5, 2019
dafa23e
Merge branch 'master' into master
roanurquhart Mar 5, 2019
6511688
Removed trailing whitespace
jkhiani Mar 5, 2019
1419b49
Removed trailing whitespace on line 35
jkhiani Mar 5, 2019
eb1d190
Merge pull request #6 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 5, 2019
f29a48d
Updated file from jpeg to png
roanurquhart Mar 5, 2019
3615398
Merge pull request #12 from roanurquhart/master
roanurquhart Mar 5, 2019
ff69f48
Fixed Java Code Convention issues
roanurquhart Mar 5, 2019
3570e20
Merge pull request #13 from roanurquhart/master
roanurquhart Mar 5, 2019
1bc5453
Merge pull request #7 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 5, 2019
f3625ff
Fixed further convention issues
roanurquhart Mar 5, 2019
d32a2d3
Merge pull request #14 from roanurquhart/master
roanurquhart Mar 5, 2019
f75e70c
Merge pull request #2 from cs2103-ay1819s2-w16-3/master
jkhiani Mar 5, 2019
94dfe1e
Fixed test
jkhiani Mar 5, 2019
a253384
Merge pull request #15 from jkhiani/master
jkhiani Mar 5, 2019
1c0616e
Merge pull request #8 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 5, 2019
6e75b12
Revert "Fixed further convention issues"
jkhiani Mar 5, 2019
070da8d
Merge pull request #16 from cs2103-ay1819s2-w16-3/revert-14-master
jkhiani Mar 5, 2019
e600a86
Merge pull request #9 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 5, 2019
faac416
Fixed CI test issues after revert
roanurquhart Mar 5, 2019
7a17474
Merge pull request #17 from roanurquhart/master
roanurquhart Mar 5, 2019
194fe9e
Attempted to fix Travis CI test failures
roanurquhart Mar 5, 2019
f936862
Merge pull request #18 from roanurquhart/master
roanurquhart Mar 5, 2019
bd97beb
Merge pull request #10 from cs2103-ay1819s2-w16-3/master
roanurquhart Mar 5, 2019
d2d1cf3
Fixed tests temporarily
roanurquhart Mar 5, 2019
9189144
Updated with favorite command
roanurquhart Mar 5, 2019
0d86218
Merge pull request #19 from roanurquhart/master
roanurquhart Mar 5, 2019
313bc74
Reset tests
roanurquhart Mar 5, 2019
11a1531
Merge pull request #20 from roanurquhart/master
roanurquhart Mar 5, 2019
0c0f0ed
reset link
roanurquhart Mar 5, 2019
f64b8db
Merge pull request #21 from roanurquhart/master
roanurquhart Mar 5, 2019
3d1e8ba
Updated docs
roanurquhart Mar 5, 2019
3f66090
Store personal salary/occupation/relationship status in addCommand.
ZhangJiayu0303 Mar 5, 2019
65b598e
Merge pull request #22 from ZhangJiayu0303/master
ZhangJiayu0303 Mar 5, 2019
68872f6
add "Salary", "Occupation", "Relationship" to personal information.
ZhangJiayu0303 Mar 16, 2019
b7c56cf
Merge pull request #36 from ZhangJiayu0303/master
ZhangJiayu0303 Mar 16, 2019
dff5923
enhance the Ui image
ZhangJiayu0303 Mar 16, 2019
1087850
Merge pull request #37 from ZhangJiayu0303/master
ZhangJiayu0303 Mar 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
= Address Book (Level 4)
= Marketing Morph
ifdef::env-github,env-browser[:relfileprefix: docs/]

https://travis-ci.org/se-edu/addressbook-level4[image:https://travis-ci.org/se-edu/addressbook-level4.svg?branch=master[Build Status]]
https://ci.appveyor.com/project/damithc/addressbook-level4[image:https://ci.appveyor.com/api/projects/status/3boko2x2vr5cc3w2?svg=true[Build status]]
https://coveralls.io/github/se-edu/addressbook-level4?branch=master[image:https://coveralls.io/repos/github/se-edu/addressbook-level4/badge.svg?branch=master[Coverage Status]]
https://www.codacy.com/app/damith/addressbook-level4?utm_source=github.com&utm_medium=referral&utm_content=se-edu/addressbook-level4&utm_campaign=Badge_Grade[image:https://api.codacy.com/project/badge/Grade/fc0b7775cf7f4fdeaf08776f3d8e364a[Codacy Badge]]


ifdef::env-github[]
image::docs/images/Ui.png[width="600"]
Expand All @@ -14,19 +12,14 @@ ifndef::env-github[]
image::images/Ui.png[width="600"]
endif::[]

* This is a desktop Address Book application. It has a GUI but most of the user interactions happen using a CLI (Command Line Interface).
* It is a Java sample application intended for students learning Software Engineering while using Java as the main programming language.
* It is *written in OOP fashion*. It provides a *reasonably well-written* code example that is *significantly bigger* (around 6 KLoC)than what students usually write in beginner-level SE modules.
* What's different from https://github.com/se-edu/addressbook-level3[level 3]:
** A more sophisticated GUI that includes a list panel and an in-built Browser.
** More test cases, including automated GUI testing.
** Support for _Build Automation_ using Gradle and for _Continuous Integration_ using Travis CI.
* This is a desktop marketing application. It has a GUI but most of the user interactions happen using a CLI (Command Line Interface).
* It is meant to be utilized by a marketing company in order to effectively organize *potential targets* and *potential clients*.
* It is *written in OOP fashion*.

== Site Map

* <<UserGuide#, User Guide>>
* <<DeveloperGuide#, Developer Guide>>
* <<LearningOutcomes#, Learning Outcomes>>
* <<AboutUs#, About Us>>
* <<ContactUs#, Contact Us>>

Expand All @@ -35,5 +28,6 @@ endif::[]
* Some parts of this sample application were inspired by the excellent http://code.makery.ch/library/javafx-8-tutorial/[Java FX tutorial] by
_Marco Jakob_.
* Libraries used: https://github.com/TestFX/TestFX[TextFX], https://github.com/FasterXML/jackson[Jackson], https://github.com/google/guava[Guava], https://github.com/junit-team/junit5[JUnit5]
* AddressBook-Level4 project created by SE-EDU initiative at https://github.com/se-edu/

== Licence : link:LICENSE[MIT]
46 changes: 18 additions & 28 deletions docs/AboutUs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,43 @@
:imagesDir: images
:stylesDir: stylesheets

AddressBook - Level 4 was developed by the https://se-edu.github.io/docs/Team.html[se-edu] team. +
_{The dummy content given below serves as a placeholder to be used by future forks of the project.}_ +
{empty} +
Marketing Morph was developed by the https://github.com/orgs/cs2103-ay1819s2-w16-3/teams/developers[w16-3] team. +
We are a team based in the http://www.comp.nus.edu.sg[School of Computing, National University of Singapore].

== Project Team

=== John Doe
image::damithc.jpg[width="150", align="left"]
{empty}[http://www.comp.nus.edu.sg/~damithch[homepage]] [https://github.com/damithc[github]] [<<johndoe#, portfolio>>]
=== Dongzhe Fan
image::FanDongzhe.jpg[width="150", align="left"]
{empty}[http://github.com/yijinl[github]]

Role: Project Advisor

'''

=== John Roe
image::lejolly.jpg[width="150", align="left"]
{empty}[http://github.com/lejolly[github]] [<<johndoe#, portfolio>>]

Role: Team Lead +
Responsibilities: UI
Role: Developer +
Responsibilities: TBD

'''

=== Johnny Doe
image::yijinl.jpg[width="150", align="left"]
{empty}[http://github.com/yijinl[github]] [<<johndoe#, portfolio>>]
=== Jiayu Zhang
image::zhangjiayu0303.png[width="150", align="left"]
{empty}[http://github.com/ZhangJiayu0303[github]]

Role: Developer +
Responsibilities: Data
Responsibilities: TBD

'''

=== Johnny Roe
image::m133225.jpg[width="150", align="left"]
{empty}[http://github.com/m133225[github]] [<<johndoe#, portfolio>>]
=== Jitesh Khiani
image::jkhiani.png[width="150", align="left"]
{empty}[https://github.com/jkhiani[github]]

Role: Developer +
Responsibilities: Dev Ops + Threading
Responsibilities: TBD

'''

=== Benson Meier
image::yl_coder.jpg[width="150", align="left"]
{empty}[http://github.com/yl-coder[github]] [<<johndoe#, portfolio>>]
=== Roan Urquhart
image::roanurquhart.png[width="150", align="left"]
{empty}[https://github.com/roanurquhart[github]]

Role: Developer +
Responsibilities: UI
Responsibilities: TBD

'''
100 changes: 93 additions & 7 deletions docs/UserGuide.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= AddressBook Level 4 - User Guide
= Marketing Morph - User Guide
:site-section: UserGuide
:toc:
:toc-title:
Expand All @@ -14,11 +14,11 @@ ifdef::env-github[]
endif::[]
:repoURL: https://github.com/se-edu/addressbook-level4

By: `Team SE-EDU` Since: `Jun 2016` Licence: `MIT`
By: `Sky Walker` Since: `Feb 2019` Licence: `NUS`

== Introduction

AddressBook Level 4 (AB4) is for those who *prefer to use a desktop app for managing contacts*. More importantly, AB4 is *optimized for those who prefer to work with a Command Line Interface* (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, AB4 can get your contact management tasks done faster than traditional GUI apps. Interested? Jump to the <<Quick Start>> to get started. Enjoy!
Marketing Morph is for marketers who want to organize consumer data. More importantly, Marketing Morph will allow marketers to use a GUI to keep track of different consumers, maintain client lists, and perform market analysis and research in one simple interface.

== Quick Start

Expand Down Expand Up @@ -58,7 +58,7 @@ Format: `help`

=== Adding a person: `add`

Adds a person to the address book +
Adds a person to the consumer list. +
Format: `add n/NAME p/PHONE_NUMBER e/EMAIL a/ADDRESS [t/TAG]...`

[TIP]
Expand All @@ -71,12 +71,12 @@ Examples:

=== Listing all persons : `list`

Shows a list of all persons in the address book. +
Shows a list of all persons in the consumer list. +
Format: `list`

=== Editing a person : `edit`

Edits an existing person in the address book. +
Edits an existing person in the consumer list. +
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [a/ADDRESS] [t/TAG]...`

****
Expand Down Expand Up @@ -149,7 +149,7 @@ Examples:

* `list` +
`select 2` +
Selects the 2nd person in the address book.
Selects the 2nd person in the consumer list.
* `find Betsy` +
`select 1` +
Selects the 1st person in the results of the `find` command.
Expand Down Expand Up @@ -224,6 +224,90 @@ Format: `clear`
Exits the program. +
Format: `exit`

=== Listing persons by name/salary/occupation/residential area/group : `list`

Lists all people that meet the specified filter requirement.

Format: list [ALL] [s/ >N] [s/ <= N] [n/ NAME] [o/ OCCUPATION] [a/ STREET NAME] [GROUPS]

Examples:

`list` s/ > 50000 (list all persons with income greater than $50000)

`list` ALL (list all persons in the consumer list)

`list` o/ Plumber (list all persons who’s occupation is plumber)

=== Adding a company : `add`

Adds a company to the client list

Format: `add` n/NAME p/NUMBER e/AVG$$ a/ADRESS s/SECTOR n/#EMPS r/REVENUES [t/TAG]…

Examples:

`add` n/Walmart p/98765432 e/low a/John street, block 123, #01-01 s/Retail n/500

`add` n/Betsy Cakes e/medium a/Bob street, block 232 n p/1234567 s/Bakery n/20 t/popular t/local

=== Find clients: `find`

Lists all persons deemed capable of affording a specific product based on salary

Format: `find` PRICE

Examples:

find 100

find 20

=== Find shops: `find`

Lists all stores a person is deemed capable of visiting based on salary and store pricing

Format: `find` [n/NAME] [s/SALARY]

Examples:

`find` n/steve smith

`find` s/25000

=== Add to favorite list: `favorite`

Adds a person to the “favorite” list (favorites etc.)

Format: `favorite` [NAME]

=== Create group: `group`

Creates a group of persons

Format: `group` GROUPNAME [[n/NAME] [a/ADDRESS]]...

Examples:

`group` g1 n/bob a/123 streets n/steve a/456 main n/smith a/111 abc st

`group` winners n/jacob a/1 queen st n/adam a/10 north st

=== Export data as CSV: `export`

Exports the data to a CSV file

Format: `export` [CLIENTS] [CONSUMERS] [ALL]

Examples:

`export` clients

`export` all





=== Saving the data

Address book data are saved in the hard disk automatically after any command that changes the data. +
Expand Down Expand Up @@ -258,3 +342,5 @@ e.g.`select 2`
* *History* : `history`
* *Undo* : `undo`
* *Redo* : `redo`
* *group* : `group` GROUPNAME [[n/NAME] [a/ADDRESS]]...
* *export* : `export` [CLIENTS] [CONSUMERS] [ALL]
Binary file added docs/images/FanDongzhe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/Ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/jkhiani.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/roanurquhart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/zhangjiayu0303.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/main/java/seedu/address/logic/commands/AddCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE;
import static seedu.address.logic.parser.CliSyntax.PREFIX_SALARY;
import static seedu.address.logic.parser.CliSyntax.PREFIX_OCCUPATION;
import static seedu.address.logic.parser.CliSyntax.PREFIX_RELATIONSHIP;
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG;

import seedu.address.logic.CommandHistory;
Expand All @@ -25,12 +28,18 @@ public class AddCommand extends Command {
+ PREFIX_PHONE + "PHONE "
+ PREFIX_EMAIL + "EMAIL "
+ PREFIX_ADDRESS + "ADDRESS "
+ PREFIX_SALARY + "SALARY"
+ PREFIX_OCCUPATION + "OCCUPATION"
+ PREFIX_RELATIONSHIP + "RELATIONSHIP"
+ "[" + PREFIX_TAG + "TAG]...\n"
+ "Example: " + COMMAND_WORD + " "
+ PREFIX_NAME + "John Doe "
+ PREFIX_PHONE + "98765432 "
+ PREFIX_EMAIL + "[email protected] "
+ PREFIX_ADDRESS + "311, Clementi Ave 2, #02-25 "
+ PREFIX_SALARY + "100000"
+ PREFIX_OCCUPATION + "banker"
+ PREFIX_RELATIONSHIP + "single"
+ PREFIX_TAG + "friends "
+ PREFIX_TAG + "owesMoney";

Expand Down
Loading