Skip to content

Commit

Permalink
Merge pull request #176 from AY2324S2-CS2103T-W12-3/release-v1.3-ug
Browse files Browse the repository at this point in the history
Update UG and Ui.png for release v1.3
  • Loading branch information
aureliony authored Apr 4, 2024
2 parents 86b2cb6 + 79aafd1 commit 6c6d564
Show file tree
Hide file tree
Showing 24 changed files with 448 additions and 110 deletions.
539 changes: 439 additions & 100 deletions docs/UserGuide.md

Large diffs are not rendered by default.

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/example-add-after-fail.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/example-add-after.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/example-add-before.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/navigating-gui.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/setup-1.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/setup-2.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/setup-3.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/setup-4.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/tutorial-add-1.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/tutorial-add-2.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/tutorial-add-3.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/tutorial-edit-1.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/tutorial-edit-2.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/tutorial-edit-3.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/tutorial-editA-1.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/tutorial-editA-2.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/tutorial-find-1.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/tutorial-find-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions docs/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ mark {
.btn {
font-size: 0.65rem !important;
}
img {
zoom: 0.8; /* might not work on some browsers */
}
}

h1,
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/seedu/address/model/person/fields/Phone.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
public class Phone implements Field {

public static final Prefix PREFIX_PHONE = new Prefix("p\\");
private static final String MESSAGE_CONSTRAINTS =
"Phone numbers should only contain numbers, and it should be at least 3 digits long";
private static final String VALIDATION_REGEX = "\\d{3,}";
private static final String MESSAGE_CONSTRAINTS = "Phone numbers should only contain numbers,"
+ "'+', '-', ',' and spaces, and it should be at least 3 characters long";
private static final String VALIDATION_REGEX = "[\\d\\-\\s+,]{3,}";
private final String phone;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/seedu/address/model/tag/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
*/
public class Tag {

private static final String MESSAGE_CONSTRAINTS = "Tags cannot contain '\\', and should not be blank";
private static final String MESSAGE_CONSTRAINTS = "Tags cannot contain '\\', can only consist of"
+ "alphabets and numbers, and should not be blank";
private static final String VALIDATION_REGEX = "\\p{Alnum}+";

private final String tagName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
public class PhoneTest {

private static final String WHITESPACE = " \t\r\n";
private static final String INVALID_PHONE = "+651234";
private static final String VALID_PHONE = "123456";
private static final String INVALID_PHONE = "+6512345678 (home)";
private static final String VALID_PHONE = "+65 1234 5678, +98-4321-5432-42";

@Test
public void constructor_null_throwsNullPointerException() {
Expand All @@ -26,7 +26,8 @@ public void constructor_invalidPhone_throwsIllegalArgumentException() {
assertThrows(IllegalArgumentException.class, () -> new Phone("91")); // less than 3 numbers
assertThrows(IllegalArgumentException.class, () -> new Phone("phone")); // non-numeric
assertThrows(IllegalArgumentException.class, () -> new Phone("9011p041")); // alphabets within digits
assertThrows(IllegalArgumentException.class, () -> new Phone("9312 1534")); // spaces within digits
assertThrows(IllegalArgumentException.class, () -> new Phone("9312_1534")); // underscore within digits
assertThrows(IllegalArgumentException.class, () -> new Phone("93121534(home), 94387573(office)")); // brackets
}

@Test
Expand Down

0 comments on commit 6c6d564

Please sign in to comment.