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

Only show default number of rows for device type report #13541

Merged
merged 1 commit into from Nov 4, 2018
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 4, 2018

fix #12266

fyi @mattab couldn't make it work to show 0 instead of -.
Now all the reports have the same length by default on the devices page. If someone wants to see more, they can increase the limit. Or if many are - then they can choose only 5 in the limit selection and it will apply this setting next time.

I reckon this is a good compromise. It lets users also still perform row evolution plus discover all the things/devices we can detect.

image

fix #12266

fyi @mattab couldn't make it work to show `0` instead of `-`. 
Now all the reports have the same length by default on the devices page. If someone wants to see more, they can increase the limit. Or if many are `-` then they can choose only `5` in the limit selection and it will apply this setting next time.
@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 4, 2018
@tsteur tsteur added this to the 3.7.0 milestone Oct 4, 2018
@sgiehl
Copy link
Member

sgiehl commented Oct 5, 2018

@tsteur the - can be found here: https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/CoreHome/templates/_dataTableCell.twig#L50
But that's global for all datatables

@tsteur
Copy link
Member Author

tsteur commented Oct 7, 2018

Yeah I don't think we want to change it globally. I reckon it might be fine to keep the dash here.

Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

LGTM

@tsteur tsteur merged commit ab68610 into 3.x-dev Nov 4, 2018
@tsteur tsteur deleted the 12266 branch November 4, 2018 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device Type and Browser plugins reports: hide rows without visits
2 participants