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

add ability to add viz to dashboard from query page #2656

Closed
wants to merge 7 commits into from

Conversation

alison985
Copy link
Contributor

fixes #955

This PR ports the Mozilla functionality upstream.

I had to make a minor tweak to get it to run in the current redash code. I also added feedback to the user that the widget was added successfully which is not in Mozilla's branch.

Original PR with code review is here: mozilla#184

@kocsmy
Copy link
Collaborator

kocsmy commented Jul 1, 2018

Hey @alison985 thanks for the PR, I like this idea. Can you please provide a screenshot about the new button placement + modal?

@kocsmy kocsmy mentioned this pull request Jul 1, 2018
@alison985
Copy link
Contributor Author

@kocsmy The new button on the query page is the green + button here:
screenshot 2018-07-02 02 24 05

And this is the modal:
screenshot 2018-07-02 02 25 03

@kocsmy
Copy link
Collaborator

kocsmy commented Jul 2, 2018

Thanks for the screenshot, @alison985 — I'll propose something (hopefully) better place for this feature in a few days.

@kocsmy
Copy link
Collaborator

kocsmy commented Jul 8, 2018

hey @alison985 — I'd recommend using this area for the button, we have most of the visualisation related things here already:
screenshot 2018-07-08 18 00 38

@alison985
Copy link
Contributor Author

@kocsmy I like it a lot and have changed my code to do that instead. I do want to point out, on the off chance you didn't notice it, that on a 13" MacBook Air it takes up a good chunk of the last whitespace on the bottom of the page which points towards a future space issue.
screenshot 2018-07-08 11 28 12

@arikfr
Copy link
Member

arikfr commented Jul 8, 2018

Good point about screen size, @alison985 .

How about we add icons to these buttons and in small resolutions only use the icons?

@alison985
Copy link
Contributor Author

Works for me, in Font Awesome icons I propose:

  • Edit Visualization: edit
  • Add to Dashboard: plus-cicle
  • Embed: code
  • Download Dataset: file-download

@kocsmy
Copy link
Collaborator

kocsmy commented Jul 9, 2018

@alison985 I think FA3 doesn't have plus-circle but icon-plus or icon-plus-sign will do. Others sounds good, too. Thank you!

@alison985
Copy link
Contributor Author

Screenshots In responsive mode in Firefox.
Apple iPhone 6s:
screenshot 2018-07-09 22 18 18

MacBook Air 13" full window:
screenshot 2018-07-09 22 23 30

@jezdez
Copy link
Member

jezdez commented Jul 13, 2018

@arikfr @kocsmy Codeclimate gives feedback for this pull request (and others) that implies something is wrong. Could you clarify if

a) we can safely ignore the failures here and elsewhere and

b) if it'd be an option to disable some of the more complex rules it's applying like number of arguments?

@emtwo
Copy link

emtwo commented Aug 2, 2018

In light of mozilla#482, I just wanted to bring up the issue of whether unpublished queries can be added to dashboards from the query page.

Not sure if it's been addressed yet here but it's worth being aware of.

@jezdez
Copy link
Member

jezdez commented Aug 8, 2018

FYI I've opened #2727 to track the issue of the too strict Code Climate Analysis configuration.

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.

Add a button / drop-down from the query window to quickly add it to a dashboard.
5 participants