-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Mobile experience improvements #4694
Conversation
@arikfr (cc @kravets-levko) I discovered an issue with React Grid Layout/React Draggable (react-grid-layout/react-grid-layout#637 which is closed, but not solved), basically they are disabling touch with A further improvement we can think in there for Plotly is to change the Drag Zoom behavior, I came up with a few possible options:
Personally, I'd go with 2 by changing the default tool to a Pan at least for mobiles. There's no cursor to indicate that is a Zooming behavior, so I guess the moving would be expected. |
Do you know why they disable touch? Re. Plotly: I've tried switching to the Move tool but it still captured my interactions. The best solution would be that you had to actively click on the chart to enable interaction with it. Does Plotly support something like this? |
Almost sure is for the drag handle to work properly on resizing (or for moving grid items). I kept it disabled when the dragging is active, but on mobile it shouldn't affect anything. Also it seems it should work on iPads regardless of disabling the touch (I guess most cases where one could want to use a touch interface to edit a dashboard is for tablets). As for plotly I haven't found any options like this yet, but I'll see if I can come out with some ideas on this behavior. |
One ugly workaround is to have a div on top of the chart, that will catch the touch events. But then we lose the interactivity of the chart. |
Pushed a test commit (0d65f2a), I think it's possible to evolve it with a toggle like the one you mentioned to be necessary to click first (we can explore UI options for it if you think that's the way to go). Other options that occurred to me were to disable it for specific tools (zoom for example) and also Plotly v1.43.0 has introduced |
@arikfr, those are the improvements I came up with (all quick wins are implemented):
For the last 2, the TagsList should be better alongside with a series of improvements for Desktop as well (better UI for multiple tags, hide tags when selected, better multi-selection, etc). As for the Dashboard and Alert page headers, the Query one recently had an update to wrap both tags and control buttons, if you think it's worth it I can update them. The dashboard one currently hides a lot of things on the mobile version as the way to solve it. |
I merged this one as it stands on its own. Let's do the Dashboard/Alert page header mobile view now and then discuss how we want to address tags. |
What type of PR is this? (check all applicable)
Description
Improvements on Redash experience for mobile devices.
Improvements:
TagsList
for mobile (not so good for several tags, and add support to multi-select with the touch - this one may deserve a proper UI remake)I'll probably break each of those into new PRs not to block improvements in v9.
Related Tickets & Documents
#2796
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Dashboard scrolling + Plotly
Adjust spacing in Home page
Admin pages max-width