Skip to content
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

Make ctrl-f more usable on submissions #5158

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Make ctrl-f more usable on submissions #5158

merged 1 commit into from
Nov 16, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Nov 15, 2023

This pull request improves browser search (ctrl-f) features on submission pages.

The issue was that search matched each code element three times as it is repeated in each layer.
This issue was reported by Steven, who made the case for the search feature when trying to understand a students code while grading.

A side effect: copying code will only copy spaces while our custom hack isn't working. This will happen more often with #5157 so accepting this pr will require changes there.

I do not see any other options for fixing this aside of reverting the whole three layered approach for annotations.
But I am open for suggestions.

@jorg-vr jorg-vr added the bug Something isn't working label Nov 15, 2023
@jorg-vr jorg-vr self-assigned this Nov 15, 2023
@jorg-vr jorg-vr requested a review from a team as a code owner November 15, 2023 14:26
@jorg-vr jorg-vr requested review from bmesuere and chvp and removed request for a team November 15, 2023 14:26
Copy link
Member

@bmesuere bmesuere left a comment

Choose a reason for hiding this comment

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

Hmm, I tought I suggested this when implementing 3-layer PR, but that there was some reason not to do it.

@jorg-vr
Copy link
Contributor Author

jorg-vr commented Nov 15, 2023

I think this was part of the reason

A side effect: copying code will only copy spaces while our custom hack isn't working. This will happen more often with #5157 so accepting this pr will require changes there.

I am also not 100% wordbreaks will always be made the same way by browsers. I couldn't find a good definition for what soft-wrap points are considered by the browser. (But couldn't reproduce a breaking case in practice)

@jorg-vr jorg-vr merged commit 82de0d0 into main Nov 16, 2023
15 checks passed
@jorg-vr jorg-vr deleted the fix/ctrl-f branch November 16, 2023 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants