mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* feat: Folder permission system * fix(group-permissions): resolve custom group validation, folder edit check, and UI inconsistencie * edit folder container && no folder in custom resource * fix the ui for custom in empty state * fix: coercion logic for folder permissions * feat: enhance folder permissions handling in app components * feat: add folder granular permissions handling in user apps permissions * feat: implement granular folder permissions in ability guard and service * feat: improve error handling for folder permissions with specific messages * feat: enhance EnvironmentSelect component to handle disabled state and improve display logic * chore: bump ee submodules * add basic framework to support platform git * feat: Update permission prop to isEditable in BaseManageGranularAccess component * chore: bump ee server submodule * fix: refine folder visibility logic based on user permissions * feat: enhance MultiValue rendering and styling for "All environments" option * fix:Uniqueness-of-data-source * revert folder changes * fix folder imports * feat: allow app lazy loading feat: import all apps of branches * feat: implement folder ownership checks and enhance app permissions handling * fix:ui changes * feat: update WorkspaceGitSyncModal UI * feat: enhance folder permissions handling for app ownership and actions * chore: clarify folder creation and deletion permissions in workspace context * fix: pull commit button & swtich branch visibility * feat: import app from git repo * fix: freezed state * remove reference of activebranchId * fix linting * fix: update folder permission labels * fixed folder permission cases * fixed css class issue * fix: datasource UI * minor fix * feat: streamline folder permissions handling by removing redundant checks and simplifying access logic * refactor: made error message consistent * fix:ui changes and PR fetching on master * fix: datasource and snapshot creation * fix: app rendering and stub loading * fix: add missing permission message for folder deletion action * refactor: consolidate forbidden messages for folder actions and maintain consistency * fix: allow pull into current branch * fix renaming of tags and reload on branch switch * fix: allow branches import from git * fix:push or tab removed * feat: streamline permission handling and improve app visibility logic * fix: remove default access denial message in AbilityGuard * fixed all user page functionality falky case * feat: add workspace-level PR fetch endpoint (returns all repo PRs without app filtering) * fix: remove app_branch_table * Fixed profile flaky case * fixed granular access flaky case * fix: allow branch creation from tags * fix: update default branch creation logic to use provider config * fix: dso and dsv operations on codebase * fix: constants reloading and refetch org git details on data * uniquness per branch * removed comment * fix: update app version handling and add is_stub column for branch-level tracking * fix workspace branch backfilling for scoped branches * added unique constraint - migration * fix: update app version unique constraint to include branchId for branch-aware handling * fix: update subproject commit reference in server/ee * chore: revert package-lock.json * chore: revert frontend/package-lock.json to main * removed banner and changed migration * minor fix * fix: remove unused import and handle UUID parse error gracefully in AppsUtilService * fix: update app stub checks to safely access app_versions * refactor: revert folder operations * fix: removed branch id logic * fix: ds migration * fix encrypted diff logic * fix: update openCreateAppModal to handle workspace branch lock * fix: subscriber filtering, freeze priority, meta hash optimization, and co_relation_id backfill * feat: add script to generate app metadata from app.json files * fix: meta script fix: backfilling of co-realtion-ids * refactor: streamline parameter formatting in workspace git sync adapter methods * Improves data source handling for workspace git sync Fixes workspace git sync to properly recognize data sources across branches by improving correlation ID handling and branch-aware data source version creation. Uses strict equality comparison in deep equal utility to prevent type coercion issues. Excludes credential_id from data source comparison to prevent unnecessary save button states. Removes is_active filter from branch data source queries to include all versions for proper synchronization. * refactor: update branch switching logic and improve error handling for data source creation * fix: migration order * 🚀 chore: update submodules to latest main after auto-merge (#15628) Co-authored-by: gsmithun4 <[email protected]> * chore: update version to 3.21.8-beta across all components * fix:import app from device * fix:ui Edit&launch,folderCopy,branching dropdown in apps and ds * fix:encrypted helper text on master * fix: import from git flow * logs cleanup * fix:migration-datasource-uniqueness * fix: app on pull * chore: update server submodule hash * fix: corelation-id generation and version naming * fix: last versions deletion error fix: no multiple version creation * fix:ui and toast * chore: update server submodule hash * feat: add branch handling for app availability and improve error handling * fix: update encrypted value handling in DynamicForm and improve workspace constant validation logic * fix: improve formatting of help text in DynamicForm and enhance error message for adding constants on master branch * fix: correct version creation and pull in default branch * chore: update server submodule hash fix: remove logs from other PR * fix:data source uniquness at workspace level * fix: update header component logic for path validation and improve version import handling * chore: update server submodule to latest commit * fixed folder modal changes * fix:failed to create a query error inside apps * feat: add branchId support for data source versioning in app import/export service * fix: push & pull of tags and versions * fix: update subproject commit reference in server/ee * fix:removed gitSync logic from module rename * fix:removed switchbranch modal & allowed renaming from masted module&workflow creation * chore: Update server submodule hash * fix: change stub button to edit * refactor/git-sync-remove-modules-workflows * fix:version name for module and workflo w * fix:templet app creation * fix: add author details for branch --------- Co-authored-by: gsmithun4 <[email protected]> Co-authored-by: Pratush <[email protected]> Co-authored-by: Shantanu Mane <[email protected]> Co-authored-by: parthy007 <[email protected]> Co-authored-by: Yukti Goyal <[email protected]> Co-authored-by: Muhsin Shah <[email protected]> Co-authored-by: Adish M <[email protected]> Co-authored-by: gsmithun4 <[email protected]> Co-authored-by: Parth <[email protected]>
169 lines
4.8 KiB
JavaScript
169 lines
4.8 KiB
JavaScript
export const USER_COLORS = [
|
||
'#1a1c2c',
|
||
'#5d275d',
|
||
'#b13e53',
|
||
'#ef7d57',
|
||
'#ffcd75',
|
||
'#a7f070',
|
||
'#38b764',
|
||
'#257179',
|
||
'#29366f',
|
||
'#3b5dc9',
|
||
'#41a6f6',
|
||
'#73eff7',
|
||
'#94b0c2',
|
||
'#566c86',
|
||
'#333c57',
|
||
];
|
||
|
||
export const ON_BOARDING_SIZE = ['1-10', '11-50', '51-100', '101-500', '501-1000', '1000+'];
|
||
|
||
export const ON_BOARDING_ROLES = [
|
||
'Head of engineering',
|
||
'Head of product',
|
||
'CIO/CTO',
|
||
'Software engineer',
|
||
'Data scientist',
|
||
'Product manager',
|
||
'Other',
|
||
];
|
||
|
||
export const ERROR_TYPES = {
|
||
URL_UNAVAILABLE: 'url-unavailable',
|
||
RESTRICTED: 'restricted',
|
||
NO_ACCESSIBLE_PAGES: 'no-accessible-pages',
|
||
INVALID: 'invalid-link',
|
||
UNKNOWN: 'unknown',
|
||
WORKSPACE_ARCHIVED: 'Organization is Archived',
|
||
USERS_EXCEEDING_LICENSE_LIMIT: 'user-count-exceeding',
|
||
WORKSPACE_LOGIN_RESTRICTED: 'ws-login-restricted',
|
||
RESTRICTED_PREVIEW: 'restricted-preview',
|
||
APP_NOT_ON_BRANCH: 'app-not-on-branch',
|
||
};
|
||
|
||
export const ERROR_MESSAGES = {
|
||
'url-unavailable': {
|
||
title: 'App URL Unavailable',
|
||
message:
|
||
'The app URL is currently unavailable because the app has not been released. Please either release it or contact admin for access.',
|
||
cta: 'Back to home page',
|
||
queryParams: [],
|
||
},
|
||
restricted: {
|
||
title: 'Restricted access',
|
||
message: 'You don’t have access to this app. Kindly contact admin to know more.',
|
||
cta: 'Back to home page',
|
||
retry: false,
|
||
queryParams: [],
|
||
},
|
||
'restricted-preview': {
|
||
title: 'Restricted access',
|
||
message: 'Access to this environment preview is restricted. Contact admin to know more.',
|
||
retry: false,
|
||
cta: 'Back to home page',
|
||
queryParams: [],
|
||
},
|
||
'no-accessible-pages': {
|
||
title: 'Restricted access',
|
||
message: 'You don’t have access to any page in this app. Kindly contact admin to know more.',
|
||
retry: false,
|
||
queryParams: [],
|
||
},
|
||
'ws-login-restricted': {
|
||
title: 'Restricted access',
|
||
message:
|
||
'Enable workspace login from the instance login setting to be able to access this page. Contact super admin to know more.',
|
||
cta: 'Back to home page',
|
||
retry: false,
|
||
queryParams: [],
|
||
},
|
||
'invalid-link': {
|
||
title: 'Invalid link',
|
||
message: 'The link you provided is invalid. Please check the link and try again.',
|
||
cta: 'Back to home page',
|
||
retry: false,
|
||
queryParams: [],
|
||
},
|
||
'invalid-invite-session': {
|
||
title: 'Incorrect email address',
|
||
message: 'The user details of the active session does not match that of the invite. Please log out and try again.',
|
||
cta: 'Back to home page',
|
||
queryParams: [],
|
||
},
|
||
'app-not-on-branch': {
|
||
title: 'App not available',
|
||
message:
|
||
'This app is not available on the current branch. Switch to the correct branch or go back to the dashboard.',
|
||
cta: 'Back to home page',
|
||
retry: false,
|
||
queryParams: [],
|
||
},
|
||
'no-active-workspace': {
|
||
title: 'No active workspaces',
|
||
message: 'No active workspace were found for this user. Kindly contact admin to know more.',
|
||
queryParams: [],
|
||
},
|
||
unknown: {
|
||
title: 'Oops, something went wrong!',
|
||
message: 'An error occurred while loading the app. Please try again or contact admin.',
|
||
cta: 'Back to home page',
|
||
retry: true,
|
||
queryParams: [],
|
||
},
|
||
'user-count-exceeding': {
|
||
title: 'User count exceeding',
|
||
message:
|
||
'Your builder or end-user count exceeds the limit for your upgraded plan. Please archive users or increase your plan limits to upgrade successfully.',
|
||
retry: false,
|
||
icon: 'user',
|
||
},
|
||
'app-count-exceeding': {
|
||
title: 'App count exceeding',
|
||
message:
|
||
'The number of apps existing exceeds the limit for your upgraded plan. Please delete apps or increase your plan limits to upgrade successfully.',
|
||
retry: false,
|
||
icon: 'apps',
|
||
},
|
||
'invited-workspace-archived': {
|
||
title: 'Archived workspace',
|
||
message: 'The workspace you are invited to has been archived. Kindly contact admin to know more.',
|
||
cta: 'Back to home page',
|
||
queryParams: [],
|
||
},
|
||
'user-is-not-activated': {
|
||
title: 'Account not activated',
|
||
message: 'Your account is not activated yet. Please check your email for activation link.',
|
||
cta: 'Back to home page',
|
||
queryParams: [],
|
||
},
|
||
};
|
||
|
||
export const DEFAULT_ERROR_MESSAGE = {
|
||
title: 'Unknown error',
|
||
message: 'Please try again.',
|
||
};
|
||
|
||
export const TOOLTIP_MESSAGES = {
|
||
SHARE_URL_UNAVAILABLE: 'Share URL is unavailable until current version is released',
|
||
RELEASE_VERSION_URL_UNAVAILABLE: 'Release the version to make it public',
|
||
};
|
||
|
||
export const DATA_SOURCE_TYPE = {
|
||
SAMPLE: 'sample',
|
||
LOCAL: 'local',
|
||
GLOBAL: 'global',
|
||
STATIC: 'static',
|
||
DEFAULT: 'default',
|
||
};
|
||
|
||
export const SAMPLE_DB_KIND = {
|
||
POSTGRESQL: 'postgresql',
|
||
TOOLJET_DB: 'tooljetdb',
|
||
};
|
||
|
||
export const PLANS = {
|
||
BUSINESS: 'business',
|
||
ENTERPRISE: 'enterprise',
|
||
TRIAL: 'trial',
|
||
STARTER: 'starter',
|
||
};
|