Refer to the guide Setting up and getting started.
The Architecture Diagram given above explains the high-level design of the App.
Given below is a quick overview of main components and how they interact with each other.
Main components of the architecture
Main (consisting of classes Main and MainApp) is in charge of the app launch and shut down.
The bulk of the app's work is done by the following four components:
UI: The UI of the App.Logic: The command executor.Model: Holds the data of the App in memory.Storage: Reads data from, and writes data to, the hard disk.Commons represents a collection of classes used by multiple other components.
How the architecture components interact with each other
The Sequence Diagram below shows how the components interact with each other for the scenario where the user issues the command delete 1.
Each of the four main components (also shown in the diagram above),
interface with the same name as the Component.{Component Name}Manager class (which follows the corresponding API interface mentioned in the previous point).For example, the Logic component defines its API in the Logic.java interface and implements its functionality using the LogicManager.java class which follows the Logic interface. Other components interact with a given component through its interface rather than the concrete class (reason: to prevent outside component's being coupled to the implementation of a component), as illustrated in the (partial) class diagram below.
The sections below give more details of each component.
The API of this component is specified in Ui.java
The UI consists of a MainWindow that is made up of parts e.g.CommandBox, ResultDisplay, PersonListPanel, StatusBarFooter etc. All these, including the MainWindow, inherit from the abstract UiPart class which captures the commonalities between classes that represent parts of the visible GUI.
Additionally, there are two helper classes (i.e.CommandHistory and HelpContentProvider) that do not inherit from the abstract UiPart class. They exist to provide their corresponding UI elements with the necessary information to perform their function.
CommandHistory stores past commands that the user has entered, regardless if it was a valid command or not, to be used to fill CommandBoxHelpContentProvider gets the information needed to populate HelpWindowThe UI component uses the JavaFx UI framework. The layout of these UI parts are defined in matching .fxml files that are in the src/main/resources/view folder. For example, the layout of the MainWindow is specified in MainWindow.fxml
The UI component,
Logic component.Model data so that the UI can be updated with the modified data.Logic component, because the UI relies on the Logic to execute commands.Model component, as it displays Person object residing in the Model.API : Logic.java
Here's a (partial) class diagram of the Logic component:
The sequence diagram below illustrates the interactions within the Logic component, taking execute("delete 1 3 6-9") API call as an example.
Note: The lifeline for DeleteCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline continues till the end of diagram.
How the Logic component works:
Logic is called upon to execute a command, it is passed to an AddressBookParser object which in turn creates a parser that matches the command (e.g., DeleteCommandParser) and uses it to parse the command.Command object (more precisely, an object of one of its subclasses e.g., DeleteCommand) which is executed by the LogicManager.Model when it is executed (e.g. to delete a person).Model) to achieve.CommandResult object which is returned back from Logic.Here are the other classes in Logic (omitted from the class diagram above) that are used for parsing a user command:
How the parsing works:
AddressBookParser class creates an XYZCommandParser (XYZ is a placeholder for the specific command name e.g., AddCommandParser) which uses the other classes shown above to parse the user command and create a XYZCommand object (e.g., AddCommand) which the AddressBookParser returns back as a Command object.XYZCommandParser classes (e.g., AddCommandParser, DeleteCommandParser, ...) inherit from the Parser interface so that they can be treated similarly where possible e.g, during testing.API : Model.java
The Model component,
Person objects (which are contained in a UniquePersonList object). Each Person holds exactly one Name, Phone, Email, Address, Note, and VisitDateTime object, along with zero or more Tag objects.Person objects as a separate filtered list which is exposed as an unmodifiable ObservableList<Person> to be viewed. The UI can be bound to this list so that UI can automatically update when the data in the list changes.NameContainsKeywordsPredicate, TagContainsPredicate (with partial matching), and VisitContainsDatePredicate.sortFilteredPersonList, allowing users to reorder the UI view without changing the original data order.UserPrefs object that represents the user's preferences. This is exposed to the outside as a ReadOnlyUserPrefs object.ReadOnlyAddressBook object to prevent unintended modification from outside the Model.Model represents data entities of the domain, they should make sense on their own without depending on other components)Note: Note and VisitDateTime are optional fields from the user's perspective. However, a Person object always contains one Note and one VisitDateTime object, empty values simply represent fields that have not been set by the user. Also, the isArchived flag is a boolean attribute used by the Model to determine a contact's visibility in the default contact list.
API : Storage.java
The Storage component,
AddressBookStorage and UserPrefStorage, which means it can be treated as either one (if only the functionality of only one is needed).Model component (because the Storage component's job is to save/retrieve objects that belong to the Model)The following is a non-exhaustive list of common classes that live in seedu.address.commons and are reused across multiple components:
AppUtil, CollectionUtil, and StringUtil provide helper methods for common operations like argument validation, collection handling, and string processing.Guideline: Components should interact with these classes through their public APIs (interfaces or utility methods) rather than their internal implementation details to maintain loose coupling and improve testability.
Disclaimer: This is a non-exhaustive list of common classes intended to give developers an overview of shared utilities in the application. Refer to the commons package for the complete list of classes.
This section describes some noteworthy details on how certain features are implemented.
The archive mechanism is facilitated by an archive flag stored in each contact.
A contact is considered archived when this flag is true, and active otherwise.
The mechanism uses the following Model operations:
archivePerson(person): marks a contact as archived.unarchivePerson(person): marks a contact as active again.updateFilteredPersonList(predicate): refreshes the displayed list for the current command context.Given below is an example usage scenario and how the archive mechanism behaves at each step.
Step 1. The user executes archive 1.
The archive command validates the index against the current filtered list and archives the selected contact.
Step 2. The command refreshes the filtered list using the current predicate so the UI reflects the updated state.
Step 3. The user executes list-archive.
The displayed list is filtered to show only archived contacts.
Step 4. The user executes unarchive 1 from the archived list.
The unarchive command marks the selected contact as active again and refreshes the list.
Step 5. The command result is returned to Logic, and Logic persists the updated address book through Storage.
The following sequence diagram shows how an archive operation goes through the Logic component:
Note: The lifeline for ArchiveCommandParser should end at the destroy marker (X), but due to a limitation of PlantUML, the lifeline continues till the end of the diagram.
Similarly, how an archive operation goes through the Model component is shown below:
The unarchive command does the opposite. It calls unarchivePerson(person), which restores the selected contact to active state.
Note: If the selected index is invalid, the command returns an error instead of modifying data.
Note: list-archive filtering is applied through updateFilteredPersonList(predicate), not inside archivePerson(...).
The following activity diagram summarizes what happens when a user executes the archive command:
Note: If the command returns an error (for example invalid index), no data is modified.
Note: After successful command execution, Logic persists the current address book through Storage.
Aspect: How archived data is represented
edit, find, delete, indexing, and synchronization logic.Target user profile:
Value proposition: Currently, social workers rely on a combination of paper notebooks, calendars and messaging apps to track who they are visiting, where it takes place and the purpose or outcome of each visit. This fragmentation increases administrative workload, raises the risk of missed follow-ups or incomplete records, and reduces overall efficiency. CareSync helps social service workers keep track of their clients and service contact details as well as allow them to easily track upcoming visits with the various families.
Priorities: High (must have) - * * *, Medium (nice to have) - * *, Low (unlikely to have) - *
Legend: ✓ = fully implemented; ✗ = not implemented or partially implemented
| Priority | As a … | I want to … | So that I can… | Implemented |
|---|---|---|---|---|
* * * | user | add a contact with basic details | quickly identify who is being visited | ✓ |
* * * | user | delete a contact | remove contacts that are no longer needed | ✓ |
* * * | user | store an address with each contact | know where to go for home visits | ✓ |
* * * | user | set a visit date | know when to go for home visits | ✓ |
* * * | user | see visit date and time clearly | manage daily schedule effectively | ✓ |
* * * | user | add tags to differentiate clients and services | retrieve relevant contact details quickly | ✓ |
* * * | user | add tags to differentiate case ID / client groups | retrieve relevant contact details quickly | ✓ |
* * * | user | filter contacts based on tags | quickly view related contacts based on tag | ✓ |
* * * | user | search for a name | reference contacts clearly | ✓ |
* * | user | see upcoming visits alongside past ones | plan follow-ups effectively | ✗ |
* * | user | have a clean and simple layout | find information quickly between visits | ✓ |
* * | user | sort contacts by name or visit date | find contacts easily | ✓ |
* * | user | mark a contact’s status (e.g. stable, urgent) | prioritise my work | ✗ |
* * | user | add a visit note to a contact | remember the purpose of the visit | ✓ |
* * | user | pin contacts | identify important contacts easily | ✗ |
* * | user | reuse past commands | execute commands faster | ✓ |
* * | user | autocomplete commands | execute commands faster | ✓ |
* * | user | undo commands | undo any wrong changes | ✗ |
* * | user | archive contacts | hide irrelevant contacts without deleting them | ✓ |
* * | user | list archived contacts | view hidden contacts | ✓ |
* * | user | unarchive contacts | restore hidden contacts to the main contact list | ✓ |
* * | expert user | add aliases to commands | execute commands faster | ✗ |
* * | new user | view a list of common commands when opening the app | refer to instructions without using an external manual | ✓ |
* | expert user | combine commands | execute commands efficiently | ✗ |
* | user | set visit type (e.g. consultation, remote) | understand the nature of the vist | ✗ |
* | user | specify the visit duration | plan my time realistically | ✗ |
* | user | view completed visits | understand my visit history | ✗ |
* | user | mark a visit as planned, completed, or cancelled | track visit status and outcomes | ✗ |
* | user | be sure that visit records remain unchanged | be held accountable for the visit | ✗ |
* | returning user | import contact details from an existing CareSync JSON file | continue using CareSync seamlessly | ✓ |
{More may be added in the future}
(For all use cases below, the System is the CareSync and the Actor is the user, unless specified otherwise)
Use case: UC1 - Add Contact
Guarantee:
MSS
User enters the required details (Name, Phone, Email, Address) to add a contact. Optional fields like Note and VisitDateTime can also be included.
CareSync validates the entered data.
CareSync stores the new contact.
CareSync displays a success message.
Use case ends.
Extensions
2a. CareSync detects invalid input format (e.g., invalid email or incorrectly formatted visit date).
2a1. CareSync displays an error message.
2a2. User re-enters data.
Steps 2a1–2a2 are repeated until the data entered is valid.
Use case resumes from step 3.
2b. CareSync detects existing contact with the same name.
2b1. CareSync notifies the user that the contact already exists.
2b2. User re-enters data.
Steps 2b1–2b2 are repeated until the data entered is valid.
Use case resumes from step 3.
Use case: UC2 - Update Contact
Precondition: A contact exists in CareSync.
Guarantee: If successful, the selected contact’s details will be updated and saved.
MSS
CareSync displays contact(s).
User specifies the ID of the contact and fields to be updated (e.g., note, phone number, email).
CareSync validates the new data.
CareSync updates the contact information.
CareSync displays a success message.
Use case ends.
Extensions
3a. No matching contact is found.
3a1. CareSync informs the user that no match exists.
Use case ends.
3b. CareSync detects invalid input format.
3b1. CareSync displays an error message.
3b2. User re-enters data.
Steps 3b1–3b2 are repeated until the data entered is valid.
Use case resumes from step 4.
Use case: UC3 - Delete Contact(s)
Precondition: One or more contacts exist in CareSync.
Guarantee: If successful, the specified contact(s) will be permanently removed from CareSync. if any index is invalid, no contacts are deleted.
MSS
CareSync displays contact(s).
User specifies the ID(s) or Range of ID(s) of the contacts to be deleted (e.g., 1 3-5).
CareSync validates all specified contact indexes.
CareSync removes the contact(s) from storage.
CareSync displays a success message and an updated list.
Use case ends.
Extensions
3a. User entered an invalid ID or an invalid range (e.g., 3-1).
3a1. CareSync displays an error message.
3a2. No contacts are deleted.
3a3. User re-enters data.
Steps 3a1–3a3 are repeated until the data entered is valid.
Use case resumes from step 4.
Use case: UC4 - Search Contact
Guarantee: Matching contact(s) are displayed to the user, if any. CareSync enforces a strict Single-Mode policy.
MSS
User specifies exactly one search criterion (by name, tag, or visit date).
CareSync validates that no preamble exists and only one input search mode.
CareSync retrieves and displays matching contact(s).
Use case ends.
Extensions
2a. User provides multiple search modes or text before the prefix.
2a1. CareSync displays the appropriate error message.
Use case ends.
3a. No matching contact is found.
3a1. CareSync displays a message indicating no results.
Use case ends.
Use case: UC5 - Manage Notes
MSS
User specifies the ID of the contact and provides a note.
CareSync updates (change or delete) the contact's note.
CareSync displays a success message.
Use case ends.
Use case: UC6 - Manage Tags
MSS
User specifies the ID of the contact and tags to add or delete.
CareSync verifies that the tags to be added do not exist and tags to be deleted exist.
CareSync updates the contact's tag set.
Use case ends.
Extensions
2a. No matching contact is found (e.g., invalid ID specified by the user).
2b. Validation fails (e.g., deleting a tag the contact does not have).
Use case: UC7 - Archive / Unarchive Contact
MSS
User specifies the ID of the contact to archive (or unarchive).
CareSync validates if the contact exists.
CareSync checks the current status of the contact (e.g., if the contact is already archived).
CareSync updates the contact's status.
CareSync refreshes the displayed list.
Use case ends.
Extensions
2a. The contact does not exist.
2a1. CareSync displays an error message.
Use case ends.
3a. The contact is already in the target state.
3a1. CareSync displays a message indicating the contact is already archived (or unarchived).
Use case ends.
Use case: UC8 - Sort Contact List
MSS
User requests to list contacts with a sort field (e.g., name).
CareSync validates the specified field.
CareSync sorts the contact list according to the field.
CareSync displays the sorted list. (Sorting will remain persistent until a new sort field is requested).
Use case ends.
Extensions
2a. The specified field is invalid.
2a1. CareSync displays an error message.
Use case ends.
Use case: UC9 - View Archived Contacts
MSS
User requests to see the archive list.
CareSync filters and displays only archived contacts.
Use case ends.
Use case: UC10 - Clear All Entries
MSS
User requests to clear all data.
CareSync removes all contacts from the address book.
CareSync displays an empty list.
Use case ends.
Use case: UC11 - Command Autocompletion
MSS
User types the beginning of a command or prefix.
CareSync suggests a completion for the command or prefix.
User accepts the suggestion.
CareSync completes the command or prefix in the command box.
Use case ends.
Extensions
2a. There is no valid completion for the current input.
2a1. CareSync provides no suggestion.
Use case ends.
Use case: UC12 - View Help Information
MSS
User requests help (e.g., types help or clicks the help menu).
CareSync opens the help window containing the link to the User Guide.
CareSync focuses the help window.
Use case ends.
Extensions
2a. The help window is already open but hidden behind the main window.
Use case resumes at step 3.
Use case: UC13 - Access Command History
MSS
User is in the command input box.
User navigates to view past commands.
CareSync retrieves and displays the previous or next command from the session history.
Use case ends.
Extensions
2a. There is no previous/next command in the history (e.g., user is at the start of the session).
2b. The user has entered consecutive identical commands (e.g., list, then list).
{More may be added in the future}
Given below are instructions to test the app manually.
Note: These instructions only provide a starting point for testers to work on; testers are expected to do more exploratory testing.
INDEX, run list first (or list-archive for unarchive) unless the test case explicitly requires a filtered listInitial launch
Steps:
Expected:
Saving window preferences
Steps:
Expected:
helpPrerequisites:
Positive Test Case 1: Run the help command
Steps:
helpExpected:
Positive Test Case 2: Run the help command with existing help window
Steps:
helphelp again.Expected:
Positive Test Case 3: Run help with extra parameters
Steps:
help 123Expected:
addPrerequisites:
list to see the current contact list.Positive Test Case 1: Add with compulsory fields only
Steps:
add n/Hugo p/96543218 e/hugo@example.com a/Hugo street, block 123, #01-01Expected:
New contact added: ...Positive Test Case 2: Add with all fields
Steps:
add n/John Doe p/+65 9876-5432 e/johnd@example.com a/John street, block 123, #01-01 nt/Needs financial support v/2026-12-01 14:00 t/caseid6Expected:
New contact added: ...Positive Test Case 3: Add contacts with duplicate non-name fields
Steps:
add n/Alice One p/88883333 e/alice@example.com a/Alice street, block 123, #01-01add n/Alice Two p/88883333 e/alice@example.com a/Alice street, block 123, #01-01Expected:
Positive Test Case 4: Duplicate tag values
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street, block 123, #01-01 t/friend t/FriendExpected:
friend tag is added.Negative Test Case 1: Add duplicate contact
Steps:
add n/Alicia p/80015678 e/alicia@example.com a/Alicia street, block 123, #01-01Expected:
This contact already exists in the address bookNegative Test Case 2: Invalid name
Steps:
add n/Bob- p/92225430 e/bob@example.com a/Bob street, block 123, #01-01Expected:
Names should only contain alphanumeric characters...Negative Test Case 3: Invalid phone
Steps:
add n/Bob p/+-- e/bob@example.com a/Bob street, block 123, #01-01Expected:
Phone numbers should be at most 15 characters...Negative Test Case 4: Invalid email
Steps:
add n/Bob p/91234567 e/bemail a/Bob street, block 123, #01-01Expected:
Emails should be of the format local-part@domain...Negative Test Case 5: Invalid address
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street/block123Expected:
Addresses should not be blank, must be at most 120 characters...Negative Test Case 6: Invalid note
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street, block 123, #01-01 nt/notes+-Expected:
Notes should be up to 150 characters and contain only alphanumeric...Negative Test Case 7: Invalid visit date
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street, block 123, #01-01 v/2026-12-32 12:00Expected:
Visit date and time must be a valid date and time in the format: yyyy-MM-dd HH:mm...Negative Test Case 8: Invalid visit time
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street, block 123, #01-01 v/2026-12-01 25:00Expected:
Visit date and time must be a valid date and time in the format: yyyy-MM-dd HH:mm...Negative Test Case 9: Invalid tag
Steps:
add n/Bob p/91234567 e/bob@example.com a/Bob street, block 123, #01-01 t/fr!endExpected:
Tag names should be alphanumeric and at most 15 characters longarchivePrerequisites:
list before each INDEX-based test unless the test case intentionally uses a filtered list.Positive Test Case 1: Archive by valid index
Steps:
archive 1Expected:
Archived: ... message.Positive Test Case 2: Archive from filtered result
Steps:
find n/Alexarchive 1Expected:
Negative Test Case 1: Invalid index format
Steps:
archive aExpected:
Invalid command format! archive: Archives the contact...Negative Test Case 2: Out-of-range index
Steps:
archive 999Expected:
The contact index provided is invalidlistPrerequisites:
Positive Test Case 1: List without sorting
Steps:
listExpected:
Positive Test Case 2: List sorted by name
Steps:
list s/nameExpected:
Positive Test Case 3: List sorted by visit
Steps:
list s/visitExpected:
Negative Test Case 1: Invalid sort field
Steps:
list s/phoneExpected:
Invalid sort field. Valid options are: name, visitNegative Test Case 2: Unexpected preamble token
Steps:
list abcExpected:
Invalid command format! list: Lists all contacts...list-archivePrerequisites:
Positive Test Case 1: List archived contacts
Steps:
list-archiveExpected:
Positive Test Case 2: Run with extra text
Steps:
list-archive 123Expected:
editPrerequisites:
list before each INDEX-based test case.t/)Positive Test Case 1: Edit one field
Steps:
edit 1 p/91234567Expected:
Positive Test Case 2: Edit multiple fields
Steps:
edit 1 e/newmail@example.com a/12-34, Sample Road #01-01Expected:
Positive Test Case 3: Clear tags using t/
Steps:
edit 1 t/Expected:
Positive Test Case 4: Clear note using nt/
Steps:
edit 1 nt/Expected:
Positive Test Case 5: Clear visit date and time using v/
Steps:
edit 1 v/Expected:
Positive Test Case 6: Duplicate tag values
Steps:
edit 1 t/friend t/FriendExpected:
friend tag is added.Negative Test Case 1: No fields supplied
Steps:
edit 1Expected:
At least one field to edit must be provided.Negative Test Case 2: Invalid index
Steps:
edit 999 p/91234567Expected:
The contact index provided is invalidNegative Test Case 3: Invalid phone
Steps:
edit 1 p/911aExpected:
Phone numbers should be at most 15 characters...Negative Test Case 4: Invalid address
Steps:
edit 1 a/Bob street/block123Expected:
Addresses should not be blank, must be at most 120 characters...findPrerequisites:
Positive Test Case 1: Find by name keywords
Steps:
find n/Alex DavidExpected:
Alex or David (case-insensitive) are shown.Positive Test Case 2: Find by tag
Steps:
find t/friendsExpected:
friends (case-insensitive) are shown.Positive Test Case 3: Find by specific date
Steps:
find d/2026-12-01Expected:
Positive Test Case 4: Find by today keyword
Steps:
find d/todayExpected:
Positive Test Case 5: Find by date range
Steps:
find sd/2026-01-01 ed/2026-12-31Expected:
Negative Test Case 1: Mixed modes in one command
Steps:
find n/Alex t/friendsExpected:
Only one search type allowed.Negative Test Case 2: Missing date range pair
Steps:
find sd/2026-01-01Expected:
Both sd/ and ed/ must be provided together.Negative Test Case 3: Invalid date range order
Steps:
find sd/2026-12-31 ed/2026-01-01Expected:
Start date cannot be after end date!notePrerequisites:
list before each INDEX-based test case.Positive Test Case 1: Add/replace note
Steps:
note 1 nt/Requires wheelchair assistanceExpected:
Positive Test Case 2: Clear note
Steps:
note 1 nt/Expected:
Negative Test Case 1: Missing note prefix
Steps:
note 1Expected:
Invalid command format! note: Edits the note of the contact...Negative Test Case 2: Invalid index
Steps:
note -1 nt/Follow upExpected:
Invalid index. Index must be a non-zero positive integer (1, 2, 3...).tagPrerequisites:
list before each INDEX-based test case.at/ and dt/ behaviorPositive Test Case 1: Add one tag
Steps:
tag 1 at/clientExpected:
client tag is added.Positive Test Case 2: Delete one tag
Steps:
client tag.tag 1 dt/clientExpected:
client tag is removed.Positive Test Case 3: Add and delete in one command
Steps:
friend tag.tag 1 at/family dt/friendExpected:
Positive Test Case 4: Adding duplicate tag values
Steps:
tag 1 at/friend at/FriendExpected:
friend tag is added.Negative Test Case 1: No at/ and dt/ provided
Steps:
tag 1Expected:
Tag to add or delete must be provided.Negative Test Case 2: Add existing tag
Steps:
friendstag 1 at/friendsExpected:
The tag [friends] already exists for this person.Negative Test Case 3: Delete non-existent tag
Steps:
tag 1 dt/notpresentExpected:
The tag [notpresent] does not exist, cannot be deleted.deletePrerequisites:
list before each INDEX-based test case.Positive Test Case 1: Delete single index
Steps:
delete 2Expected:
Positive Test Case 2: Delete multiple indexes and range
Steps:
delete 1 3-4 5Expected:
Positive Test Case 3: Duplicate indexes are ignored
Steps:
delete 2 2 2-2Expected:
Negative Test Case 1: Descending range
Steps:
delete 5-2Expected:
Invalid range. Start index must be less than or equal to end index.Negative Test Case 2: Out-of-range index in bulk delete
Steps:
delete 1 999Expected:
Invalid indices: 999. Contact does not exist in current list.Negative Test Case 3: Invalid token
Steps:
delete aExpected:
Invalid input. Only positive integers and ranges like 1 or 3-5 are allowed.Negative Test Case 4: Range too large
Steps:
delete 1-150Expected:
Range too large. A range can include at most 100 indices...Negative Test Case 5: Index specified in range is too large
Steps:
delete 19999999999-20000000000Expected:
Index specified for range is too large. Please specify a smaller index.Negative Test Case 6: Invalid index
Steps:
delete -1Expected:
Invalid index. Index must be a non-zero positive integer (1, 2, 3...).Negative Test Case 7: Index too large
Steps:
delete 10000000000Expected:
Index too large. Please specify a valid index.unarchivePrerequisites:
list-archive before each INDEX-based test case.Positive Test Case 1: Unarchive from archived list
Steps:
unarchive 1Expected:
Unarchived: ... message.Negative Test Case 1: Invalid index format
Steps:
unarchive abcExpected:
Invalid command format! unarchive: Unarchives the contact...Negative Test Case 2: Out-of-range index
Steps:
unarchive 999Expected:
The contact index provided is invalidclearPrerequisites:
Positive Test Case 1: Clear all contacts
Steps:
clearExpected:
Address book has been cleared!Positive Test Case 2: Clear with extra text
Steps:
clear nowExpected:
exitPrerequisites:
Positive Test Case 1: Exit command
Steps:
exitExpected:
Positive Test Case 2: Exit with extra text
Steps:
exit pleaseExpected:
Prerequisites:
Positive Test Case 1: Autocomplete command word
Steps:
dTABExpected:
deletePositive Test Case 2: Autocomplete prefixes
Steps:
add TAB to insert the first prefix.TAB again to get the next prefix.Expected:
n/Positive Test Case 3: Autocomplete with index-required command
Steps:
edit and press TABedit 1 and press TABExpected:
n/).Positive Test Case 4: Autocomplete stops when command becomes invalid
Steps:
find n/Alex and press TABedit 1 n/Joe x/a and press TABExpected:
findPrerequisites:
Positive Test Case 1: Recall older commands
Steps:
listfind n/AlexARROW_UP twice.Expected:
ARROW_UP: command box shows find n/AlexARROW_UP: command box shows listPositive Test Case 2: Navigate back down
Steps:
ARROW_DOWN until newest.Expected:
Positive Test Case 3: Consecutive duplicates are not duplicated in history
Steps:
listlist again.ARROW_UP once.Expected:
list entry is recalled for consecutive duplicate submissions.Refer to User Guide: Saving the data and User Guide: Editing the data file for storage behavior details.
Positive Test Case 1: Missing data file
Steps:
data folder.addressbook.json if it exists.java -jar CareSync.jarExpected:
addressbook.json file with the default sample data.Positive Test Case 2: Corrupted data file
Steps:
data folder.addressbook.jsonjava -jar CareSync.jarExpected:
Positive Test Case 3: Data saved after commands
Steps:
java -jar CareSync.jaradd, edit, delete commands respectively.Expected:
addressbook.jsonTeam Size: 5
clear and delete commands immediately without any warning, increasing the risk of accidental data loss. We plan to require a mandatory --force flag for clearing data or deleting more than 5 contacts at once. If a user attempts these actions without the flag, the system will reject and display a warning (e.g., "Warning: This action cannot be undone, use --force to confirm.").caseid1) will incorrectly return irrelevant cases, such as caseid10 and caseid11. This contradicts the system's definition of case IDs as unique identifiers. We plan to implement strict exact matching specifically for case ID tag to retrieve the exact target cases.list-archive s/name to view archived contacts sorted by name or list-archive s/visit to view archived contacts sorted by visit date.archive 1 3-5 8 to archive multiple contacts at once or unarchive 1 4 6 to unarchive multiple contacts at once.This appendix summarises the overall effort put in by the team for CareSync. Using AB3 as a reference point, it also details the difficulty level, challenges faced, achievements and reuse of the project.
AB3 manages a single entity with basic features such as:
CareSync builds upon these existing features and introduces even more complex features aimed to provide real value to our target users:
Additionally, CareSync introduces constraints of higher complexity in order to reduce bugs and ensure consistency:
NAME, PHONE, EMAIL, ADDRESS, NOTE - character validity and length constraintsTAG - case-insensitive (for duplicate removal) and length constraintsfind command - mutual exclusivity for search modes and usage of special keywords (i.e. today)delete command - range index validationCompared to AB3's single entity workflow, CareSync required more cross-feature validation, parser disambiguation and logic-model-storage-UI synchronisation due to richer contact lifecycle management. The combination of improving features and constraints demanded intricate designing and testing to ensure CareSync's correctness. Moreover, CareSync was built with code quality and design principles in mind, which required further refactoring and architectural deliberation. Some challenges faced include:
MAX_INT. Therefore, we had to intentionally change the counting variable to long in order to patch this bug/vulnerability. This also shows our rigorous testing process when we introduce new features.add x n suggesting / or add n/ x/ suggesting p/ even though both commands entered were already invalid.master branch remained stable at all times, with effective collaboration via pull requests and code reviews.CareSync being built on top of AB3, reuses a significant portion of AB3's architecture and codebase. These include the already existing MVC pattern architecture, command pattern architecture, Jackson-based JSON storage, JavaFX UI, JUnit test cases, Gradle configuration and documentation site structure. AB3's existing features such as add and delete were adapted to create CareSync's version, and JavaFX UI elements were added to allow for notes and visit date-times. GitHub Copilot was used to generate standard template code snippets, JavaDoc comments and JUnit test cases.