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

Hide limit control in empty data tables #11941

Merged
merged 1 commit into from Sep 14, 2017
Merged

Hide limit control in empty data tables #11941

merged 1 commit into from Sep 14, 2017

Conversation

mneudert
Copy link
Member

@mneudert mneudert commented Aug 7, 2017

Currently every empty data table has full access to the controls. Like getting a CSV export or changing the rows displayed. But as there is no data to control they work but (at least to me) give the subtle impression there might be a setting to get some data displayed that was previously hidden.

As a change for that behaviour was rather simple I decided to go ahead with a PR to check if such a change is favorable.

For a nicer visual impression the whitespace should probably be modified to vertically center the message again instead of like right now just hide the footer:

http://builds-artifacts.piwik.org/mneudert/piwik/hide-empty-data-table-controls/97/EmptySite_emptySiteDashboard_ignored.png

(side-by-side displays the changes rather nice)

@sgiehl
Copy link
Member

sgiehl commented Aug 7, 2017

makes imho sense to hide the footer icons

@mattab
Copy link
Member

mattab commented Aug 16, 2017

find it is a bit useful to have the controls even when there is no data. In some cases you want to get the "Export data URL" even when there is no data on that day (but you can change the day in the URL parameters afterwards).

  • Maybe we could hide the "Rows limit" control when there is actually no data?

@sgiehl
Copy link
Member

sgiehl commented Aug 22, 2017

In some cases you want to get the "Export data URL" even when there is no data on that day (but you can change the day in the URL parameters afterwards).

Most users won't be able to do that for exports that automatically trigger a download (like csv, tsv,...). I would completely hide it until #11958 is finished and merged and maybe already includes date selection in the overlay

@mneudert mneudert changed the title Hide footer controls in empty data tables Hide limit control in empty data tables Aug 23, 2017
@mneudert
Copy link
Member Author

Updated the patch to only hide the limit control. This should be the least invasive modification without any potential harm. The broken screenshot tests seem unrelated.

If the new export overlay is coming in 3.1.0 it might be rather confusing if we hide all controls (including the generic visualization control) now only to show some of them again a version later.

We could always open a regular issue to discuss the various points of different implementations. Having a full date selector in an export overlay that is triggered by a widget saying "no data available" is at least to me nothing I would expect :D That said a complete export area to fulfill that role is probably not the most simple alternative and might confuse long time users.

@mattab mattab added this to the 3.2.0 milestone Sep 14, 2017
@mattab mattab merged commit 14b6c38 into matomo-org:3.x-dev Sep 14, 2017
@mneudert mneudert deleted the hide-empty-data-table-controls branch September 14, 2017 23:35
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.

None yet

3 participants