Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
1995ca4
Add ShortcutSettings to UserPrefs
alvinlim277 Oct 24, 2023
72158dc
Add add shortcut command
alvinlim277 Oct 25, 2023
229df81
Improve design correctness
alvinlim277 Oct 25, 2023
7292807
Add wrapper classes and constraints
alvinlim277 Oct 25, 2023
1fca640
Add delete shortcut function
alvinlim277 Oct 25, 2023
3cf6272
Update UserGuide and add some testing
alvinlim277 Oct 25, 2023
90d2762
Improve test coverage
alvinlim277 Oct 25, 2023
e2d6cb7
Fix checkstyle issues
alvinlim277 Oct 25, 2023
23a214a
Merge branch 'master' into story-9-Shortcuts
alvinlim277 Oct 25, 2023
6355647
Fix checkstyle issues
alvinlim277 Oct 25, 2023
8e7553e
Fix bad mapping bug
alvinlim277 Oct 25, 2023
dee4ae9
Fix checkstyle issues
alvinlim277 Oct 25, 2023
8894dfb
Fix minor bugs
alvinlim277 Oct 25, 2023
46f0bbc
Merge branch 'master' into story-9-Shortcuts
alvinlim277 Oct 25, 2023
d8230a9
Fix FindCommand bug
alvinlim277 Oct 25, 2023
3f3eb2f
Make code for CommandStringStash simpler
vansh284 Oct 25, 2023
11c3103
Fix JavaDoc header
alvinlim277 Oct 26, 2023
d833c1a
Update developer guide with recall command
vansh284 Oct 26, 2023
7556883
Merge pull request #6 from AY2324S1-CS2103T-W13-1/master
angkyakdifp Oct 26, 2023
2d5201b
Fix typo in image links in DG
vansh284 Oct 26, 2023
bb5af92
Amend UserGuide
alvinlim277 Oct 26, 2023
d1ecf1d
Improve UML diagrams
vansh284 Oct 26, 2023
34b0d81
Improve formatting of test code
vansh284 Oct 26, 2023
da6f1c6
Add tests for null and valid cases in recall command
vansh284 Oct 26, 2023
2df6b7a
Merge pull request #92 from angkyakdifp/branch-UI-Improvisation
angkyakdifp Oct 26, 2023
a6c5d96
Merge branch 'master' into story-9-Shortcuts
alvinlim277 Oct 26, 2023
df8d828
Merge pull request #93 from alvinlim277/story-9-Shortcuts
alvinlim277 Oct 26, 2023
9ae27f3
Merge pull request #96 from vansh284/enhancement-improveRecentCommand…
alvinlim277 Oct 26, 2023
dacec3c
Correct LoD violation and start on DG
alvinlim277 Oct 26, 2023
dec5845
Update Developer Guide
alvinlim277 Oct 26, 2023
5915e00
Update Developer Guide draft
alvinlim277 Oct 26, 2023
5620ea3
Fix checkstyle and test bugs
alvinlim277 Oct 26, 2023
e1dae54
Fix duplicate shortcut message error
alvinlim277 Oct 26, 2023
4a2b65b
Fix repo test errors
alvinlim277 Oct 26, 2023
b5d21ff
Amend activity diagrams
alvinlim277 Oct 26, 2023
0f1b2a5
Add Find Command Feature to DeveloperGuide.md
Gavino3o Oct 26, 2023
d204d2c
Add newlines to end of .puml files
Gavino3o Oct 26, 2023
be11c23
Amend UML diagrams
alvinlim277 Oct 26, 2023
e400b7f
Merge pull request #103 from alvinlim277/documentation-ShortcutsDevGuide
vansh284 Oct 26, 2023
4598bf2
Fix some minor issues
angkyakdifp Oct 26, 2023
8c4e73f
Merge pull request #102 from angkyakdifp/branch-Documentation-DG
alvinlim277 Oct 27, 2023
6c8c322
Resolve merge conflict with master
Gavino3o Oct 27, 2023
e01b291
Merge pull request #104 from Gavino3o/documentation-31-DGFindFeature
Gavino3o Oct 27, 2023
08d16ea
Remove index parsing from EditCommand
Gavino3o Oct 27, 2023
d43d7e9
Fix EditDescriptor ClassCastException
Gavino3o Oct 27, 2023
cb3aefc
Add Prefix Argument Check
Gavino3o Oct 27, 2023
d9ec37b
Add more usefull messages for Invalid Edit Command
Gavino3o Oct 28, 2023
ee6ea33
Handle duplicate commands properly in recall command
vansh284 Oct 28, 2023
7660797
Modify tests for new Edit Command format
Gavino3o Oct 28, 2023
69076ac
Fix Checkstyle Errors
Gavino3o Oct 28, 2023
8c69021
Add missing Specialist location non-Null check
Gavino3o Oct 28, 2023
ae8ee56
Add Edit Command information to User Guide
Gavino3o Oct 28, 2023
94d3a45
Add theme command to change theme
vansh284 Oct 28, 2023
aa5eded
Add tests for ThemeCommand and parser
vansh284 Oct 28, 2023
c9e1033
Improve Code Coverage
Gavino3o Oct 28, 2023
66aa82e
Fix bug making app unable to save user preferences
vansh284 Oct 28, 2023
92641b1
Clean up code
vansh284 Oct 28, 2023
4b2ad95
Resolve duplicate person bug
alvinlim277 Oct 28, 2023
d6c696c
Improve code coverage
alvinlim277 Oct 28, 2023
81c9ce4
Update user guide
vansh284 Oct 28, 2023
4ddf6d2
Add newline at end of LightTheme.css
vansh284 Oct 28, 2023
8ba505a
Merge pull request #110 from alvinlim277/bugfix-99-DuplicatePersons
vansh284 Oct 28, 2023
4150eee
Merge pull request #112 from vansh284/bugfix-101-duplicateRecallCommand
alvinlim277 Oct 28, 2023
6be660d
Fix PersonTypeBar bugs
alvinlim277 Oct 28, 2023
4adc7ad
Merge branch 'master' into bugfix-109-PersonTypeBar
alvinlim277 Oct 28, 2023
f55cc2d
Add missing Edit Command in Summary Table
Gavino3o Oct 29, 2023
dd46a29
Add test for Edit Commmand Complex Scenario
Gavino3o Oct 29, 2023
6606a5b
Merge pull request #8 from AY2324S1-CS2103T-W13-1/master
angkyakdifp Oct 29, 2023
72aab66
Update UserGuide
alvinlim277 Oct 29, 2023
f7bd68f
Merge pull request #105 from Gavino3o/feature-63-ModifyEditCommandBeh…
alvinlim277 Oct 29, 2023
e52a598
Merge pull request #9 from AY2324S1-CS2103T-W13-1/master
angkyakdifp Oct 29, 2023
292e0a4
update Undo/Redo to include addsc
Kokseng1 Oct 30, 2023
0adc5bf
merge conflict
Kokseng1 Oct 30, 2023
98b0e5a
Merge pull request #111 from vansh284/feature-7-customColorSchemes
Kokseng1 Oct 31, 2023
30bf4c8
Merge branch 'master' into bugfix-109-PersonTypeBar
alvinlim277 Oct 31, 2023
598cd6e
Merge pull request #113 from alvinlim277/bugfix-109-PersonTypeBar
vansh284 Oct 31, 2023
37f3291
Merge https://github.com/AY2324S1-CS2103T-W13-1/tp into bugFix-107-Un…
Kokseng1 Oct 31, 2023
ed2774f
Merge themecommand, add more testcoverage in undo redo test
Kokseng1 Oct 31, 2023
aeacac6
update DG to reflect current undo/redo implementation
Kokseng1 Oct 31, 2023
8458d9c
Add useful error messages for Basic Commands
Gavino3o Nov 1, 2023
d8a673f
Remove unused import
Gavino3o Nov 1, 2023
00e2336
Add tests for parsing Basic commands as Complex Commands
Gavino3o Nov 1, 2023
6770891
Merge pull request #10 from AY2324S1-CS2103T-W13-1/master
angkyakdifp Nov 1, 2023
b20413b
Fix Some Bug
angkyakdifp Nov 1, 2023
46e3b09
Merge pull request #116 from Gavino3o/bugfix-114-BasicComplexCommandM…
vansh284 Nov 2, 2023
9af37ce
Remove Unused Method
angkyakdifp Nov 2, 2023
7454e07
Merge pull request #117 from angkyakdifp/Fixing-UI-Bug
angkyakdifp Nov 2, 2023
a1da5c3
Merge https://github.com/AY2324S1-CS2103T-W13-1/tp into bugFix-107-Un…
Kokseng1 Nov 2, 2023
f46c848
Removed irrelevant comment
Kokseng1 Nov 2, 2023
53c54ec
Merge pull request #115 from Kokseng1/bugFix-107-UndoRedo
Gavino3o Nov 2, 2023
48a06e4
Update Help Command URL
Gavino3o Nov 2, 2023
54e0fd5
Update UG and MainApp Version
Gavino3o Nov 2, 2023
4973994
Merge pull request #118 from Gavino3o/documentation-97-UGUpdates
alvinlim277 Nov 2, 2023
36c2cd3
Update App Release Version
Gavino3o Nov 2, 2023
97b8374
Merge pull request #119 from Gavino3o/bugfix-UpdateReleaseNumber
vansh284 Nov 2, 2023
c097326
Move tracking job from addressbook to modelmanager
Kokseng1 Nov 5, 2023
1d15039
TODO :
Kokseng1 Nov 6, 2023
420440e
TODO :
Kokseng1 Nov 6, 2023
f7db517
Fix bugs
vansh284 Nov 6, 2023
18a3c24
Fix undo/redo integration bug.
Kokseng1 Nov 6, 2023
1d21092
Checkstyle
Kokseng1 Nov 6, 2023
e6373ed
spelling error
Kokseng1 Nov 6, 2023
ea9b787
fix specialist tag undo bug
Kokseng1 Nov 6, 2023
7a05951
Update project portfolio page
vansh284 Nov 6, 2023
dab4027
Resolve checkstyle issues
vansh284 Nov 6, 2023
e9cd610
Update title and description of index.md
Gavino3o Nov 7, 2023
2510d45
Update images in index.md and UG
Gavino3o Nov 7, 2023
93daaca
Fix Optional Fields notation in error messages
Gavino3o Nov 7, 2023
dafc312
Fix bugs for v1.4
alvinlim277 Nov 7, 2023
d8e0895
Add delete inconsistency to Planned Enhancements
Gavino3o Nov 7, 2023
730a631
Fix checkstyle and credit reuse
alvinlim277 Nov 7, 2023
d0e1061
Update Gavino3o PPP
Gavino3o Nov 7, 2023
fda7f73
Fix EditCommandParser test cases
Gavino3o Nov 7, 2023
400a087
Add Edit Patient test case
Gavino3o Nov 7, 2023
5e62ea2
Add comment to justify typecast in ModelManager
Kokseng1 Nov 7, 2023
2edbe04
Rephrase planned enhancement
vansh284 Nov 7, 2023
ca919d0
Merge pull request #159 from vansh284/bugfixes-vansh-v1.4
vansh284 Nov 7, 2023
db7fdf3
Merge branch 'master' into bugfixes-v1.4
alvinlim277 Nov 7, 2023
529bdef
Fix typo in DG
Gavino3o Nov 8, 2023
56e9289
Merge branch 'master' into bugfixes-v1.4
alvinlim277 Nov 8, 2023
97ac6d8
Add Some Constraint for Email, Location, and Phone Number
angkyakdifp Nov 8, 2023
81ba5e8
Resolve comments and merge conflict
Gavino3o Nov 8, 2023
5f06936
Merge pull request #161 from Gavino3o/bugfix-gavin-v1.4
Gavino3o Nov 8, 2023
bdb1d20
Update Developer Guide
alvinlim277 Nov 8, 2023
760595f
Merge branch 'master' into bugfixes-v1.4
alvinlim277 Nov 8, 2023
e6a0ccd
Merge branch 'bugfixes-v1.4' of https://github.com/alvinlim277/tp int…
alvinlim277 Nov 8, 2023
0c2c946
Remove extra whitespace
alvinlim277 Nov 8, 2023
27b52aa
Add PPP
angkyakdifp Nov 8, 2023
66d1edf
Merge branch 'master' into Fix-Bug
angkyakdifp Nov 8, 2023
d3f2fda
Fixing Typo
angkyakdifp Nov 8, 2023
ae16ffe
Merge branch 'Fix-Bug' of https://github.com/angkyakdifp/tp into Fix-Bug
angkyakdifp Nov 8, 2023
e11dffd
Fix CheckStyle
angkyakdifp Nov 8, 2023
87782c0
Make undo in UG clearer
Kokseng1 Nov 8, 2023
5b8679c
Fix TYPO
angkyakdifp Nov 9, 2023
d573bf4
Merge pull request #162 from angkyakdifp/Fix-Bug
vansh284 Nov 9, 2023
ab89f51
Clarify delsc behaviour in UserGuide
alvinlim277 Nov 9, 2023
2c3974d
Fix wording in UG
alvinlim277 Nov 9, 2023
8b5e0c5
Merge pull request #160 from alvinlim277/bugfixes-v1.4
vansh284 Nov 9, 2023
14776da
Fix minor errors in user guide
vansh284 Nov 10, 2023
74982c2
Fix some errors in developer guide
vansh284 Nov 10, 2023
d0cc0e9
Fix newline error
vansh284 Nov 11, 2023
d92aa43
Add couple of feature flaws
vansh284 Nov 11, 2023
0c11734
Fix resetData bug in ModelManager.java
Kokseng1 Nov 11, 2023
ed77c71
Merge pull request #169 from vansh284/documentation-minorFixes
Gavino3o Nov 11, 2023
ae92d70
Fix documentation
alvinlim277 Nov 11, 2023
5da981a
Merge branch 'master' into documentation-fixes
alvinlim277 Nov 11, 2023
c51eb26
UndoSequenceDiagram
Kokseng1 Nov 11, 2023
26d3bb1
Edit documentation
alvinlim277 Nov 11, 2023
90faab6
Fix some typos
alvinlim277 Nov 11, 2023
72a0b94
Update planned enhancements
alvinlim277 Nov 11, 2023
a8a8635
Improve specificity of command format in UG
Gavino3o Nov 11, 2023
5469b3e
Edit documentation
alvinlim277 Nov 11, 2023
1da7b46
Add newlines
alvinlim277 Nov 11, 2023
ad33c3f
Fix errors in Find Command UML diagrams
Gavino3o Nov 11, 2023
3153a99
Merge pull request #158 from Kokseng1/bugFix-107-UndoRedo
vansh284 Nov 11, 2023
a963927
Add Manual Testing Instructions
Gavino3o Nov 11, 2023
e8e2d52
Add more manual testing instructions in DG
Gavino3o Nov 12, 2023
f067c9b
Merge pull request #177 from Gavino3o/documentation-170-ManualTesting…
Gavino3o Nov 12, 2023
b4145b5
Fix some minor errors
vansh284 Nov 12, 2023
ab136c2
Merge pull request #175 from alvinlim277/documentation-fixes
vansh284 Nov 12, 2023
2039c22
Resolve merge conflict
vansh284 Nov 12, 2023
23d9d5a
Revert "Add Some Constraint for Email, Location, and Phone Number"
vansh284 Nov 12, 2023
c77a1e4
Update user guide for person type flag
vansh284 Nov 12, 2023
ec1843f
Fix small error
vansh284 Nov 12, 2023
2aca8bb
Save updated UML diagrams as images
vansh284 Nov 12, 2023
40f4474
Enhance developer guide
vansh284 Nov 12, 2023
7f66f64
Merge pull request #178 from vansh284/documentation-moreFixes
alvinlim277 Nov 12, 2023
a2238b5
Merge pull request #11 from AY2324S1-CS2103T-W13-1/master
angkyakdifp Nov 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
}

shadowJar {
archiveFileName = 'addressbook.jar'
archiveFileName = 'DoConnekPro.jar'
}

run {
Expand Down
4 changes: 2 additions & 2 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ We are a team based in the [School of Computing, National University of Singapor

<img src="images/alvinlim277.png" width="200px">

[[github](http://github.com/alvinlim277)]
[[github](http://github.com/alvinlim277)]
[[portfolio](team/alvinlim277.md)]

* Role: Developer
* Responsibilities: Documentation, Testing
* Responsibilities: Documentation, Testing

### Ng Kok Seng

Expand Down
642 changes: 477 additions & 165 deletions docs/DeveloperGuide.md

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions docs/SettingUp.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,4 @@ If you plan to use Intellij IDEA (highly recommended):

1. **Learn the design**

When you are ready to start coding, we recommend that you get some sense of the overall design by reading about [AddressBook’s architecture](DeveloperGuide.md#architecture).

1. **Do the tutorials**
These tutorials will help you get acquainted with the codebase.

* [Tracing code](tutorials/TracingCode.md)
* [Adding a new command](tutorials/AddRemark.md)
* [Removing fields](tutorials/RemovingFields.md)
When you are ready to start coding, we recommend that you get some sense of the overall design by reading about [DoConnekPro's architecture](DeveloperGuide.md#architecture).
231 changes: 181 additions & 50 deletions docs/UserGuide.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions docs/diagrams/AddCommandStringActivityDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@startuml
skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 12
start
:User executes command;

'Since the beta syntax does not support placing the condition outside the
'diamond we place it as the true branch instead.

if () then ([command successfully
executed])
:Add command string to CommandStringStash;
:Move currentCmdIndex to right after the
last element in the CommandStringStash;
else ([else])
endif
stop
@enduml
24 changes: 24 additions & 0 deletions docs/diagrams/AddShortcutActivityDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@startuml
skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 13
start
:User requests to add shortcut;

if () then ([Request parsed successfully])
switch ()
case ([Shortcut alias already mapped])
:Notify user of existing shortcut to be overwritten;
:Register new shortcut;
case ([Mapping already exists])
:Notify user of existing mapping;
case ([else])
:Register new shortcut;
endswitch
else ([else])
:Show error and usage message;
endif


stop
@enduml
78 changes: 78 additions & 0 deletions docs/diagrams/AddShortcutCommandSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@startuml
!include style.puml
skinparam ArrowFontStyle plain
skinparam defaultFontSize 20
'
box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR
participant ":AddShortcutCommandParser" as AddShortcutCommandParser LOGIC_COLOR
participant "a:AddShortcutCommand" as AddShortcutCommand LOGIC_COLOR
participant ":CommandResult" as CommandResult LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
participant ":Model" as Model MODEL_COLOR
participant ":ShortcutSettings" as ShortcutSettings MODEL_COLOR
end box

[-> LogicManager : execute\n("addsc sc/del kw/delete")
activate LogicManager

LogicManager -> AddressBookParser : parseCommand\n("addsc sc/del kw/delete")
activate AddressBookParser

create AddShortcutCommandParser
AddressBookParser -> AddShortcutCommandParser
activate AddShortcutCommandParser

AddShortcutCommandParser --> AddressBookParser
deactivate AddShortcutCommandParser

AddressBookParser -> AddShortcutCommandParser : parse\n("sc/del kw/delete")
activate AddShortcutCommandParser

create AddShortcutCommand
AddShortcutCommandParser -> AddShortcutCommand
activate AddShortcutCommand

AddShortcutCommand --> AddShortcutCommandParser : a
deactivate AddShortcutCommand

AddShortcutCommandParser --> AddressBookParser : a
deactivate AddShortcutCommandParser
'Hidden arrow to position the destroy marker below the end of the activation bar.
AddShortcutCommandParser -[hidden]-> AddressBookParser
destroy AddShortcutCommandParser

AddressBookParser --> LogicManager : a
deactivate AddressBookParser

LogicManager -> AddShortcutCommand : execute()
activate AddShortcutCommand

AddShortcutCommand -> Model : registerShortcut\n(del, delete)
activate Model

Model -> ShortcutSettings : registerShortcut\n(del, delete)
activate ShortcutSettings

ShortcutSettings --> Model
deactivate ShortcutSettings

Model --> AddShortcutCommand
deactivate Model

create CommandResult
AddShortcutCommand -> CommandResult
activate CommandResult

CommandResult --> AddShortcutCommand
deactivate CommandResult

AddShortcutCommand --> LogicManager : result
deactivate AddShortcutCommand

[<--LogicManager
deactivate LogicManager
@enduml
1 change: 0 additions & 1 deletion docs/diagrams/BetterModelClassDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ Person -up-> "*" Tag
Person *--> Name
Person *--> Phone
Person *--> Email
Person *--> Address
@enduml
6 changes: 3 additions & 3 deletions docs/diagrams/CommitActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ start
'Since the beta syntax does not support placing the condition outside the
'diamond we place it as the true branch instead.

if () then ([command commits AddressBook])
if () then ([command commits ModelManager])
:Purge redundant states;
:Save AddressBook to
addressBookStateList;
:Save ModelManager to
ModelManagerStateList;
else ([else])
endif
stop
Expand Down
21 changes: 21 additions & 0 deletions docs/diagrams/DeleteShortcutActivityDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@startuml
skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 13
start
:User requests to remove shortcuts;

'Since the beta syntax does not support placing the condition outside the
'diamond we place it as the true branch instead.
if () then ([Request parsed successfully])
if () then ([Shortcuts are mapped])
:Remove shortcuts;
else ([else])
:Notify user shortcut does not exist;
endif
else ([else])
:Show error and usage message;
endif

stop
@enduml
78 changes: 78 additions & 0 deletions docs/diagrams/FindCommandSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@startuml
!include style.puml

box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
participant ":AddressBookParser" as AddressBookParser LOGIC_COLOR
participant ":FindCommandParser" as FindCommandParser LOGIC_COLOR
participant "m:FindPredicateMap" as FindPredicateMap LOGIC_COLOR
participant "f:FindCommand" as FindCommand LOGIC_COLOR
participant ":CommandResult" as CommandResult LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
participant ":Model" as Model MODEL_COLOR
end box


[-> LogicManager : execute("find -pa n/Tim m/Anaemia")
activate LogicManager

LogicManager -> AddressBookParser : parseCommand("find -pa n/Tim m/Anaemia")
activate AddressBookParser

create FindCommandParser
AddressBookParser -> FindCommandParser
activate FindCommandParser

FindCommandParser --> AddressBookParser
deactivate FindCommandParser

AddressBookParser -> FindCommandParser : parse("n/Tim m/Anaemia")
activate FindCommandParser

create FindPredicateMap
FindCommandParser -> FindPredicateMap
activate FindPredicateMap
FindPredicateMap --> FindCommandParser : m
deactivate FindPredicateMap

create FindCommand
FindCommandParser -> FindCommand : FindCommand(m, PersonType.PATIENT)
activate FindCommand

FindCommand --> FindCommandParser : f
deactivate FindCommand

FindCommandParser --> AddressBookParser : f
deactivate FindCommandParser
'Hidden arrow to position the destroy marker below the end of the activation bar.
FindCommandParser -[hidden]-> AddressBookParser
destroy FindCommandParser

AddressBookParser --> LogicManager : f
deactivate AddressBookParser

LogicManager -> FindCommand : execute()
activate FindCommand

FindCommand -> Model : updateFilteredPersonList(predicate)
activate Model
Model --> FindCommand
deactivate Model

create CommandResult
FindCommand -> CommandResult
activate CommandResult
CommandResult --> FindCommand
deactivate CommandResult

FindCommand --> LogicManager
deactivate FindCommand

[<-- LogicManager
deactivate LogicManager


deactivate LogicManager
@enduml
27 changes: 27 additions & 0 deletions docs/diagrams/FindPredicateMapExample.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@startuml
!include style.puml
skinparam ClassFontColor #000000
skinparam ClassBorderColor #000000
skinparam ClassBackgroundColor #FFFFAA

title FindPredicateMap Example

hide members

object "<u>:FindPredicateMap</u>" as FindPredicateMap #FFFFAA

object "<u>p0:NameContainsKeywordPredicate</u>" as p1 {
keywords = {"Tim"}
}

object "<u>p1:MedHistoryContainsKeywordsPredicate</u>" as p0 {
keywords = {"Anaemia"}
}

show p0 member
show p1 member

FindPredicateMap-down->p0
FindPredicateMap-down->p1

@end
9 changes: 4 additions & 5 deletions docs/diagrams/ModelClassDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ Class UserPrefs

Class UniquePersonList
Class Person
Class Address
Class Email
Class Name
Class Phone
Class Tag
Class ThemeProperty
Class CommandStringStash

Class I #FFFFFF
}
Expand All @@ -33,22 +34,20 @@ Model .right.> ReadOnlyUserPrefs
Model .left.> ReadOnlyAddressBook
ModelManager -left-> "1" AddressBook
ModelManager -right-> "1" UserPrefs
ModelManager -right-> "1" ThemeProperty
ModelManager -left-> "1" CommandStringStash
UserPrefs .up.|> ReadOnlyUserPrefs

AddressBook *--> "1" UniquePersonList
UniquePersonList --> "~* all" Person
Person *--> Name
Person *--> Phone
Person *--> Email
Person *--> Address
Person *--> "*" Tag

Person -[hidden]up--> I
UniquePersonList -[hidden]right-> I

Name -[hidden]right-> Phone
Phone -[hidden]right-> Address
Address -[hidden]right-> Email

ModelManager --> "~* filtered" Person
@enduml
32 changes: 32 additions & 0 deletions docs/diagrams/RecallCommandSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@startuml
!include style.puml
skinparam ArrowFontStyle plain

box Logic LOGIC_COLOR_T1
participant ":LogicManager" as LogicManager LOGIC_COLOR
end box

box Model MODEL_COLOR_T1
participant ":Model" as Model MODEL_COLOR
participant ":CommandStringStash" as CommandStringStash MODEL_COLOR
end box
[-> LogicManager : getPrevCommandString(input)
activate LogicManager

LogicManager -> Model : getPrevCommandString(input)
activate Model

Model -> CommandStringStash : getPrevCommandString(input)
activate CommandStringStash

CommandStringStash --> Model : commandString

deactivate CommandStringStash

Model --> LogicManager : commandString

deactivate Model

[<--LogicManager : commandString
deactivate LogicManager
@enduml
15 changes: 15 additions & 0 deletions docs/diagrams/RecallStep1.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@startuml
!include style.puml
skinparam ClassFontColor #000000
skinparam ClassBorderColor #000000
skinparam ClassBackgroundColor #FFFFAA

title Initial state

show members

object "<u>:CommandStringStash</u>" as CommandStringStash #FFFFAA {
currentCmdIndex = 0
}

@end
Loading