8000 feat: Add Community Modules Table in Modules view by OliwiaGowor · Pull Request #3917 · kyma-project/busola · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Add Community Modules Table in Modules view #3917

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

Merged
merged 22 commits into from
May 29, 2025

Conversation

OliwiaGowor
Copy link
Contributor
@OliwiaGowor OliwiaGowor commented May 15, 2025

Description

Changes proposed in this pull request:

  • created CommunityModulesList component
  • added CommunityModulesProvider and ModuleTemplatesProvider
  • adjusted ModuleListRows to community modules
  • split support file into support and hooks
  • adjusted tests

Related issue(s)
Closes #3815

Definition of done

  • The PR's title starts with one of the following prefixes:
    • feat: A new feature
    • fix: A bug fix
    • docs: Documentation only changes
    • refactor: A code change that neither fixes a bug nor adds a feature
    • test: Adding tests
    • revert: Revert commit
    • chore: Maintainance changes to the build process or auxiliary tools, libraries, workflows, etc.
  • Related issues are linked. To link internal trackers, use the issue IDs like backlog#4567
  • Explain clearly why you created the PR and what changes it introduces
  • All necessary steps are delivered, for example, tests, documentation, merging

@OliwiaGowor OliwiaGowor marked this pull request as ready for review May 26, 2025 21:37
@KonradPietocha KonradPietocha self-assigned this May 27, 2025
setSelectedEntry={setSelectedEntry}
/>
)}
{kymaResource && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Community modules should be independent from kymaResource

@@ -86,6 +88,14 @@ export function KymaModuleContextProvider({
skip: !kymaResource?.metadata?.name,
});

const {
installed: installedCommunityModules,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are not installedCommunityModules, but installedCommunityModules and installed unmanaged modules. To get installedCommunityModules you should pass communityModuleTemplates instead of moduleTemplates .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There for we have template operator is displayed on the list even if it hac manageg-by label
Screenshot 2025-05-27 at 14 07 57

loading: communityModulesLoading,
} = useGetInstalledModules(
moduleTemplates,
!kymaResource?.metadata?.name || !!!moduleTemplates,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also community modules are independent of !kymaResource?.metadata?.name. If there is no kymaResource then all installed modules are community modules.

KymaModuleProvider was written for managed/unmanaged modules only, thats why we skip in !kymaResource?.metadata?.name. If we adopt this provider to community modules as well we need to adjust some some skips due to !kymaResource?.metadata?.name

) => {
if (!moduleTemplates?.items) return { managed: [], unmanaged: [] };

const managed: ModuleTemplateListType = { items: [] };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rename it to community templates and kyma templates... cause kyma modules after installation are either managed and unmanaged, so it can get confusing.

Copy link
Contributor
@akucharska akucharska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akucharska akucharska merged commit 044d5e0 into kyma-project:main May 29, 2025
20 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Community Modules Table in Modules List View
3 participants
0