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

Update DG with Command History and Command Assistant #221

Merged

Conversation

Jiwei99
Copy link

@Jiwei99 Jiwei99 commented Nov 8, 2021

No description provided.

Copy link

@yucheng11122017 yucheng11122017 left a comment

Choose a reason for hiding this comment

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

LGTM except for minor changes. You not adding diagrams?


The user keystroke will be read in `CommandBox#handleKeyStroke`. The user input will be evaluated by `SystemCommand#execute` to determine the appropriate help message to display.

Given below is an example usage scenario and how the Find mechanism behaves at each step.

Choose a reason for hiding this comment

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

Should be command assistant feature


The user keystroke will be read in `CommandBox#handleKeyStroke`, which will call the appropriate method in `CommandHistory` to retrieve the previous and next commands. The retrieved commands are passed into `CommandBox#commandTextField` to be displayed.

Given below is an example usage scenario and how the Find mechanism behaves at each step.

Choose a reason for hiding this comment

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

Should be command history feature


Step 2. The user enters `find ` to search for a matching contact.

Step 3. `CommandBox#handleKeyStroke` reads `find ` keystroke and calls `SystemCommand#execute`.

Choose a reason for hiding this comment

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

is find a keystroke or a String?
Perhaps the space is a keystroke but it reads the String

@codecov-commenter
Copy link

Codecov Report

Merging #221 (efff8ee) into master (3eb877b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #221   +/-   ##
=========================================
  Coverage     70.75%   70.75%           
  Complexity      672      672           
=========================================
  Files            97       97           
  Lines          2086     2086           
  Branches        246      246           
=========================================
  Hits           1476     1476           
  Misses          519      519           
  Partials         91       91           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eb877b...efff8ee. Read the comment docs.

@Jiwei99 Jiwei99 merged commit f635922 into AY2122S1-CS2103-F09-4:master Nov 8, 2021
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