ToolJet/cypress-tests/cypress/constants/texts/common.js

260 lines
9.5 KiB
JavaScript
Raw Normal View History

export const codeMirrorInputLabel = (content) => {
return ["{{", `${content}}}`];
};
export const path = {
loginPath: "/login",
profilePath: "/settings",
confirmInvite: "/confirm",
database: "/database",
};
export const commonText = {
autoSave: "Changes saved",
email: "[email protected]",
password: "password",
loginErrorToast: "Invalid email or password",
welcomeTooljetWorkspace: "Welcome to your new ToolJet workspace",
introductionMessage:
"You can get started by creating a new application or by creating an application using a template in ToolJet Library.",
changeIconOption: "Change Icon",
addToFolderOption: "Add to folder",
removeFromFolderOption: "Remove from folder",
cloneAppOption: "Clone app",
exportAppOption: "Export app",
deleteAppOption: "Delete app",
cancelButton: "Cancel",
folderCreatedToast: "Folder created.",
createFolder: "Create folder",
AddedToFolderToast: "Added to folder.",
appRemovedFromFolderMessage:
"The app will be removed from this folder, do you want to continue?",
appRemovedFromFolderTaost: "Removed from folder.",
modalYesButton: "Yes",
emptyFolderText: "This folder is empty",
allApplicationsLink: "All applications",
deleteAppModalMessage: (appName) => {
return `The app ${appName} and the associated data will be permanently deleted, do you want to continue?`;
},
appDeletedToast: "App deleted successfully.",
folderDeletedToast: "Folder has been deleted.",
createNewFolderButton: "+ Create new folder",
folderInfo: "Folders",
folderInfoText:
"You haven't created any folders. Use folders to organize your apps",
createFolderButton: "Create folder",
editFolderOption: "Edit folder",
deleteFolderOption: "Delete folder",
updateFolderTitle: "Edit folder",
updateFolderButton: "Update folder",
folderDeleteModalMessage: (folderName) => {
`Are you sure you want to delete the folder ${folderName}? Apps within the folder will not be deleted.`;
},
closeButton: "modal close",
2023-01-02 07:12:37 +00:00
workEmailLabel: "Email",
2023-01-17 12:17:53 +00:00
emailInputError: "Invalid Email",
passwordLabel: "Password",
forgotPasswordLink: "Forgot?",
loginButton: " Login",
2023-01-17 12:17:53 +00:00
signInHeader: "Sign in",
signInSubHeader: "New to ToolJet?Create an account",
SignUpSectionHeader: "Join ToolJet",
signInRedirectText: "Already have an account?",
signInRedirectLink: "Sign in",
signUpTermsHelperText: "By signing up you are agreeing to the",
termsOfServiceLink: "Terms of Service ",
privacyPolicyLink: " Privacy Policy",
invitePageHeader: "Join My workspace",
invitePageSubHeader:
"You are invited to a workspace My workspace. Accept the invite to join the workspace.",
userNameInputLabel: "Name",
acceptInviteButton: "Accept invite",
createButton: "Create",
saveChangesButton: "Save changes",
emailInputLabel: "Email",
allApplicationLink: "All apps",
notificationsCardTitle: "Notifications",
emptyNotificationTitle: "You're all caught up!",
emptyNotificationSubtitle: "You don't have any unread notifications!",
viewReadNotifications: "View read notifications",
logoutLink: "Logout",
backArrowText: "Back",
skipArrowText: "Skip",
selfHostSetUpCardHeader: "Hello, Welcome to ToolJet!",
selfHostSetUpCardSubHeader:
"Lets set up your workspace to get started with ToolJet",
setUpToolJetButton: "Set up ToolJet",
setUpadminCheckPoint: "Set up admin",
setUpworkspaceCheckPoint: "Set up workspace",
companyProfileCheckPoint: "Company profile",
setUpAdminHeader: "Set up your admin account",
onboardingPageSubHeader: "This information will help us improve ToolJet.",
passwordHelperText: "Password must be at least 5 characters",
continueButton: "Continue",
resetPasswordButton: "Reset password",
setUpWorkspaceHeader: "Set up your workspace",
userRolePageHeader: "What best describes your role?",
sizeOftheCompanyHeader: "What is the size of your company?",
workspaceNameInputLabel: "Workspace name",
onboardingSeperatorText: "OR",
getStartedButton: "Get started for free",
emailPageHeader: "Check your mail",
spamMessage: "Did not receive an email? Check your spam folder.",
resendEmailButton: "Resend verification mail",
editEmailButton: "Edit email address",
emailVerifiedText: "Successfully verified email",
continueToSetUp: "Continue to set up your workspace to start using ToolJet.",
createAccountCheckPoint: "Create account",
verifyEmailCheckPoint: "Verify email",
inalidInvitationLinkHeader: "Invalid verification link",
inalidInvitationLinkDescription: "This verification link is invalid.",
backtoSignUpButton: "Back to signup",
createAnAccountLink: "Create an account",
forgotPasswordPageHeader: "Forgot Password",
newToTooljetText: "New to ToolJet?",
emailAddressLabel: "Email address",
resetPasswordLinkButton: " Send a reset link",
passwordResetEmailToast:
"Please check your email/inbox for the password reset link",
passwordResetPageHeader: "Reset Password",
passwordResetSuccessPageHeader: "Password has been reset",
newPasswordInputLabel: "New Password",
confirmPasswordInputFieldLabel: "Re-enter the password",
passwordResetSuccessToast: "Password reset successfully",
backToLoginButton: "Back to log in",
resetPasswordPageDescription:
"Your password has been reset successfully, log into ToolJet to continue your session",
labelFullNameInput: "Enter full name",
labelEmailInput: "Email address",
breadcrumbworkspaceSettingTitle: "Workspace settings",
breadcrumbGlobalDatasourceTitle: "Global datasources",
breadcrumbDatabaseTitle: "Databse",
breadcrumbApplications: "Applications",
breadcrumbSettings: "Settings",
addNewDataSourceButton: "Add new datasource",
emailPageDescription: (email) => {
return `Weve sent an email to ${email} with a verification link. Please use that to verify your email address.`;
},
companyPageHeader: (userName) => {
return `Where do you work ${userName}?`;
},
resetPasswordEmailDescription: (email) => {
return `Weve sent an email to ${email} with a password reset link. Please click on that link to reset your password.`;
},
userJobRole: {
HeadOfEngineering: "Head of engineering",
headOfProduct: "Head of product",
CioCto: "CIO/CTO",
softwareEnginner: "Software engineer",
dataScientist: "Data scientist",
productManager: "Product manager",
other: "Other",
},
companySize: {
uptoTen: "1-10",
uptoFifty: "11-50",
uptoHundred: "51-100",
uptoFiveHundred: "101-500",
uptoThousand: "501-1000",
ThousandPlus: "1000+",
},
selfHostSignUpTermsHelperText: "By continuing you are agreeing to the",
shareModalElements: {
modalHeader: "Share",
[feature] Make workspace urls more readable (#6698) * working on replacing workspace id with workspace name * experimenting with zustand * added slug column to workspace table * working on workspace url * working on backward compatibility * fixing bugs * added not found error * fixed workspace switching issue * fix: switching b/w workspaces * fix: workspace login * changed workspace login url link * resolved conflicts * added create organization design * added backend validation * fixed constraint errors issue * fixed: creating new workspace * fixed: update workspace * fixed: update workspace bugs * fixed: auto created slug bugs * fixed: login slug * design changes * added folder slug * fixed: lint error * fixed: invite and first user issues * fixed: login page redirection * fixed: redirect path * added reserved word check * fix: edit workspace design * fix: folder query issue * fix: create and edit workspace modal validation issues * fixing failed test cases * fixing failed test cases - app.e2e * fixed organizations specs * fixed public app issue * working on app slug * Added app slug design to the general settings * Working on appId -> slug changes - Handling appId cases - Fixing issues * Worked on share modal design change - replaced slug functionality - Fixed backend slug issues - Fixed page handle issues * changed switch label * replace version param with query param * fix: possible uuid bug * fix: login app slug redirection issue * Worked on unique app slug * moved all apps related api calls to apps.service.js file * refactoring the code and fixing minor issues * Refactored and fixed some bugs * Fixed bugs: redirect cookie issue * Fixed dark-mode issues * removed duplicate code * Worked on develop branch conflicts * Moved handle app access check to private route * Added fix for navigate * Refactored the code. Added slug to failed sso login redirection path * again some redirect url fixes * onbaord navbar tj-icon onclick * Fix: viewer version id undefined issue * fix: multi-pages, invalid workspace slug * fix: removing the version search param while switching the pages * fix-sso: redirecting to prev tab's login organization slug * fix-sso: google signup * fix: preivew permission issue * Fixing merge issues * Fixed tjdb issues * dark mode fix of manage users button * fix: extra slash in url, tj-logo on click wrong org id * subpath workspace login url * resolved lint issue * fix: cannot clone apps * fixed switch workspace issue * fix: login page flashing issue * fix: back button issue * fix: private endless redirection * Update the modal with new UX * fixed all ui issues * fixed placeholder translation issues * fix: sso multi-request issues * fix: multi-pages crash while promoting a version * fix: error text msg delay * added default slug to the first workspace in the instance * subpath-fix: slug preview url * fix: same value check * fixed switch page query params issue * fix: folder query * fix: manage app users ui responsive issue * Backend PR changes --------- Co-authored-by: gsmithun4 <[email protected]>
2023-10-18 07:30:17 +00:00
makePublicAppToggleLabel: "Make application public",
shareableAppLink: "Shareable app link",
// iframeLinkLabel: "Get embeddable link for this application",
// ifameLinkCopyButton: "copy",
},
Query manager revamp (#6680) * global store init * Moved query data to new component * Removed unwanted code * Removed data queries prop drilling * Moved query state out of editor * Added unsafe to componentWillReceiveProps * Selected first query when the version is changed * Fixed bug on renaming query * Fixed issue on dark theme * Fixed running query on page load in viewer * Query manager refactor init * Added global data source in store * Disabled devtools on production * Fixed bug on selecting query after deletion * Reset store when editor is loaded * Moved query manager to functional component * Fixed conflict issues * Fixed infinite loop on tooljetDB * Set the store name and updated devtools logic * Fixed issue on displaying draft query from data sources * Updated comments on the store * Fixed bug on changing data source and creating query from data source * Fixed bug on showing unsaved changes popup * Fixed issue on showing confirmation modal everytime without any changes * feat: autosave data query functionality * feat: show publish button only when the status in draft state * Fixed issues on query renaming * feat: removed discard popup for data query create/edit widget * stye: reduced autosave api call timeout and added draft tag * feat: added minor style changes * feat: fixed issues with restapi plugin, removed unused api calls * fix: fixed issue that breaks restapi creation * fix: reload selected query details after update query * perf: reduced debounce time for data query update apis * feat: removed full reloading of query list on query renaming * feat: duplicate data query feature added * Fixed issue on creating restAPI query * fix: fixed issue in transforming response from update queyr api * fix: refresh selected query details when the selected query is updated * fix: rename query on click enter * fix: full refresh of query list on update * fix: style changes * fix: subscribing to state to autsave * feat: updated the query manager styles to new design * feat: revamped the querypane header buttons * fix: fixed the padding for query panel maximize button * feat: updated search box style * refactor: moved function to render data source icon to its own component * fix: fixed querymanager widget breaking issue * merged with feat/query-manager-autosave * refactor: removed unused consoles * refactor: removed unused consoles * refactor: removed unused consoles * fix: removed commented code * fix: removed unused code * refactor: removed unused comments * fix: show change datasource select only if valid ds available * Update frontend/src/Editor/Inspector/EventManager.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * feat: modify behaviour of search icon in query panel * fix: fixed theme color mismatch in query manager * refactor: remove dead code * refactor: updated theme for data source listner * fix: theming in filter and sort popup * refactor: remove unused variables * fix: removed draftQuery logic from query manager * refactor: removed unused varibales * Update frontend/src/Editor/QueryManager/QueryEditors/Restapi/TabParams.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * Update frontend/src/Editor/QueryPanel/QueryCard.jsx Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> * feat: diable preview for draft queries * fix: added tooltip for query panel button * fix: fixed issues in saving query manager events * fix: moved query save subscriber to QuerPanel component * feat: converted query run api to save and run * fix: made varibale an optional param in updateDataQuery dto * refactor: cleanup update dataquery status api response * refactor: moved query status to constants file * feat: prompt for queryname when creating new query * fix: store new queryname in state on create query pageload * fix: fixed alignment of Tooljet db component form * fix: correct translation and format file * refactor: removed consoles * merge: merge appbuilder-1.2 * style: updated rename input/button UX * style: revamped dataquery create widget styles * style: revamped data source selector styles * fix: removed code added for debugging * style: updated data query filter design * style: Add prop to control visibility of clear button in search box * style: implement new style for query filter * merge appbuilder-1.2 to feat/query-manager-sort-filter * refactor: remove unintended file change * fix: set default value for method in respapi * style: updated copilot info popup style * style: updated quer panel header icons * style: updated button styles * style: fixed query manager button styles * style: smoothened query preview modal view * fix: correct import for some funs * fix: fixed minor UX bugs * style: fixed styling of REST api GDS * style: fixed styleing of sort and filter popup * style: improved data queries sort filter UI/UX * fix: remove click listner when overlay is closed * fix: moved component declaration out of parent component * fix: set selected datasource for default sources * fix: filter DS based on saerch in create dropdown * fix: restrict draft query running to preview mode * fix: query renamed on input change in create screen * fix: set name to state as soon as user renames query * fix: make query notification message consistent * style: correct s3 bucket plugin layout config * fix: fixed issues with cloning of Static DS queries * fix: made change so that newly created query is reflected immediatly * style: updated spacing for query manager components * fix: hide rename input when no query selected * fix: check bothe selected query and DS before rendering query manager * fix: set isSaving to true only for api calls in querymanager * fix: added success message form in qm * fix: filter out draft queries from viewer on running * fix: fixed inconsistent gutter for runpy and runjs editors * fix: reload dataqueris on LDS deletion * fix: redesigned filter/sort popup * fix: fixed issue that resets filter on search * fix: fixed query manager breaking on plugin select * fix: diable json preview for text output * fix: reset to filter and sort main menu on close filter popup * refactor: rename varibales * stye: redesigned query create panel * feat: revert data query status column from backend * style: redesign query picker section * refactor: removed dead code * style: querypanel expand/collapse btn style * style: add query select and query filter popup style redesign * style: updated filter popup style * feat: removed draft query checks everywhere * style: empty dataqueries style changed * style: updated query selector popup and rest options styles * style: removed 100% height to query option remove btn * feat: added the query runnable status check * style: updated query manager footer style * feat: changed DS filter from kind to DS ID * style: minor ui tweaks in filter popup * style: disable DS filter if no DQs created * style: minor ui change * fix: rerender filter popup post DS api call. fixed rest api copy feature * fix: add local DS to filter popup * refactor: removed dead code/comments * add new row is crashing when no data is fed to table (#7102) * fix: fixed condition that blocked GDS run on load * fix: revert name back to og name if update fails in rename query * feat: added tooltip for show query btn * fix: added click interaction for pill btn as well * fix: minor UI tweaks to make UX better * style: fixed the styling of filter popup * style: minor UI tweaks in query filter popup * fix: fixed minor css issue in ds picker * style: wrap overflowing text in queryname * fix: update updated_at after query update api call success * fix: update remove the caller query from event query dropdown * style: minor ui spacing tweaks * fix: fix issue that cuased app crash when tjdb opened * fix: fixed update row styles * fix: fixed info popup dark theme bg * fix: fixed headers styling according to general QM styles * style: fixed stripe QM UI * fix: added tooltip for quernames * feat: add tooltip for select ds options * added consoles to debug debugger issue * fix: fixed :active style of ds select dropdown in QM * fix: fixed DS kind name in data source selector in QM * fix: fixed border color mismatch for ds select dd * fix: change tooltip msg for maximize/minize QM * Fix automation for query manager revamp. (#7223) * Add data-cy to support modified specs * Fix event handler * Fix RunPy and RunJS specs * Fix event handler label * Fix basic components spec * Fix basic components failure * Fix tabel spec failure. * Fix runjs and runpy actions * Fix table column options * Add data-cy * version: version updated to 2.13.0 * Version bump --------- Co-authored-by: Kavin Venkatachalam <[email protected]> Co-authored-by: Kavin Venkatachalam <50441969+[email protected]> Co-authored-by: Manish Kushare <37823141+[email protected]> Co-authored-by: Midhun Kumar E <[email protected]>
2023-08-09 12:31:48 +00:00
groupInputFieldLabel: "Select Group",
documentationLink: "Read Documentation",
constantsNameError:
"Constant name should start with a letter or underscore and can only contain letters, numbers and underscores",
constantsValueError:
"Value should be less than 10000 characters and cannot be empty",
createApp: "Create app",
appName: "App Name",
enterAppName: "Enter app name",
appNameInfoLabel: "App name must be unique and max 50 characters",
renameApp: "Rename app",
};
export const commonWidgetText = {
accordionProperties: "Properties",
accordionEvents: "Events",
accordionGenaral: "General",
accordionValidation: "Validation",
2024-02-15 03:36:50 +00:00
accordionLayout: "Devices",
accordionDevices: "Devices",
parameterCustomValidation: "Custom validation",
parameterShowOnDesktop: "Show on desktop",
parameterShowOnMobile: "Show on mobile",
parameterVisibility: "Visibility",
parameterDisable: "Disable",
parameterBorderRadius: "Border radius",
borderRadiusInput: ["{{", "20}}"],
parameterOptionLabels: "Option labels",
parameterBoxShadow: "Box shadow",
boxShadowDefaultValue: "#00000040",
parameterOptionvalues: "Option values",
boxShadowColor: "Box shadow Color",
boxShadowFxValue: "-5px 6px 5px 8px #ee121240",
test: Add automation for text-input revamp. (#8671) * init textinput revamp * updated styles panel * bugfix * updates * fix :: accordion * fix :: styling * add box shadow , additional property,tooltip * fix conditional render for styles * feat :: fixed order of each property and styles * feat :: styling input * bugfix * feat :: add option to add icon * add option to add icon * adding option to toggle visibility * updated password input with new design * chnaging component location * bugfix * style fixes * fix :: added loader * updated :: few detailing * few bugfixes * fix :: for form widget label * fixes * added option to add icon color * including label field for password input * fix for label * fix * test fix backward compatibility for height * updates * revert * adding key for distinguishing older and newer widgets * testing * test * test * update * update * migration testing * limit vertical resizing in textinput * testing * throw test * test * adding check for label length * fixing edge cases * removing resize * backward compatibility height * backward compatibility * number input review fixes * added exposed items * fixing csa * ui fixes * fix height compatibility * feat :: csa for all inputs and exposed variables * backward compatibility fixes and validation fixes * fixes :: textinput positioning of loader and icon * fix :: password input * cleanup and fixes * fixes * cleanup * fixes * review fixes * review fixes * typo fix * fix padding * review fixes styles component panel * fix naming * fix padding * fix :: icons position * updates * cleanup * updates events , csa * backward compatibility * clean * feat :: change validation from properties * ui fixes * icon name * removed 'px' text from tooltip * fixes placeholder * few updates :: removing label in form * ui in form * update :: number input validation behaviour * testing fixes * added side handlers * removing unwanted fx * disabling fx for padding field * ordering change * fix * label issue + restricted side handler * fix :: box shadow bug * on change event doesnt propagate exposed vars correctly * adding debounce for slider value change * fix :: for modal ooen bug during onfocus event * test slider * Add common utils * Modify helpers * Add text input spec * Add utils for field validation * Minor spec updates * Fix for password basic automation cases --------- Co-authored-by: stepinfwd <[email protected]>
2024-02-06 04:57:31 +00:00
loadingState: "Loading state",
codeMirrorLabelTrue: "{{true}}",
codeMirrorLabelFalse: "{{false}}",
codeMirrorInputTrue: codeMirrorInputLabel(true),
codeMirrorInputFalse: codeMirrorInputLabel("false"),
addEventHandlerLink: "New event handler",
inspectorComponentLabel: "components",
componentValueLabel: "Value",
labelDefaultValue: "Default value",
parameterLabel: "Label",
labelMinimumValue: "Minimum value",
labelMaximumValue: "Maximum value",
labelPlaceHolder: "Placeholder",
labelRegex: "Regex",
labelMinLength: "Min length",
labelMaxLength: "Max length",
labelcustomValidadtion: "Custom validation",
regularExpression: "^[A-Z]*$",
regexValidationError: "The input should match pattern",
minLengthValidationError: (value) => {
return `Minimum ${value} characters is needed`;
},
maxLengthValidationError: (value) => {
return `Maximum ${value} characters is allowed`;
},
datepickerDocumentationLink: "Read documentation for Datepicker",
text1: "text1",
textinput1: "textinput1",
toggleswitch1: "toggleswitch1",
toggleSwitch: "Toggle Switch",
button1: "button1",
image1: "image1",
};
export const createBackspaceText = (text) => {
let backspace = "{end}";
[...text].forEach((c) => {
backspace += "{backspace}{del}";
});
return backspace;
};
export const widgetValue = (widgetName) => {
return ["{{", `components.${widgetName}.value}}`];
};
export const customValidation = (name, message) => {
return ["{{", `components.${name}.value ? true : '${message}'}}`];
};