Skip to content

[CS2103-T17-2] CampusBook#21

Open
DJsudartha wants to merge 330 commits into
nus-cs2103-AY2526S1:masterfrom
AY2526S1-CS2103T-T17-2:master
Open

[CS2103-T17-2] CampusBook#21
DJsudartha wants to merge 330 commits into
nus-cs2103-AY2526S1:masterfrom
AY2526S1-CS2103T-T17-2:master

Conversation

@DJsudartha

Copy link
Copy Markdown

CampusBook is a centralized app for university students that makes it easy to find and access contact information for professors, staff, and administrative departments, eliminating the need to search across multiple platforms. It streamlines communication within the university, saving students time and effort.

Cheeden pushed a commit to Cheeden/tp that referenced this pull request Oct 1, 2025
jooh6969 pushed a commit to jooh6969/tp that referenced this pull request Oct 2, 2025
Zirun and others added 27 commits October 10, 2025 00:09
Feature: Add select command to preload faculty contacts
Enhance find command to support faculty and compound searches
DJsudartha and others added 30 commits November 4, 2025 01:16
Add most features into  Instructions for Manual Testing
- Update Person.isSamePerson() to check both name and phone number
- Update UserGuide to clarify duplicate contact rules
- Contacts with same name OR same phone number are considered duplicates
- Prevents both duplicate names and duplicate phone numbers
- Add warning in name field notes about not using command prefixes
- Add note in FAQ section about command prefix limitation
- Clarifies that prefixes like n/, p/, e/ in names will cause parsing errors
- Addresses code review comments about prefix handling
- Update AddCommand error message to specify 'same name or phone number'
- Update EditCommand error message to specify 'same name or phone number'
- Update DuplicatePersonException javadoc to clarify duplicate criteria
- Addresses code review comment about ensuring error messages are updated
- Add test cases in NameTest to verify prefix-like patterns without space are valid at Name level
- Add test case in AddCommandParserTest to verify names with prefix (with space) cause parsing errors
- Documents that while names with prefix patterns are valid at validation level, they cause issues when used in commands
- Addresses code review comment about verifying prefix behavior in names
- Fix line length violations in MESSAGE_DUPLICATE_PERSON constants
- Split long lines to comply with 120 character limit
- Remove conditional logic for singular/plural forms in code
- Use (s) notation consistently for quantities that may vary (0, 1, or many)
- Keep fixed singular/plural forms where quantity is certain (e.g., 'Listed all persons')
- Update all test expectations to match new message formats
- Update DeveloperGuide.md test case descriptions

Changes:
- ImportCommand: contact(s), duplicate row(s), invalid row(s)
- Messages: person(s) listed, person(s) deleted, person(s) found, field(s)
- DeleteCommand: person(s) for batch delete, removed conditional logic
- FindCommand: removed conditional, unified to person(s) listed
- JsonSerializableAddressBook: duplicate person(s) (variable quantity)
- ListCommand: kept 'persons' (certain plural with 'all')
- Updated all related test files to match new formats
- Add back FAQ explaining why same names with different capitalisation are allowed
- This aligns with the code behavior where names are case-sensitive
- Examples: John & john, McKenzie & Mckenzie can be added if phone numbers differ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants