Commit ba39799e892877fb5b02aa97d8ce998f00a506d1
1 parent
44fca697dd
Exists in
master
Made changes to F2
Showing 1 changed file with 12 additions and 14 deletions Side-by-side Diff
DesignUseCases.tex
View file @
ba39799
... | ... | @@ -803,12 +803,11 @@ |
803 | 803 | \subsection{[F2] Edit Flashcard} |
804 | 804 | |
805 | 805 | \begin{description} |
806 | -\item[Description]{The User shall be able to edit the text on their own | |
807 | -flashcard } | |
806 | +\item[Description]{The User shall be able to duplicate the flashcard authored by a different user and make changes to it.} | |
808 | 807 | |
809 | -\item[Desired Outcome]{Flashcard is edited and saved appropriately.} | |
808 | +\item[Desired Outcome]{The new flashcard is edited and saved appropriately.} | |
810 | 809 | \\ |
811 | -\item[User Goals]{To be able to change text on a flashcard.} | |
810 | +\item[User Goals]{To create a flashcard similar to an existing flashcard but with minor changes.} | |
812 | 811 | |
813 | 812 | \item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
814 | 813 | Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard, {[}F3{]} Pull |
815 | 814 | |
... | ... | @@ -819,11 +818,9 @@ |
819 | 818 | \begin{itemize} |
820 | 819 | \itemsep1pt\parskip0pt\parsep0pt |
821 | 820 | \item |
822 | - {Flashcard is created.} | |
821 | + {The flashcard to be edited is visible in the user's feed view or deck view.} | |
823 | 822 | \item |
824 | - {Flashcard in user's deck.} | |
825 | -\item | |
826 | - {Flashcard is viewable.} | |
823 | + {The user is currently in the feed view or the deck view of the course the card to be edited belongs to.} | |
827 | 824 | \end{itemize} |
828 | 825 | |
829 | 826 | \item[Post-conditions] |
830 | 827 | |
831 | 828 | |
832 | 829 | |
833 | 830 | |
834 | 831 | |
... | ... | @@ -831,25 +828,26 @@ |
831 | 828 | \begin{itemize} |
832 | 829 | \itemsep1pt\parskip0pt\parsep0pt |
833 | 830 | \item |
834 | - {Flashcard is edited.} | |
831 | + {A duplicate flashcard with some differences is created.} | |
835 | 832 | \end{itemize} |
836 | 833 | |
837 | -\item[Trigger] {The User wants to change a card to show different information.} | |
834 | +\item[Trigger] {The User wants to duplicate a card and make some changes to it and thus create a new flashcard.} | |
838 | 835 | \item[Workflow] |
839 | 836 | |
840 | 837 | \begin{enumerate} |
841 | 838 | \itemsep1pt\parskip0pt\parsep0pt |
842 | -\item{User has clicked ``Edit'' button when viewing a specific flashcard.} | |
839 | +\item{The user shall hover over the card to be edited and and click on the | |
840 | + pencil button that appears on the bottom left of the card.} | |
843 | 841 | \item |
844 | - {The frontend shall produce an editable dialog box containing flashcard | |
842 | + {The frontend shall produce an editable dialog box containing the flashcard | |
845 | 843 | text } |
846 | 844 | \item |
847 | 845 | {The user shall make desired changes} |
848 | 846 | \item |
849 | - {The user shall click `Save'} | |
847 | + {The user shall click `Save Changes'} | |
850 | 848 | \item |
851 | 849 | {The client shall generate a POST request for a new flashcard and send |
852 | - it to the server} | |
850 | + it to the server at /api/flashcards/} | |
853 | 851 | \item |
854 | 852 | {If the user changed only the blanks of the cards, the server shall |
855 | 853 | create a new FlashcardMask object and update the appropriate |