Sequence Diagrams
Case 1:
As a temple student taking coding classes, I want a convenient way to check their code to see if they did it correctly.
- Student wrote some code, which looks reasonable. Then they tried to build it. It failed
- They installed the extension from the marketplace in vscode.
- The user tried some features which does a explaining what their code does.
- Extension prompts the user to sign in to use the server API.
- The user sign in, and then the extension shows the user what their code does.
- The user wrote some more code.
- The user decided to build it again then failed, and asked the extension to review their code.
- The extension gives a to-do list to the user where they can improve.
Case 2:
As a tech hobbyist but not a temple student, I don't want to open another tab outside of VS code to talk to GPT.
- The user installed the extension from the marketplace in vscode.
- The user decided to use the extension to send a question to the chatGPT.
- The user right-click on the screen and click Ask chatGPT, type in the question, and hit enter.
- The extension prompted the user to log in to their server API.
- The user decided to use their chatGPT API key, since he is not a temple student, he could not sign up with the server API.
- The user stored the API key locally.
- Then right-click on the screen and click Ask chatGPT, type in the question, and hit enter.
- This time the question is answered by chatGPT.
Case 3:
As a temple student, he wants quick tools to help him catch small bugs as well as correct the format of their syntax.
- The user wrote some code and debugged them. It looked good.
- Then he found the extension on the marketplace, it sounds promising.
- The user agrees to the pre-commit hook since he is working with Git.
- Then he used his temple email to sign up for an account, then log in.
- He decided to try this commit detection, so he committed the previous code to git.
- Then the user was asked if they wanted a review for their code.
- The user clicks on Yes, and the extension runs a quick review.
- The user is given a list of things that he could improve on.
Case 4:
As a temple student, they just downloaded this extension they want to sign up for an account.
- The user clicks on the chatGPT icon on the left-hand side of the screen.
- The extension prompts them to log in.
- The user clicks on yes to follow to different tab.
- The user clicks the sign-up button on the page.
- The user types all the information into the box and hits submit.
- The website tells the user to verify with their TU email.
- The user presses send.
- The user went into their TU email account, saw the email, and clicked on the link to verify.
Case 5:
As a temple student, they wanted to figure out what this code does, which they had copied from their professor during class. They had been using this extension for a while now.
- The user selects the code that they want to be explained.
- Right-click on the vs code window on top of the selected text.
- The extension sends the request to the server API.
- Then the server will turn an answer for the given code that they had selected.
- The extension displays the explanation in the window.
- The user reads it and then can follow along with the code.
Case 6:
As a temple student, a long-term user of the extension. They wanted to do a write some test for the code that they just wrote but they got no idea where to begin.
- Start Vscode going back to the working environment.
- Checking the code out.
- Select the code where the user wants to write the test.
- Right-click then click ChatGPT.TestSuggestions.
- The extension will show all the functions to which they can add the test in.
Case 7:
As a temple student, a long-term user of the extension. They wanted to do a review of the code to make it less complex, but they had no idea where to start.
- Start Vscode
- select the code that the user wants to review.
- Log in if they haven't.
- Then right-click the selected code.
- Click the ChatGPT: Legibiliity Suggestions.
- Then the extension would print out all the suggestions that they can make to the given code.
Case 8:
The user wants an instance of ChatGPT in their vs code. So they don't have to go out of vs code to talk to chatGPT.
- start VS code
- log in to the server if they haven't.
- Right-click any open window, or type in the command palette: chatgpt.start.
- Then a window will persist in the vs code tab until the user decides to close it.
- Then the user can type in anything that they want to ask chatGPT.
- Once they hit enter or click the submit button, the entry will be sent to the server API.