Blame view
DesignUseCases.tex
50.7 KB
9bdef2907
|
1 2 3 4 5 6 7 8 9 10 |
\documentclass[letterpaper]{scrartcl} % or whatever \usepackage{tgpagella} \setkomafont{disposition}{ ormalfont\bfseries} %\usepackage[markuppercase]{scrpage2} \title{\huge Design Use Cases} \date{\today} \author{\Large Students With A Goal (S.W.A.G.)} \usepackage[pass]{geometry} \usepackage{hyperref} |
5a8fe752e
|
11 |
\usepackage{graphicx} |
9bdef2907
|
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
\usepackage{enumitem} \setlist[description]{style=multiline,leftmargin=3cm,font= ormalfont\textbf} \setlistdepth{9} \setlist[itemize,1]{label=$\bullet$} \setlist[itemize,2]{label=$\bullet$} \setlist[itemize,3]{label=$\bullet$} \setlist[itemize,4]{label=$\bullet$} \setlist[itemize,5]{label=$\bullet$} \setlist[itemize,6]{label=$\bullet$} \setlist[itemize,7]{label=$\bullet$} \setlist[itemize,8]{label=$\bullet$} \setlist[itemize,9]{label=$\bullet$} \renewlist{itemize}{itemize}{9} \begin{document} \maketitle \begin{center} |
5a8fe752e
|
30 |
\includegraphics[width=12cm]{../swag_logo.png}\\ |
9bdef2907
|
31 32 33 34 35 36 37 38 39 40 41 42 43 |
\begin{tabular}{l r} Melody Jeng & System Architect \\ Arno Gau & Senior System Analyst \\ Rachel Lee & Software Development Lead \\ Laura Hawkins & Project Manager \\ Rohan Rangray & Algorithms Specialist\\ Andrew Buss & Database Specialist \\ Phuong Tran & Quality Assurance Lead \\ Chung Kang Wang & Business Analyst\\ Masud Rahman & User Interface Specialist\\ Kevin Mach & User Interface Specialist\\ \end{tabular} \end{center} |
b295f14e2
|
44 45 |
ewpage |
9bdef2907
|
46 47 48 |
\tableofcontents ewpage |
de8099363
|
49 |
|
9bdef2907
|
50 51 52 53 54 55 56 57 58 |
\section{Accounts} \subsection{[A1] User Registration} \begin{description}[style=multiline,leftmargin=3cm] \item[Description]{To create and save decks, the system requires the user to create an account prior. The user will be able to create an account through registering.} \item[Desired Outcome]{An account will be created for the user from the specified username, password, email. The user will be able to log into the aforementioned account.} |
45b5ec6b5
|
59 |
\\ |
9bdef2907
|
60 |
\item[User Goals]{The user shall have an account to participate in the |
de8099363
|
61 |
application's activities.} |
9bdef2907
|
62 |
|
45b5ec6b5
|
63 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
64 |
|
45b5ec6b5
|
65 66 67 |
\item[Dependency Use Cases]{None} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
68 |
|
de8099363
|
69 |
\item[Status]{Implemented} |
9bdef2907
|
70 |
|
de8099363
|
71 |
\item[Pre-conditions]: None. |
9bdef2907
|
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
\item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {The user has an account registered with the system.} \end{itemize} \item[Trigger]{The user wants to create an account.} \item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
88 89 90 |
{The frontend renders the login form described in login.html.} \item {The User shall click the sign up toggle.} |
9bdef2907
|
91 |
\item |
de8099363
|
92 |
{The frontend shall render a registration form and display it to the User.} |
9bdef2907
|
93 |
\item |
de8099363
|
94 |
{The User shal fill in the form.} |
9bdef2907
|
95 |
\item |
de8099363
|
96 |
{The frontend checks that the provided email is not invalid, and that |
9bdef2907
|
97 98 99 |
the password is not valid. If anything is not valid, it displays an error and returns this to the user. } \item |
de8099363
|
100 101 |
{If the form is valid, the frontent POSTs the form in JSON format to the server API at /api/verify\_email/.} |
9bdef2907
|
102 |
\item |
de8099363
|
103 104 |
{The backend deserializes and validates the data in /api/register. If it's not valid, it returns an error to the frontend.} |
9bdef2907
|
105 |
\item |
de8099363
|
106 107 |
{The backend creates a new User object from the provided data, filling in the email and password fields in models.py in model method create\_user.} |
9bdef2907
|
108 |
\item |
de8099363
|
109 |
{The backend saves the User object in models.py.} |
9bdef2907
|
110 |
\item |
de8099363
|
111 |
{The backend marks the User's email as unverified.} |
9bdef2907
|
112 |
\item |
de8099363
|
113 114 |
{The backend sends an email to the User's address with a link to validate the user's email address from models.py in function send\_confirmation\_email.} |
9bdef2907
|
115 |
\item |
de8099363
|
116 117 |
{The backend responds with success and logs the User in on a new session for the User. } |
9bdef2907
|
118 |
\item |
de8099363
|
119 |
{The frontend reports success to the User and stores the sessionid for |
9bdef2907
|
120 121 |
future requests.} \end{enumerate} |
9bdef2907
|
122 123 124 125 126 |
{Verification Workflow:} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
127 128 |
{The User receives an email with a link to verify their email. The User clicks the link} |
9bdef2907
|
129 |
\item |
de8099363
|
130 |
{The frontend in VerifyEmailController submits a POST request to the backend.} |
9bdef2907
|
131 |
\item |
de8099363
|
132 133 |
{The backend validates the code in views.py in function veryify\_email. If the code is not valid, it returns an error to the frontend.} |
9bdef2907
|
134 |
\item |
de8099363
|
135 136 |
{The backend marks the user's email as confirmed and saves the User object again in models.py in function confirm\_email. The user's account is now active.} |
9bdef2907
|
137 |
\item |
de8099363
|
138 |
{The frontend's VerifyEmailController.js reports success and logs the User in to the application. } |
9bdef2907
|
139 140 141 142 143 144 |
\end{enumerate} \end{description} ewpage |
770e764f2
|
145 |
\subsection{[A2] User Login} |
9bdef2907
|
146 147 148 |
\begin{description} \item[Description]{User is able to login to personal account.} |
45b5ec6b5
|
149 |
\item[Desired Outcome]{The user shall be able to provide their username and |
9bdef2907
|
150 151 152 |
password to access their courses and flash cards. The user shall gain access to the list of the courses they have added, and be able to review the flash cards they have added to their decks.} |
45b5ec6b5
|
153 |
\\ |
9bdef2907
|
154 155 |
\item[User Goals]{The user wants to resume use of the site on another device, or use the site after logging out.} |
45b5ec6b5
|
156 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
157 |
|
45b5ec6b5
|
158 159 160 |
\item[Dependency Use Cases]{{[}A1{]} User Registration} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
161 |
|
de8099363
|
162 |
\item[Status]{Implemented} |
9bdef2907
|
163 164 165 166 167 168 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
169 170 |
{The User has registered an account.} {The User knows their email and password.} |
9bdef2907
|
171 172 173 174 175 176 177 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
178 |
{The User can navigate the site and see their data.} |
9bdef2907
|
179 |
\end{itemize} |
de8099363
|
180 |
\item[Trigger]{The User wants to use the application and its core features.} |
9bdef2907
|
181 182 183 184 185 186 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
187 188 189 |
{The frontend shall render the login form described in login.html and implemented in LoginController.js} \item {The User shall type in their email and password.} |
9bdef2907
|
190 |
\item |
de8099363
|
191 |
{The backend shall verify that the User has submitted their email and password in views.py in function login.} |
9bdef2907
|
192 |
\item |
de8099363
|
193 |
{The backend shall check that the User is active in views.py in function login.} |
9bdef2907
|
194 |
\item |
de8099363
|
195 196 197 |
{The backend shall log the User in using the Django login feature.} \item {The frontend shall displays the home page for the User.} |
9bdef2907
|
198 |
\end{enumerate} |
45b5ec6b5
|
199 |
\end{description} |
9bdef2907
|
200 201 |
ewpage |
770e764f2
|
202 |
\subsection{[A3] Add a Class} |
45b5ec6b5
|
203 |
\begin{description} |
de8099363
|
204 |
\item[Description]{The User shall be able to add a class and access the |
9bdef2907
|
205 |
flashcards associated with that class.} |
de8099363
|
206 207 |
\item[Desired Outcome]{The class shall be connected to the student's account and the User shall have the ability to read and publish flashcards |
9bdef2907
|
208 |
for this class.} |
45b5ec6b5
|
209 |
\\ |
de8099363
|
210 211 |
\item[User Goals]{The User wants to publish flashcards for this class, and read the flashcards for this class that are published by other users.} |
9bdef2907
|
212 |
|
45b5ec6b5
|
213 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
214 |
|
45b5ec6b5
|
215 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
216 |
Login} |
45b5ec6b5
|
217 218 |
\\ \item[Priority Level]{``Must''} |
9bdef2907
|
219 |
|
de8099363
|
220 |
\item[Status]{Implemented} |
9bdef2907
|
221 222 223 224 225 226 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
227 |
{The User has registered an account.} |
9bdef2907
|
228 |
\item |
de8099363
|
229 |
{The User has successfully logged in to the application.} |
9bdef2907
|
230 231 232 233 234 235 236 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
237 238 |
{The User can view the flashcards being published for the class and add them to their deck.} |
9bdef2907
|
239 |
\item |
de8099363
|
240 |
{The User can publish flashcards to be viewed and added by other users |
9bdef2907
|
241 242 |
in the same class.} \end{itemize} |
de8099363
|
243 |
\item[Trigger]{The User wants to make flashcards and view flashcards for a class.} |
9bdef2907
|
244 |
|
45b5ec6b5
|
245 |
\item[Workflow] |
9bdef2907
|
246 247 248 249 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
250 |
{The User shall click "Add a Class" from the drop down menu in the upper left hand corner.} |
4d2ee9e3e
|
251 |
\item |
de8099363
|
252 |
{The frontend shall navigate to the new page described by addclass.html.} |
9bdef2907
|
253 |
\item |
de8099363
|
254 |
{The User shall begin to type the class department code, course title, course number, or instructor in the text box.} |
9bdef2907
|
255 |
\item |
de8099363
|
256 |
{The frontend in ClassAddController.js shall send a get request to the backend at api/sections/search/.} |
9bdef2907
|
257 |
\item |
de8099363
|
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
{The backend shall search the database for the classes matching department code, course title, course number, or instructor in models.py in function search.} \item {The frontend shall show the classes that the backend has found.} \item {The User shall select from the classes the one that they want to add.} \item {The frontend shall enable the 'Add Class' button.} \item {The User shall click 'Add Class' button to the right of the text box.} \item {The frontend shall send a post request to api/sections/.} \item {The backend shall in views.py in function enroll shall call the method enroll in models.py.} \item {The backend in models.py in function enroll shall add the class to the User's sections.} \item {The frontend shall redirect the User to the class's Live Feed using the ClassAddController.js.} \item {The frontend shall present the live feed for the class by using feed.html and FeedController.js.} |
9bdef2907
|
277 |
|
de8099363
|
278 279 280 |
\end{enumerate} \item[Alternate Workflow: User is whitelisted.\\] |
9bdef2907
|
281 282 283 |
\begin{enumerate} \setcounter{enumi}{3} \itemsep1pt\parskip0pt\parsep0pt |
de8099363
|
284 285 286 |
\item []{ Precondition: The class has a whitelist, a whitelist is a list of email addresses that can add themselves to the class.\\} \item {The User shall select their desired class, which has a whitelist, by clicking on ``Add Class''.} |
9bdef2907
|
287 |
\item |
de8099363
|
288 289 |
{The frontend shall submit a POST request to /api/me/sections with the course ID that the User typed. } |
9bdef2907
|
290 |
\item |
de8099363
|
291 292 |
{The backend shall check if there is a whitelist for the class that the User has selected in models.py at function is\_whitelisted.} |
9bdef2907
|
293 |
\item |
de8099363
|
294 295 |
{The backend shall check if the user is on the whitelist in models.py in function is\_user\_on\_whitelist.} |
9bdef2907
|
296 |
\item |
de8099363
|
297 |
{The backend shall add the User to the class following steps above.} |
9bdef2907
|
298 |
\item |
de8099363
|
299 |
{The frontend shall redirect the User to the class's live feed followed the last step in the Workflow above.} |
9bdef2907
|
300 |
\end{enumerate} |
4d2ee9e3e
|
301 302 303 |
\item[Alternate Workflow: User is not whitelisted.] \begin{enumerate} |
de2420793
|
304 |
\setcounter{enumi}{7} |
4d2ee9e3e
|
305 |
\itemsep1pt\parskip0pt\parsep0pt |
de8099363
|
306 |
\item []{ Precondition: The class has a whitelist, a whitelist is a list of email addresses that can add themselves to the class.\\} |
4d2ee9e3e
|
307 |
\item |
de8099363
|
308 |
{The backend shall will check that the user is in the whitelist in models.py.} |
2ea9c20eb
|
309 |
\item |
de8099363
|
310 |
{The frontend shall display that the class is whitelisted and the Add Class button will not be enabled.} |
2ea9c20eb
|
311 |
\end{enumerate} |
4d2ee9e3e
|
312 |
|
9bdef2907
|
313 314 315 316 317 318 319 |
\end{description} {} ewpage {} |
770e764f2
|
320 |
\subsection{[A4] Drop a Class} |
9bdef2907
|
321 322 |
\begin{description} |
de8099363
|
323 |
\item[Description]{The User can remove themselves from a course he/she is |
9bdef2907
|
324 |
registered to} |
de8099363
|
325 |
\item[Desired Outcome]{The User has dropped the class and no longer need |
9bdef2907
|
326 327 |
access to the flashcards for said class. This means they can no longer see the flashcards associated to the class that they dropped } |
45b5ec6b5
|
328 |
\\ |
de8099363
|
329 |
\item[User Goals]{The User shall not have access to a class and the |
9bdef2907
|
330 |
flashcards associated with that class. They will no longer see the class |
de8099363
|
331 |
listed in their drop down menu.} |
9bdef2907
|
332 |
|
45b5ec6b5
|
333 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
334 |
|
45b5ec6b5
|
335 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
336 |
Login, {[}A3{]} Add a Class} |
45b5ec6b5
|
337 338 |
\\ \item[Priority Level]{ ``Should''} |
9bdef2907
|
339 |
|
de8099363
|
340 |
\item[Status]{Implemented } |
9bdef2907
|
341 |
|
45b5ec6b5
|
342 |
\item[Pre-conditions] |
9bdef2907
|
343 344 345 346 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
347 |
{The User has a valid account.} |
9bdef2907
|
348 |
\item |
de8099363
|
349 |
{The User is logged in.} |
9bdef2907
|
350 |
\item |
de8099363
|
351 352 353 |
{The User has enrolled in at least one class.} \item {The User has navigated to the Settings page.} |
9bdef2907
|
354 |
\end{itemize} |
45b5ec6b5
|
355 |
\item[Post-conditions]{} |
9bdef2907
|
356 357 358 359 360 361 362 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User shall no longer have access to dropped class, or associated flashcards} \end{itemize} |
de8099363
|
363 |
\item[Trigger]{User no longer wants to see flashcards from that class.} |
9bdef2907
|
364 |
|
45b5ec6b5
|
365 |
\item[Workflow] |
9bdef2907
|
366 367 368 369 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
370 |
{The User shall click `Drop' button to the right of the class they wish to drop.} |
9bdef2907
|
371 |
\item |
de8099363
|
372 |
{The frontend shall submit a DELETE request to |
ca345eb7e
|
373 |
/api/me/sections/\textless{}section ID number\textgreater{}.} |
9bdef2907
|
374 |
\item |
de8099363
|
375 |
{The backend shall check that the User is enrolled in the section in models.py in function drop.} |
9bdef2907
|
376 |
\item |
de8099363
|
377 |
{The server shall remove the selected class from a user's list of section in models.py in function drop. } |
9bdef2907
|
378 |
\item |
de8099363
|
379 |
{The frontend shall remove the class from the list in setting and show toast reading 'Dropped'.} |
9bdef2907
|
380 381 382 383 384 385 |
\end{enumerate} \end{description} ewpage {} |
770e764f2
|
386 |
\subsection{[A5] Password change} |
9bdef2907
|
387 388 |
\begin{description} |
de8099363
|
389 390 |
\item[Description]{The User shall be able to change the password for their account in the account settings. } |
9bdef2907
|
391 |
|
de8099363
|
392 |
\item[Desired Outcome]{The User's password shall be changed and the User |
9bdef2907
|
393 |
shall be able to log in with the new password in the future} |
45b5ec6b5
|
394 |
\\\\ |
de8099363
|
395 |
\item[User Goals]{The User wants to use a different password in the future} |
9bdef2907
|
396 |
|
45b5ec6b5
|
397 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
398 |
|
45b5ec6b5
|
399 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
400 |
Login} |
45b5ec6b5
|
401 |
\\ |
de8099363
|
402 |
\item[Details]{The User provides their current password and a new password |
9bdef2907
|
403 404 |
in a form. If the current password is correct, the system updates their password to the requested new password.} |
45b5ec6b5
|
405 |
\item[Priority Level]{``Must''} |
9bdef2907
|
406 |
|
de8099363
|
407 |
\item[Status]{Implemented} |
9bdef2907
|
408 409 410 411 412 413 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
414 |
{The User has registered an account.} |
9bdef2907
|
415 |
\item |
de8099363
|
416 |
{The User has logged in.} |
9bdef2907
|
417 |
\item |
de8099363
|
418 419 420 |
{The User knows their current password.} \item {The User has navigated to the Settings page.} |
9bdef2907
|
421 422 423 424 425 426 427 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
428 |
{The User's password is changed} |
9bdef2907
|
429 |
\item |
de8099363
|
430 |
{The User can log in with the new password} |
9bdef2907
|
431 |
\end{itemize} |
de8099363
|
432 |
\item[Trigger]{The User wants to change their password.} |
9bdef2907
|
433 |
|
ca345eb7e
|
434 435 436 437 438 439 440 441 442 443 444 445 446 |
\item[Error Handling] \begin{description} \item[\small Missing Fields] \begin{itemize} \item The client shall enforce required fields \item The server will return an HTTP Bad Request error to the client. \end{itemize} \item[\small Incorrect Old Password] \begin{itemize} \item The server will return an HTTP Forbidden error to the client. \end{itemize} \item[\small Blank New Password] \begin{itemize} \item The server will return an HTTP Bad Request error to the client. \end{itemize} \end{description} |
45b5ec6b5
|
447 |
\item[Workflow] |
9bdef2907
|
448 449 450 451 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
452 453 |
{The frontend shall render a form that requires the user to enter their old password and new password from settings.html} |
9bdef2907
|
454 |
\item |
de8099363
|
455 456 |
{The User shall type in their current password, the desired new password, and retype the desired new password to confirm.} |
9bdef2907
|
457 |
\item |
de8099363
|
458 |
{The frontend shall submit the data to the server by sending a PATCH |
ca345eb7e
|
459 |
request to /api/me containing ``old\_password'' and |
de8099363
|
460 |
``new\_password'' values in SettingsController.js.} |
ca345eb7e
|
461 |
\item (The ) |
9bdef2907
|
462 |
\item |
de8099363
|
463 464 |
{The backend shall check the user's current password in views.py in function patch under UserDetail.} \item The backend shall update the user's current password in views.py in function patch under UserDetail. |
9bdef2907
|
465 |
\item |
de8099363
|
466 |
{The frontend shall present a toast reading "Password successfully changed" and redirect the User to the Add a Class page.} |
9bdef2907
|
467 468 469 470 471 472 473 474 |
\end{enumerate} \end{description} {} ewpage {} |
770e764f2
|
475 |
\subsection{[A6] Password reset} |
9bdef2907
|
476 477 |
\begin{description} |
de8099363
|
478 479 |
\item[Description]{The User shall be able to reset their password without being logged in.} |
9bdef2907
|
480 |
|
de8099363
|
481 482 |
\item[Desired Outcome]{The User's password shall be changed to one that they remember.} |
45b5ec6b5
|
483 |
\\ |
de8099363
|
484 |
\item[User Goals]{The User will be able to log into the site with a new password.} |
9bdef2907
|
485 |
|
45b5ec6b5
|
486 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
487 |
|
45b5ec6b5
|
488 489 490 |
\item[Dependency Use Cases]{{[}A1{]} User Registration} \\ \item[Details]{The user provides their email in a password reset form. If |
9bdef2907
|
491 492 493 494 495 496 497 |
the address is valid, the site sends a password reset link with a random token to that address. If the address is invalid, the site does not send a link. For security reasons, we do not reveal to the user whether the email address was valid, and we expire the link after 24 hours. When a user visits the link emailed to them, they are able to specify a new password in a form. When they submit the form, their password is updated if the token is correct. } |
45b5ec6b5
|
498 |
\item[Priority Level]{``Must''} |
9bdef2907
|
499 |
|
de8099363
|
500 |
\item[Status]{Implemented} |
9bdef2907
|
501 502 503 504 505 506 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
507 |
{The User has created an account before.} |
9bdef2907
|
508 |
\item |
de8099363
|
509 510 511 |
{The User knows the email address attached to their account for our application.} \item {The User can log into their email account.} |
9bdef2907
|
512 513 514 515 516 517 518 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
519 |
{The User's password is changed.} |
9bdef2907
|
520 |
\item |
de8099363
|
521 |
{The User can log in with the new password.} |
9bdef2907
|
522 |
\end{itemize} |
de8099363
|
523 524 |
\item[Trigger]{The User wants to log into the site but does not know their password.} \item[Workflow] |
9bdef2907
|
525 526 527 528 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
529 |
{The User clicks ``Forgot Password'' text on the login page} |
9bdef2907
|
530 |
\item |
de8099363
|
531 |
{The frontend shall render the password reset page from the template requestpasswordreset.html.} |
9bdef2907
|
532 |
\item |
de8099363
|
533 |
{The User shall type in their email address for their account and click the "Reset" button.} |
9bdef2907
|
534 |
\item |
de8099363
|
535 |
{The frontend shall send a POST request to /api/request\_password\_reset/ from RequestResetController.js.} |
9bdef2907
|
536 |
\item |
de8099363
|
537 538 |
{The backend shall check if an account exists with the email entered by the User in views.py in function request\_password\_reset.} |
9bdef2907
|
539 |
\item |
de8099363
|
540 541 |
{The backend shal send an email to the User with a link to the password reset page in models.py in function request\_password\_reset.} |
9bdef2907
|
542 |
\item |
de8099363
|
543 |
{The User will navigate to their email account, open the email, and click the link.} |
9bdef2907
|
544 |
\item |
de8099363
|
545 546 547 548 549 550 |
{The frontend shall render the password reset page from the template resetpassword.html.} \item {The User shall type in their new password and re-type it to confirm it.} \item {The frontend shall check if the new password is long enough and if the confirmed password is the same as the new password in ResetPasswordController.js.} |
9bdef2907
|
551 |
\item |
de8099363
|
552 |
{The frontend shall send a POST request to /api/reset\_password from ResetPasswordController.js.} |
9bdef2907
|
553 |
\item |
de8099363
|
554 |
{The backend shall change the user's password in views.py in function reset\_password.} |
9bdef2907
|
555 |
\item |
de8099363
|
556 |
{The frontend shall redirect the User to the login page. } |
9bdef2907
|
557 |
\item |
de8099363
|
558 |
{The User shall use their new password to login to the application.} |
9bdef2907
|
559 560 561 562 563 564 |
\end{enumerate} \end{description} ewpage {} |
770e764f2
|
565 |
\subsection{[A7] Limit Student Access to Courses} |
9bdef2907
|
566 567 568 569 570 |
\begin{description} \item[Description]{The instructor shall be able to limit access to the courses that he is in charge of by whitelisting only those students that are actually in the class.} |
45b5ec6b5
|
571 |
\item[Desired Outcome]{The class will have limited access and only those |
9bdef2907
|
572 |
users who are whitelisted may enroll in the class.} |
45b5ec6b5
|
573 |
\\ |
9bdef2907
|
574 575 576 577 578 |
\item[User Goals]{The instructor wants to limit access to his class so only the students who are actually in his class participate, and nobody else.} {Primary Actor: }{User (instructor)} |
45b5ec6b5
|
579 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
580 |
Login} |
45b5ec6b5
|
581 582 |
\\ \item[Priority Level]{``Should''} |
9bdef2907
|
583 |
|
de8099363
|
584 |
\item[Status]{Implemented} |
9bdef2907
|
585 |
|
45b5ec6b5
|
586 |
\item[Pre-conditions] |
9bdef2907
|
587 588 589 590 591 592 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User has valid instructor's account} \end{itemize} |
45b5ec6b5
|
593 |
\item[Post-conditions] |
9bdef2907
|
594 595 596 597 598 599 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {Only those users who were whitelisted may add the class.} \end{itemize} |
de8099363
|
600 601 |
\item[Trigger]{The course instructor wants to limit the students who can add his class on our application.} |
9bdef2907
|
602 |
|
45b5ec6b5
|
603 |
\item[Workflow] |
9bdef2907
|
604 605 606 607 608 609 610 611 612 613 614 615 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The instructor emails the administrators from his UCSD email address and requests to limit access to his course. He provides a list of emails of the students that are to be whitelisted.} \item {The administrators visit a custom admin page, select the course, and paste the list of emails. They submit the page directly (no separate frontend here) to the server.} \item |
de8099363
|
616 |
{The backend shall create a WhitelistedAddress for each provided email, |
9bdef2907
|
617 618 |
attaching it to the section taught by the instructor.} \item |
de8099363
|
619 |
{The backend shall add any existing users whose email addresses appear |
9bdef2907
|
620 621 622 623 624 |
in the whitelist to the class. } \end{enumerate} \end{description} ewpage |
770e764f2
|
625 |
\subsection{[A8] User Logout} |
9bdef2907
|
626 627 |
\begin{description} |
de8099363
|
628 |
\item[Description]{The User shall be able to log out of his/her account on |
9bdef2907
|
629 |
the site.} |
de8099363
|
630 |
\item[Desired Outcome]{The User's information and data will no longer be |
9bdef2907
|
631 |
accessible after logging out. } |
45b5ec6b5
|
632 |
\\ |
de8099363
|
633 |
\item[User Goals]{The User is done with his/her session of using the |
9bdef2907
|
634 635 |
website, and wants to make sure others cannot access the data in his/her account.} |
45b5ec6b5
|
636 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
637 |
|
45b5ec6b5
|
638 639 640 |
\item[Dependency Use Cases] None \\ \item[Priority Level]{``Must''} |
9bdef2907
|
641 642 |
\item[Status]{Implemented} |
45b5ec6b5
|
643 |
\item[Pre-conditions]{The user is logged into their account} |
9bdef2907
|
644 |
|
45b5ec6b5
|
645 |
\item[Post-conditions]{}{The user's data can no longer be accessed.} |
9bdef2907
|
646 |
|
de8099363
|
647 |
\item[Trigger]{The User no longer wants to be logged into the application.} |
9bdef2907
|
648 649 650 651 652 653 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
de8099363
|
654 |
{The User clicks the 'Logout' button in the upper right hand corner.} |
9bdef2907
|
655 |
\item |
de8099363
|
656 657 658 |
{The backend shall log the User out using the Django logout feature.} \item {The frontend renders the application login page using login.html.} |
9bdef2907
|
659 |
\end{enumerate} |
45b5ec6b5
|
660 |
\end{description} |
9bdef2907
|
661 662 663 |
ewpage |
770e764f2
|
664 |
\subsection{[A9] Contact Admin} |
9bdef2907
|
665 666 |
\begin{description} |
de8099363
|
667 |
\item[Description]{The User shall be able to contact the admin.} |
9bdef2907
|
668 |
|
de8099363
|
669 |
\item[Desired Outcome]{The User shall send a message to the admin; the |
9bdef2907
|
670 |
admin shall receive the message.} |
de8099363
|
671 |
{User Goals:}{The User sends a message to the admin.} |
9bdef2907
|
672 |
|
45b5ec6b5
|
673 |
\item[Primary Actor]{User} |
9bdef2907
|
674 |
|
45b5ec6b5
|
675 676 677 |
\item[Dependency Use Cases]{None} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
678 |
|
de8099363
|
679 |
\item[Status]{Implemented} |
9bdef2907
|
680 |
|
de8099363
|
681 |
\item[Pre-conditions]{The User has an account registered and is logged in.} |
9bdef2907
|
682 |
|
45b5ec6b5
|
683 |
\item[Post-conditions]{The admin receives the user's message.} |
9bdef2907
|
684 |
|
de8099363
|
685 686 |
\item[Trigger]{The User wants to contact the adiminstators of the site with bug reports, questions, or praise. } |
9bdef2907
|
687 688 689 690 691 692 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
7a76b2cdd
|
693 |
{The User shall click the '?' button in the right half of the navbar.} |
de8099363
|
694 695 696 697 698 699 700 701 702 703 |
\item {The frontend shall render the page using the help.html template.} \item {The User shall scroll to the bottom of the page.} \item {The User shall click the text reading "Send Us an Email!"} \item {The frontend shall open Microsoft Outlook or a similar application using the HelpController.js.} \item {The User shall see our email address in the recipients text box.} |
9bdef2907
|
704 705 706 707 708 709 |
\end{enumerate} \end{description} ewpage {} |
b816d0356
|
710 |
\section{Flashcards} |
770e764f2
|
711 |
\subsection{[F1] Push Flashcard} |
9bdef2907
|
712 713 |
\begin{description} |
236734468
|
714 |
\item[Description]{The User shall be able to create a flashcard with their |
9bdef2907
|
715 |
input. } |
236734468
|
716 |
\item[Desired Outcome]{The User shall have the flashcard added to their own |
9bdef2907
|
717 |
deck and the Live Feed. } |
45b5ec6b5
|
718 |
\\ |
236734468
|
719 |
\item[User Goals]{The User will see their flashcard in their deck and the |
9bdef2907
|
720 |
flashcard will be shared with others. } |
45b5ec6b5
|
721 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
722 |
Login, {[}A3{]} Add a Class} |
45b5ec6b5
|
723 724 |
\\ \item[Pre-conditions] |
9bdef2907
|
725 726 727 728 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
236734468
|
729 |
{The User has an account.} |
9bdef2907
|
730 |
\item |
236734468
|
731 |
{The User has added at least one class.} |
9bdef2907
|
732 |
\item |
236734468
|
733 |
{The User has navigated to the live feed for a class.} |
9bdef2907
|
734 735 736 737 738 739 740 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
236734468
|
741 |
{The User has flashcard added to their deck.} |
9bdef2907
|
742 |
\item |
236734468
|
743 |
{The Flashcard is shown in the Live Feed.} |
9bdef2907
|
744 |
\item |
236734468
|
745 |
{Other users can add this flashcard to their decks.} |
9bdef2907
|
746 |
\end{itemize} |
236734468
|
747 |
\item[Trigger]{The User wants to make a flashcard to study.} |
9bdef2907
|
748 |
|
45b5ec6b5
|
749 |
\item[Workflow] |
9bdef2907
|
750 751 752 753 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
236734468
|
754 |
{The User is at the live feed for the class from feed.html.} |
9bdef2907
|
755 |
\item |
05610f49f
|
756 |
{The User shall click on the '+' button at the bottom right of the screen.} |
9bdef2907
|
757 |
\item |
236734468
|
758 |
{The frontend shall present a modal for inputting the flashcard text to the User.} |
9bdef2907
|
759 |
\item |
236734468
|
760 |
{The User shall type in the content of their flashcard.} |
9bdef2907
|
761 |
\item |
236734468
|
762 |
{The User shall highlight keywords in the flashcard text.} |
9bdef2907
|
763 |
\item |
05610f49f
|
764 765 766 |
{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.} |
9bdef2907
|
767 |
\item |
236734468
|
768 769 |
{The backend shall obtain the flashcard information by deserializing the JSON in the POST request in views.py.} |
9bdef2907
|
770 |
\item |
236734468
|
771 772 |
{The backend shall create a new record for this flashcard in the Flashcards table in the database in models.py.} |
9bdef2907
|
773 |
\item |
236734468
|
774 775 |
{The frontend shall publish the newly created card to the live feed of the class using FeedController.js.} |
9bdef2907
|
776 777 |
\end{enumerate} \end{description} |
9bdef2907
|
778 779 |
ewpage |
9bdef2907
|
780 |
{} |
770e764f2
|
781 |
\subsection{[F2] Edit Flashcard} |
9bdef2907
|
782 783 |
\begin{description} |
ba39799e8
|
784 |
\item[Description]{The User shall be able to duplicate the flashcard authored by a different user and make changes to it.} |
9bdef2907
|
785 |
|
ba39799e8
|
786 |
\item[Desired Outcome]{The new flashcard is edited and saved appropriately.} |
45b5ec6b5
|
787 |
\\ |
ba39799e8
|
788 |
\item[User Goals]{To create a flashcard similar to an existing flashcard but with minor changes.} |
9bdef2907
|
789 |
|
45b5ec6b5
|
790 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
791 792 793 794 795 796 797 798 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard, {[}F3{]} Pull Flashcard} \item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
ba39799e8
|
799 |
{The flashcard to be edited is visible in the user's feed view or deck view.} |
9bdef2907
|
800 |
\item |
ba39799e8
|
801 |
{The user is currently in the feed view or the deck view of the course the card to be edited belongs to.} |
9bdef2907
|
802 803 804 805 806 807 808 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
ba39799e8
|
809 |
{A duplicate flashcard with some differences is created.} |
9bdef2907
|
810 |
\end{itemize} |
ba39799e8
|
811 |
\item[Trigger] {The User wants to duplicate a card and make some changes to it and thus create a new flashcard.} |
45b5ec6b5
|
812 |
\item[Workflow] |
9bdef2907
|
813 814 815 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt |
ba39799e8
|
816 817 |
\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.} |
9bdef2907
|
818 |
\item |
ba39799e8
|
819 |
{The frontend shall produce an editable dialog box containing the flashcard |
7532c7eed
|
820 |
text } |
9bdef2907
|
821 822 823 |
\item {The user shall make desired changes} \item |
ba39799e8
|
824 |
{The user shall click `Save Changes'} |
9bdef2907
|
825 826 |
\item {The client shall generate a POST request for a new flashcard and send |
ba39799e8
|
827 |
it to the server at /api/flashcards/} |
9bdef2907
|
828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 |
\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} \item {push it to the feed} \item {add it to the user's deck} \item {hide the old card from the user} \item {and return the new card to the user} \end{enumerate} \end{description} {} ewpage {} |
770e764f2
|
856 |
\subsection{[F3] Pull Flashcard} |
45b5ec6b5
|
857 858 |
\begin{description} \item[Description]{The User shall be able to add flash cards to their own |
9bdef2907
|
859 |
deck from the Live Feed. } |
45b5ec6b5
|
860 |
\item[Desired Outcome]{The User shall have the flashcard added to their own |
9bdef2907
|
861 |
deck } |
45b5ec6b5
|
862 |
\\ |
9bdef2907
|
863 |
\item[User Goals]{The user will be able to review that flashcard. } |
45b5ec6b5
|
864 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
865 |
|
45b5ec6b5
|
866 867 868 869 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashard} \\ \item[Priority Level]{``Must'' } |
9bdef2907
|
870 |
|
7532c7eed
|
871 |
\item[Status]{Implemented} |
9bdef2907
|
872 |
|
45b5ec6b5
|
873 |
\item[Pre-conditions] |
9bdef2907
|
874 875 876 877 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
878 |
{A flashcard has been created and is in the Live Feed for a class. } |
9bdef2907
|
879 |
\item |
7532c7eed
|
880 |
{The User is currently viewing the Live Feed for that class.} |
9bdef2907
|
881 882 883 884 885 886 887 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
888 |
{User shall have that flashcard added to their deck.} |
9bdef2907
|
889 |
\item |
7532c7eed
|
890 |
{User can review this flashcard later.} |
9bdef2907
|
891 |
\end{itemize} |
7532c7eed
|
892 |
\item[Trigger]{The User wants to save a flashcard for review later.} |
9bdef2907
|
893 |
|
45b5ec6b5
|
894 |
\item[Workflow] |
9bdef2907
|
895 896 897 898 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
9bdef2907
|
899 900 901 |
{User shall click on the ``Pull Flashcard'' button on a Flashcard in the Feed.} \item |
7532c7eed
|
902 |
{The frontend shall } |
9bdef2907
|
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
\item {The Client shall make the pulled Flashcard appear in the User's Deck on the sidebar.} \item {The Client shall submit a POST request to /api/flashcards/\textless{}flashcard id\textgreater{}/pull} \item {The server shall create a UserFlashcard object to represent that the user's deck contains the card.} \item {The server shall notify connected clients about the new card rating, if any} \item {Connected clients will take the new rating into account when next rearranging the feed.} \end{enumerate} \end{description} ewpage {} |
770e764f2
|
924 |
\subsection{[F4] Flag Inappropriate Cards} |
9bdef2907
|
925 926 927 |
\begin{description} \item[Description]{Cards may be flagged indicating inappropriate content} |
45b5ec6b5
|
928 |
\item[Desired Outcome]{The flashcard's inappropriateness variable is |
7532c7eed
|
929 |
adjusted.} |
45b5ec6b5
|
930 |
\\ |
9bdef2907
|
931 |
\item[User Goals]{To note if a card should not belong in the class and |
7532c7eed
|
932 |
should not be displayed in the feed.} |
9bdef2907
|
933 |
|
45b5ec6b5
|
934 |
\item[Primary Actor]{User (Student)} |
9bdef2907
|
935 |
|
45b5ec6b5
|
936 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
937 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard} |
45b5ec6b5
|
938 939 |
\\ \item[Priority Level]{``Should''} |
9bdef2907
|
940 |
|
7532c7eed
|
941 |
\item[Status]{Implemented} |
9bdef2907
|
942 943 944 945 946 947 948 949 950 951 952 953 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User is enrolled in a class} \end{itemize} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
954 955 956 |
{Flashcard is created.} \item {Flashcard is viewable in feed.} |
9bdef2907
|
957 |
\item |
7532c7eed
|
958 |
{The User has clicked the red button on the flashcard which is the "Hide Card" button.} |
9bdef2907
|
959 960 961 962 963 964 965 |
\end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
966 |
{Flashcard is hidden from user.} |
9bdef2907
|
967 |
\item |
7532c7eed
|
968 |
{Flashcard internal variable is adjusted.} |
9bdef2907
|
969 |
\end{itemize} |
7532c7eed
|
970 |
\item[Trigger]{The User does not like the particular flashcard.} |
9bdef2907
|
971 972 973 974 975 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt |
7532c7eed
|
976 977 |
\item { The frontend displays a toast that offers the User the report text.} |
9bdef2907
|
978 |
\item |
7532c7eed
|
979 |
{The User clicks the ``Report'' text on the flashcard.} |
9bdef2907
|
980 |
\item |
7532c7eed
|
981 |
{The frontend shall hide the flashcard from the User.} |
9bdef2907
|
982 |
\item |
7532c7eed
|
983 |
{The backend shall check if the User already hid the flashcard in views.py function report.} |
9bdef2907
|
984 |
\item |
7532c7eed
|
985 |
{The backend shall hide the flashcard in models.py in class FlashcardHide. } |
9bdef2907
|
986 987 988 989 990 991 992 993 994 995 |
\end{enumerate} \end{description} {} {} ewpage {} |
7532c7eed
|
996 |
\subsection{[F5] Filter Flashcards - Deferred} |
9bdef2907
|
997 998 |
\begin{description} |
7532c7eed
|
999 |
\item[Description]{The User is able to filter for flashcards by date.} |
9bdef2907
|
1000 |
|
7532c7eed
|
1001 1002 |
\item[Desired Outcome]{The User shall see flashcards based on the filter options.} |
9bdef2907
|
1003 |
|
7532c7eed
|
1004 1005 |
{User Goals:}{The User can find what he/she is specifically looking for.} |
9bdef2907
|
1006 |
|
45b5ec6b5
|
1007 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1008 |
|
45b5ec6b5
|
1009 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
1010 1011 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard, {[}F3{]} Pull Flashcard} |
45b5ec6b5
|
1012 1013 |
\\ \item[Priority Level]{''Should''} |
9bdef2907
|
1014 |
|
7532c7eed
|
1015 |
\item[Status]{Not Implemented } |
9bdef2907
|
1016 |
|
45b5ec6b5
|
1017 |
\item[Pre-conditions] |
9bdef2907
|
1018 1019 1020 1021 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
1022 |
{User has added the class.} |
9bdef2907
|
1023 |
\item |
7532c7eed
|
1024 1025 1026 |
{Flashcards exist in the course.} \item {The User has navigated to the study page.} |
9bdef2907
|
1027 |
\end{itemize} |
45b5ec6b5
|
1028 |
\item[Post-conditions]{} |
9bdef2907
|
1029 1030 1031 1032 1033 1034 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User only sees specific flashcards} \end{itemize} |
7532c7eed
|
1035 |
\item[Trigger]{The User wants to only see cards for a specific date range.} |
9bdef2907
|
1036 1037 1038 1039 1040 1041 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
7532c7eed
|
1042 |
{The frontend shall render the page described in study.html.} |
9bdef2907
|
1043 |
\item |
7532c7eed
|
1044 |
{The User fills in the date fields.} |
9bdef2907
|
1045 |
\item |
7532c7eed
|
1046 |
{The frontend checks the date fields before making the POST request to /api/study.} |
9bdef2907
|
1047 |
\item |
7532c7eed
|
1048 1049 |
{The system follows the Study workflow, displaying only cards made within a certain date time.} |
9bdef2907
|
1050 1051 1052 1053 1054 1055 1056 1057 |
\end{enumerate} \end{description} {} ewpage {} |
770e764f2
|
1058 |
\subsection{[F6] Blank Out Words in Flashcard} |
9bdef2907
|
1059 1060 1061 1062 |
\begin{description} \item[Description]{The User shall be able to blank out keywords in any flashcard in his deck. } |
45b5ec6b5
|
1063 |
\item[Desired Outcome]{The blanked out words in the flashcard notify the |
9bdef2907
|
1064 |
System that they are keywords. } |
45b5ec6b5
|
1065 |
\\ |
9bdef2907
|
1066 1067 1068 1069 1070 |
\item[User Goals]{The User shall mark some words as keywords so the System may later quiz theirself by blanking out the keywords and having the User guess what they are.} {Primary Actor: }{User (student)} |
45b5ec6b5
|
1071 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
1072 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard} |
45b5ec6b5
|
1073 1074 |
\\ \item[Priority Level]{``Must''} |
9bdef2907
|
1075 |
|
49c93c039
|
1076 |
\item[Status]{Implemented.} |
9bdef2907
|
1077 |
|
45b5ec6b5
|
1078 |
\item[Pre-conditions] |
9bdef2907
|
1079 1080 1081 1082 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item |
49c93c039
|
1083 |
{The User has an account and is logged in.} |
9bdef2907
|
1084 |
\item |
49c93c039
|
1085 1086 1087 1088 1089 |
{The User shall be on the Live Feed for the class.} \item {The User has clicked the 'c' hotkey or the 'plus' button to start making a card.} \item {The User shall type in information relevant to their class.} |
9bdef2907
|
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 |
\end{itemize} {Post-conditions: } \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {The blanked out words in the flashcard are marked as keywords.} \item {The System shall blank out the keywords and let the User guess what they are when it presents the flashcard to the User for reviewing.} \end{itemize} |
49c93c039
|
1102 |
\item[Trigger]{The User wants to make a flashcard and be quizzed on parts of the flashcard while they study.} |
9bdef2907
|
1103 |
|
45b5ec6b5
|
1104 |
\item[Workflow] |
9bdef2907
|
1105 1106 1107 1108 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
49c93c039
|
1109 |
{The User shall highlight the words that he wishes to blank out.} |
9bdef2907
|
1110 |
\item |
49c93c039
|
1111 |
{The User shall click the 'Contribute' button.} |
9bdef2907
|
1112 |
\item |
49c93c039
|
1113 1114 |
{The backend shall mark those words by updating the field mask for that userflashcard object in views.py in function create. } |
9bdef2907
|
1115 |
\item |
49c93c039
|
1116 |
{The backend shall save those in models.py.} |
9bdef2907
|
1117 |
\item |
49c93c039
|
1118 |
{The frontend shall change the color of the text that was blanked out in flashcard.html.} |
9bdef2907
|
1119 1120 1121 1122 1123 1124 1125 |
\end{enumerate} {Alternative Workflows:} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
49c93c039
|
1126 |
{Precondition: The User has clicked the edit flashcard button instead of creating a new card.} |
9bdef2907
|
1127 |
\item |
49c93c039
|
1128 |
{The User shall highlight selection text and click either ctrl-b or 'Blank Selected Text'.} |
9bdef2907
|
1129 |
\item |
49c93c039
|
1130 1131 |
{The backend shall mark those words by updating the field mask for that userflashcard object in views.py in function create. } |
9bdef2907
|
1132 |
\item |
49c93c039
|
1133 |
{The backend shall save those in models.py.} |
9bdef2907
|
1134 |
\item |
49c93c039
|
1135 |
{The frontend shall change the color of the text that was blanked out in flashcard.html.} |
9bdef2907
|
1136 1137 1138 1139 1140 1141 1142 1143 |
\end{enumerate} \end{description} {} ewpage {} |
770e764f2
|
1144 |
\subsection{[F7] Fix Flashcard} |
9bdef2907
|
1145 1146 1147 1148 |
\begin{description} \item[Description]{The User shall be able to alter a flashcard he/she made originally and not have to make a new copy of it.} |
45b5ec6b5
|
1149 |
\item[Desired Outcome]{The User shall alter one flashcard and that |
9bdef2907
|
1150 |
alteration will be shown to all users of that flashcard} |
45b5ec6b5
|
1151 |
\\ |
9bdef2907
|
1152 1153 |
\item[User Goals]{The user shall make the flashcard say something different than it did originally.} |
45b5ec6b5
|
1154 |
\item[Primary Actor]{User (student) } |
9bdef2907
|
1155 |
|
45b5ec6b5
|
1156 |
\item[Dependency Use Cases]{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
1157 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard} |
45b5ec6b5
|
1158 |
\\ |
9bdef2907
|
1159 1160 1161 |
\item[Priority Level]{Must} \item[Status]{Not Implemented} |
45b5ec6b5
|
1162 |
\item[Pre-conditions] |
9bdef2907
|
1163 1164 1165 1166 1167 1168 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User has created the flashcard} \end{itemize} |
45b5ec6b5
|
1169 |
\item[Post-conditions]{} |
9bdef2907
|
1170 1171 1172 1173 1174 1175 1176 1177 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {The user shall see their alteration for that flashcard} \item {Other users will be notified of the alteration} \end{itemize} |
45b5ec6b5
|
1178 |
\item[Trigger]{User (creator of original card) has clicked on the button |
9bdef2907
|
1179 |
``Edit''} |
45b5ec6b5
|
1180 |
\item[Workflow] |
9bdef2907
|
1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User shall select one of the Flashcards they authored.} \item {User shall select ``Edit'' button on the flashcard.} \item {Client shall display an ``Edit Flashcard'' view.} \item {The Flashcard will display editable fields/areas.} \item {The User shall input any changes to the Flashcard.} \item {The User shall select the ``Done Editing'' button.} \item {The Client shall close the ``Edit Flashcard'' view.} \item {The server shall update the Flashcard's content.} \item {Client shall notify users with the Flashcard that the Flashcard has been edited, allowing the other users to keep or to discard the changes.} \end{enumerate} \end{description} {} {} {} ewpage {} |
47f919c27
|
1216 |
\subsection{[F8] Hide Cards} |
9bdef2907
|
1217 1218 1219 |
\begin{description} \item[Description]{The user shall be able to hide cards from feed} |
45b5ec6b5
|
1220 1221 |
\item[Desired Outcome]{The card is no longer visible to the user} \\ |
9bdef2907
|
1222 1223 1224 1225 |
\item[User Goals]{The card has been looked at and should be hidden to reduce screen clutter} {Primary Actor: }{User (Student)} |
45b5ec6b5
|
1226 |
\item[Dependency Use Cases]{}{}{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
1227 |
Login, {[}A3{]} Add a Class, {[}F1{]} Push Flashcard} |
45b5ec6b5
|
1228 1229 |
\\ \item[Priority Level]{``Should''} |
9bdef2907
|
1230 |
|
47f919c27
|
1231 |
{Status:}{Implemented} |
9bdef2907
|
1232 |
|
47f919c27
|
1233 |
\item[Pre-conditions]{Flashcard is created, flashcard is viewable by user.} |
9bdef2907
|
1234 |
|
45b5ec6b5
|
1235 |
\item[Post-conditions]{Flashcard is not viewable by user} |
9bdef2907
|
1236 |
|
47f919c27
|
1237 |
\item[Trigger]{The User no longer wants to see a card in their feed and deck.} |
9bdef2907
|
1238 |
|
45b5ec6b5
|
1239 |
\item[Workflow] |
9bdef2907
|
1240 1241 1242 1243 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
47f919c27
|
1244 |
{The User chooses a class from the drop down menu.} |
9bdef2907
|
1245 |
\item |
47f919c27
|
1246 |
{The frontend renders the Live Feed for the selected class from feed.html.} |
9bdef2907
|
1247 |
\item |
47f919c27
|
1248 |
{The User sees a card they want to hide.} |
9bdef2907
|
1249 |
\item |
47f919c27
|
1250 |
{The User shall press the ``Hide Flashcard'' button on the card to be |
9bdef2907
|
1251 1252 |
hidden.} \item |
47f919c27
|
1253 1254 1255 1256 1257 1258 1259 |
{The frontend shall make a request to the backend from FeedController.js.} \item {The backend shall check if the User has already hidden that card in views.py.} \item {The backend shall change the falshcard to hidden in the models.py.} \item {The frontend shall no longer show that card when the feed is rendered.} |
9bdef2907
|
1260 1261 1262 1263 1264 1265 1266 1267 |
\end{enumerate} \end{description} ewpage {} |
770e764f2
|
1268 |
\subsection{[F9] View a Feed} |
9bdef2907
|
1269 1270 |
\begin{description} |
47f919c27
|
1271 |
\item[Description]{The User shall be able to view Live Feeds for different |
9bdef2907
|
1272 |
classes} |
45b5ec6b5
|
1273 |
\item[Desired Outcome]{The system shall only show the user Live Feeds for |
9bdef2907
|
1274 |
specific classes. } |
45b5ec6b5
|
1275 |
\\ |
47f919c27
|
1276 |
\item[User Goals]{The User will see only one Live Feed at a time. } |
9bdef2907
|
1277 |
|
45b5ec6b5
|
1278 |
\item[Dependency Use Cases]{}{}{{[}A1{]} User Registration, {[}A2{]} User |
9bdef2907
|
1279 |
Login, {[}A3{]} Add a Class} |
45b5ec6b5
|
1280 1281 |
\\ \item[Priority Level]{``Must''} |
9bdef2907
|
1282 |
|
47f919c27
|
1283 |
{Status:}{Implemented} |
9bdef2907
|
1284 |
|
47f919c27
|
1285 |
\item[Pre-conditions]{User has added a class.} |
9bdef2907
|
1286 |
|
45b5ec6b5
|
1287 |
\item[Post-conditions]{User shall see the Live Feed for that class} |
9bdef2907
|
1288 |
|
45b5ec6b5
|
1289 |
\item[Trigger]{User shall select a class} |
9bdef2907
|
1290 |
|
45b5ec6b5
|
1291 |
\item[Workflow] |
9bdef2907
|
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The User logs into their account.} \item {The System verifies the User's credentials and saves their session.} \item {The User is at their dashboard.} \item {The Client shows the User's dashboard.} \item {The User selects a class from their dashboard.} \item {The Client displays the Live Feed for the class.} \end{enumerate} \end{description} ewpage {} |
b816d0356
|
1314 |
\section{Decks} |
47f919c27
|
1315 |
\subsection{[-D2-] Making a deck - Removed} |
9bdef2907
|
1316 1317 1318 1319 1320 |
\begin{description} \item[Description]{Upon selecting the right course, the student has the power to make a deck by either selecting existing flashcard or adding a new flashcard.} |
45b5ec6b5
|
1321 1322 |
\item[Desired Outcome]{The user can keep track of cards that s/he wants.} \\ |
9bdef2907
|
1323 |
\item[User Goals]{The user has a personal deck ready for review later.} |
45b5ec6b5
|
1324 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1325 |
|
45b5ec6b5
|
1326 |
\item[Dependency Use Cases]{Add a class {[}A3{]}, Add Flashcards to Deck |
9bdef2907
|
1327 |
{[}F1{]}, Make a Flashcard {[}F3{]}} |
45b5ec6b5
|
1328 1329 |
\\ \item[Priority Level]{``Must''} |
9bdef2907
|
1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
\item[Status]{In Progress} \item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {The user has an account with the application. } \item {The user has been added to the desired class.} \end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {Desired cards are added to user's deck to the specific class } \item {User's deck is added to the database.} \end{itemize} |
45b5ec6b5
|
1352 |
\item[Trigger]{User has selected a card from the pool. User submitted a |
9bdef2907
|
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 |
new flashcard after ``Make New Flashcard''.} \item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User is at their dashboard.} \item {User selects the class of interest that they had no activity in yet.} \item {Client displays the Live Feed for the class.} \item {User presses ``Pull Flashcard'' button on a Flashcard that they want in their Deck.} \item {The server creates a Deck for the User for the Class of interest.} \item {The server adds the Flashcard to the User's Deck.} \item {The Client makes the Flashcard disappear from the Live Feed.} \item {The Client displays the Flashcard in the User's Deck in the sidebar.} \end{enumerate} {Alternate Workflow:} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User is at their dashboard.} \item {User selects the class of interest that they had no activity in yet.} \item {Client displays the Live Feed for the class.} \item {The User adds a Flashcard into the Class.} \item {The server creates a Deck for the User for the Class of interest.} \item {The server adds the new Flashcard to the User's Deck.} \item {The Client makes the Flashcard disappear from the Live Feed.} \item {The Client displays the Flashcard in the User's Deck in the sidebar.} \end{enumerate} \end{description} ewpage {} |
770e764f2
|
1404 |
\subsection{[D1] Remove a card from a deck} |
9bdef2907
|
1405 1406 1407 |
\begin{description} \item[Description]{The user can remove flashcards from their deck.} |
45b5ec6b5
|
1408 1409 |
\item[Desired Outcome]{The user will not be notified about that card. } \\ |
9bdef2907
|
1410 |
\item[User Goals]{To only review cards that the user wants to review. } |
45b5ec6b5
|
1411 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1412 |
|
45b5ec6b5
|
1413 |
\item[Dependency Use Cases]{Add a class {[}A3{]}, Add Flashcards to Deck |
9bdef2907
|
1414 |
{[}F1{]}, Make a Flashcard {[}F3{]}} |
45b5ec6b5
|
1415 1416 |
\\ \item[Priority Level]{``Must''} |
9bdef2907
|
1417 |
|
47f919c27
|
1418 |
\item[Status]{Implemented} |
9bdef2907
|
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 |
\item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {The User has an account with the application} \item {The User is logged in} \end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {Desired cards are hidden to the user.} \end{itemize} |
45b5ec6b5
|
1437 |
\item[Trigger]{User has selected a card to be hidden.} |
9bdef2907
|
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The Client shows the user the dashboard.} \item {The User shall select the appropriate class.} \item {The System checks if the class is in session.} \item {The User shall select deck view.} \item {The Client shall route the user to the deck view.} \item {The User clicks a flashcard's remove button.} \item |
45b5ec6b5
|
1456 |
{The Client shall send a DELETE request to the server}{}{at |
9bdef2907
|
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 |
/api/flashcard/\textless{}flashcard ID\textgreater{}/remove} \item {The Server removes the flashcard from the User's Deck.} \item {The Server updates the flashcard's position in the Live Feed.} \item {The Client updates the User's Deck.} \end{enumerate} {} {Alternate Workflow:} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The Client shows the user the dashboard.} \item {The User shall select the appropriate class.} \item |
45b5ec6b5
|
1477 |
{The System checks if the class is }{not}{in session.} |
9bdef2907
|
1478 1479 1480 1481 1482 |
\item {The Client shall the user to the deck view.} \item {The User clicks a flashcard's remove button.} \item |
45b5ec6b5
|
1483 |
{The Client shall send a DELETE request to the server}{}{at |
9bdef2907
|
1484 1485 1486 1487 1488 1489 1490 1491 1492 |
/api/flashcard/\textless{}flashcard ID\textgreater{}/remove} \item {The Server removes the flashcard from the User's Deck.} \item {The Server updates the flashcard's position in the Live Feed.} \item {The Client updates the User's Deck.} \end{enumerate} \end{description} |
9bdef2907
|
1493 |
|
47f919c27
|
1494 |
\subsection{[-D2-] Shuffling deck - Removed} |
9bdef2907
|
1495 1496 1497 1498 |
\begin{description} \item[Description]{User is able to shuffle his/her deck as a way to study the flashcards} |
45b5ec6b5
|
1499 |
\item[Desired Outcome]{When taking a quiz, the user will notice that |
9bdef2907
|
1500 |
flashcards appear in random order} |
45b5ec6b5
|
1501 |
{User Goals:}{Improve quiz taking skills and knowledge consumption} |
9bdef2907
|
1502 |
|
45b5ec6b5
|
1503 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1504 |
|
45b5ec6b5
|
1505 1506 1507 |
\item[Dependency Use Cases]{Deck has been created {[}D2{]}} \\ \item[Priority Level]{}{''Won't''} |
9bdef2907
|
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 |
\item[Status]{Implemented } \item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User must have registered for course } \end{itemize} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User must have added cards to deck} \end{itemize} |
45b5ec6b5
|
1524 |
\item[Post-conditions]{} |
9bdef2907
|
1525 1526 1527 1528 1529 1530 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User takes a quiz and notice the deck has been shuffled} \end{itemize} |
45b5ec6b5
|
1531 |
\item[Trigger]{User has clicked on the button ``SHUFFLE DECK''} |
9bdef2907
|
1532 |
|
45b5ec6b5
|
1533 |
\item[Workflow] |
9bdef2907
|
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User is on the homepage.} \item {User selects the ``Study'' button for the Class they want to view or shuffle cards for.} \item {The Client displays their Deck for the Class of interest.} \item {User clicks on ``shuffle deck'' button to shuffle the deck, randomizing the order in which it will be displayed.} \item {The Client displays a change in card ordering.} \item {System reorders cards' study order.} \end{enumerate} {Alternate Workflow: } \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User is on the homepage.} \item {User selects Class of interest.} \item {The Client displays the Live Feed for the Class.} \item {User clicks on ``shuffle deck'' button to shuffle the deck, randomizing the order in which it will be displayed.} \item {The Client displays a change in card ordering.} \item {System reorders cards' study order.} \end{enumerate} \end{description} {} ewpage {} |
770e764f2
|
1578 |
\subsection{[D2] Viewing cards in deck by pull time} |
9bdef2907
|
1579 1580 1581 1582 |
\begin{description} \item[Description]{The user is able to organize the deck by Flashcards' pull timestamps.} |
45b5ec6b5
|
1583 |
\item[Desired Outcome]{The user views the deck in time ascending/descending |
9bdef2907
|
1584 |
order.} |
45b5ec6b5
|
1585 |
\\ |
9bdef2907
|
1586 |
\item[User Goals]{To organize the card for easier editing purpose.} |
45b5ec6b5
|
1587 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1588 |
|
45b5ec6b5
|
1589 1590 1591 |
\item[Dependency Use Cases]{View by pull timestamp.} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
\item[Status]{In Progress} \item[Pre-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User has an account with the application.} \item {User is logged in.} \item {User has a deck with at least 1 flashcard.} \item {User is at the deck view for a class.} \end{itemize} \item[Post-conditions] \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {Cards in the deck are in time order.} \end{itemize} |
45b5ec6b5
|
1616 |
\item[Trigger]{User selects organize by add time.} |
9bdef2907
|
1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 |
\item[Workflow] \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The Client shows the user the Deck View.} \item {The User shall select the option to sort the deck by ascending time.} \item {The Client shall submit a form POST request to the server at /api/deck/ about the order} \item {The Server shall return the ordered view of the deck.} \item {The Client displays the cards in the ascending view of the pull time.} \end{enumerate} {} {Alternate WorkFlow:} \begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The Client shows the user the Deck View.} \item {The User shall select the option to sort the deck by descending time.} \item {The Client shall submit a form POST request to the server at /api/deck/ about the order} \item {The Server shall return the descending view of the deck.} \item {The Client displays the cards in the descending view of the pull time.} \end{enumerate} \end{description} ewpage {} |
b816d0356
|
1661 |
\section{Review} |
770e764f2
|
1662 |
\subsection{[R1] Study Deck} |
9bdef2907
|
1663 1664 1665 1666 |
\begin{description} \item[Description]{The User shall be able to look at the cards in his/her deck in order to study them} |
45b5ec6b5
|
1667 |
\item[Desired Outcome]{The User shall be presented with individual |
9bdef2907
|
1668 1669 |
flashcards in an optimized order. Blanks will be empty and the user will have a text boxes to fill in.} |
45b5ec6b5
|
1670 |
\\ |
9bdef2907
|
1671 1672 |
\item[User Goals]{The user shall be able to study all flashcards in his/her deck from the appropriate class.} |
45b5ec6b5
|
1673 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1674 |
|
45b5ec6b5
|
1675 1676 1677 |
\item[Dependency Use Cases]{{[}F1{]}} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
1678 1679 |
\item[Status]{Not Implemented} |
45b5ec6b5
|
1680 |
\item[Pre-conditions] |
9bdef2907
|
1681 1682 1683 1684 1685 1686 1687 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User is logged in} \item {User has added cards to his/her deck} |
9bdef2907
|
1688 |
\end{itemize} |
45b5ec6b5
|
1689 |
\item[Post-conditions]{} |
9bdef2907
|
1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User shall see a single card with blanks.} \end{itemize} \begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User shall be presented with text boxes to fill in} \end{itemize} |
2ea9c20eb
|
1702 |
\item[Trigger]{User wishes to study flashcards compiled for a specific class.} |
9bdef2907
|
1703 |
|
45b5ec6b5
|
1704 |
\item[Workflow] |
9bdef2907
|
1705 1706 1707 1708 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item |
2ea9c20eb
|
1709 1710 1711 1712 1713 1714 1715 1716 |
{The User shall view a class.} \item {The User shall click on the button ``Study Deck''.} \item {The Client shall send POST request to the Server for a flashcard (ordering based on a hidden algorithm).} \item {The Client shall display the Study View to the User with blanks to fill in.} |
9bdef2907
|
1717 |
\item |
2ea9c20eb
|
1718 |
{The User shall fill in the blanks.} |
9bdef2907
|
1719 |
\item |
2ea9c20eb
|
1720 |
{The Client shall send the User's response back to the Server in POST.} |
9bdef2907
|
1721 |
\item |
2ea9c20eb
|
1722 |
{The Server shall inform the Client of how correct the User's repsonse was.} |
9bdef2907
|
1723 |
\item |
2ea9c20eb
|
1724 |
{The Client shall display said results to User.} |
9bdef2907
|
1725 |
\item |
2ea9c20eb
|
1726 1727 1728 1729 1730 1731 |
{The Client shall produce two buttons for the User, indicating whether or not the card was answered correctly based on the provided results.} \item {The User shall select their desired response.} \item {The Client shall relay response to server in a POST request.} |
9bdef2907
|
1732 1733 1734 |
\item {The Server saves the response and updates statistics about the flashcard.} |
2ea9c20eb
|
1735 1736 |
\item {Loop back to 3.} |
9bdef2907
|
1737 1738 1739 1740 1741 1742 |
\end{enumerate} \end{description} ewpage {} |
770e764f2
|
1743 |
\subsection{[R2] Review Notification} |
9bdef2907
|
1744 1745 1746 1747 |
\begin{description} \item[Description]{The User shall be notified when to review each specific card} |
45b5ec6b5
|
1748 |
\item[Desired Outcome]{The User shall receive a notification when it is |
9bdef2907
|
1749 |
time to review a specific card using a spaced repetition formula} |
45b5ec6b5
|
1750 |
\\ |
9bdef2907
|
1751 1752 |
\item[User Goals]{The user shall see the notification and which card needs to be reviewed} |
45b5ec6b5
|
1753 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1754 |
|
45b5ec6b5
|
1755 1756 1757 |
\item[Dependency Use Cases]{{[}A1{]}, {[}A2{]}} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
1758 1759 |
\item[Status]{Not Implemented} |
45b5ec6b5
|
1760 |
\item[Pre-conditions] |
9bdef2907
|
1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User has an account with the system. } \item {User is logged in.} \item {User has cards in his/her deck.} \end{itemize} |
45b5ec6b5
|
1771 |
\item[Post-conditions]{} |
9bdef2907
|
1772 1773 1774 1775 1776 1777 1778 1779 1780 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {System shall calculate when to next present the card based on a memory decay formula.} \item {User shall be notified.} \end{itemize} |
45b5ec6b5
|
1781 |
\item[Trigger]{The delay time for a card to be shown has passed} |
9bdef2907
|
1782 |
|
45b5ec6b5
|
1783 |
\item[Workflow] |
9bdef2907
|
1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {The Server analyzes a User's flashcard's statistics and when they last reviewed the card to determine when to send the flashcard notification.} \item {The Server shall send a notification to the User at the specified review time.} \item {The Client receives a ``Review Flashcard'' notification.} \item |
2ea9c20eb
|
1797 1798 |
{The Client displays a notification n Sidebar that allows the User to study the specified flashcards in the queue.} |
9bdef2907
|
1799 1800 1801 1802 1803 1804 |
\end{enumerate} \end{description} ewpage {} |
770e764f2
|
1805 |
\subsection{[R3] Configure Account Notifications} |
9bdef2907
|
1806 1807 1808 |
\begin{description} \item[Description]{The User shall be able to turn notifications on or off at will} |
45b5ec6b5
|
1809 |
\item[Desired Outcome]{The User shall only receive notifications at the |
9bdef2907
|
1810 |
times that were specified} |
45b5ec6b5
|
1811 |
\\ |
9bdef2907
|
1812 1813 |
\item[User Goals]{The User shall not be bothered needlessly or at inconvenient times} |
45b5ec6b5
|
1814 |
\item[Primary Actor]{User (student)} |
9bdef2907
|
1815 |
|
45b5ec6b5
|
1816 1817 1818 |
\item[Dependency Use Cases]{\ldots{}} \\ \item[Priority Level]{``Must''} |
9bdef2907
|
1819 1820 |
\item[Status]{Not Implemented} |
45b5ec6b5
|
1821 |
\item[Pre-conditions] |
9bdef2907
|
1822 1823 1824 1825 1826 1827 1828 1829 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User has a verified account} \item {User is at application's home screen} \end{itemize} |
45b5ec6b5
|
1830 |
\item[Post-conditions]{} |
9bdef2907
|
1831 1832 1833 1834 1835 1836 |
\begin{itemize} \itemsep1pt\parskip0pt\parsep0pt \item {User only receive notifications at specified times} \end{itemize} |
45b5ec6b5
|
1837 |
\item[Trigger]{User indicates that they want to change their notification |
9bdef2907
|
1838 |
settings} |
45b5ec6b5
|
1839 |
\item[Workflow] |
9bdef2907
|
1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 |
\begin{enumerate} \itemsep1pt\parskip0pt\parsep0pt \item {User selects ``Account Settings'' button from a header.} \item {The Client displays a settings screen.} \item {User shall modify notifications and settings as seen fit.} \item {User shall click ``Save Settings'' button.} \item {Client shall display a message confirming the settings are saved.} \item {System shall save notification settings to the user's attributes.} \end{enumerate} \end{description} |
4d2ee9e3e
|
1857 |
\end{document} |