web-cat / code-workout

CodeWorkout: a programming practice and self-study web site
https://codeworkout.cs.vt.edu
225 stars 82 forks source link

Give the user easy access to an exercise after creating or editing it. #160

Open ayaankazerouni opened 4 years ago

ayaankazerouni commented 4 years ago

After a user (only admins for now) creates an exercise, they're taken back to the referer URL or the exercises_path. Most users want to try out the exercise they just created. The exercise index page has hundreds of exercises and the user can't find their new one easily.

So, either:

  1. Send them to the practice page for that exercise, or
  2. Include a link to the practice page in the feedback message

Option 2 seems better.

ayaankazerouni commented 4 years ago

When an exercise (or multiple exercises) are successfully saved: Screenshot 2020-07-09 at 16 38 48

When some are saved, but there are errors in others: Screenshot 2020-07-09 at 16 41 06

s-edwards commented 3 years ago

Re-opening this one, after some more experience editing/creating exercises.

While the flash notice is good, from certain locations, it would be much nicer to directly send the author to the practice page for the exercise.

If you use "Create New" from the gym, going directly to the exercise's practice page is better than going back to the gym.

If you use the pencil (edit) icon on the exercise while viewing the practice page for the exercise, it makes more sense to go back to the practice page for the exercise instead of to the gym.