From 2e2febdf521e699936192bed5852f7afb4cc30fe Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Fri, 5 Jun 2015 01:34:20 -0700 Subject: [PATCH] Fixed A7, F1, and F2 --- DesignUseCases.tex | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/DesignUseCases.tex b/DesignUseCases.tex index ddee742..f2ed604 100644 --- a/DesignUseCases.tex +++ b/DesignUseCases.tex @@ -585,7 +585,7 @@ users who are whitelisted may enroll in the class.} the students who are actually in his class participate, and nobody else.} -{Primary Actor: }{User (instructor)} +\item[Primary Actor]{Instructor} \item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User Login} @@ -784,8 +784,8 @@ Login, {[}A3{]} Add a Class} {The User shall highlight keywords in the flashcard text.} \item {The User shall click on the `Contribute' button.} -\item {The frontend shallsubmit the flashcard text, - blanks, and material date, in JSON form as a POST request.} +\item {The frontend shall generate a POST request consisting of the flashcard text, + blanks, and material date, in JSON form in FeedController.js and send it to /api/flashcards/.} \item {The backend shall obtain the flashcard information by deserializing the JSON in the POST request in views.py.} @@ -846,28 +846,28 @@ Flashcard} \item {The user shall click `Save Changes'} \item - {The client shall generate a POST request for a new flashcard and send - it to the server at /api/flashcards/} + {The client shall generate a PATCH request for a new flashcard in CardGridController.js + and send 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 UserFlashcard object with a reference to it.} \item {If the user changed the text of the card, the server will instead:} -\end{enumerate} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item - {create a new flashcard for the section} + {Create a new flashcard for the section} \item - {push it to the feed} + {Push it to the feed} \item - {add it to the user's deck} + {Add it to the user's deck} \item - {hide the old card from the user} + {Hide the old card from the user} \item - {and return the new card to the user} + {Return the new card to the user} +\end{enumerate} \end{enumerate} \end{description} {} @@ -922,15 +922,12 @@ Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashard} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item - {User shall click on the ``Pull Flashcard'' button on a Flashcard in - the Feed.} -\item - {The frontend shall } + {The user shall hover over the flashcard he wants to add to his deck and click on the '+' + icon that appears in the center of the card.} \item - {The Client shall make the pulled Flashcard appear in the User's Deck - on the sidebar.} + {The frontend shall make the pulled Flashcard appear in the user's deck.} \item - {The Client shall submit a POST request to + {The frontend shall generate a POST request in FlashcardFactory.js and send it to /api/flashcards/\textless{}flashcard id\textgreater{}/pull} \item {The server shall create a UserFlashcard object to represent that the -- 1.9.1