Opened 3 years ago

Last modified 8 days ago

#1915 new New feature

Persist & restore widgets / reports settings, number of items to display, selected columns...

Reported by: kiddo Owned by:
Priority: major Milestone: 2.3.0 - Piwik 2.3.0
Component: UI - UX (AngularJS, twig, less) Keywords:
Cc: Sensitive: no

Description (last modified by matt)

We should record some settings and preferences in all reports.

List of settings to remember & restore:

  • # of Rows to display (already saved for dashboard but not for other reports)
  • view type: table, goals table, pie chart, etc.
  • Selected metrics in graphs
  • "Cog" icon

Not MVP

  • In Goals report: remember which subreport was clicked in the bottom left selector (eg. websites VS custom var VS etc.)

Change History (21)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Milestone set to 1.1 - Piwik 1.1

comment:2 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.1 - Piwik 1.1 to 1.x - Piwik 1.x

Currently, the dashboard remembers which "view types" you look at, and then restore it the next time you visit.

It would be interesting indeed to generalize the Dashboard setting save to all Piwik reports, ie. all Piwik reports would remember the last state they were in

  • view type: table, goals table, pie chart, etc.
  • exclude low population enabled/disabled

Maybe worth a different ticket, but exclude low filter should be based on the total of the datatable column itself, rather than visits, in case report is a subset (of page category, visitor plugins, etc.).

comment:3 Changed 3 years ago by matt (mattab)

  • Component changed from Core to UI (templates, javascript)
  • Priority changed from low to normal

comment:4 Changed 3 years ago by matt (mattab)

  • Summary changed from Exclude low populations by default (or remember the user choice) to Remember settings on each report (selected 'View' type, 'exclude low population')

comment:5 Changed 2 years ago by matt (mattab)

  • Summary changed from Remember settings on each report (selected 'View' type, 'exclude low population') to Persist & restore widgets / reports 'View' type, 'exclude low population', selected columns...
  • Could also record the plotted columns last selected and restore them next time
    • Maybe for this we could add a "reset" button so that its easy to come back to "default" state in case they misclicked?
  • Also would be nice to record the selected report on the bottom left in Ecommerce, see original ticket at #2756

comment:6 Changed 2 years ago by matt (mattab)

  • Summary changed from Persist & restore widgets / reports 'View' type, 'exclude low population', selected columns... to Persist & restore widgets / reports settings, preferences, 'exclude low population', selected columns...

comment:7 Changed 2 years ago by SteveG (sgiehl)

(In [5891]) refs #1915, fixes #2461 added new limitation select to all datatables. users can now select how many rows to display. limit changes to widgets on dashboard will automaticly be stored within layout and restored on reload. changed default limits to referer datatables to 25

comment:8 Changed 2 years ago by matt (mattab)

  • Description modified (diff)

updated ticket description to include all settings to restore as per comments

comment:9 Changed 2 years ago by SteveG (sgiehl)

(In [6027]) fixes #2979, refs #1915, refs #3011 completely refactored dashboard and widget javascripts (now using jquery plugins).
selected metrics in dashboard widgets are now stored in layout, too. also implemented some parts simplifying implementation of #3011 and #1915 and a small suggestion of #2461

comment:10 Changed 23 months ago by greg (gka)

How can I use the persistent widget settings for my own widgets? Is there a generic JavaScript-API to store and recall widget-specific key-value pairs?

comment:11 Changed 20 months ago by matt (mattab)

  • Milestone changed from 1.x - Piwik 1.x to 1.8.4 - Piwik 1.8.4

Benaka what do you think is left on this ticket?

it would also be nice to have an JS api or function for core&plugins to use to record settings.

comment:12 Changed 20 months ago by matt (mattab)

  • Owner set to capedfuzz

comment:13 Changed 20 months ago by matt (mattab)

It was also reported in: #3369 and request in the forums few times.

comment:14 Changed 17 months ago by matt (mattab)

  • Milestone changed from 1.9.3 - Piwik 1.9.3 to Feature requests

comment:15 Changed 5 months ago by matt (mattab)

  • Description modified (diff)
  • Milestone changed from Future releases to 2.x - Piwik 2.x

comment:16 Changed 5 months ago by openletter

Remembering these settings would make using Piwik a lot slicker and more user friendly. Please include it in a future edition!

comment:17 Changed 3 months ago by matt (mattab)

This was also reported in #3469 Visits Overview (with graph) does not remember its status

comment:18 Changed 3 months ago by matt (mattab)

It was reported in: #3807 Save and retrieve last zoom settings for maps

That we could also save & restore the map zoom. Is this a good idea (not sure)?

comment:19 Changed 3 months ago by matt (mattab)

  • Owner capedfuzz deleted

Removing owner from tickets. from now on, I suggest we assign tickets to ourselves for cases when we we plan to actively work on them in the coming days/weeks. let's discuss if needed during our team call.

comment:20 Changed 6 weeks ago by matt (mattab)

  • Description modified (diff)
  • Priority changed from normal to major
  • Summary changed from Persist & restore widgets / reports settings, preferences, 'exclude low population', selected columns... to Persist & restore widgets / reports settings, number of items to display, selected columns...

comment:21 Changed 8 days ago by matt (mattab)

  • Description modified (diff)
  • Milestone changed from 2.x - The Great Piwik 2.x Backlog to 2.3.0 - Piwik 2.3.0
Note: See TracTickets for help on using tickets.