Skip to content

Various improvements to the teacher page, incl. some inline documentation #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 12, 2023

Conversation

AltGr
Copy link
Collaborator

@AltGr AltGr commented May 4, 2023

No description provided.

AltGr added 7 commits May 4, 2023 18:23
- optionally allow cancelling (for partition view)
- focus the input field on display
- validate on "enter" keypress
this still affects students it has not been assigned to
the interface is still terrible, and the doc not in the best format, but this is
so much better than nothing ;)
following the previous patches.
Note that the teacher page doc content is not yet translated; contributions welcome ;)
@AltGr
Copy link
Collaborator Author

AltGr commented May 4, 2023

Hm I got some gettext issues on that last patch, otherwise should be good for review
EDIT: should be fixed now

@AltGr
Copy link
Collaborator Author

AltGr commented May 9, 2023

Closes: #521, #534
Addresses part of #523

@@ -211,7 +211,7 @@ let rec teacher_tab token _select _params () =
in
let open_partition_ () =
Lwt.async (fun () ->
ask_string ~title:"Choose a function name"
ask_string ~title:"Partitioning of student solutions"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure that's a valid patch: we really want to ask a function name here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The question is below, this is only the title of the dialog. My reason for this change is that you get there by ctrl-click on an exercise (i.e. not an explicit button) and previously you may get pretty confused as to what this was about.
image

Copy link
Member

@erikmd erikmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AltGr I tested all the features you implemented in this PR, looks really great!

There's only one issue I spotted (I use firefox-esr on Debian 11):

  • 03669eb → the validate on "enter" keypress doesn't work for me in the "Partitioning of student solutions" dialog, the "enter" key is a no-op;
  • while for c341fca → the "enter" key works here.

Can you reproduce the issue?

Apart from that, the PR can be merged as is I think (using a regular merge, NOT using a squash).

@erikmd erikmd added the kind: feature New user-facing feature. label Jun 12, 2023
@AltGr
Copy link
Collaborator Author

AltGr commented Jun 12, 2023

Ah @erikmd it's weird since it's the same code being called… I re-tested and my guess is that it's probably caused by the popup blocker (I know the browsers limit certain triggers to specific events, like you cannot turn the page fullscreen without user interaction, so maybe a click is required in this case). Here is what I get upon pressing the Enter key:
image

@AltGr AltGr merged commit 0b150b9 into ocaml-sf:master Jun 12, 2023
@erikmd
Copy link
Member

erikmd commented Jun 12, 2023

Thanks @AltGr!

Note: don't be surprise that I assign the PR to you after-the-fact; I just follow the convention that PR assignee = merger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: feature New user-facing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants