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

[CS2103T-T10-2] Cardi B #26

Open
wants to merge 779 commits into
base: master
Choose a base branch
from

Conversation

haveaqiupill
Copy link

@haveaqiupill haveaqiupill commented Feb 18, 2020

@haveaqiupill haveaqiupill changed the title [CS2103T-G09-2] Cardi B [CS2103T-T10-2] Cardi B Feb 19, 2020
docs/DeveloperGuide.adoc Outdated Show resolved Hide resolved
docs/DeveloperGuide.adoc Outdated Show resolved Hide resolved
4. CardiBuddy compares the user's input with the flashcard's stored answer, and shows the user the outcome (CORRECT) as well as the flashcard's stored answer.
5. The user chooses to go to the next flashcard
6. CardiBuddy removes the flashcard from the <<test-queue,test queue>>.
7. CardiBuddy shows user the question on the next flashcard in the queue.

Choose a reason for hiding this comment

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

Perhaps step 7 can be replaced w "repeat steps 3-6" until deck finishes.

@gerhean
Copy link

gerhean commented Mar 27, 2020

Diagrams still have addressbook references like AddressBookParser and Person, even though the app does not seem to contain any contacts lists.


image::SearchFilterDiagram.png[]

Figure X. Component interactions for a Search command
Copy link

Choose a reason for hiding this comment

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

Why is it called Figure X?


The following sequence diagram shows how the `Search` command works:

image::SearchFilterDiagram.png[]
Copy link

Choose a reason for hiding this comment

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

sc:SearchCommand was created but there's no contructor?

Suggestion: Why is getFilteredDeckList.size() called when filtered list has already been returned to sc?

Suggestion: sdkp is passed into sc, but sc does not call any of its methods?

@@ -79,7 +79,7 @@ image::UiClassDiagram.png[]

Choose a reason for hiding this comment

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

For Figure 3, the arrow seems to be missing for "delete 1".


The following is a proposed diagram of how the `test` feature should work:

image::TestSequenceDiagram.png[]

Choose a reason for hiding this comment

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

Under "d:TestCommand", an object d seems to be created but object 't' is returned instead.
Also, the figure is not labelled.

=== Test feature
Users can start a <<test-session>> with a chosen `Deck` by:

* The `index` of the deck will be provided byt he user and parsed by Cardi Buddy. A `TestSession` object containing the indicated `Deck` is created.

Choose a reason for hiding this comment

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

just a typo ('byt he')


image::UndoRedoState0.png[]

Step 2. The user executes `delete 5` command to delete the 5th person in the address book. The `delete` command calls `Model#commitAddressBook()`, causing the modified state of the address book after the `delete 5` command executes to be saved in the `addressBookStateList`, and the `currentStatePointer` is shifted to the newly inserted address book state.
Step 2. The user executes `delete 5` command to delete the 5th deck in the address book. The `delete` command calls `Model#commitCardiBuddy()`, causing the modified state of CardiBuddy, after the `delete 5` command executes, to be saved in the `cardiBuddyStateList`, and the `currentStatePointer` is shifted to the newly inserted CardiBuddy state.

image::UndoRedoState1.png[]

Choose a reason for hiding this comment

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

These diagrams still contain the AddressBook class. I think you guys have forgotten to change the diagram namings.

Comment on lines 265 to 267
The following is a proposed diagram of how the `test` feature should work:

image::TestSequenceDiagram.png[]

Choose a reason for hiding this comment

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

It would be nice to have a explanation paragraph explaining this sequence diagram, similar to the "Search and Filter feature" section. This seems to be lacking a little in terms of how it is implemented.


The following is a proposed diagram of how the `test` feature should work:

image::TestSequenceDiagram.png[]

Choose a reason for hiding this comment

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

What about the design considerations? Why is the TestSession object responsible for updating the UniqueFlashcardList?


The following sequence diagram shows how the `Search` command works:

image::SearchFilterDiagram.png[]

Choose a reason for hiding this comment

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

SearchDeckKeywordsPredicate is constructed but the method calling it is Arrays.asList(nameKeywords) instead of SearchDeckKeywordsPredicate's constructor.

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.

9 participants