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

[CS2113-W14-4] Pharmacy Inventory & Logistics Ledger (PILL) #28

Open
wants to merge 490 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 162 commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
ec508d4
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 1, 2024
cb91ae9
Add execute method for UseItemCommand
yakultbottle Nov 1, 2024
de27a32
Update on UG
cxc0418 Nov 1, 2024
94ea60c
Update on UG
cxc0418 Nov 1, 2024
2529dd4
Update on UG
cxc0418 Nov 1, 2024
275f0f0
Update execute method to follow convention in other ItemCommands
yakultbottle Nov 1, 2024
b8b412d
Add test coverage for UseItemCommand
yakultbottle Nov 1, 2024
e2d1769
Correct checkstyle errors
yakultbottle Nov 1, 2024
6c52c01
Merge pull request #135 from yakultbottle/priorityRemoval
yakultbottle Nov 1, 2024
296c33d
Merge branch 'master' into master
cxc0418 Nov 2, 2024
728ee91
Resolve conflict
cxc0418 Nov 2, 2024
2f6c4af
Resolve conflict
cxc0418 Nov 2, 2024
0fa2805
resolve conflict
cxc0418 Nov 2, 2024
915755c
Merge pull request #134 from cxc0418/master
cxc0418 Nov 2, 2024
1e6ef05
Comments // Updated
philip1304 Nov 2, 2024
01ba8f6
TimestampIO // Implemented
philip1304 Nov 2, 2024
ca2de19
JUnit Tests // Updated
philip1304 Nov 2, 2024
44fbeab
TimestampIOTest // Implemented
philip1304 Nov 2, 2024
f1d0d4e
Indentation // Updated
philip1304 Nov 2, 2024
7df5087
Variable Declaration // Fixed
philip1304 Nov 2, 2024
2e9d923
TimestampIO & TimestampIOTest // Updated
philip1304 Nov 2, 2024
86755b8
no message
philip1304 Nov 2, 2024
38663b3
ASDFPLSPLSPLSPLSPLS
philip1304 Nov 2, 2024
ad491f7
Merge pull request #136 from philip1304/master
philip1304 Nov 2, 2024
b4b943f
Fix incorrect Item and ItemMap class diagrams
yakultbottle Nov 3, 2024
ae07743
Merge pull request #137 from yakultbottle/fixClassDiagrams
yakultbottle Nov 3, 2024
01fbecc
Update High Level Overview Diagram
yijiano Nov 4, 2024
497aeec
More documentation changes
yijiano Nov 4, 2024
84babb8
Add PPP
yijiano Nov 4, 2024
c032257
Add empty line at end of PPP
yijiano Nov 4, 2024
a906ccf
Fix format
yijiano Nov 4, 2024
097465c
Update AddItem Diagram
yijiano Nov 4, 2024
f3e694b
Merge pull request #139 from yijiano/fix/docs
yijiano Nov 4, 2024
58ad6fd
Fix PPP
yijiano Nov 5, 2024
40bd7d4
Merge pull request #140 from yijiano/fix/PPP
yijiano Nov 5, 2024
a73f031
Create PPP
cnivedit Nov 5, 2024
1aeafe8
Merge branch 'master' into ppp/cnivedit
cnivedit Nov 5, 2024
cf91040
Edit contribution list order based on review comment
cnivedit Nov 6, 2024
86ef249
Merge pull request #141 from cnivedit/ppp/cnivedit
cnivedit Nov 6, 2024
fe887d3
Create OrderCommand class
cnivedit Nov 6, 2024
88f9ed0
Create TransactionsCommand class
cnivedit Nov 6, 2024
5c0a7f9
Create ViewOrdersCommand class
cnivedit Nov 6, 2024
7c50fcc
Create FulfillCommand class
cnivedit Nov 6, 2024
6db14df
Create TransactionHistoryCommand class
cnivedit Nov 6, 2024
2517596
Instantiate TransactionManager
cnivedit Nov 6, 2024
33b2d96
Add exception message for transaction error
cnivedit Nov 6, 2024
6b9d8aa
Update data structures
cnivedit Nov 6, 2024
8049748
Fix wrong ItemMap instance passing
cnivedit Nov 6, 2024
089dd2c
Update exception messages
cnivedit Nov 6, 2024
2b98c82
Create method to list items
cnivedit Nov 6, 2024
13b3d1a
Edit to use Item and ItemMap
cnivedit Nov 6, 2024
b919316
Create methods to list orders and transactions
cnivedit Nov 6, 2024
35f526f
Integrate new commands
cnivedit Nov 6, 2024
427519e
Fix CI failing
cnivedit Nov 6, 2024
09cac40
Fix JavaDoc exceeding line count
cnivedit Nov 6, 2024
248bbe4
Fix incorrect JavaDoc line indentation
cnivedit Nov 6, 2024
ed61f22
Update indentation
cnivedit Nov 6, 2024
5554804
Remove deprecated test with regards to item map
cnivedit Nov 6, 2024
c7ec9c1
Update tests with latest changes
cnivedit Nov 6, 2024
24c40e2
Remove unused imports
cnivedit Nov 6, 2024
79e3c2b
Shorten JavaDoc based on review comment
cnivedit Nov 7, 2024
68759bf
Extract helper function based on review comment
cnivedit Nov 7, 2024
9e7e6ac
Fix line count and indentation
cnivedit Nov 7, 2024
75326dd
Merge pull request #142 from cnivedit/dev/order-transaction-management
cnivedit Nov 7, 2024
90c704c
Print order details upon creation
cnivedit Nov 7, 2024
7ed0789
Create getRawInput method
cnivedit Nov 7, 2024
d0b8812
Merge pull request #160 from cnivedit/bugfix/order-placed-message
cnivedit Nov 7, 2024
06792f7
Merge branch 'master' into bugfix/excessive-newlines
cnivedit Nov 7, 2024
581cfe4
Merge pull request #161 from cnivedit/bugfix/excessive-newlines
cnivedit Nov 7, 2024
2b4e72b
Add no transactions message
cnivedit Nov 7, 2024
aaf2402
Create Exceptions and Logging
yakultbottle Nov 7, 2024
0640b8f
Merge pull request #162 from cnivedit/bugfix/no-transactions-message
cnivedit Nov 7, 2024
fd05b3c
Remove redundant logging portion
yakultbottle Nov 7, 2024
889321b
Merge branch 'master' into DG
yakultbottle Nov 7, 2024
c7823e2
Merge pull request #164 from yakultbottle/DG
yakultbottle Nov 7, 2024
7d53553
Edit stock-check message
cnivedit Nov 7, 2024
8dfcd52
Fix line count
cnivedit Nov 7, 2024
f7005c7
Updated the toString method to ensure all price/cost values are prin…
cxc0418 Nov 7, 2024
2e3a2f9
Merge branch 'AY2425S1-CS2113-W14-4:master' into master
cxc0418 Nov 7, 2024
b5ff159
Update tests with new stock-check message
cnivedit Nov 7, 2024
98cec64
Merge pull request #167 from cnivedit/bugfix/stock-check-message
cnivedit Nov 7, 2024
9b9e244
Merge branch 'AY2425S1-CS2113-W14-4:master' into master
cxc0418 Nov 7, 2024
c0caabb
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 7, 2024
717215d
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 7, 2024
c8b2e4d
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 7, 2024
d40dab1
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 7, 2024
0ac0a29
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 7, 2024
5572ed4
Merge branch 'master' into master
cxc0418 Nov 7, 2024
f37d24e
Fix updated quantity bug
cnivedit Nov 7, 2024
53a74d2
Merge pull request #168 from cxc0418/master
cxc0418 Nov 7, 2024
c9db07d
Merge branch 'master' into bugfix/additem-message
cnivedit Nov 7, 2024
ac392f3
Merge pull request #169 from cnivedit/bugfix/additem-message
cnivedit Nov 7, 2024
97e8eab
Fix Help, UG
yijiano Nov 7, 2024
60363f4
Merge branch 'master' into fix/UG
yijiano Nov 7, 2024
ebc755f
Fix CI errors
yijiano Nov 7, 2024
d9e7535
Merge branch 'fix/UG' of https://github.com/yijiano/tp into fix/UG
yijiano Nov 7, 2024
d9ce948
Fix README.md
yijiano Nov 7, 2024
ae8a321
Fix HelpCommand test cases
yijiano Nov 7, 2024
85b63bc
Add newline to end of HelpCommandTest
yijiano Nov 7, 2024
ffd0662
Merge pull request #171 from yijiano/fix/UG
yijiano Nov 7, 2024
a006f37
Add Parser and Order
yakultbottle Nov 7, 2024
e2c4061
Add Parser and Order
yakultbottle Nov 7, 2024
2987e57
Merge branch 'master' into DG-Parser
yakultbottle Nov 7, 2024
05d3b00
Fix README.md and some website features
yijiano Nov 7, 2024
83d36fe
Merge pull request #172 from yakultbottle/DG-Parser
yakultbottle Nov 7, 2024
b05fc1d
Merge pull request #173 from yijiano/fix/AboutUs
yijiano Nov 7, 2024
41192ee
Closes issue 204, 201, 200, 197, 196, 192, 190, 181, 186, 180, 179, 1…
cxc0418 Nov 9, 2024
fbcd4e8
Closes issue 204, 201, 200, 197, 196, 192, 190, 181, 186, 180, 179, 1…
cxc0418 Nov 9, 2024
dcb6198
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 9, 2024
64e049f
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 9, 2024
19faa6d
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 9, 2024
e2e1e34
Fix inaccurate order command format
cnivedit Nov 9, 2024
ed1aa5c
Merge pull request #223 from cxc0418/master
cxc0418 Nov 9, 2024
c239321
Merge pull request #224 from cnivedit/bugfix/ug-ordercommand
cnivedit Nov 9, 2024
cf1a52f
Implemented visualizer class and commands for data visualization (pri…
cxc0418 Nov 10, 2024
cb5f096
Implemented visualizer class and commands for data visualization (pri…
cxc0418 Nov 10, 2024
ee03a58
Merge remote-tracking branch 'origin/master'
cxc0418 Nov 10, 2024
07f4ec6
Merge remote-tracking branch 'origin/master'
cxc0418 Nov 10, 2024
3c37e97
Merge branch 'master' of https://github.com/cxc0418/tp
cxc0418 Nov 10, 2024
5d4912b
more update on UG
cxc0418 Nov 11, 2024
d23996c
Merge pull request #227 from cxc0418/master
cxc0418 Nov 11, 2024
d519aa6
Separate AddItemCommand Sequence diagram
yakultbottle Nov 11, 2024
6d30b66
Update DG with new diagram
yakultbottle Nov 11, 2024
ce5e5d9
Merge branch 'master' into sequence-diagram-edit
yakultbottle Nov 11, 2024
8a0eba3
Merge pull request #229 from yakultbottle/sequence-diagram-edit
yakultbottle Nov 11, 2024
37838fb
Fix incorrect TreeSet instantiation
yakultbottle Nov 11, 2024
859195b
Update colours for better clarity
yakultbottle Nov 11, 2024
3e27fd7
Merge pull request #230 from yakultbottle/sequence-fix
yakultbottle Nov 11, 2024
f41156d
Fix #207
yijiano Nov 11, 2024
ceae0ea
Improve value proposition
yijiano Nov 11, 2024
3e27d8c
Add transaction commands to UG, add no special characters rule
yijiano Nov 11, 2024
c8010a6
Change storage data file type
yijiano Nov 11, 2024
4076a3d
Fix use, and edit descriptions
yijiano Nov 11, 2024
2d2a10d
Stopped trolling
yijiano Nov 11, 2024
4ab3286
Remove circular icons in class diagram
yakultbottle Nov 11, 2024
a3181c8
Update Parser section in DG
yakultbottle Nov 11, 2024
f648400
Update Glossary in DG
yakultbottle Nov 11, 2024
96ff187
Merge pull request #231 from yijiano/fix/UGAgain
yijiano Nov 11, 2024
f688dfc
Merge branch 'master' into command-sequence-diagrams
yakultbottle Nov 11, 2024
8e0debb
Fix add command case sensitivity
yijiano Nov 11, 2024
3ca088d
Add more terms to Glossary
yakultbottle Nov 11, 2024
904c248
Merge pull request #232 from yakultbottle/command-sequence-diagrams
yakultbottle Nov 11, 2024
1c021e5
Update README.md
yijiano Nov 11, 2024
2d6d2eb
Rearrange User Guide to put Notes on top
yakultbottle Nov 11, 2024
50e86ea
Update fulfill order to use UUID in place of index
cnivedit Nov 11, 2024
bd7aee0
Display message if no orders found when using view-orders command
cnivedit Nov 11, 2024
d084f09
Update UG to use order UUID
cnivedit Nov 11, 2024
7b8f1fb
Update help message for fulfill-order
cnivedit Nov 11, 2024
d090294
Merge branch 'master' into bugfix/noorder-message
cnivedit Nov 11, 2024
e99868e
Merge branch 'master' into bugfix/fulfillargs
cnivedit Nov 11, 2024
568340e
Merge pull request #236 from cnivedit/bugfix/noorder-message
cnivedit Nov 11, 2024
2e13abc
Merge pull request #235 from cnivedit/bugfix/fulfillargs
cnivedit Nov 11, 2024
aa35099
Spring cleaning of unused files
yakultbottle Nov 11, 2024
d17b4c9
Merge branch 'master' into user-guide
yakultbottle Nov 11, 2024
82f9255
Merge pull request #234 from yakultbottle/user-guide
yakultbottle Nov 11, 2024
8ba5717
Update help message for order command
cnivedit Nov 11, 2024
3a5cd9f
Merge branch 'master' into bugfix/order-help
cnivedit Nov 11, 2024
a83bc47
Merge pull request #237 from cnivedit/bugfix/order-help
cnivedit Nov 11, 2024
8a37ac8
Add a whole bunch of test cases
yijiano Nov 11, 2024
3918db5
Edit to use date range for transaction history
cnivedit Nov 11, 2024
186cfe9
Purge all unused imports
yijiano Nov 11, 2024
987a8ed
Merge branch 'master' into test/MoreTestCases
yijiano Nov 11, 2024
ac42cf2
Add notes to OrderCommand
yakultbottle Nov 11, 2024
1df3ae1
Clean post merge
yijiano Nov 11, 2024
9336b07
Merge branch 'test/MoreTestCases' of https://github.com/yijiano/tp in…
yijiano Nov 11, 2024
d75340f
Update tests
cnivedit Nov 11, 2024
dd2ffd3
Fix more test case issues
yijiano Nov 11, 2024
f25660c
Remove unused imports
cnivedit Nov 11, 2024
23788f5
Update PPP
yijiano Nov 11, 2024
748713c
Remove more unused dependencies
yijiano Nov 11, 2024
b1078f5
Merge pull request #238 from cnivedit/dev/transaction-history
cnivedit Nov 11, 2024
c2d98ba
Merge branch 'master' into test/MoreTestCases
yijiano Nov 11, 2024
932e0fd
Ressolve more test errors
yijiano Nov 11, 2024
adfa89b
Appreciate these CI errors
yijiano Nov 11, 2024
10e7c42
Add expiryDate field for createTransaction
yakultbottle Nov 11, 2024
8a04982
Update UG
yijiano Nov 11, 2024
b1b42f8
Fix Lower Case Type Fixing
yijiano Nov 11, 2024
f8618bd
Fix errors
yijiano Nov 11, 2024
dc78a3c
Merge pull request #233 from yijiano/test/MoreTestCases
yijiano Nov 11, 2024
4a64ae1
Merge branch 'master' into order-transaction-bugs
yakultbottle Nov 11, 2024
8e4e51a
Define expiryDate behaviour for dispense orders
yakultbottle Nov 11, 2024
6fb2a35
Delete extra method that came from nowhere
yakultbottle Nov 11, 2024
9cd0441
Merge pull request #240 from yakultbottle/order-transaction-bugs
yakultbottle Nov 11, 2024
657f95b
Elaborate on transactions and order
cnivedit Nov 11, 2024
e935957
Merge branch 'master' into devguide/transaction-management
cnivedit Nov 11, 2024
22e1b77
fix CSV loading
yakultbottle Nov 11, 2024
85f733b
Update sections, edit table of contents
cnivedit Nov 11, 2024
d764ea4
Merge branch 'devguide/transaction-management' of https://github.com/…
cnivedit Nov 11, 2024
c3c9954
Merge pull request #241 from cnivedit/devguide/transaction-management
cnivedit Nov 11, 2024
8646976
Updated JavaDoc & JUnit Tests
philip1304 Nov 11, 2024
e43ecee
Merge branch 'master' of https://github.com/philip1304/tp
philip1304 Nov 11, 2024
3ba69f8
Implement save to storage after fulfilling order
yakultbottle Nov 11, 2024
797d107
Merge branch 'master' into csv-fix
yakultbottle Nov 11, 2024
822c5a3
Fixes
philip1304 Nov 11, 2024
eb4b4da
Fixes
philip1304 Nov 11, 2024
0b672f6
Fixes
philip1304 Nov 11, 2024
f7e687f
Fixes
philip1304 Nov 11, 2024
b3f9d68
Merge pull request #243 from yakultbottle/csv-fix
yakultbottle Nov 11, 2024
af0cd0b
Update items section
cnivedit Nov 11, 2024
7b11361
Merge branch 'master' into devguide/items
cnivedit Nov 11, 2024
d648e53
Merge pull request #245 from cnivedit/devguide/items
cnivedit Nov 11, 2024
5c8424c
Update dependency and interface relationships
cnivedit Nov 11, 2024
c2f8eda
Merge branch 'master' into devguide/logger-componentdiagram
cnivedit Nov 11, 2024
f4759af
Merge pull request #246 from cnivedit/devguide/logger-componentdiagram
cnivedit Nov 11, 2024
0ab8fa1
Merge branch 'master' into master
philip1304 Nov 11, 2024
cfee981
Fixes
philip1304 Nov 11, 2024
ae5b421
Update PPP
cnivedit Nov 11, 2024
b008d46
PPP
philip1304 Nov 11, 2024
02ebc60
Merge branch 'master' of https://github.com/philip1304/tp
philip1304 Nov 11, 2024
f4d7ffc
Update PPP
yakultbottle Nov 11, 2024
4c01de2
Add new sections
cnivedit Nov 11, 2024
2270923
Merge pull request #247 from cnivedit/ppp/cnivedit-1
cnivedit Nov 11, 2024
add4b4a
Merge branch 'master' into final-ppp
yakultbottle Nov 11, 2024
aed460c
Merge pull request #248 from yakultbottle/final-ppp
yakultbottle Nov 11, 2024
0318392
Merge pull request #244 from philip1304/master
philip1304 Nov 11, 2024
5a35b8a
Update high level architecture diagram
cnivedit Nov 11, 2024
16ddf19
Update to include other util classes
cnivedit Nov 11, 2024
bbbc475
Fix reposense link
cnivedit Nov 11, 2024
c24b2c8
Merge pull request #251 from cnivedit/bugfix/ppp
cnivedit Nov 11, 2024
6c236fc
ppppppp
philip1304 Nov 11, 2024
e1b890c
Merge branch 'AY2425S1-CS2113-W14-4:master' into master
philip1304 Nov 11, 2024
63d2b0c
Fix formatting
cnivedit Nov 11, 2024
47ef899
Fix spacing
cnivedit Nov 11, 2024
79aaa6e
Merge branch 'master' into bugfix/ppp-formatting
cnivedit Nov 11, 2024
e7ad875
Update spacing
cnivedit Nov 11, 2024
37428d2
Merge pull request #252 from philip1304/master
philip1304 Nov 11, 2024
382d3b5
Merge pull request #253 from cnivedit/bugfix/ppp-formatting
cnivedit Nov 11, 2024
1da3636
Merge pull request #249 from cnivedit/devguide/overview
yijiano Nov 12, 2024
1cffcbf
Fix DG
yijiano Nov 12, 2024
bbdb21e
Fix UG, DG diagram
yijiano Nov 12, 2024
53ef016
Fix format
yijiano Nov 12, 2024
c6bc3b9
Merge pull request #255 from yijiano/fix/DG-UG
yijiano Nov 12, 2024
b021016
Fix UG formatting
yakultbottle Nov 12, 2024
987baf9
Merge pull request #256 from yakultbottle/master
yakultbottle Nov 12, 2024
8529d8c
UG and DG small fixes
yakultbottle Nov 12, 2024
26e3adb
Merge pull request #257 from yakultbottle/docs-triage
yakultbottle Nov 12, 2024
189b2f9
minor change to PPP
yakultbottle Nov 12, 2024
befa9e5
Merge pull request #258 from yakultbottle/final-PPP
yakultbottle Nov 12, 2024
646d95f
Update PPP
cnivedit Nov 12, 2024
2a87165
Merge branch 'master' into ppp/cnivedit-2
cnivedit Nov 12, 2024
d9a6765
Merge pull request #259 from cnivedit/ppp/cnivedit-2
cnivedit Nov 12, 2024
2fcd503
Add acknowledgement for XChart
yakultbottle Nov 12, 2024
edcdd92
Add page break and image widths
cnivedit Nov 12, 2024
f4c4083
Merge branch 'master' into ppp/cnivedit-3
cnivedit Nov 12, 2024
eabb078
Merge pull request #261 from cnivedit/ppp/cnivedit-3
cnivedit Nov 12, 2024
6535a0a
Hopefully fix visualize
yakultbottle Nov 12, 2024
24c0739
Merge branch 'master' into ack
yakultbottle Nov 12, 2024
d282bb9
common checkstyle L
yakultbottle Nov 12, 2024
333ca47
Merge pull request #260 from yakultbottle/ack
yakultbottle Nov 12, 2024
3bf9c1a
Update AboutUs.md
yijiano Nov 15, 2024
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ bin/

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

# Local data and log files
/data/
/log/

# Artifact manifest file
/META-INF/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Duke project template
# Pharmacy Inventory & Logistics Ledger (PILL)

This is a project template for a greenfield Java project. It's named after the Java mascot _Duke_. Given below are instructions on how to use it.

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

application {
mainClass.set("seedu.duke.Duke")
mainClass.set("seedu.pill.Pill")
}

shadowJar {
Expand All @@ -41,6 +41,7 @@ checkstyle {
toolVersion = '10.2'
}

run{
run {
standardInput = System.in
enableAssertions = true
}
15 changes: 8 additions & 7 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# About us

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)
Display | Name | Github Pofile | Portfolio
--------|:----:|:-------------:|:--------:

![](https://th.bing.com/th/id/OIP.4gUeSpMg2p-5Of2to-rb3gHaJl?rs=1&pid=ImgDetMain) | Benjamin Lim | [Github](https://github.com/yakultbottle) | [Portfolio](docs/team/yakultbottle.md)
![](https://carrotsandcake.com/wp-content/uploads/2022/07/Among-Us-Symbol.png) | Zhang Yijian | [Github](https://github.com/yijiano) | [Portfolio](docs/team/yijiano.md)
![](https://th.bing.com/th/id/OIP.GMzbuaCd00rCkkcGvd2GiQHaHa?rs=1&pid=ImgDetMain) | Nivedit | [Github](https://github.com/cnivedit) | [Portfolio](docs/team/cnivedit.md)
![](https://th.bing.com/th/id/OIP.uoFjfZw1zxgaKZq6Mn4uJQHaJr?rs=1&pid=ImgDetMain) | Xinchi | [Github](https://github.com/cxc0418) | [Portfolio](docs/team/cxc0418.md)
![](https://th.bing.com/th/id/OIP.FjosDChkMJNJSOVsiUSGlQHaJr?rs=1&pid=ImgDetMain) | Philip | [Github](https://github.com/philip1304) | [Portfolio](docs/team/philip1304.md)
55 changes: 55 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Developer Guide

## Table of Contents
- [Developer Guide](#developer-guide)
- [Table of Contents](#table-of-contents)
- [Acknowledgements](#acknowledgements)
- [Design \& Implementation](#design--implementation)
- [UI and I/O](#ui-and-io)
- [Commands](#commands)
- [Storage](#storage)
- [Item and ItemMap](#item-and-itemmap)
- [DateTime](#datetime)
- [Exceptions and Logging](#exceptions-and-logging)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these links supposed to be here? Should they be broken?

- [Product scope](#product-scope)
- [Target user profile](#target-user-profile)
- [Value proposition](#value-proposition)
- [User Stories](#user-stories)
- [Non-Functional Requirements](#non-functional-requirements)
- [Glossary](#glossary)
- [Instructions for Testing](#instructions-for-testing)
- [Manual Testing](#manual-testing)
- [JUnit Testing](#junit-testing)
- [Text UI Testing](#text-ui-testing)
- [Future Enhancements](#future-enhancements)

## Acknowledgements

{list here sources of all reused/adapted ideas, code, documentation, and third-party libraries -- include links to the original source as well}
Expand All @@ -8,6 +31,38 @@

{Describe the design and implementation of the product. Use UML diagrams and short code snippets where applicable.}

### UI and I/O

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be good to put these implementation into a hierarchy corresponding to your architecture? To make a clearer view of how each component related to the high-level architecture!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be more visuals and diagrams to make this clearer?

The program uses a command-line interface (CLI) for interaction with the user.
It receives input as text commands, processes these commands, and provides feedback through the console.

### Commands
Each user action (e.g. adding, deleting, or editing an item) is mapped to a specific command class.
These classes handle the logic for interpreting the input and calling the appropriate methods from the ItemMap and Storage classes.

Example:
```
AddItemCommand command = new AddItemCommand(itemName, quantity, expiryDate);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be put in the implementation section, following the example they give us.

command.execute(itemMap, storage);
```

### Storage
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these classes can have UML diagrams

**API**: Storage.java

Entries are stored in Comma Separated Values(CSV) format. Fields read from left
to right are: **Item type**, **Quantity**, and **Expiry date**(optional). Items
may or may not have an expiry date, but all possess an Item type and a Quantity.

Example of stored entries:
```
panadol,1
panadol,30,2024-08-03
panadol,20,2024-08-09
bandage,34
```

The Storage class depends on self-defined classes PillException, Item, and
ItemMap. While it has other dependencies, such as File and FileWriter from
the Java standard library, PillException is the only custom class it depends on.

## Product scope
### Target user profile
Expand Down
156 changes: 134 additions & 22 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,154 @@
# User Guide


# Pharmacy Inventory & Logistics Ledger (PILL) User Guide

**Version 1.0**

1. [Introduction](#introduction)
2. [Features](#features)
- [Viewing Help: `help`](#viewing-help-help)
- [Adding New Item: `add`](#adding-new-item-add)
- [Listing All Items: `list`](#listing-all-items-list)
- [Deleting Existing Item: `delete`](#deleting-existing-item-delete)
- [Exiting the Program: `exit`](#exiting-the-program-exit)
- [Saving the Data](#saving-the-data)
- [Editing the Data File](#editing-the-data-file)

## Introduction

{Give a product intro}
Pharmacy Inventory & Logistics Ledger (PILL) is a Command Line Interface (CLI) tool designed to assist in managing and tracking medicinal inventory.



## Features

### Viewing Help: `help`

Displays a list of all available commands and their descriptions.

**Format**: `help`

**Sample Output**:

`> help`

```
help
- Displays a list of all available commands and their descriptions
```

```
add n/NAME q/QUANTITY
- Allows the user to add a new item to the inventory
```

```
list
- Shows all the items that have been added to the inventory
```

```
delete INDEX
- Removes a specified item index from the inventory
```

```
exit
- Terminates the application
```



---

### Adding New Item: `add`

Adds a new item to the inventory, specifying its name and quantity.

**Format**: `add n/NAME e/QUANTITY`

**Sample Output**:

`> add n/Panadol q/2`

```
Added the following item to the inventory:
1. Panadol: 2 in stock
```



---

### Listing All Items: `list`

Displays a list of all items currently stored in the inventory, including their names and quantities.

**Format**: `list`

**Sample Output**:

`> list`

```
1. Panadol: 2 in stock
2. Ibuprofen: 1 in stock
```



---

### Deleting Existing Item: `delete`

Deletes an existing item entry in the inventory.

**Format**: `delete n/NAME`

- Delete the items with specified`NAME` .

**Example**:

- `delete n/NAME`
deletes the item as referenced in the `list`.

**Sample Output**:

`> delete n/Ibuprofen`

```
Deleted the following item from the inventory:
2. Ibuprofen: 1
```



## Quick Start
---

{Give steps to get started quickly}
### Exiting the Program: `exit`

1. Ensure that you have Java 17 or above installed.
1. Down the latest version of `Duke` from [here](http://link.to/duke).
Exits the program.

## Features
**Format**: `exit`

{Give detailed description of each feature}
**Sample Output**:

### Adding a todo: `todo`
Adds a new item to the list of todo items.
`> exit`

Format: `todo n/TODO_NAME d/DEADLINE`
`Exiting the inventory interface. Have a nice day! :)`

* The `DEADLINE` can be in a natural language format.
* The `TODO_NAME` cannot contain punctuation.

Example of usage:

`todo n/Write the rest of the User Guide d/next week`
---

`todo n/Refactor the User Guide to remove passive voice d/13/04/2020`
### Saving the Data

## FAQ
The system automatically saves any changes to the inventory to the hard disk after commands that modify the data (e.g., `add`, `delete`). The data is also saved upon using the `exit` command. There is no need to manually save changes.

**Q**: How do I transfer my data to another computer?

**A**: {your answer here}

## Command Summary
---

{Give a 'cheat sheet' of commands here}
### Editing the Data File

* Add todo `todo n/TODO_NAME d/DEADLINE`
Inventory data is stored in a `.csv` file. Users can edit this file manually if necessary.
21 changes: 0 additions & 21 deletions src/main/java/seedu/duke/Duke.java

This file was deleted.

43 changes: 43 additions & 0 deletions src/main/java/seedu/pill/Pill.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package seedu.pill;

import seedu.pill.util.ItemMap;
import seedu.pill.util.Parser;
import seedu.pill.util.Printer;
import seedu.pill.util.Storage;
import seedu.pill.util.Ui;
import seedu.pill.util.PillLogger;

import seedu.pill.exceptions.PillException;

import java.util.logging.Logger;

public final class Pill {
private static final Storage storage = new Storage();
private static ItemMap items = new ItemMap();
private static final Ui ui = new Ui(items);
private static Parser parser = new Parser(items, storage);
private static final Logger logger = PillLogger.getLogger();

/**
* Runs the main loop of the Pill chatbot.
*/
public void run() {
items = storage.loadData();
Printer.printInitMessage(items, 50);
parser = new Parser(items, storage);
logger.info("New Chatbot Conversation Created");
while (!parser.getExitFlag()) {
String line = ui.getInput();
parser.parseCommand(line);
}
Printer.printExitMessage();
logger.info("Chatbot Conversation Ended");
}

/**
* Main method to run the Pill bot.
*/
public static void main(String[] args) throws PillException{
new Pill().run();
}
}
Loading
Loading