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

Dashboard save fail indication #3715

Merged
merged 4 commits into from
Apr 19, 2019
Merged

Dashboard save fail indication #3715

merged 4 commits into from
Apr 19, 2019

Conversation

ranbena
Copy link
Contributor

@ranbena ranbena commented Apr 17, 2019

What type of PR is this?

  • Feature

Description

Since dashboard auto-save #3653, in case of a failed save, there is a notification but it still says "Saved" at the top as @gabrieldutra rightfully indicated.

This PR adds another boolean flag saveDelay to differentiate 3 states: Saved, Saving, Error.

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

In this recording I block my server url (with developer tools), get error and then turn back on, to demonstrate the flow.

@ranbena ranbena mentioned this pull request Apr 17, 2019
1 task
@ranbena ranbena requested a review from gabrieldutra April 17, 2019 07:18
@ranbena
Copy link
Contributor Author

ranbena commented Apr 18, 2019

I added an additional feature to the "done editing" button:
When dashboard is in saving state and users clicks the button - it changes to loading+disabled
till save completes.

Copy link
Member

@gabrieldutra gabrieldutra left a comment

Choose a reason for hiding this comment

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

Looks nice, I was actually annoyed by the fact that there was an unreachable primary button when it was saving, one last suggestion to it:

When dashboard is in saving state and users clicks the button - it changes to loading+disabled
till save completes.

Shouldn't it auto close edit mode when save completes with success? (It was actually the behavior I expected when testing it 😅)

@ranbena
Copy link
Contributor Author

ranbena commented Apr 19, 2019

Shouldn't it auto close edit mode when save completes with success?

Oh mannnnnn.. I've been working on the dashboard too long 🙃😖Fixed.
ezgif com-video-to-gif (2)

Copy link
Member

@gabrieldutra gabrieldutra left a comment

Choose a reason for hiding this comment

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

Oh mannnnnn.. I've been working on the dashboard too long

😂 at least imo this one flows nicely now

@ranbena ranbena merged commit 10a6ccb into master Apr 19, 2019
@ranbena ranbena deleted the save-fail branch April 19, 2019 18:41
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Nov 14, 2019
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