Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 [Feature]: Remove or Refactor the show/hide tenant wide extension list #325

Open
Adam-it opened this issue Oct 15, 2024 · 4 comments
Open
Labels
⭐ enhancement New feature or request 💪 good first issue Good for newcomers 🙏 help wanted Open for contributors
Milestone

Comments

@Adam-it
Copy link
Member

Adam-it commented Oct 15, 2024

🎯 Aim of the feature

Since now the list of extensions only loads when the node is expanded to ensure that the additional API calls don't affect the extension load time there is little sense in having the setting that allows to show/hide the extension list. We could consider the following:

  • removing this setting. This may seem a breaking change and maybe we should consider doing it with next major v5 release which should also bring multiple connections. This release is a bit blocked due to ESM support (different issue/story 😛)
  • refactoring this setting to something more global. It could now allow to either show(load)/hide apps from all app catalogs. So when set to true all app catalogs will be expandable and will show the app list. When set to true we would only show app catalogs without the possibility to show apps

📷 Images (if possible) with expected result

The issue relates to the following setting:
image

🤔 Additional remarks or comments

Related issue #215

Tagging @Saurabh7019 as initial author of this idea 👍. You Rock 🤩

Prototype

  1. we should rename this setting and correct its description

    vscode-viva/package.json

    Lines 187 to 191 in 5919011

    "spfx-toolkit.showTenantWideExtensions": {
    "title": "Show tenant-wide extensions",
    "type": "boolean",
    "default": true,
    "description": "Show the tenant-wide extensions in the account view."

    it should be something like Show apps in app catalogs and description like When set it will load all apps in every app catalog on your tenant
  2. we should remove this
    const showTenantWideExtensions: boolean = getExtensionSettings<boolean>('showTenantWideExtensions', true);
    and just always load the tenant wide extensions
  3. we should use the new setting here
    const tenantAppCatalogNode = new ActionTreeItem(tenantAppCatalogUrl.replace(origin, '...'), '', { name: 'globe', custom: false }, TreeItemCollapsibleState.Collapsed, 'vscode.open', `${Uri.parse(tenantAppCatalogUrl)}/AppCatalog`, 'sp-app-catalog-url', undefined,
    and it similar place in site app catalogs so that when this setting is set to false we should not make it expandable and not add the expand handle
  4. this setting should be true by default
@Adam-it Adam-it added this to the v4.X milestone Oct 15, 2024
@nicodecleyre
Copy link
Contributor

Hi, @Adam-it, just wondering. You define in the last bullet point 2 scenarios 'when set to true'. I was wondering if it shouldn't be:

  • When set to true, all app catalogs will be expandable and display the app lists.
  • When set to false, only the catalogs themselves will be visible, without the option to expand and view individual apps.

@Adam-it
Copy link
Member Author

Adam-it commented Oct 27, 2024

Hi, @Adam-it, just wondering. You define in the last bullet point 2 scenarios 'when set to true'. I was wondering if it shouldn't be:

  • When set to true, all app catalogs will be expandable and display the app lists.
  • When set to false, only the catalogs themselves will be visible, without the option to expand and view individual apps.

Yes exactly that is what I had in mind 👍. Thank you for clarifying

@Adam-it
Copy link
Member Author

Adam-it commented Nov 17, 2024

Ok let's get this shipped and not wait for a major release, this settings don't make much sense anyway.
I will create some prototype to guide how to go about it and then let's open it up

@Adam-it
Copy link
Member Author

Adam-it commented Nov 18, 2024

I added a prtotype with guidance how to go about it in the orginal issue post. Let's open it up for others 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement New feature or request 💪 good first issue Good for newcomers 🙏 help wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

2 participants