matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.66k stars 2.62k forks source link

New setting: enable Left Menu mode #5212

Closed mattab closed 10 years ago

mattab commented 10 years ago

As a Piwik user, I want to see the main menu displayed on the left.

Advantages of Left Menu:

Ideas

tsteur commented 10 years ago

In 62acfde14e6c514b6a5008c9f6aaa284b01db44b: refs #5212 improved left menu stylesheet which works better with Morpheus now, turned it into a plugin and made it configurable. not finished yet

tsteur commented 10 years ago

Faced some challenges here so far:

tsteur commented 10 years ago

In 82da315ea28b6ac1b94f3bc683bc0c8f29756fce: refs #5212 added possibility to make a system setting readable for non super users

tsteur commented 10 years ago

Found a solution for SystemSetting which is backwards compatible and prevents us from creating lots of classes as some SystemSettings should be maybe readable by anonymous users whereas some should be readable only for users having some view access etc. This would be also a proper solution for this hack: https://github.com/piwik/piwik/blob/master/core/Plugin/Settings.php#L330 ( #4924 )

To be defined whether we remove this hack

tsteur commented 10 years ago

In bb4d352c011cec2f6b7e46f366a03ae564e92012: refs #5212 do not display the default value in case we handle radio fields

tsteur commented 10 years ago

Ideally there would be a setting to enable it only for large displays. Eg on tablets or mobile phones it does not make sense to have it on the left side. On the other side on large displays it makes sense. We could detect the screen size and enable the left menu client side. Would most likely also fix the problem that we do not have to regenerate the CSS all the time and we would get rid of some CSS !important definitions.

tsteur commented 10 years ago

In 15f3cad410bcb0fdc3a3e2b21b1419f6fe7df430: refs #5212 this should enable leftMenu plugin by default but it will be disabled. Need to test it

tsteur commented 10 years ago

In 5bbf3b7891c5988c457a0a56d6495af72ae479d9: refs #5212 added some tests

tsteur commented 10 years ago

In 7d1b664211287dda8199f8757b00d0b023fda4a4: refs #5212 should fix core tests

tsteur commented 10 years ago

In 8fb7b4c161293e1c824dc4aaf287d8bdc5efd460: refs #5212 always add leftMenu css but apply it only if there is a class .leftMenuPlugin. Added an event to add classes to the body which I found quite useful already for a while

tsteur commented 10 years ago

In 4e950e8b34992f25df444f130d8dbd296c5f0d96: refs #5212 a few ui tweaks

tsteur commented 10 years ago

In 859a682bf98b98f156046cf33b8e03a0784b17cd: refs #5212 css => less

tsteur commented 10 years ago

In 01343720fd6fe44b0f85cdb352fbe4e5a09105aa: refs #5212 translations

tsteur commented 10 years ago

In 9a960ae47c533b232afcf6353222ea137996d337: refs #5212 another improvement for combo of zenMode + leftMenu

mattab commented 10 years ago

In 8208b89e9b94871e53476630979fc801ada866a8: Refs #5212 add missing reference, this maybe was a merge-fail