hedy icon indicating copy to clipboard operation
hedy copied to clipboard

[UI] "preview as student" option for teachers

Open Felienne opened this issue 2 years ago • 2 comments

Idea incl level

It will be a lot of work but it would be great if we could have a "view as student" button in the Teacher's UI where a teacher can see exactly what the interface will look like for students (I do this my opening a second browser but that is kind of cumbersome).

This is quite a common features in such teacher tools.

Felienne avatar Oct 04 '22 11:10 Felienne

I can take a look at this! We might have to discuss this a bit before I start working on this:

  • Do we want to add a button to the customizations page (or the class overview page?)
  • How do we enable the teacher to return to their own profile view
    • Maybe implement an apart routing to view the levels
    • Instead of /hedy/<level> something like /hedy/preview/<class_id>/<level>

Maybe the easiest solution: When the teacher selects 'preview as student' we simply add the teacher as a student to their own class. This way everything is automatically rendered as expected. When using the return option 'overview button, close page old' remove the teacher from the class again.

TiBiBa avatar Oct 06 '22 16:10 TiBiBa

  • Do we want to add a button to the customizations page (or the class overview page?)

I think it only makes sense for customized classes (otherwise teachers can just go to /hedy themselves)

  • How do we enable the teacher to return to their own profile view

    • Maybe implement an apart routing to view the levels
    • Instead of /hedy/<level> something like /hedy/preview/<class_id>/<level>

That would be lovely! And then add a button or link to go there on the customization page.

Maybe the easiest solution: When the teacher selects 'preview as student' we simply add the teacher as a student to their own class. This way everything is automatically rendered as expected. When using the return option 'overview button, close page old' remove the teacher from the class again.

Ah yeah that would be an easy way to make it work with not too much effort!

But I guess we can also grab the customizations from the database (we already have them to populate all the checkboxes) and use those to render the /hedy/preview/<class_id>/<level> page? That might be a bit less "depending on voodoo"?

Felienne avatar Oct 06 '22 17:10 Felienne

Hi! If this is still open, I would love to be assigned to the issue and work on it!

sfayyad avatar Nov 10 '22 04:11 sfayyad

@sfayyad yes it is still open! It would be great if we could get this to work but it will be very complex (for front and back-end work), so it might be hard to get started? Maybe you want to pick up an issue with the good first issue label first?

Felienne avatar Nov 10 '22 06:11 Felienne

It is complex; however, I have experience working on tasks similar to this, so I believe I can do it!

sfayyad avatar Nov 10 '22 07:11 sfayyad

Great, if you think you can do this, go for it! We'd be happy to have this feature!

Felienne avatar Nov 10 '22 09:11 Felienne

Hi @jtwaleson!

If you are looking for a front-end issue that would add a lot of value, this would be awesome!

Felienne avatar Oct 05 '23 07:10 Felienne

@Felienne I'm going to take a stab at this this week, but it's quite complex and I'll probably have some questions while implementing.

First questions: I'm assuming we only want to view the class, and not impersonate any specific students to "see what they see"? So if we write it as a user story it'd be something like:

"As a teacher I want to see what a customized class looks like as a student so that I can preview it before I open it up to my students."

Is my understanding correct?

Do we want to make this fully read-only, or are you able to also run some programs while in "preview mode"?

jtwaleson avatar Oct 16 '23 09:10 jtwaleson

Consider these:

  • I am not sure if you implemented it knowing, or if it is a side effect, but a teacher can join in their own classes as students. I have used this (and still using) to test score setting on quizzes, level locks, etc.
  • I haven't actually tested what happens if teachers have their own adventure layout, but I fear it won't work as expected because my account is a teacher's.

Then I would suggest two things to have:

  • make teachers a student of their own classes (invisible to students) by default
  • modify pages to have an extra check (and switch button) for teachers to go "non-teacher" view mode, which will become student's view when combined with above. (if is_teacher and as_teacher show view_teacher?!)

yilmazdurmaz avatar Oct 16 '23 11:10 yilmazdurmaz

Thanks, that's helpful context! I haven't looked at the teacher UI much so far so I'll start by exploring that.

jtwaleson avatar Oct 16 '23 11:10 jtwaleson

to find the current way fast, in the class view (create one if none), use "add student" -> "invite by username", write your own username. then you will get notification of the invite and join in upon accepting it.

yilmazdurmaz avatar Oct 16 '23 11:10 yilmazdurmaz

As discussed in the meeting today, we would already be happy with just viewing, editing might not even add value, but certainly is not necessary to move this forward for now.

Felienne avatar Oct 17 '23 19:10 Felienne