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

added feature key navigation user suite #691

Merged
merged 6 commits into from
Jan 28, 2024
Merged

Conversation

agmes4
Copy link
Member

@agmes4 agmes4 commented Jan 26, 2024

Outcome

added a key navigation on the user suite

solves #683

@agmes4 agmes4 requested a review from lukasjuhrich January 26, 2024 20:39
added a key navigation on the user suite
solves #683
@agmes4 agmes4 force-pushed the usersuite_keymapping branch from bec1e08 to add9e85 Compare January 26, 2024 20:56
added a functionality for rolling to the start when pressing next at the end
Copy link
Collaborator

@lukasjuhrich lukasjuhrich left a comment

Choose a reason for hiding this comment

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

The feature is really neat!
We can polish the JS a little here and there, and handle some edge-cases that I found.

web/resources/js/user-suite.ts Outdated Show resolved Hide resolved
web/resources/js/user-suite.ts Outdated Show resolved Hide resolved
web/resources/js/user-suite.ts Outdated Show resolved Hide resolved
web/resources/js/user-suite.ts Outdated Show resolved Hide resolved
web/resources/js/user-suite.ts Outdated Show resolved Hide resolved
web/resources/js/user-suite.ts Show resolved Hide resolved
@lukasjuhrich
Copy link
Collaborator

In a branch user_tabs_no_jumping (commit 1355376), I've fixed the weird jumping that occurs when switching e.g. to/from the log tab. Much smoother I think.

You can cherry-pick this commit: git remote update; git cherry-pick 1355376c7afabb4a973e50d5434e432a716ac512 to include it in this PR if you want.

agmes4 and others added 4 commits January 27, 2024 19:35
changed some code for better readability
also added a check rahter the buttons where pressed when ever the a textfiled/input is selected
This prevents the scrolling when clicking the tab, which is desirable,
especially in conjunction with the new ←/→ arrow-navigation.

Adapts the history control accordingly which previously assumed that
tabs were anchors.
refacored code so the handleKey function is called after pressing the key
@lukasjuhrich
Copy link
Collaborator

@agmes4 if you're done with the changes, ping me, I'll test it briefly again and then I think we can merge :)

@agmes4
Copy link
Member Author

agmes4 commented Jan 27, 2024

I am done @lukasjuhrich :)

@lukasjuhrich lukasjuhrich merged commit daf08ee into develop Jan 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants