Commit 2e2febdf521e699936192bed5852f7afb4cc30fe

Authored by Rohan Rangray
1 parent 4e1f2671b6
Exists in master

Fixed A7, F1, and F2

Showing 1 changed file with 15 additions and 18 deletions Side-by-side Diff

DesignUseCases.tex View file @ 2e2febd
... ... @@ -585,7 +585,7 @@
585 585 the students who are actually in his class participate, and nobody
586 586 else.}
587 587  
588   -{Primary Actor: }{User (instructor)}
  588 +\item[Primary Actor]{Instructor}
589 589  
590 590 \item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User
591 591 Login}
... ... @@ -784,8 +784,8 @@
784 784 {The User shall highlight keywords in the flashcard text.}
785 785 \item
786 786 {The User shall click on the `Contribute' button.}
787   -\item {The frontend shallsubmit the flashcard text,
788   - blanks, and material date, in JSON form as a POST request.}
  787 +\item {The frontend shall generate a POST request consisting of the flashcard text,
  788 + blanks, and material date, in JSON form in FeedController.js and send it to /api/flashcards/.}
789 789 \item
790 790 {The backend shall obtain the flashcard information by deserializing
791 791 the JSON in the POST request in views.py.}
792 792  
793 793  
794 794  
795 795  
796 796  
797 797  
798 798  
... ... @@ -846,29 +846,29 @@
846 846 \item
847 847 {The user shall click `Save Changes'}
848 848 \item
849   - {The client shall generate a POST request for a new flashcard and send
850   - it to the server at /api/flashcards/}
  849 + {The client shall generate a PATCH request for a new flashcard in CardGridController.js
  850 + and send it to the server at /api/flashcards/}
851 851 \item
852 852 {If the user changed only the blanks of the cards, the server shall
853 853 create a new FlashcardMask object and update the appropriate
854 854 UserFlashcard object with a reference to it.}
855 855 \item
856 856 {If the user changed the text of the card, the server will instead:}
857   -\end{enumerate}
858 857  
859 858 \begin{enumerate}
860 859 \itemsep1pt\parskip0pt\parsep0pt
861 860 \item
862   - {create a new flashcard for the section}
  861 + {Create a new flashcard for the section}
863 862 \item
864   - {push it to the feed}
  863 + {Push it to the feed}
865 864 \item
866   - {add it to the user's deck}
  865 + {Add it to the user's deck}
867 866 \item
868   - {hide the old card from the user}
  867 + {Hide the old card from the user}
869 868 \item
870   - {and return the new card to the user}
  869 + {Return the new card to the user}
871 870 \end{enumerate}
  871 +\end{enumerate}
872 872 \end{description}
873 873 {}
874 874  
875 875  
876 876  
... ... @@ -922,15 +922,12 @@
922 922 \begin{enumerate}
923 923 \itemsep1pt\parskip0pt\parsep0pt
924 924 \item
925   - {User shall click on the ``Pull Flashcard'' button on a Flashcard in
926   - the Feed.}
  925 + {The user shall hover over the flashcard he wants to add to his deck and click on the '+'
  926 + icon that appears in the center of the card.}
927 927 \item
928   - {The frontend shall }
  928 + {The frontend shall make the pulled Flashcard appear in the user's deck.}
929 929 \item
930   - {The Client shall make the pulled Flashcard appear in the User's Deck
931   - on the sidebar.}
932   -\item
933   - {The Client shall submit a POST request to
  930 + {The frontend shall generate a POST request in FlashcardFactory.js and send it to
934 931 /api/flashcards/\textless{}flashcard id\textgreater{}/pull}
935 932 \item
936 933 {The server shall create a UserFlashcard object to represent that the