Merge pull request #13051 from ToolJet/fix/hide-modules-tab

[fix]: Hide the modules tab on the editor
This commit is contained in:
Johnson Cherian 2025-06-21 17:27:45 +05:30 committed by GitHub
commit 3a798744be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 40 additions and 11 deletions

View file

@ -1 +1 @@
3.15.0
3.15.1

View file

@ -24,7 +24,5 @@
"url": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json"
}
],
"CodeGPT.apiKey": "CodeGPT Plus Beta",
"workbench.colorTheme": "Cursor Dark",
"workbench.iconTheme": "vs-seti"
"CodeGPT.apiKey": "CodeGPT Plus Beta"
}

View file

@ -1 +1 @@
3.15.0
3.15.1

@ -1 +1 @@
Subproject commit 1e9e019c9e9045c62ce3045c0e979c933add717b
Subproject commit fcefb9417ea42d07e86236e12c3e6cb5160fe7c6

View file

@ -15,7 +15,6 @@ export const ComponentModuleTab = ({ onChangeTab }) => {
<button
className={`tj-drawer-tabs-btn tj-text-xsm ${activeTab == 1 && 'tj-drawer-tabs-btn-active'}`}
onClick={() => handleChangeTab(1)}
data-cy="button-invite-with-email"
>
<span>Components</span>
</button>

View file

@ -7,8 +7,8 @@ import Fuse from 'fuse.js';
import { SearchBox } from '@/_components';
import { DragLayer } from './DragLayer';
import useStore from '@/AppBuilder/_stores/store';
import ComponentModuleTab from './ComponentModuleTab';
import { ModuleManager } from '@/modules/Modules/components';
import { ComponentModuleTab } from '@/modules/Appbuilder/components';
// TODO: Hardcode all the component-section mapping in a constant file and just loop over it
// TODO: styling

View file

@ -1563,7 +1563,10 @@ class HomePageComponent extends React.Component {
) : (
<p className="empty-title mt-3">
You have not created any modules.&nbsp;
<a onClick={this.openCreateAppModal} className="text-bold">
<a
onClick={this.openCreateAppModal}
className={`text-bold ${this.props.appType === 'module' && invalidLicense ? 'disabled' : ''}`}
>
Create a module&nbsp;
</a>
to start using it within your apps.

View file

@ -0,0 +1,9 @@
import React from 'react';
import { withEditionSpecificComponent } from '@/modules/common/helpers';
import BaseComponentModuleTab from '@/modules/common/components/BaseComponentModuleTab';
const ComponentModuleTab = (props) => {
return <BaseComponentModuleTab {...props} />;
};
export default withEditionSpecificComponent(ComponentModuleTab, 'Appbuilder');

View file

@ -0,0 +1 @@
export { default } from './ComponentModuleTab';

View file

@ -4,5 +4,14 @@ import LogoNavDropdown from './LogoNavDropdown';
import AppEnvironments from './AppEnvironments';
import ThemeSelect from './ThemeSelect';
import ColorSwatches from './ColorSwatches';
import ComponentModuleTab from './ComponentModuleTab';
export { CreateVersionModal, PromoteReleaseButton, LogoNavDropdown, AppEnvironments, ThemeSelect, ColorSwatches };
export {
CreateVersionModal,
PromoteReleaseButton,
LogoNavDropdown,
AppEnvironments,
ThemeSelect,
ColorSwatches,
ComponentModuleTab,
};

View file

@ -0,0 +1,7 @@
import React from 'react';
const BaseComponentModuleTab = () => {
return <p className="widgets-manager-header">Components</p>;
};
export default BaseComponentModuleTab;

View file

@ -0,0 +1 @@
export { default } from './BaseComponentModuleTab';

View file

@ -26,6 +26,7 @@ import BaseOnboardingQuestions from './BaseOnboardingQuestions';
import BaseSetupAdminPage from './BaseSetupAdminPage';
import UsersTable from './UsersTable';
import BaseColorSwatches from './BaseColorSwatches';
import BaseComponentModuleTab from './BaseComponentModuleTab';
export {
FormTextInput,
@ -56,4 +57,5 @@ export {
BaseOnboardingQuestions,
BaseSetupAdminPage,
UsersTable,
BaseComponentModuleTab,
};

View file

@ -1 +1 @@
3.15.0
3.15.1