-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: Move entities/IDE/constants #39064
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2c960da
chore: move ide entities constants
hetunandu 984bba2
Merge branch 'release' into chore/update-sidebar-buttons
hetunandu 110d389
fix: test file import
hetunandu 54ab004
fix: Missed import
hetunandu 7e688b5
fix: basic issues
hetunandu 52c0188
Merge branch 'release' into chore/update-sidebar-buttons
hetunandu 77e2c2e
Sync changes from EE excluding enterprise directory
hetunandu 9b5014e
removing empty file
ankitakinger e958813
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
ankitakinger 316304b
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
ankitakinger 0a88e2f
fixing client build
ankitakinger 7ad0994
Merge branch 'release' into chore/update-sidebar-buttons
hetunandu 5055b6e
Merge remote-tracking branch 'origin/chore/update-sidebar-buttons' in…
hetunandu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| export enum EditorEntityTab { | ||
| QUERIES = "queries", | ||
| JS = "js", | ||
| UI = "ui", | ||
| } | ||
|
|
||
| export enum EditorEntityTabState { | ||
| List = "List", | ||
| Edit = "Edit", | ||
| Add = "Add", | ||
| } | ||
|
|
||
| export enum EditorViewMode { | ||
| FullScreen = "FullScreen", | ||
| SplitScreen = "SplitScreen", | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import type { ComponentType } from "react"; | ||
|
|
||
| export type UseRoutes = Array<{ | ||
| key: string; | ||
| component: ComponentType; | ||
| path: string[]; | ||
| exact: boolean; | ||
| }>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import type { IDESidebarButton } from "@appsmith/ads"; | ||
| import { EditorState } from "../enums"; | ||
|
|
||
| const SidebarButtonTitles = { | ||
| EDITOR: "Editor", | ||
| DATA: "Datasources", | ||
| SETTINGS: "Settings", | ||
| LIBRARIES: "Libraries", | ||
| }; | ||
|
|
||
| export const EditorButton = (urlSuffix: string): IDESidebarButton => ({ | ||
| state: EditorState.EDITOR, | ||
| icon: "editor-v3", | ||
| title: SidebarButtonTitles.EDITOR, | ||
| testId: SidebarButtonTitles.EDITOR, | ||
| urlSuffix, | ||
| }); | ||
|
|
||
| export const DataButton = (urlSuffix: string): IDESidebarButton => ({ | ||
| state: EditorState.DATA, | ||
| icon: "datasource-v3", | ||
| tooltip: SidebarButtonTitles.DATA, | ||
| testId: SidebarButtonTitles.DATA, | ||
| urlSuffix, | ||
| }); | ||
|
|
||
| export const LibrariesButton = (urlSuffix: string): IDESidebarButton => ({ | ||
| state: EditorState.LIBRARIES, | ||
| icon: "packages-v3", | ||
| tooltip: SidebarButtonTitles.LIBRARIES, | ||
| testId: SidebarButtonTitles.LIBRARIES, | ||
| urlSuffix, | ||
| }); | ||
|
|
||
| export const SettingsButton = (urlSuffix: string): IDESidebarButton => ({ | ||
| state: EditorState.SETTINGS, | ||
| icon: "settings-v3", | ||
| tooltip: SidebarButtonTitles.SETTINGS, | ||
| testId: SidebarButtonTitles.SETTINGS, | ||
| urlSuffix, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import type { PluginType } from "../../../entities/Plugin"; | ||
| import type { ReactNode } from "react"; | ||
|
|
||
| export interface EntityItem { | ||
| title: string; | ||
| type: PluginType; | ||
| key: string; | ||
| icon?: ReactNode; | ||
| group?: string; | ||
| userPermissions?: string[]; | ||
| } | ||
|
|
||
| export interface GenericEntityItem extends Omit<EntityItem, "type"> {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| export const IDE_TYPE = { | ||
| None: "None", | ||
| App: "App", | ||
| } as const; | ||
|
|
||
| export type IDEType = keyof typeof IDE_TYPE; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import { | ||
| ADD_PATH, | ||
| API_EDITOR_ID_ADD_PATH, | ||
| API_EDITOR_ID_PATH, | ||
| BUILDER_CUSTOM_PATH, | ||
| BUILDER_PATH, | ||
| BUILDER_PATH_DEPRECATED, | ||
| DATA_SOURCES_EDITOR_ID_PATH, | ||
| ENTITY_PATH, | ||
| INTEGRATION_EDITOR_PATH, | ||
| JS_COLLECTION_ID_ADD_PATH, | ||
| JS_COLLECTION_ID_PATH, | ||
| QUERIES_EDITOR_ID_ADD_PATH, | ||
| QUERIES_EDITOR_ID_PATH, | ||
| WIDGETS_EDITOR_ID_PATH, | ||
| } from "ee/constants/routes/appRoutes"; | ||
| import { | ||
| SAAS_EDITOR_API_ID_ADD_PATH, | ||
| SAAS_EDITOR_API_ID_PATH, | ||
| SAAS_EDITOR_DATASOURCE_ID_PATH, | ||
| } from "pages/Editor/SaaSEditor/constants"; | ||
|
|
||
| import { IDE_TYPE, type IDEType } from "../Interfaces/IDETypes"; | ||
|
|
||
| export const EntityPaths: string[] = [ | ||
| API_EDITOR_ID_ADD_PATH, | ||
| API_EDITOR_ID_PATH, | ||
| QUERIES_EDITOR_ID_ADD_PATH, | ||
| QUERIES_EDITOR_ID_PATH, | ||
| DATA_SOURCES_EDITOR_ID_PATH, | ||
| INTEGRATION_EDITOR_PATH, | ||
| SAAS_EDITOR_DATASOURCE_ID_PATH, | ||
| SAAS_EDITOR_API_ID_ADD_PATH, | ||
| SAAS_EDITOR_API_ID_PATH, | ||
| JS_COLLECTION_ID_PATH, | ||
| JS_COLLECTION_ID_ADD_PATH, | ||
| WIDGETS_EDITOR_ID_PATH, | ||
| WIDGETS_EDITOR_ID_PATH + ADD_PATH, | ||
| ENTITY_PATH, | ||
| ]; | ||
| export const IDEBasePaths: Readonly<Record<IDEType, string[]>> = { | ||
| [IDE_TYPE.None]: [], | ||
| [IDE_TYPE.App]: [BUILDER_PATH, BUILDER_PATH_DEPRECATED, BUILDER_CUSTOM_PATH], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/client/src/ce/entities/IDE/hooks/useCreateActionsPermissions.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.