nextcloud / tables

🍱 Nextcloud tables app
https://apps.nextcloud.com/apps/tables
GNU Affero General Public License v3.0
143 stars 24 forks source link

Ability to hide applications as a user #1177

Open juliushaertl opened 3 months ago

juliushaertl commented 3 months ago

Leftover from contexts work.

@blizzz Could you document the current logic on what is possible for hiding the applications from the backend side in here so we can have a clear description on what we need to do on the frontend?

blizzz commented 2 months ago

So on the backend side we have things in place, but disabled. To turn it on, we simply need:

On the frontend side we need

For the record, we have three modes. The constants are define in Application:

    public const NAV_ENTRY_MODE_HIDDEN = 0;
    public const NAV_ENTRY_MODE_RECIPIENTS = 1;
    public const NAV_ENTRY_MODE_ALL = 2;

Setting the Nav bar entry is possible via following routes:

as well as when creating a share, via optional displayMode mode parameter. Default is hidden!

UPDATE 2024-07-26

For we have started to show applications by default, while the nominal default would be to hide them, we also shall change the default to show all and have a repair step to update the existing applications. So, users will not be confused while their applications are not there anymore, also it may be a better, more discoverable setting.

juliushaertl commented 2 months ago

@enjeck As disscussed last week, something to look into after the user/group picker is ready :)

blizzz commented 2 months ago

Added two tasks to https://github.com/nextcloud/tables/issues/1177#issuecomment-2225363092

enjeck commented 1 month ago

Setting the Nav bar entry is possible via following routes:

  • api1#updateShareDisplayMode
  • share#updateDisplayMode

So does this mean the owner of the Application can't hide/unhide for themselves? Since it's not a share? @blizzz

enjeck commented 1 month ago

Setting the Nav bar entry is possible via following routes:

  • api1#updateShareDisplayMode
  • share#updateDisplayMode

So does this mean the owner of the Application can't hide/unhide for themselves? Since it's not a share? @blizzz

Oh, I see that's what NAV_ENTRY_MODE_RECIPIENTS is for.