Developer Guide
- Acknowledgements
- Setting up, getting started
- Design
- Implementation
- Documentation, logging, testing, configuration, dev-ops
- Appendix: Requirements
- Appendix: Instructions for manual testing
- Appendix: Planned Enhancements
Acknowledgements
- Used AI to generate some of the JavaDocs
- Used AI to help with most tests
- Used AI to generate sample data
- Used AI to identify bugs
- Used AI to help improve the Developer Guide, User Guide, and documentation formatting
Setting up, getting started
Refer to the guide Setting up and getting started.
Design
.puml files used to create diagrams are in this document docs/diagrams folder. Refer to the PlantUML Tutorial at se-edu/guides to learn how to create and edit diagrams.
Architecture

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.
- At app launch, it initializes the other components in the correct sequence, and connects them up with each other.
- At shut down, it shuts down the other components and invokes cleanup methods where necessary.
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 91234567.

Each of the four main components (also shown in the diagram above),
- defines its API in an
interfacewith the same name as the Component. - implements its functionality using a concrete
{Component Name}Managerclass (which follows the corresponding APIinterfacementioned 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.
UI 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.
The 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,
- executes user commands using the
Logiccomponent. - listens for changes to
Modeldata so that the UI can be updated with the modified data. - keeps a reference to the
Logiccomponent, because theUIrelies on theLogicto execute commands. - depends on some classes in the
Modelcomponent, as it displaysPersonobject residing in theModel.
Logic component
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 91234567") API call as an example.

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:
- When
Logicis called upon to execute a command, it is passed to anAddressBookParserobject which in turn creates a parser that matches the command (e.g.,DeleteCommandParser) and uses it to parse the command. - This results in a
Commandobject (more precisely, an object of one of its subclasses e.g.,DeleteCommand) which is handled by theLogicManager. - For commands that require confirmation, such as
deleteandclear,LogicManagerfirst returns a confirmation prompt and waits for the user to enteryorn. Confirmation input is case-insensitive, soy,Y,n, andNare accepted. - Once confirmed, the command can communicate with the
Modelwhen it is executed (e.g. to delete a person).
Note that although this is shown as a single step in the diagram above (for simplicity), in the code it can take several interactions (between the command object and theModel) to achieve. - The result of the command execution is encapsulated as a
CommandResultobject which is returned back fromLogic.
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:
- When called upon to parse a user command, the
AddressBookParserclass creates anXYZCommandParser(XYZis a placeholder for the specific command name e.g.,AddCommandParser) which uses the other classes shown above to parse the user command and create aXYZCommandobject (e.g.,AddCommand) which theAddressBookParserreturns back as aCommandobject. - All
XYZCommandParserclasses (e.g.,AddCommandParser,DeleteCommandParser, …) inherit from theParserinterface so that they can be treated similarly where possible e.g, during testing.
Model component
API : Model.java

The Model component,
- stores the address book data i.e., all
Personobjects (which are contained in aUniquePersonListobject). - stores the currently ‘selected’
Personobjects (e.g., results of a search query) as a separate filtered list which is exposed to outsiders as an unmodifiableObservableList<Person>that can be ‘observed’ e.g. the UI can be bound to this list so that the UI automatically updates when the data in the list change. - stores a
UserPrefobject that represents the user’s preferences. This is exposed to the outside as aReadOnlyUserPrefobjects. - stores tags in each
Personas aSet<Tag>, where valid tag values are constrained by theClientTagenum toRENTER,LANDLORD,BUYER, andSELLER. - does not depend on any of the other three components (as the
Modelrepresents data entities of the domain, they should make sense on their own without depending on other components)
Storage component
API : Storage.java

The Storage component,
- can save both address book data and user preference data in JSON format, and read them back into corresponding objects.
- inherits from both
AddressBookStorageandUserPrefStorage, which means it can be treated as either one (if only the functionality of only one is needed). - depends on some classes in the
Modelcomponent (because theStoragecomponent’s job is to save/retrieve objects that belong to theModel)
Common classes
Classes used by multiple components are in the seedu.address.commons package.
Implementation
This section describes some noteworthy details on how certain features are implemented.
Undo feature
Implementation
The undo mechanism is implemented in ModelManager using two stacks:
-
addressBookStateHistorystores snapshots of earlierAddressBookstates -
commandHistorystores the original command text associated with each saved state
These operations are exposed through the Model interface as
Model#saveAddressBookState(ReadOnlyAddressBook, String),
Model#canUndoAddressBook(), and Model#undoAddressBook().
Before a command that modifies the address book is executed, LogicManager saves the current address book state
together with the command text. Given below is an example usage scenario and how the undo mechanism behaves at each step.
Step 1. The user launches the application for the first time. The undo history is initially empty because no modifying commands have been executed yet.
Step 2. The user executes delete 91234567. After confirmation, LogicManager saves the current address book state
using Model#saveAddressBookState(...) before the deletion is applied.
Step 3. The user executes add n/David … to add a new person. Before the add command modifies the address book,
LogicManager saves the current state by calling Model#saveAddressBookState(...).
Step 4. The user now decides that adding the person was a mistake, and decides to undo that action by executing the
undo command. The undo command calls Model#undoAddressBook(), which restores the most recently saved address book
state.
undo command uses Model#canUndoAddressBook() to check this before
attempting the undo.
The sequence of interactions for undo is shown below:

Step 5. The user then decides to execute the command list. Commands that do not modify the address book do not save
any new state to the undo history.
Step 6. The user executes clear. Before the command clears the address book, LogicManager again saves the previous
state using Model#saveAddressBookState(...), allowing the clear operation to be undone later.
The command-history flow for a modifying command is summarised below:

Design considerations:
Aspect: How undo executes:
-
Alternative 1 (current choice): Saves the entire address book.
- Pros: Easy to implement.
- Cons: May have performance issues in terms of memory usage.
-
Alternative 2: Individual command knows how to undo by itself.
- Pros: Will use less memory (e.g. for
delete, just save the person being deleted). - Cons: We must ensure that the implementation of each individual command are correct.
- Pros: Will use less memory (e.g. for
Mark as favourite feature
The mark command allows users to mark a person in the currently displayed list as a favourite.
This is implemented by replacing the selected Person with an updated copy whose isFavourite flag is set to true.
Implementation
When the user enters a command such as mark 1, LogicManager passes the input to AddressBookParser,
which routes the command to MarkAsFavouriteCommandParser.
MarkAsFavouriteCommandParser#parse(String args):
- parses the user input into an
IndexusingParserUtil#parseIndex(...) - constructs and returns a
MarkAsFavouriteCommandwith that index
During execution, MarkAsFavouriteCommand#execute(Model model):
- retrieves the currently filtered person list from the model
- validates that the supplied index refers to an existing displayed person
- retrieves the target
Personfrom the filtered list - checks whether the person is already marked as favourite
- creates a new
Personobject that copies all existing fields and setsisFavouritetotrue - updates the address book through
Model#setPerson(personToEdit, markedPerson) - returns a
CommandResultwith a success message
This follows the immutable-update style used by other commands in the codebase. Instead of mutating the existing
Person object, the command constructs a replacement Person containing the updated favourite status.
The activity flow for mark is shown below:

Meetings feature
The meeting command allows users to assign or clear a meeting for a person in the currently displayed list.
Its implementation is split into two main parts:
- parsing the user-provided date/time string into a valid
Meeting - executing the command to replace the target
Personwith an updated copy containing the new meeting, or no meeting whenclearis used
Implementation
When the user enters a command such as meeting 1 15 Mar 2026 4pm or meeting 1 clear, LogicManager passes the full input to
AddressBookParser, which creates a MeetingCommandParser for the meeting command word.
MeetingCommandParser#parse(String args) then:
- separates the target index from the remaining date/time text
- parses the index using
ParserUtil#parseIndex(...) - if the remaining input is
clear, returns aMeetingCommandconfigured to remove the meeting - otherwise, parses the remaining date/time string using
DateTimeUtil#parseDateTime(...) - constructs a
Meetingfrom the parsedLocalDateTime - returns a
MeetingCommandcontaining the parsed index and meeting
During execution, MeetingCommand#execute(Model model):
- retrieves the currently filtered person list from the model
- validates that the provided index refers to an existing displayed person
- creates a new
Personobject that copies the original person’s fields and replaces only the meeting field - updates the model through
Model#setPerson(personToEdit, updatedPerson) - returns a
CommandResultcontaining either the meeting-added or meeting-cleared message
The sequence of interactions across the Logic, commons.util, and Model components is split into two diagrams:
- command parsing:
MeetingCommandParsingSequenceDiagram.puml
- command execution:
MeetingCommandExecutionSequenceDiagram.puml
Date/time parsing
The parsing logic is centralised in DateTimeUtil#parseDateTime(String dateTimeStr).
This keeps MeetingCommandParser focused on command parsing while allowing the same date/time parsing rules to be
reused consistently.
DateTimeUtil#parseDateTime(...) works as follows:
- first checks for relative-date inputs such as
todayandtomorrow - then checks weekday inputs such as
mondayorfri, which are resolved to the next occurrence of that weekday - otherwise, iterates through a list of supported
DateTimeFormatters to match explicit date formats such as15 Mar 2026 4pm,15/3/2026 16:30, and15.3.2026 1630 - if the input contains no time component, defaults the time to
23:59 - validates that the parsed
LocalDateTimeis not in the past - returns the parsed result as a
DateTimeParseResult
For relative dates, parseRelativeDate(...) computes the date offset from the current day and optionally parses the
time using parseTime(...). For weekday-based input, parseWeekday(...) resolves the next matching day with
TemporalAdjusters.next(...) before combining it with either the parsed time or 23:59.
The control flow of these parsing branches is also split into two smaller diagrams:
- relative-date parsing:
RelativeMeetingDateParsingActivityDiagram.puml
- explicit-format parsing:
ExplicitMeetingDateParsingActivityDiagram.puml
Favourites feature
The favourites command allows users to filter the contact list to display only persons marked as favourites.
Implementation
The favourites command filters the contact list to display only persons marked as favourites. Unlike mark and unmark, this command requires no parser as it takes no arguments.
When a user executes favourites, the system:
- Creates a
FavouritesCommanddirectly fromAddressBookParser - Executes the command, which updates the filtered person list using a predicate:
person -> person.getIsFavourite() - Returns a
CommandResultwith the success message
The class structure of the FavouritesCommand is shown below:
FavouritesCommandClassDiagram.puml

The sequence diagram below illustrates the interactions within the Logic and Model components when executing the favourites command:
FavouritesCommandSequenceDiagram.puml

The activity diagram below shows the overall flow of the favourites command:
FavouritesCommandActivityDiagram.puml

Design considerations:
Aspect: How favourites are stored:
-
Alternative 1 (current choice): Store as a boolean field in the
Personclass.- Pros: Simple to implement and easy to serialize/deserialize with JSON.
- Cons: Adds an extra field to every person object even if favourites are rarely used.
-
Alternative 2: Maintain a separate list of favourite person identifiers.
- Pros: More memory-efficient if only a few persons are marked as favourites.
- Cons: More complex implementation requiring synchronization between the person list and favourites list.
Documentation, logging, testing, configuration, dev-ops
Appendix: Requirements
Product scope
Target user profile:
- property agents who manage multiple properties and property-associated contacts
- have a need to manage a significant number of contacts and client interactions
- need to track clients, leads and meetings
- prefer desktop applications over other types of applications
- can type fast and prefer typing over mouse interactions
- are reasonably comfortable using CLI-based applications
- need to quickly search, update, and organize property and contact information
- value efficiency and prefer tools that allow faster data entry and retrieval
- need to manage appointments, property viewings, and follow-ups with clients
Value proposition: Provide a lightweight CLI-based CRM for property agents to efficiently manage client information, including contacts, property preferences, transaction details, meetings, and interactions. The application enables agents to quickly organize and retrieve client data from a single place using fast keyboard-driven commands.
User stories
Priorities: High (must have) - * * *, Medium (nice to have) - * *, Low (unlikely to have) - *
| Priority | As a … | I want to … | So that I can… |
|---|---|---|---|
* * * |
user | have a list view of client’s details like addresses and preferences | easily see only the information I need |
* * * |
user | be able to sort my contacts by importance/date | look at key contacts without scrolling through my full contact list |
* * * |
user | delete a person | remove a client that is no longer working with me |
* * * |
user | add a person | |
* * * |
user | exit app | |
* * |
user with many contacts | search by details (phone number, address, name etc.) | locate information of a particular person by that detail |
* * |
user | hide private contact details | minimize chance of someone else seeing them by accident |
* * |
user | edit details | change client’s details instead of deleting their current account |
* * |
user | track my commissions | view which client makes me most money (prioritize them) |
* * |
responsible user | see overdue follow ups with my clients | follow up with my overdue follow ups with my clients |
* * |
efficient and busy user | configure importance metric (commission or client relation years) | add existing clients in my phone into the address book |
* * |
user | clear my contacts in bulk | start a new contacts list quickly |
* * |
client centric user | add interest and hobbies of my clients | buy them appreciative gifts before my meeting with them |
* * |
responsible user | set reminders for things regarding the clients | keep track of things or events I have with my clients |
* * |
helpful and friendly user | share my contacts to my colleague | share my client’s inforation to my colleague for follow up |
* * |
responsible user | document notes about potential clients | remember key details for follow-up |
* * |
responsible user | maintain records of my client’s preferences | better treat my clients for customer relation |
* * |
efficient and busy user | group my clients in different groups | look for a person based on the category or group of people |
* |
lazy user | access past commands | easily repeat my commands with a key |
* |
creative user | change the colour scheme of my address book | see better and edit the address book to my liking |
* |
clumsy user | easily backup my contact information | restore old client information in case I accidentally lose it |
Use cases
(For all use cases below, the System is the CLIentTracker and the Actor is the user, unless specified otherwise)
Use case: Add a person
MSS
- User requests to add a person with the required details.
- CLIentTracker adds the person.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. The user provides incomplete or invalid details.
-
1a1. CLIentTracker shows an error message.
Use case ends.
-
-
1b. The person already exists in CLIentTracker.
-
1b1. CLIentTracker shows an error message.
Use case ends.
-
Use case: Delete a person
MSS
- User requests to delete a specific person by phone number.
- CLIentTracker asks for confirmation.
- User confirms the deletion using
yorY. -
CLIentTracker deletes the person.
Use case ends.
Extensions
-
1a. No person matches the given phone number.
-
1a1. CLIentTracker shows an error message.
Use case ends.
-
-
2a. The user cancels the deletion using
norN.-
2a1. CLIentTracker shows a cancellation message.
Use case ends.
-
Use case: Find persons by keyword
MSS
- User requests to find persons using one or more keywords.
- User provides general keywords or field-specific keywords.
- CLIentTracker filters the displayed person list to matching persons.
-
CLIentTracker shows the filtered list.
Use case ends.
Extensions
-
2a. The user provides an invalid search format.
-
2a1. CLIentTracker shows an error message.
Use case ends.
-
-
4a. No persons match the search keyword.
-
4a1. CLIentTracker shows an empty list.
Use case ends.
-
Use case: Edit a person’s details
MSS
- User views a displayed list of persons.
- User requests to edit a specific person in the displayed list.
- User provides the updated detail(s).
- CLIentTracker updates the person’s details.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. The displayed list is empty.
Use case ends.
-
2a. The given index is invalid.
-
2a1. CLIentTracker shows an error message.
Use case resumes at step 1.
-
-
3a. The user provides invalid detail(s).
-
3a1. CLIentTracker shows an error message.
Use case resumes at step 3.
-
Use case: Clear all contacts
MSS
- User requests to clear all contacts.
- CLIentTracker asks for confirmation.
- User confirms the clear command using
yorY. - CLIentTracker clears all contacts.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
2a. The user cancels the clear command using
norN.-
2a1. CLIentTracker shows a cancellation message.
Use case ends.
-
Use case: Mark a person as favourite
MSS
- User views a displayed list of persons.
- User requests to mark a specific person in the displayed list as favourite.
- CLIentTracker marks the person as favourite.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. The displayed list is empty.
Use case ends.
-
2a. The given index is invalid.
- 2a1. CLIentTracker shows an error message.
-
2a1. CLIentTracker shows an error message.
Use case resumes at step 1.
-
2b. The selected person is already marked as favourite.
-
2b1. CLIentTracker shows an error message.
Use case ends.
-
Use case: Unmark a person as favourite
MSS
- User views a displayed list of persons.
- User requests to remove the favourite status of a specific person in the displayed list.
- CLIentTracker removes the person’s favourite status.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. The displayed list is empty.
Use case ends.
-
2a. The given index is invalid.
-
2a1. CLIentTracker shows an error message.
Use case resumes at step 1.
-
-
2b. The selected person is not marked as favourite.
-
2b1. CLIentTracker shows an error message.
Use case ends.
-
Use case: View favourite persons
MSS
- User requests to view favourite persons.
- CLIentTracker filters the displayed list to persons marked as favourite.
-
CLIentTracker shows the filtered list.
Use case ends.
Use case: Add or clear a meeting
MSS
- User views a displayed list of persons.
- User requests to add a meeting to a specific person in the displayed list, or clear an existing meeting.
- CLIentTracker updates the person’s meeting information.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. The displayed list is empty.
Use case ends.
-
2a. The given index is invalid.
-
2a1. CLIentTracker shows an error message.
Use case resumes at step 1.
-
-
2b. The user provides an invalid or past date/time.
-
2b1. CLIentTracker shows an error message.
Use case ends.
-
Use case: Undo the last modifying command
MSS
- User requests to undo the most recent modifying command.
- CLIentTracker restores the previous address book state.
-
CLIentTracker shows a confirmation message.
Use case ends.
Extensions
-
1a. There is no previous modifying command to undo.
-
1a1. CLIentTracker shows an error message.
Use case ends.
-
Non-Functional Requirements
- Should work on any mainstream OS as long as it has Java
17or above installed. - Should be able to hold up to 1000 persons without a noticeable sluggishness in performance for typical usage.
- A user with above average typing speed for regular English text (i.e. not code, not system admin commands) should be able to accomplish most of the tasks faster using commands than using the mouse.
- The application should respond to user commands within 1 second for typical operations (e.g., add, delete, edit, list, search) under normal load
- The system should persist all data locally so that client information is retained after the application is closed and reopened
- The application should gracefully handle invalid inputs by displaying clear error messages without crashing
- The system should maintain data integrity, ensuring that duplicate contacts or invalid fields are prevented according to validation rules
- The application should automatically save changes to storage after any command that modifies the data
- The application should maintain readability and maintainability of code, following standard Java coding conventions and modular architecture
- The system should be designed so that new commands or features can be added with minimal modification to existing components
Glossary
- Mainstream OS: Windows, Linux, Unix, MacOS
- Private contact detail: A contact detail that is not meant to be shared with others
- Client A person whose contact information and interaction details are managed by the application
- Contact The stored record containing a client’s information such as name, phone number, email, address, and other relevant details
- Filtered List A subset of contacts displayed after applying search or filter commands.
- Command A text instruction entered by the user to perform an operation in the system (e.g., add, delete, edit, list).
- Persistence The capability of the application to save data to storage so it remains available across application restarts.
- Index The number assigned to a contact in the displayed list, used to identify that contact when performing commands like delete or edit.
Appendix: Instructions for manual testing
Given below are instructions to test the app manually.
Launch and shutdown
-
Initial launch
-
Download the jar file and copy it into an empty folder.
-
Double-click the jar file.
Expected: The GUI opens with a set of sample contacts loaded. The initial window size may not be optimum.
-
-
Saving window preferences
-
Resize the window to an optimum size. Move the window to a different location. Close the window.
-
Re-launch the app by double-clicking the jar file.
Expected: The most recent window size and location is retained.
-
Adding a person
-
Adding a new person
-
Prerequisites: Start with the sample data loaded.
-
Test case:
add n/Test Person p/81234567 e/test@example.com a/Test Street 1 d/Interested in condo t/Buyer
Expected: A new contact is added to the list with the supplied fields. Success message is shown. -
Test case:
add n/Test Person p/81234567
Expected: No person is added because the phone number already exists. An error message is shown. -
Test case:
add n/Test Person p/81234abc
Expected: No person is added. An error message describing invalid command input is shown.
-
Deleting a person
-
Deleting a person by phone number
-
Prerequisites: Ensure a contact with phone number
81234567exists. If not, add one usingadd n/Delete Me p/81234567. -
Test case:
delete 81234567, followed byyorY
Expected: The contact is deleted. A success message is shown and the person disappears from the displayed list. -
Test case:
delete 81234567, followed bynorN
Expected: The deletion is cancelled. The contact list remains unchanged. -
Test case:
delete 00000000
Expected: No person is deleted. An error message is shown. -
Other incorrect delete commands to try:
delete,delete abc
Expected: No person is deleted. An error message is shown.
-
Clearing all entries
-
Clearing the address book
-
Prerequisites: The list contains at least one person.
-
Test case:
clear, followed bynorN
Expected: The clear operation is cancelled. The contact list remains unchanged. -
Test case:
clear, followed byyorY
Expected: All contacts are removed from the list. A success message is shown.
-
Marking and unmarking favourites
-
Marking a contact as favourite
-
Prerequisites: Use
listto show all persons. Choose a displayed person that is not already marked as favourite. -
Test case:
mark 1
Expected: The first displayed contact is marked as favourite. A success message is shown. -
Test case:
mark 1again on the same contact
Expected: No change is made. An error message indicates that the person is already in favourites. -
Test case:
mark 0
Expected: No change is made. An error message is shown.
-
-
Unmarking a contact as favourite
-
Prerequisites: Ensure the first displayed contact is already marked as favourite.
-
Test case:
unmark 1
Expected: The first displayed contact is removed from favourites. A success message is shown. -
Test case:
unmark 1again on the same contact
Expected: No change is made. An error message indicates that the person is not marked as favourite.
-
-
Viewing favourites only
-
Prerequisites: At least one contact is marked as favourite.
-
Test case:
favourites
Expected: Only contacts currently marked as favourite are displayed.
-
Adding and clearing meetings
-
Adding a meeting
-
Prerequisites: Use
listto show all persons. -
Test case:
meeting 1 15 Mar 2030 4pm
Expected: A meeting is added to the first displayed contact. A success message is shown. -
Test case:
meeting 1 tomorrow 9am
Expected: A meeting is added using the parsed relative date and time. A success message is shown. -
Test case:
meeting 1 1 Jan 2020 4pm
Expected: No meeting is added because the date/time is in the past. An error message is shown. -
Test case:
meeting 0 15 Mar 2030 4pm
Expected: No meeting is added. An error message is shown.
-
-
Clearing a meeting
-
Prerequisites: The first displayed contact already has a meeting assigned.
-
Test case:
meeting 1 clear
Expected: The meeting is removed from the first displayed contact. A success message is shown.
-
Undoing previous changes
-
Undo after a modifying command
-
Prerequisites: There is at least one contact in the list.
-
Test case:
mark 1, thenundo
Expected: The favourite change is reverted and the contact returns to its previous state. -
Test case:
meeting 1 15 Mar 2030 4pm, thenundo
Expected: The meeting addition is reverted. -
Test case:
clear, followed byy, thenundo
Expected: The previously cleared contact list is restored. -
Test case: launch the app and immediately run
undo
Expected: No change is made. An error message indicates that there are no commands to undo.
-
Saving data
-
Dealing with missing/corrupted data files
-
Close the application.
-
Open the data file at
data/addressbook.jsonand make a backup copy. -
Delete
data/addressbook.json, then relaunch the application.
Expected: The application starts successfully and recreates the data file. -
Edit
data/addressbook.jsonand replace part of the file with invalid JSON such as removing a closing brace, then relaunch the application.
Expected: The application starts with an empty address book and creates a fresh valid data file. -
Restore the backup copy after testing.
-
Appendix: Planned Enhancements
Team size: 5
-
Allow multiple meetings per contact: The current
meetingcommand stores only one meeting per contact, so adding a new meeting replaces the existing meeting. We plan to allow each contact to store multiple meetings, e.g.meeting 1 15 Mar 2030 4pmfollowed bymeeting 1 20 Mar 2030 2pmwould keep both meetings for the first displayed contact instead of replacing the first one. -
Allow phone numbers from other countries: The current phone number validation only accepts local Singapore phone numbers. We plan to allow phone numbers with country codes, e.g.
+60 123456789or+1 2125551234, so users can store contacts from other countries without removing the country code. -
Notify users when past meetings are removed: The current meeting cleanup removes past meetings when the app opens, but users are not explicitly notified when this happens. We plan to display a startup notification such as
1 past meeting(s) removed.when past meetings are removed from loaded contact data. -
Currently, modifying commands do not handle search filters consistently. Commands such as mark, unmark, and meeting preserve the active filter, while edit and undo reset the view to show the full contact list. This may cause unexpected changes to the displayed list when users are working within a filtered view. A future improvement is to standardise filter handling so all modifying commands behave consistently.
-
When multiple inputs in an add command are invalid, only the first validation error is reported. This requires users to fix errors one at a time instead of seeing all issues at once. A potential improvement is to support reporting multiple validation errors together.