Piwigo / Piwigo-Android

Piwigo Native Android App
GNU General Public License v3.0
140 stars 43 forks source link

Add Setting to select the default album #193

Open ramack opened 4 years ago

ramack commented 4 years ago

after #44 we have a general settings activity, now we can populate it with functions. Here we'd like to allow the user selecting which album shall be shown after startup/Changing to a specific account.

The solution should include:

@eddyLB in iOS you call it "Default Album" but somehow this reads a bit technical for me, what do you think?

And I think in piwigo the album structure is not a clean tree, as albums can have multiple parents, rigth? So how shall we handle that? Because in my eyes we should do proper "up-navigation" from the "Default Album" if it is not the "Root Album"

For Now I have allocated this to a later release, as I personally do not think it is so important, feel free to adjust or argue if you think differntly.

EddyLB commented 4 years ago

Hi @ramack

Indeed, 'Default Album' can be seen as a bit technical.

To my knowledge, an album can only have one parent album (the server only allows to set one parent album). The other parent albums returned by the method pwg.categories.getList are parents of the parent album. So when a user sets a "Default Album" different from the root album, he/she can only navigates inside that album.

I have added this option for people asking for another 'root album' than the real one. Some people share a Piwigo with a community and want to select as 'root album' the one for which they have upload rights. This option can also be used to set as 'root album' the one of the current year or event. This reduces the number of levels and simplifies the navigation.

As for the naming, I have considered several possibilities, "Root Album" being the first one as it means what it is for. However, I was afraid that users mix it with the real root album and looked for alternatives. I considered e.g. "Actual Top Level Album", "Actual Parent Album", "Actual Master Album" and "Default Album". What are your thoughts?