diff --git a/DesignUseCases.tex b/DesignUseCases.tex index ee5425a..915eb6f 100644 --- a/DesignUseCases.tex +++ b/DesignUseCases.tex @@ -803,12 +803,11 @@ Login, {[}A3{]} Add a Class} \subsection{[F2] Edit Flashcard} \begin{description} -\item[Description]{The User shall be able to edit the text on their own -flashcard } +\item[Description]{The User shall be able to duplicate the flashcard authored by a different user and make changes to it.} -\item[Desired Outcome]{Flashcard is edited and saved appropriately.} +\item[Desired Outcome]{The new flashcard is edited and saved appropriately.} \\ -\item[User Goals]{To be able to change text on a flashcard.} +\item[User Goals]{To create a flashcard similar to an existing flashcard but with minor changes.} \item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard, {[}F3{]} Pull @@ -819,11 +818,9 @@ Flashcard} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item - {Flashcard is created.} -\item - {Flashcard in user's deck.} + {The flashcard to be edited is visible in the user's feed view or deck view.} \item - {Flashcard is viewable.} + {The user is currently in the feed view or the deck view of the course the card to be edited belongs to.} \end{itemize} \item[Post-conditions] @@ -831,25 +828,26 @@ Flashcard} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item - {Flashcard is edited.} + {A duplicate flashcard with some differences is created.} \end{itemize} -\item[Trigger] {The User wants to change a card to show different information.} +\item[Trigger] {The User wants to duplicate a card and make some changes to it and thus create a new flashcard.} \item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt -\item{User has clicked ``Edit'' button when viewing a specific flashcard.} +\item{The user shall hover over the card to be edited and and click on the + pencil button that appears on the bottom left of the card.} \item - {The frontend shall produce an editable dialog box containing flashcard + {The frontend shall produce an editable dialog box containing the flashcard text } \item {The user shall make desired changes} \item - {The user shall click `Save'} + {The user shall click `Save Changes'} \item {The client shall generate a POST request for a new flashcard and send - it to the server} + it to the server at /api/flashcards/} \item {If the user changed only the blanks of the cards, the server shall create a new FlashcardMask object and update the appropriate