Commit cabec827cefb0741bcc3d11ae2ac6e221af0d269
1 parent
c13fd88007
Exists in
master
Fixed F6 and F5
Showing 1 changed file with 11 additions and 6 deletions Side-by-side Diff
DesignUseCases.tex
View file @
cabec82
... | ... | @@ -1143,14 +1143,17 @@ |
1143 | 1143 | \item |
1144 | 1144 | {The User shall highlight the words that he wishes to blank out.} |
1145 | 1145 | \item |
1146 | + {The frontend shall enclose the selected text in \textless{}b\textgreater{} tags to alter its appearance.} | |
1147 | +\item | |
1146 | 1148 | {The User shall click the 'Contribute' button.} |
1147 | 1149 | \item |
1150 | + {The frontend shall convert the blanked portion of the text into a list of offsets to be | |
1151 | + sent to the backend in FeedController.js.} | |
1152 | +\item | |
1148 | 1153 | {The backend shall mark those words by updating the field mask for |
1149 | 1154 | that userflashcard object in views.py in function create. } |
1150 | 1155 | \item |
1151 | - {The backend shall save those in models.py.} | |
1152 | -\item | |
1153 | - {The frontend shall change the color of the text that was blanked out in flashcard.html.} | |
1156 | + {The backend shall save the new mask in models.py.} | |
1154 | 1157 | \end{enumerate} |
1155 | 1158 | |
1156 | 1159 | {Alternative Workflows:} |
1157 | 1160 | |
... | ... | @@ -1162,13 +1165,15 @@ |
1162 | 1165 | \item |
1163 | 1166 | {The User shall highlight selection text and click either ctrl-b or 'Blank Selected Text'.} |
1164 | 1167 | \item |
1168 | + {The frontend shall enclose the selected text in \textless{}b\textgreater{} tags to alter its appearance.} | |
1169 | +\item | |
1170 | + {The frontend shall convert the blanked portion of the text into a list of offsets to be | |
1171 | + sent to the backend in CardGridController.js.} | |
1172 | +\item | |
1165 | 1173 | {The backend shall mark those words by updating the field mask for |
1166 | 1174 | that userflashcard object in views.py in function create. } |
1167 | 1175 | \item |
1168 | 1176 | {The backend shall save those in models.py.} |
1169 | -\item | |
1170 | - {The frontend shall change the color of the text that was blanked out in flashcard.html.} | |
1171 | - | |
1172 | 1177 | \end{enumerate} |
1173 | 1178 | \end{description} |
1174 | 1179 | {} |