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

feat(API): Add the list of enabled modules in the frontend settings #14096

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

guillaumejacquart
Copy link
Contributor

@guillaumejacquart guillaumejacquart commented Mar 21, 2025

Summary

Provide the frontend the list of all modules that have been enabled (for now only insights module), so that the front end can toggle the display of the insights overview

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/PAY-2706/provide-list-of-enabled-modules-to-the-front

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Sorry, something went wrong.

@guillaumejacquart guillaumejacquart changed the title Add the list of enabled modules in the frontend settings feat(API): Add the list of enabled modules in the frontend settings Mar 21, 2025
@@ -2,7 +2,7 @@ import { CommaSeperatedStringArray, Config, Env } from '@n8n/config';
import { UnexpectedError } from 'n8n-workflow';

const moduleNames = ['insights'] as const;
type ModuleName = (typeof moduleNames)[number];
export type ModuleName = (typeof moduleNames)[number];
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should move these types to @n8n/api-types as well. That way we don't need to duplicate the list of module names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@netroy I don't think it would be a good idea that @n8n/api-types contains the source of truth for the module list, what do you think ?
But I agree that the type could be extracted to the @n8n/api-types package. but since the type's value is to contain the list of possible module names, i'm not sure 🤔

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Mar 21, 2025
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/cli/src/services/frontend.service.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants