Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2113T-F14-2] Fitbot #50

Open
wants to merge 887 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
887 commits
Select commit Hold shift + click to select a range
31e1800
implement isValid method in Food and Exercise
Oct 30, 2021
69dee5c
fix spacing for javaDoc in itemlist line 172 to pass check
Oct 30, 2021
53539ec
Add ProfileUtils class to make profile more OOP
weidak Oct 30, 2021
89486f9
Add enum class for activity levels
weidak Oct 30, 2021
e453c91
Merge pull request #177 from tryyang2001/Branch-V2.1
weidak Oct 30, 2021
5ce9c77
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Oct 30, 2021
22f58ab
Minor change to accessibility in code
weidak Oct 30, 2021
ceb34cd
Merge pull request #178 from weidak/v2.1
tlyi Oct 30, 2021
5fa4f2a
update puml diagram add Interface to the class diagram
Oct 30, 2021
79c4e6a
add explanation for why the lifeline does not end even though the obj…
Oct 30, 2021
10c1926
update input code example in Add Exercise command
Oct 30, 2021
c9cb629
Refactor StartState, modify help command, removed \t to avoid confusi…
tttyyzzz Oct 30, 2021
daaa5ac
Undo changes that cause test to fail
tttyyzzz Oct 30, 2021
602e6f5
Add diagrams for StorageManager and subsequent references
weidak Oct 30, 2021
19bbabe
Update developer guide for loading data
weidak Oct 31, 2021
42b7cd9
Remove duplicate picture
weidak Oct 31, 2021
bbe8921
Remove outdated test case for foodlist
weidak Oct 31, 2021
6518b30
Add javadoc for classes
tttyyzzz Nov 1, 2021
b7e431e
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 1, 2021
ddf4a04
delete outdated junit test in FoodListTest
Nov 1, 2021
4e15b80
Merge pull request #183 from tryyang2001/Branch-V2.1
tryyang2001 Nov 1, 2021
374dbf5
Merge branch 'master' into v2.1
tryyang2001 Nov 1, 2021
aaec88b
Merge branch 'master' into brach-refactor-startstate
tttyyzzz Nov 1, 2021
ed846e9
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 1, 2021
340faeb
Merge branch 'v2.1' of https://github.com/weidak/tp into v2.1
weidak Nov 1, 2021
089f97c
Merge branch 'master' into v2.1
tlyi Nov 1, 2021
13d3455
Merge pull request #203 from tttyyzzz/brach-refactor-startstate
weidak Nov 1, 2021
0b1fb52
Merge pull request #208 from weidak/v2.1
weidak Nov 2, 2021
5be141a
Merge commit '0b1fb52c40754a166f48d47632db82fcf219e00b' into v2.1
tlyi Nov 2, 2021
7d0c168
Set new limits for profile attributes and loading of storage
weidak Nov 2, 2021
76fc418
Set more limits of profile and storage
weidak Nov 2, 2021
341d346
Small updates to docs
weidak Nov 2, 2021
1f29b09
constraint on upcoming exercises
xingjie99 Nov 2, 2021
d6fe88e
UG update
xingjie99 Nov 2, 2021
2e959c0
indentation
xingjie99 Nov 2, 2021
8cf14d9
indentation
xingjie99 Nov 2, 2021
225ff35
Clean up codes in storage and decoders to initialise before reaching …
weidak Nov 2, 2021
9e5943d
prevent future date input for adding food item
Nov 2, 2021
775e055
Merge pull request #212 from weidak/v2.1
weidak Nov 2, 2021
3fba054
implement checking for day field to prevent inputs like 31-11-2021, 3…
Nov 2, 2021
b185f73
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 2, 2021
aa46552
improve code readability in Food
Nov 2, 2021
b610085
Merge pull request #213 from xingjie99/V2.1
tlyi Nov 2, 2021
8a4d051
Merge pull request #214 from tryyang2001/Branch-V2.1
tlyi Nov 2, 2021
ded5d9a
Refactor ParserUtil methods to reduce code duplication
tlyi Nov 2, 2021
1c850fc
Add parser support for deleting multiple indexes (for ebank, fbank, u…
tlyi Nov 2, 2021
c5817db
Minor formatting changes
tlyi Nov 2, 2021
0baed5b
New feature -- users are able to exit while creating or repairing pro…
tttyyzzz Nov 3, 2021
13d9b1b
Merge pull request #215 from tlyi/v2.1
tlyi Nov 3, 2021
3e4a2f8
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 3, 2021
344f467
pass gradle check
tttyyzzz Nov 3, 2021
61bb17d
Change \n to LS, reduce repeated code
tttyyzzz Nov 4, 2021
d81b858
edited the message for deleting of multiple items at once
xingjie99 Nov 4, 2021
a883860
rename incorrect naming of class diagram
tttyyzzz Nov 4, 2021
08f0433
Add create profile to developer guide
tttyyzzz Nov 4, 2021
7f17654
Add in design consideration for create profile.
tttyyzzz Nov 4, 2021
0f4457c
Reduce magic numbers
tttyyzzz Nov 4, 2021
71564a5
Remove more magic number.
tttyyzzz Nov 4, 2021
173c940
Modify Userguide with by letting user know the presence of bye comman…
tttyyzzz Nov 4, 2021
e292dbd
Merge pull request #217 from xingjie99/editMessages
tlyi Nov 4, 2021
5ec6e3d
Add some Junit tests for parsing, to add for EditCommandParser next
tlyi Nov 4, 2021
70a4bea
Merge branch 'master' into v2.1
tlyi Nov 4, 2021
02e0f51
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp
tlyi Nov 4, 2021
997aa98
Merge branch 'master' into v2.1
tlyi Nov 4, 2021
a04febc
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 4, 2021
8ddf1d3
Merge pull request #216 from tttyyzzz/branch-v2.1
tryyang2001 Nov 4, 2021
9ddee1c
updated deleting multiple items
xingjie99 Nov 4, 2021
4225949
pass gradle
xingjie99 Nov 4, 2021
1c1762c
set upper bound for food and exercise calorie
Nov 4, 2021
f775baa
Fix profile bug
tlyi Nov 4, 2021
518e53c
Merge pull request #218 from xingjie99/editMessages
tlyi Nov 4, 2021
5dddeb1
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp
tlyi Nov 4, 2021
aad84e1
Merge branch 'v2.1'
tlyi Nov 4, 2021
3f9c7d7
fix bug in isWithinSevenDay method
Nov 4, 2021
b6e4765
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 4, 2021
0d0634d
check calorie value for all add and edit commands
Nov 4, 2021
b5fb38c
Standardise formatting
tlyi Nov 4, 2021
a2a8b1d
Merge pull request #220 from tryyang2001/Branch-V2.1
tryyang2001 Nov 4, 2021
51f2bc5
Resolve int overflow and storage exceptions
tlyi Nov 4, 2021
1b540b7
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp
tlyi Nov 4, 2021
7f796f5
Add more lines
weidak Nov 4, 2021
04f4159
PPP first draft
xingjie99 Nov 4, 2021
7d073cd
commit
xingjie99 Nov 4, 2021
a816ba9
Fix minor formatting errors
tlyi Nov 4, 2021
27c8ee8
Add PPP draft 0
tttyyzzz Nov 4, 2021
3eb62e7
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 4, 2021
f91e417
Checkstyle formatting
tlyi Nov 4, 2021
a37b414
create PPP draft
Nov 4, 2021
19ee2f2
Merge pull request #222 from tttyyzzz/branch-v2.1
tlyi Nov 4, 2021
653c088
Merge pull request #221 from xingjie99/PPP
tlyi Nov 4, 2021
8a2051c
Merge pull request #223 from tryyang2001/Branch-V2.1
tlyi Nov 4, 2021
d4a642c
Update AboutUs links
tlyi Nov 4, 2021
c540d59
Merge pull request #224 from tlyi/v2.1-clean-up
tlyi Nov 4, 2021
f7601c2
Format developers guide create profile section
tttyyzzz Nov 4, 2021
08ec947
Format developers guide
tttyyzzz Nov 4, 2021
019ca19
Merge pull request #225 from tttyyzzz/branch-v2.1
tttyyzzz Nov 4, 2021
1fb20d6
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 4, 2021
b930fa4
Fix storage error handling
weidak Nov 4, 2021
5c5f26b
Update documentation for PPP and slight changes to DG
weidak Nov 4, 2021
66e760c
Minor formatting issues
weidak Nov 4, 2021
6178de2
Merge pull request #226 from weidak/v2.1
weidak Nov 5, 2021
126727c
Remove redundant error in catch block
weidak Nov 5, 2021
765b72c
added javadoc
xingjie99 Nov 5, 2021
cf6a42e
edit javadoc
xingjie99 Nov 5, 2021
c7f566e
Merge pull request #227 from xingjie99/addJavaDoc
xingjie99 Nov 5, 2021
c409f16
Merge branch 'master' into v2.1-clean-up
tlyi Nov 5, 2021
a8cd74b
Modify developers guide
tttyyzzz Nov 5, 2021
52087d8
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 5, 2021
cb1ae48
Include basic info for PPP
tttyyzzz Nov 5, 2021
961dac4
Merge pull request #228 from tttyyzzz/branch-v2.1
weidak Nov 6, 2021
61acbd6
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 6, 2021
5d84386
update PPP, DG and UG
Nov 6, 2021
9bd29a5
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 6, 2021
0bab786
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 6, 2021
0726ff8
Refactor Parser code so that every type of item is handled by one method
tlyi Nov 6, 2021
5c95904
Merge branch 'master' into v2.1-clean-up
tlyi Nov 6, 2021
8669757
Edit PPP and touch up diagrams
weidak Nov 6, 2021
9b952a4
Minor changes to statements in dg
weidak Nov 6, 2021
0ab768f
update ppp, delet less important glossary notes, fix incorrect output…
Nov 7, 2021
877567c
update UG output examples for Recording Food and Recording Exercise
Nov 7, 2021
883a81f
Add instructions for manual testing to developer guide
weidak Nov 7, 2021
9cc0a0f
Update instructions for manual testing for Food Bank
tlyi Nov 7, 2021
331efb8
PPP
xingjie99 Nov 7, 2021
7860c20
UG edits
xingjie99 Nov 7, 2021
01573ff
Merge pull request #229 from weidak/v2.1
tlyi Nov 7, 2021
65d9327
Merge branch 'master' into Branch-V2.1
tlyi Nov 7, 2021
544e24b
Merge pull request #232 from xingjie99/version2.1
tlyi Nov 7, 2021
048515d
Merge branch 'master' into Branch-V2.1
tlyi Nov 7, 2021
e42886e
Merge pull request #231 from tryyang2001/Branch-V2.1
tlyi Nov 7, 2021
d297030
Review and standardise UG
tlyi Nov 7, 2021
a5df4c6
Wrong test case
tlyi Nov 7, 2021
12b302b
Merge pull request #230 from tlyi/v2.1-clean-up
tryyang2001 Nov 7, 2021
6899447
restrict the date range to 7 days only (previously was 8)
Nov 7, 2021
2ce7b36
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 7, 2021
7f69d28
Commit current progress to merge from master
tttyyzzz Nov 7, 2021
fd86bf3
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 7, 2021
2a087e3
DG review
tlyi Nov 7, 2021
44e9998
Merge pull request #233 from tryyang2001/Branch-V2.1
tlyi Nov 7, 2021
89862d4
Merge branch 'master' into v2.1-clean-up
tlyi Nov 7, 2021
3b4a664
checkstyle error
tlyi Nov 7, 2021
1818af9
Merge pull request #234 from tlyi/v2.1-clean-up
tryyang2001 Nov 7, 2021
88b7a3f
update puml diagrams
Nov 7, 2021
1dea665
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 7, 2021
4588d63
Commit to merge branch
tttyyzzz Nov 7, 2021
b494d3b
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 7, 2021
835ae2a
Perform test on Ui and Subclass of AttributeCreator.
tttyyzzz Nov 7, 2021
c3dde1d
Update implementations
weidak Nov 7, 2021
633ada8
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 7, 2021
7436cde
Solidify test and logger
tttyyzzz Nov 7, 2021
8082643
format message
xingjie99 Nov 7, 2021
7134211
edits to UG
xingjie99 Nov 7, 2021
3b9023e
modify DG and PPP
tttyyzzz Nov 8, 2021
4a7f4b8
Pass gradle check
tttyyzzz Nov 8, 2021
b773a74
Changes to UG
xingjie99 Nov 8, 2021
bf2416d
Add more sequence diagrams
weidak Nov 8, 2021
f22a516
Remove extra images
weidak Nov 8, 2021
96f5ccb
Add formatting
weidak Nov 8, 2021
786cbf7
Minor format
weidak Nov 8, 2021
1729b8c
Fix DG
weidak Nov 8, 2021
392fb63
Add more user stories.
tttyyzzz Nov 8, 2021
18159f2
Modify Ui sequence diagram and DG
tttyyzzz Nov 8, 2021
369300e
Checkstyle errors
tlyi Nov 8, 2021
bdb0883
Merge commit '1818af948e74f28aef076379a84734e32c547d06' into v2.1-cle…
tlyi Nov 8, 2021
daf422f
update DG diagram and some explanations, change enum to all CAPS, upd…
Nov 8, 2021
483f7a8
manual testing for exercise items
xingjie99 Nov 8, 2021
72085e3
delete two old assertions
xingjie99 Nov 8, 2021
8c44379
Update class diagrams
weidak Nov 8, 2021
6e83a5b
Merge pull request #235 from tttyyzzz/branch-v2.1
weidak Nov 8, 2021
680b8fc
Merge pull request #236 from tlyi/v2.1-clean-up
weidak Nov 8, 2021
fff176a
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 8, 2021
76c3bc7
update architecture diagram, add description for State component
Nov 8, 2021
086438a
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 8, 2021
261b1ab
manual testing for DG
xingjie99 Nov 8, 2021
90ae894
Update old dg
weidak Nov 8, 2021
b7ec610
Merge pull request #237 from xingjie99/FinalV2.1
weidak Nov 8, 2021
ed5e57b
Minor fix
weidak Nov 8, 2021
f3200a7
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 8, 2021
d69b901
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 8, 2021
1739170
Add manual testing
weidak Nov 8, 2021
68e65f1
update description for AddFoodItem seq diagram
Nov 8, 2021
bd8ebaf
Minor fixes, pass gradle
weidak Nov 8, 2021
f180e24
Minor update to dg format
weidak Nov 8, 2021
c692a8e
Merge pull request #239 from tryyang2001/Branch-V2.1
weidak Nov 8, 2021
b96ddf9
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 8, 2021
191eee3
Merge pull request #238 from weidak/v2.1
xingjie99 Nov 8, 2021
29e3f39
final edits to PPP UG DG
xingjie99 Nov 8, 2021
fde2f47
Update UserGuide.md
xingjie99 Nov 8, 2021
641d84b
added photo
xingjie99 Nov 8, 2021
22cc3d9
adjust image size, make header bold
Nov 8, 2021
066d463
update picture
xingjie99 Nov 8, 2021
efbabd1
Final DG and PPP updates
tlyi Nov 8, 2021
67cbcf4
Resolve merge conflicts in DG
tlyi Nov 8, 2021
98af16c
Update picture in AboutUs
tlyi Nov 8, 2021
50de394
Add PR link to PPP
tlyi Nov 8, 2021
38cdcfd
Merge pull request #240 from xingjie99/finalEdits
tlyi Nov 8, 2021
587dfc1
Merge pull request #241 from tlyi/v2.1-clean-up
tlyi Nov 8, 2021
59284f3
Merge remote-tracking branch 'upstream/master' into branch-v2.1
tttyyzzz Nov 8, 2021
1e089ad
update aboutus
Nov 8, 2021
b497914
Add data limits
weidak Nov 8, 2021
760faf1
Merge branch 'master' into v2.1
weidak Nov 8, 2021
53c9765
Merge pull request #243 from weidak/v2.1
tlyi Nov 8, 2021
472c38a
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 8, 2021
cd52deb
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 8, 2021
05c8134
move Data Limits to section 6
Nov 8, 2021
db4288b
Merge pull request #242 from tttyyzzz/branch-v2.1
tryyang2001 Nov 8, 2021
ba94445
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
Nov 8, 2021
8bbf569
update AboutUs
Nov 8, 2021
bf72310
fix typo
Nov 8, 2021
46237f8
fix AboutUs
Nov 8, 2021
1044fcd
Merge pull request #244 from tryyang2001/Branch-V2.1
tryyang2001 Nov 8, 2021
3d4ae18
Merge branch 'master' into v2.1-clean-up
tlyi Nov 8, 2021
ef7f4f6
modify format
tttyyzzz Nov 8, 2021
10b75c3
Update ppp
weidak Nov 8, 2021
e2ca646
Merge branch 'master' into branch-v2.1
tttyyzzz Nov 8, 2021
ad5d154
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-F14-2/tp…
weidak Nov 8, 2021
028aeed
Make amendments to user stories. Removed fullstops
tttyyzzz Nov 8, 2021
9aafc90
reformat PPP
tttyyzzz Nov 8, 2021
3f2a64b
Update ppp even more
weidak Nov 8, 2021
287daf7
fix typo and formatting issue in DG
Nov 8, 2021
66a59e1
Update UG and fix code for release
tlyi Nov 8, 2021
2a5a22b
Merge pull request #245 from tttyyzzz/branch-v2.1
weidak Nov 8, 2021
94f696a
Merge pull request #246 from tryyang2001/Branch-V2.1
weidak Nov 8, 2021
7004993
Merge pull request #248 from weidak/v2.1
tryyang2001 Nov 8, 2021
c421f08
Update test cases
tlyi Nov 8, 2021
c3fa590
Fix PPP
weidak Nov 8, 2021
93163d3
Add one line
weidak Nov 8, 2021
5cd815f
Merge pull request #249 from weidak/v2.1
weidak Nov 8, 2021
06eb599
Merge pull request #247 from tlyi/v2.1-clean-up
xingjie99 Nov 8, 2021
6ca716f
shorten PPP
Nov 8, 2021
d743176
Merge pull request #250 from tryyang2001/Branch-V2.1
tlyi Nov 8, 2021
9ec4601
Update DeveloperGuide.md
tlyi Nov 8, 2021
0732780
Update DeveloperGuide.md
tlyi Nov 8, 2021
3262e52
Update UserGuide.md
tlyi Nov 8, 2021
5480011
Update UserGuide.md
tlyi Nov 8, 2021
e1fb27c
format example in UG
xingjie99 Nov 8, 2021
34fc6d0
Merge pull request #251 from xingjie99/UGExamplesFormat
tryyang2001 Nov 8, 2021
3615be6
second update to ug
xingjie99 Nov 8, 2021
065cb89
Merge pull request #252 from xingjie99/UGExamplesFormat
weidak Nov 8, 2021
60f11dd
Update diagrams
weidak Nov 8, 2021
eb1c491
Modify diagrams
weidak Nov 8, 2021
93bc837
Update DeveloperGuide.md
tlyi Nov 8, 2021
fdd2e4e
Change diagrams colour
tlyi Nov 8, 2021
160ef6a
Merge pull request #253 from weidak/v2.1
weidak Nov 8, 2021
6bc99b0
Merge pull request #254 from tlyi/v2.1-clean-up
weidak Nov 8, 2021
68d0603
Update UserGuide.md
tlyi Nov 11, 2021
9d890ae
Update UserGuide.md
tlyi Nov 11, 2021
4ce29a7
Update UserGuide.md
tlyi Nov 11, 2021
2d9907e
add default calorieGoal if calorieGoal is not initialised
tttyyzzz Dec 3, 2021
2602202
fix StatisticsTest
tttyyzzz Dec 3, 2021
9a2f637
Merge pull request #255 from tttyyzzz/post
tttyyzzz Dec 4, 2021
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ bin/

/text-ui-test/ACTUAL.txt
text-ui-test/EXPECTED-UNIX.TXT

#User data file
/data/
/text-ui-test/data/

3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test {
}

application {
mainClassName = "seedu.duke.Duke"
mainClassName = "seedu.duke.Main"
}

shadowJar {
Expand All @@ -43,4 +43,5 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<property name="caseIndent" value="0"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="4"/>
<property name="arrayInitIndent" value="8"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
Expand Down
10 changes: 5 additions & 5 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Tay Weida | [Github](https://github.com/weidak) | [Portfolio](docs/team/tayweida.md)
![](https://via.placeholder.com/100.png?text=Photo) | Tan Xing Jie | [Github](https://github.com/xingjie99) | [Portfolio](docs/team/tanxingjie.md)
![](https://via.placeholder.com/100.png?text=Photo) | Tan Rui Yang | [Github](https://github.com/tryyang2001) | [Portfolio](docs/team/tanruiyang.md)
![](https://via.placeholder.com/100.png?text=Photo) | Toh Yi Zhi | [Github](https://github.com/tttyyzzz/tp) | [Portfolio](docs/team/noidea.md)
![](https://via.placeholder.com/100.png?text=Photo) | Tan Le Yi | [Github](https://github.com/tlyi) | [Portfolio](docs/team/johndoe.md)
340 changes: 331 additions & 9 deletions docs/DeveloperGuide.md

Large diffs are not rendered by default.

916 changes: 893 additions & 23 deletions docs/UserGuide.md

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title: "Fitbot"
theme: minima

header_pages:
- UserGuide.md
- DeveloperGuide.md
- AboutUs.md

repository: "AY2122S1-CS2113T-F14-2/tp"

plugins:
- jemoji


54 changes: 54 additions & 0 deletions docs/diagrams/AddFoodItemSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@startuml
'https://plantuml.com/sequence-diagram

!include Style.puml
hide footbox

participant "command:AddFoodCommand" As AddFoodCommand LOGIC_COLOUR
participant "foodBank:FoodBank" As FoodBank DATA_COLOUR

activate AddFoodCommand LOGIC_COLOUR
?->AddFoodCommand :execute()

alt isCalorieFromFoodBank
AddFoodCommand -> FoodBank : findCalorie(description)
activate FoodBank DATA_COLOUR
FoodBank --> AddFoodCommand : calories
deactivate FoodBank
create "food" As Food1 DATA_COLOUR
AddFoodCommand -> Food1 ** : new Food(description,calories,dateTime)
activate Food1 DATA_COLOUR
Food1 -> Food1 ++ DATA_COLOUR: setTimePeriod (dateTime)
Food1 --> Food1 --
Food1 --> AddFoodCommand : food
deactivate Food1
else
create "food" As Food2 DATA_COLOUR
AddFoodCommand -> Food2 ** : new Food(description,calories,dateTime)
activate Food2 DATA_COLOUR
Food2 -> Food2 ++ DATA_COLOUR : setTimePeriod (dateTime)
Food2 --> Food2 --
Food2 --> AddFoodCommand : food
deactivate Food2
end

participant "filteredFoodList:FoodList" As FoodList DATA_COLOUR
participant "commandResult:CommandResult" As CommandResult LOGIC_COLOUR
AddFoodCommand -> FoodList : \t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddItem(food)
activate FoodList DATA_COLOUR
FoodList -> FoodList ++ DATA_COLOUR: sortList()
FoodList --> FoodList --
FoodList --> AddFoodCommand
deactivate FoodList
AddFoodCommand -> CommandResult **: \t\t\t\t\t\t\t\t\tnew CommandResult(String.format(MESSAGE_SUCCESS,food))
activate CommandResult LOGIC_COLOUR
CommandResult --> AddFoodCommand
deactivate CommandResult

?<-- AddFoodCommand : commandResult\t
deactivate AddFoodCommand
destroy Food1
destroy Food2
destroy CommandResult
destroy AddFoodCommand
@enduml
44 changes: 44 additions & 0 deletions docs/diagrams/AddFutureExerciseSequenceDaigram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@startuml
'https://plantuml.com/sequence-diagram

!include Style.puml
hide footbox

participant "command:AddFutureExerciseCommand" As AddFutureExerciseCommand LOGIC_COLOUR
participant "exerciseBank:ItemBank" As ItemBank DATA_COLOUR

activate AddFutureExerciseCommand LOGIC_COLOUR
?->AddFutureExerciseCommand :execute()

opt isCalorieFromBank
AddFutureExerciseCommand -> ItemBank : getCaloriesOfItemWithMatchingName(description)
activate ItemBank DATA_COLOUR
ItemBank --> AddFutureExerciseCommand : \t\t\t\tcalories
deactivate ItemBank
end
create "Exercise" As Exercise DATA_COLOUR
AddFutureExerciseCommand -> Exercise ** : \t\t\t\tnew Exercise(description,calories,date)
activate Exercise DATA_COLOUR
Exercise --> AddFutureExerciseCommand : \t\t\t\t\t\t\texercise
deactivate Exercise


participant "futureExerciseItems:FutureExerciseList" As FutureExerciseItems DATA_COLOUR
participant "commandResult:CommandResult" As CommandResult LOGIC_COLOUR
AddFutureExerciseCommand -> FutureExerciseItems : \t\t\t\t\t\t\t\t\t\taddItem(exercise)
activate FutureExerciseItems DATA_COLOUR
FutureExerciseItems -> FutureExerciseItems ++ DATA_COLOUR: sortList()
FutureExerciseItems --> FutureExerciseItems --
FutureExerciseItems --> AddFutureExerciseCommand
deactivate FutureExerciseItems
AddFutureExerciseCommand -> CommandResult **: \t\t\t\t\t\t\tnew CommandResult(String.format(MESSAGE_SUCCESS,exercise))
activate CommandResult LOGIC_COLOUR
CommandResult --> AddFutureExerciseCommand
deactivate CommandResult

?<-- AddFutureExerciseCommand : commandResult
deactivate AddFutureExerciseCommand
destroy Exercise
destroy CommandResult
destroy AddFutureExerciseCommand
@enduml
51 changes: 51 additions & 0 deletions docs/diagrams/AddRecurringExerciseSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@startuml
'https://plantuml.com/sequence-diagram

!include Style.puml
hide footbox

participant "command:AddRecurringExerciseCommand" As AddRecurringExerciseCommand LOGIC_COLOUR
participant "exerciseBank:ItemBank" As ItemBank DATA_COLOUR

activate AddRecurringExerciseCommand LOGIC_COLOUR
?->AddRecurringExerciseCommand :execute()

opt isCalorieFromBank
AddRecurringExerciseCommand -> ItemBank : getCaloriesOfItemWithMatchingName(description)
activate ItemBank DATA_COLOUR
ItemBank --> AddRecurringExerciseCommand : \t\t\t\tcalories
deactivate ItemBank

end

participant "futureExerciseItems:FutureExerciseList" As FutureExerciseItems DATA_COLOUR
AddRecurringExerciseCommand -> FutureExerciseItems : \taddRecurringExercises(exercise, calories, startDate, endDate, dayOfTheWeek)
activate FutureExerciseItems DATA_COLOUR
loop matchesAllDayAndDate
create "Exercise" As Exercise DATA_COLOUR
FutureExerciseItems -> Exercise ** : \tnew Exercise(description,calories,date)
activate Exercise DATA_COLOUR
Exercise --> FutureExerciseItems : \t\t\texercise
deactivate Exercise
FutureExerciseItems -> FutureExerciseItems ++ DATA_COLOUR: addItem(exercise)
FutureExerciseItems --> FutureExerciseItems --
end
FutureExerciseItems -> FutureExerciseItems ++ DATA_COLOUR: sortList()
FutureExerciseItems --> FutureExerciseItems --
FutureExerciseItems --> AddRecurringExerciseCommand
deactivate FutureExerciseItems

participant "commandResult:CommandResult" As CommandResult LOGIC_COLOUR
AddRecurringExerciseCommand -> CommandResult **: \t\t\t\t\t\t\tnew CommandResult(MESSAGE_SUCCESS)
activate CommandResult LOGIC_COLOUR
CommandResult --> AddRecurringExerciseCommand
deactivate CommandResult



?<-- AddRecurringExerciseCommand : commandResult
deactivate AddRecurringExerciseCommand
destroy Exercise
destroy CommandResult
destroy AddRecurringExerciseCommand
@enduml
25 changes: 25 additions & 0 deletions docs/diagrams/Architecture.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@startuml
!include style.puml
hide footbox

participant ":Ui" as ui UI_COLOUR
-> ui ++ UI_COLOUR : addFoodItem
participant ":Main" as main MAIN_COLOUR
ui -> main ++MAIN_COLOUR
create ":Parser" as parser LOGIC_COLOUR
main -> parser ++ LOGIC_COLOUR : parseAddFoodItem()
participant ":Data" as itemlist DATA_COLOUR
parser -> itemlist ++ DATA_COLOUR : addFoodItem()
itemlist --> parser -- :
parser --> main --
main --> ui : add food item\n success
destroy parser
<--- ui -- : show add food item\n success message
participant ":Storage" as storage STORAGE_COLOUR
main -> storage ++ STORAGE_COLOUR: saveFoodList()
storage -> storage ++ STORAGE_COLOUR: save to file
storage --> storage --
storage --> main --
main --

@enduml
57 changes: 57 additions & 0 deletions docs/diagrams/ItemBankAndItemClassDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@startuml
'https://plantuml.com/class-diagram
!include Style.puml
hide circle
<<<<<<< HEAD
skinparam classAttributeIconSize 0
=======
hide methods
>>>>>>> 83092670751ea3ce3345837c07acdf21a2d26a5a

class ItemBank DATA_COLOUR
class "{abstract}\nItemList" as ItemList DATA_COLOUR
class FoodList DATA_COLOUR
class ExerciseList DATA_COLOUR
class FutureExerciseList DATA_COLOUR

ItemBank <|-down- ItemList
ItemList <|-down- FoodList
ItemList <|-down- ExerciseList
ExerciseList <|-down- FutureExerciseList

class "{abstract}\nItem" as Item DATA_COLOUR{
#name: String
#calories: int
}

class Food DATA_COLOUR {
#dateTime: LocalDateTime
}

class Exercise DATA_COLOUR {
#date: LocalDate
}

enum "<<enumeration>>\nTimePeriod" as TimePeriod DATA_COLOUR {
Morning,
Afternoon,
Evening,
Night
}

Item <|-down- Food
Item <|-down- Exercise
Item "*" <-left- ItemBank: internalItems
<<<<<<< HEAD
TimePeriod "1" <-- Food : timePeriod\n\n\n
=======
TimePeriod "1" <-- Food : timePeriod\n\n
>>>>>>> 83092670751ea3ce3345837c07acdf21a2d26a5a
Item <.. ItemList
Item <.. FoodList
Item <.. ExerciseList
Food <.. FoodList
Exercise <.. ExerciseList
Exercise <.. FutureExerciseList
note "Class methods are not shown for simplicity" as N1 DATA_COLOUR
@enduml
28 changes: 28 additions & 0 deletions docs/diagrams/LogicClassDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@startuml
'https://plantuml.com/class-diagram
!include Style.puml
hide circle
hide empty members
skinparam minclassWidth 120
skinparam Padding 5

class ParserManager LOGIC_COLOUR
class CommandResult LOGIC_COLOUR
class XYZCommand LOGIC_COLOUR
abstract class "{abstract}\nCommand" AS Command LOGIC_COLOUR

ParserManager ..> XYZCommand : > creates
XYZCommand --|> Command
Command .right.> CommandResult : > produces

class Data DATA_COLOUR
class Main MAIN_COLOUR

Main ..> ParserManager : > feeds user input
ParserManager ..> Command : > returns
Command --> Data : > modifies
Main ..> Command : > executes
Main ..> CommandResult : > retrieves


@enduml
58 changes: 58 additions & 0 deletions docs/diagrams/LogicSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@startuml
'https://plantuml.com/sequence-diagram
!include Style.puml
hide footbox
autoactivate on

participant ":Main" AS Main MAIN_COLOUR
participant ":ParserManager" AS ParserManager LOGIC_COLOUR
participant ":AddCommandParser" AS AddCommandParser LOGIC_COLOUR
participant "c:AddFoodCommand" AS AddFoodCommand LOGIC_COLOUR
participant "r:CommandResult" AS CommandResult LOGIC_COLOUR
participant "f:Food" AS Food DATA_COLOUR
participant ":FoodList" AS FoodList DATA_COLOUR
activate Main MAIN_COLOUR
create ParserManager
Main -> ParserManager LOGIC_COLOUR
return
Main -> ParserManager LOGIC_COLOUR : parseCommand ("add f/potato c/30")
ref over ParserManager
determine type
of command
end ref

create AddCommandParser
ParserManager -> AddCommandParser LOGIC_COLOUR
return
ParserManager -> AddCommandParser LOGIC_COLOUR : parse("f/...")

ref over AddCommandParser
parse required
parameters
for the command
end ref


create AddFoodCommand
AddCommandParser -> AddFoodCommand LOGIC_COLOUR : new AddFoodCommand("potato", ...)
return c
return c
return c
destroy AddCommandParser

Main -> AddFoodCommand LOGIC_COLOUR : setData(profile, exerciseItems, ...)
destroy ParserManager
return
Main -> AddFoodCommand LOGIC_COLOUR : execute()
create Food
AddFoodCommand -> Food DATA_COLOUR : new Food("potato", ...)
return f
AddFoodCommand -> FoodList DATA_COLOUR : add(f)
return
destroy Food
create CommandResult
AddFoodCommand -> CommandResult LOGIC_COLOUR
return r
return r
destroy CommandResult
@enduml
Loading