diego2013 / CSR_Meteor

CSR prototype III. Implementation using the Meteor platform
1 stars 1 forks source link

User preferences: number of results shown per page for scenario searches #149

Open diego2013 opened 8 years ago

diego2013 commented 8 years ago

It is unclear how this should work now that we added this option as a user preference.

When the user is on a scenario search panel and modifies the option to display more or less results per page, should the option on his profile be updated too? This would make it consistent across screens.

On the other hand this conflicts with the initial idea of having a "default value" that could be overwritten just for the current session.


So probably best thing to do is to update this value on the user profile every time that the user changes it. That way the value would be "remembered" for future sessions and the behavior can be customized. On the other hand, there would be more than one place where the user can update this value for his/her profile, which I don't know if it is confusing.

Notes: the code to overwrite the session value should be moved to the "deps.autorun" section, like is done for the "show_cointextualhelp value.

The dropdown menus on the "scenario search" pages would need to update the user profile with this option, like the "save preferences" button is doing.