From bfd5d74feca232a9cd5733557ab5209206d6fa3a Mon Sep 17 00:00:00 2001 From: liauzhanyi Date: Sat, 2 Nov 2024 13:02:51 +0800 Subject: [PATCH 1/3] Update person tags in SampleDataUtil.java --- .../address/model/util/SampleDataUtil.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/seedu/address/model/util/SampleDataUtil.java b/src/main/java/seedu/address/model/util/SampleDataUtil.java index bcfa4ea231a..469c517378a 100644 --- a/src/main/java/seedu/address/model/util/SampleDataUtil.java +++ b/src/main/java/seedu/address/model/util/SampleDataUtil.java @@ -25,38 +25,38 @@ public static Person[] getSamplePersons() { return new Person[] { new Person(new Name("Alex Yeoh"), new Phone("87438807"), Optional.of(new Email("alexyeoh@example.com")), - Optional.of(new Address("Blk 30 Geylang Street 29, #06-40")), getTagSet("friends"), + Optional.of(new Address("Blk 30 Geylang Street 29, #06-40")), getTagSet("elderly"), Optional.of(new DateOfLastVisit("01-01-2024")), Optional.of(new EmergencyContact("91234567")), new Remark("")), new Person(new Name("Bernice Yu"), new Phone("99272758"), Optional.of(new Email("berniceyu@example.com")), Optional.of(new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18")), - getTagSet("colleagues", "friends"), Optional.of(new DateOfLastVisit("02-02-2024")), + getTagSet("singleMother", "2kids"), Optional.of(new DateOfLastVisit("02-02-2024")), Optional.of(new EmergencyContact("91234567")), - new Remark("Lives in HDB and has 3 children")), + new Remark("Follow up on children's education progress")), new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"), Optional.of(new Email("charlotte@example.com")), Optional.of(new Address("Blk 11 Ang Mo Kio Street 74, #11-04")), - getTagSet("neighbours"), Optional.of(new DateOfLastVisit("03-03-2024")), + getTagSet("lowIncome"), Optional.of(new DateOfLastVisit("03-03-2024")), Optional.of(new EmergencyContact("91234567")), new Remark("")), new Person(new Name("David Li"), new Phone("91031282"), Optional.of(new Email("lidavid@example.com")), Optional.of(new Address("Blk 436 Serangoon Gardens Street 26, #16-43")), - getTagSet("family"), Optional.of(new DateOfLastVisit("04-04-2024")), + getTagSet("disability"), Optional.of(new DateOfLastVisit("04-04-2024")), Optional.of(new EmergencyContact("98765432")), - new Remark("Has no children")), + new Remark("Look for job opportunities")), new Person(new Name("Irfan Ibrahim"), new Phone("92492021"), Optional.of(new Email("irfan@example.com")), Optional.of(new Address("Blk 47 Tampines Street 20, #17-35")), - getTagSet("classmates"), Optional.of(new DateOfLastVisit("05-05-2024")), + getTagSet("exConvict"), Optional.of(new DateOfLastVisit("05-05-2024")), Optional.of(new EmergencyContact("91234567")), - new Remark("Has no family")), + new Remark("Violent tendencies")), new Person(new Name("Roy Balakrishnan"), new Phone("92624417"), Optional.of(new Email("royb@example.com")), Optional.of(new Address("Blk 45 Aljunied Street 85, #11-31")), - getTagSet("colleagues"), Optional.of(new DateOfLastVisit("06-06-2024")), + getTagSet("elderly"), Optional.of(new DateOfLastVisit("06-06-2024")), Optional.of(new EmergencyContact("92492021")), new Remark(""))}; } From 92f2c089a0ebde2aa65bbfbc98313535b10e6c4e Mon Sep 17 00:00:00 2001 From: liauzhanyi Date: Sat, 2 Nov 2024 13:20:49 +0800 Subject: [PATCH 2/3] UserGuide.md: Add note on 'seed' command behaviour --- docs/UserGuide.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 2e8c8c28b75..053640d179c 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -220,6 +220,12 @@ Adds dummy data to the address book. Format: `seed` +**NOTE:** There are 6 contacts in the dummy data. `seed` works in a way that would be similar to if the user were to iteratively issue `add` command on the 6 person. This means that, + +- `seed` will add them to the contact list if they are not presently inside. +- `seed` does not clear or reset the list. +- If your exisitng contact list has a person with the same name and phone number, it will **not** be overwritten. + ### Exiting the program : `exit` Exits the program. From 14debab75949e3b1d0d65a822cb342c415f955d8 Mon Sep 17 00:00:00 2001 From: liauzhanyi Date: Tue, 5 Nov 2024 20:06:33 +0800 Subject: [PATCH 3/3] Fix tag formatting in sample data for consistency --- src/main/java/seedu/address/model/util/SampleDataUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/seedu/address/model/util/SampleDataUtil.java b/src/main/java/seedu/address/model/util/SampleDataUtil.java index 469c517378a..93d406cb659 100644 --- a/src/main/java/seedu/address/model/util/SampleDataUtil.java +++ b/src/main/java/seedu/address/model/util/SampleDataUtil.java @@ -32,13 +32,13 @@ public static Person[] getSamplePersons() { new Person(new Name("Bernice Yu"), new Phone("99272758"), Optional.of(new Email("berniceyu@example.com")), Optional.of(new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18")), - getTagSet("singleMother", "2kids"), Optional.of(new DateOfLastVisit("02-02-2024")), + getTagSet("single mother", "2 kids"), Optional.of(new DateOfLastVisit("02-02-2024")), Optional.of(new EmergencyContact("91234567")), new Remark("Follow up on children's education progress")), new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"), Optional.of(new Email("charlotte@example.com")), Optional.of(new Address("Blk 11 Ang Mo Kio Street 74, #11-04")), - getTagSet("lowIncome"), Optional.of(new DateOfLastVisit("03-03-2024")), + getTagSet("low income"), Optional.of(new DateOfLastVisit("03-03-2024")), Optional.of(new EmergencyContact("91234567")), new Remark("")), new Person(new Name("David Li"), new Phone("91031282"), @@ -50,7 +50,7 @@ public static Person[] getSamplePersons() { new Person(new Name("Irfan Ibrahim"), new Phone("92492021"), Optional.of(new Email("irfan@example.com")), Optional.of(new Address("Blk 47 Tampines Street 20, #17-35")), - getTagSet("exConvict"), Optional.of(new DateOfLastVisit("05-05-2024")), + getTagSet("ex-convict"), Optional.of(new DateOfLastVisit("05-05-2024")), Optional.of(new EmergencyContact("91234567")), new Remark("Violent tendencies")), new Person(new Name("Roy Balakrishnan"), new Phone("92624417"),