Commit graph

74 commits

Author SHA1 Message Date
Johnson Cherian
55cdc7a0b5
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+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* 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+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryPanel/QueryCard.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* 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 <kavin.saratha@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
2023-08-09 18:01:48 +05:30
Johnson Cherian
f5c0f186e0
Parameters support on RunJS (#7033)
* feat: resolve passed arguments in runjs

* feat: added popup form for runs params

* fix: fixed issue with close function of popupover with codehinter

* feat: added input for runjs args

* style: for runjs args

* fix: added support for params in custom components

* fix: fixed default query param for runjs

* fix: remove debuggers

* refactor: removed commented code

* fix: removed unused code

* style: arguments input style in event manager

* refactor: Moved argument list to separate component

* refactor: moved runjs components to single folder

* fix: minor refactorings

* fix: renamed arguments to parameters for compoennts

* refactor:  reanamed argument to parameter in runjs

* refactor: removed commented code

* fix: added hasPramSupported flag against runjs queries

* Update frontend/src/Editor/Inspector/ActionConfigurationPanels/RunjsParamters.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/QueryManager/QueryEditors/Runjs/ParameterForm.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* fix: prevent duplication of name

* fix: fixed issue that blocked query params from returning

* fix: remove extra params from runjs

* fix: updated reference to current satte

* fix: updated `query.run()` signature

* fix: added duplicate check on param add and update

* fix: added additonal null check for params runjs

* feat: resolve runjs params default value without currentState

* fix: hide defaultvalue of runjs in events form

* fix: minor UX experience in runjs params

* fix: set runjs default values to events on creation

* style: updated the runjs param UI

* style: runjs param form minor ux improvement

* fix: close modal on add button click again

---------

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-07-20 16:35:39 +05:30
Nakul Nagargade
3f75baa7ef
Move the entire current state to Zustand store (#6812)
* Move current state to Zustand store

* Remove console logs

* Bug fixes

* Bug fix

* Code refactor

* Fix table not rendering when selected

* Refactor

* Resolve imports

* Resolve code comments

* Prevent current state store zustand actions not to exposed to user

* Fix

* Move current state from viewer to Zustand store

* Bug fix

* Resolve code comments

* BugFix

* Bug fix

* bug fix

* fix action button event not being triggered in table

* Resolved comments
2023-07-19 11:42:28 +05:30
Shahriya Siddique
6781f25ae3
The position of icon to expand the code editor in new window is fixed (#6676)
* The position of icon to expand the code editor in new window is  fixed

* The position of icon to expand the code editor in new window is  fixed
2023-07-03 17:22:14 +05:30
Manish Kushare
254079e530
Added feature to download table data using component specific actions (#6132)
* added feature to download table data using csa

* avoided popover getting closed after selcting downlaod format from select component

generalise the classname in codeHinter

removed important key in css

* bug fixed : column was not populating upon change in data when downloading table data with csa

* avoiding programatically choosing download type in table download csa

* made the requested changes

* made utility function for onChange and value of control specific actions to avoid duplications
2023-05-30 09:21:57 +05:30
Arpit
7f281980a3
Hotfix - support resolving codeblocks workspace (#6551)
* fixes: resolve both {{object}} and %%object%% within a single string

* resolved multiple server/client/app variables together

* clean up

* clean up
2023-05-26 13:50:39 +05:30
arpitnath
db412fcb1e ui changes to handle admin settings and user settings 2023-05-15 18:45:09 +05:30
Arpit
2ddbd3309e
Feature - ToolJet Copilot 🚀 (#6074)
* add support for Copilot assistance

* clean up

* fixes workspace settings crash

* refactor and resolved review comments

* api endpoint should be inferred from env

* copilot style fixes

* copilot style fixed

* beta tag fro copilot settings: workspace

* fire toast for unauthorised recommendation request

* include the previous code with the newly generated response

* scoping apikeys to orgs

* controller updates for copilot

* copilot org key updated

* disable toggle for new workspaces

* disable toggle for new workspaces

* fixes: multi-workspace toggle updates

* uninstall unsued packages

* fixes button state for copilot in transformations

* updated the urls
2023-05-11 15:04:48 +05:30
Manish Kushare
64a81c062b
bug fixed, app is getting crashed upon clicking columns in the table inspector for the widget inside listview (#5656)
* bug fixed: app is getting crashed upon clicking columns in the table inspector for the widget inside listview

* bug fixed: not able to edit new added column and not able to see valdiation errors

* code enhancement
2023-03-02 11:50:27 +05:30
Arpit
6420f8710c
Tooljet database : code audit or technical debt review. (#5444)
* fetch table data with selected table when fetching tables

* refactored tooljet db operations and listrows

* create operation: dropdown should only show options which are not selected

* list operation: dropdown should only show options which are not selected

* update operation: dropdown should only show options which are not selected

* delete operation: dropdown should only show options which are not selected

* refactor: update op

* clean up

* style fixes

* throw error with descriptive error toast for empty where fields for delete op

* clean up

* default limit should be 1

* fixes codehinter onBlur issue
2023-02-23 12:08:09 +05:30
Midhun Kumar E
2af995f8d7
Added data-cy for multipage elements (#5557)
* Modify data-cy for table

* Add data-cy for page rename elements

* Add data-cy for search on sidepanel

* Add data-cy for pagehandle elements

* Add data-cy for page events elements

* Add data-cy for options, icons and modal
2023-02-14 15:40:59 +05:30
geisterfurz007
fcbc5fbc03
fix: popout editor closing for tables (#4674)
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
2022-11-17 14:09:44 +05:30
Midhun Kumar E
138ad797d0
Added cypress test for data source PostgreSQL (#4602)
* Add data-cy

* Add basic spec

* Add basic method to create query

* Add data-cy for query section components

* Add common method for postgreSQL

* Update spec with methods

* Add data-cy for alert-box and query search elements

* Add method for widget integrations and event handler

* Add selector into selectorFile.

* Fix failing cases

* Add labels on Text file

* Fix failing specs due to rerendering

* Remove creds from spec
2022-11-11 11:15:12 +05:30
Arpit
426f3f0f83
fixes trailing white space in widget data field breaks the output (#4620) 2022-10-27 15:51:26 +05:30
Arpit
e210b8572f
fixes: toggle element not updating afte the first udpate of the current state (#4622) 2022-10-27 15:34:01 +05:30
Sherfin Shamsudeen
45713b7cdd
Codehinter optimisations (#4537)
Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-10-20 17:17:26 +05:30
Kavin Venkatachalam
7f702c1d6b
[Feature]: Added Localisation (#3746)
* Added localisation

* Closed modal after language selection

* updated transaltaion setup

* Updated language tooltip

* Added fallback language support

* Adding english library resource for translation (#3844)

* Adding English dictionary for the widget lists in the inspector

* added leftSideBar object in en.json and implemented it for leftSidebar icon text

* renamed leftSideBar to leftSidebar and added resources for tip in the left side bar

* added english translation resources for leftsidebar debugger

* added english language resources for the global settings

* added english language resources for data sources in left sidebar

* added english language resources for the share button and share modal in the editor

* added english language resources for release button, manageOrgUsers, appVersionManager

* added english language resources for Queries and Please select a widget to inspect in the editor

* added english language resources for data source list , data source manager, and query manager(partially)

* added english language resources for queryManager, transformation, preview

* added english language resources for dark mode toggle in the headers inside homepage

* added fallback message for dark mode toggle

* added resources for language change in the headers inside homepage

* added resources for notification center in the header inside homepage

* added resources for organization and manage users components in header inside homepage

* added resources in manageGroupPermission

* added resources for manageGroupPermissionsResources component

* added resources for manageSSO and generalSettings components

* added resources for google sso

* added resources for github sso

* added resources for environment variables in manageSSO

* added resources for profile and setting page

* added resources for app card and app card menu

* added resources for folder section and app list in homepage

* added resources for header section in the homepage

* added resources for pagination in homepage

* added resources for modals in the homepage

* added resources for blank page

* added resources for login page

* added resources for forgot password page

* added resources for sign up page

* added resources for onBoarding component

* added resources for reset password page

* deleted duplicate key for readDocumentation

* deleted duplicate key for cancel in en.json and added translation for cancel at few places

* removing duplicate copy of save key in en.json

* added translation for CommentActions.jsx components

* deleted duplicate copy of search key in en.json and added resources for create and search queries , select keys

* fix typo errors

* fixed typo errors

* shorten the key for loginAndSignUpAndForgotPassword to loginSignupPage in en.json file and related files

* shorten the key noLoginMethodsEnabledForThisWorkspace to noLoginMethodsEnabled

* shorten the key pleaseCheckYourEmailForConfirmationLink to emailConfirmLink

* shorten the key dontHaveAccountYet to dontHaveAccount

* shorten keys from loginSignupPage key in en.json

* shorten keys of shareModal nested object in en.json

* shorten the key in appVersionManager nested object

* shorten the keys for queryManager nested object in the en.json

* delete duplicate copy of environmentVar and shorten manageEnvironmentVariables,environmentVariables

* shorten keys in the organization nested object

* shorten keys in the homePage nested object in en.json file

* added inspector and eventManager empty object

* added resources to RedirectSSO component

* added resources for OAuth2

* added resources for TemplateCard.jsx

* added resources for TemplateLibraryModal.jsx

* added resources for ConfirmationPage.jsx

* added resources for ConfirmationPage component

* removed translation in App.jsx file

* added resources for Slack.jsx

* added resources for GoogleSheets.jsx

* added resources for CodeBuilder.jsx

* added resources for CommentBody and CommentFooter

* added resources for TestConnection component

* added resources for AllignButton.jsx

* added resources for Openapi and Stripe components

* added resources for ErrorBoundary

* added resources for Viewer.jsx

* Translation for widgets, table

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>

* Commented Language selection

* Fixed typos

* Updated fr.json file

Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
2022-09-14 13:34:49 +05:30
Manish Kushare
4cc239661e
Bug fixed : dark theme issues (#4009)
* bug fixed : file picker is not consistent with the dark theme

* bug fixed : Map widget is not consistent with the dark theme

* bug fixed : Steps widget is not consistent with the dark theme

* bug fixed : Multi select widget label is not consistent with the dark theme

* bug fixed : search bar in widget manager and label params in Code Hinter is not consistent with the dark theme

* removed unwanted comma in the chart inspector

* bug fix : app dropdown inside go to app in event manager is not consistent with the dark theme

* bug fixed : search select dropdown is not consistent with the dark theme in table inspector

* bug fixed : Organization and Profile avatar in HomePage is not consistent with the dark theme

* bug fixed : search box in the homepage is not consistent with the dark theme

* bug fixed : select dropdown input placeholder is not consistent with the dark theme

* bug fixed :Text area in the Modal to  Share the app link is not consistent with the dark theme

* bug fixed : p tag in pagination in the homepage is not consistent with the dark theme

* replaced undefined to false as default value of darkMode if not defined

* bug fixed : multiselect input placeholder is not consistent with the dark theme

* removed duplicate code from custom.scss and changed rgb to hex in theme.scss
2022-09-12 14:17:04 +05:30
Navaneeth Pk
98bb7519dd
Reverse proxy using base tag (#3889)
* reverse proxy

* reverse proxy

* Fix for yjs

* Fix for ws

* Fixes org switching

* Fixes org creation

* Fixes login logo

* Fixes download icon

* Construct use invite URL from base URI

* Fixes apiUrl if sub path is set

* Remove commented code

* Fix profile link

* invitation url changes

* Fixes dev env

* Use url-join lib to connect urls for goto app and invitation link

* Use useHistory instead of helper to get history for template modal

* Review changes

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-08-27 21:58:24 +05:30
Arpit
793510a755
adds actions to suggestive hints for runjs (#3782) 2022-08-16 16:07:06 +05:30
Kavin Venkatachalam
968e9ad4d4
[Feature]: CodeHinter preview for listItem, cellValue (#3373)
* CodeHinter preview for listItem, cellValue

* Updated variable names

* Added preview data for listView if data is not an array

* Fixed listItem preview issue

* Updated preview logic for listview

* Fixed listItem preview issue

* Reverted Listview changes

* Added a check for preview context in the viewer

* Resolved conflicts
2022-08-03 19:20:50 +05:30
Midhun Kumar E
a68c727eae
Add cypress test for date picker widget (#3592)
* Add and modify data-cy for widgets

* Add selectors

* Add constant texts and methods

* Add common widget operations

* Add momet to Cypress

* Add common utils and optimized commands

* Add methods specific for Datepicker

* Add spec datePickerHappyPath

* Minor selector modification

* Add verification of value from inspector
2022-07-20 12:41:50 +05:30
Arpit
b971b91a60
[improvement] Improved suggestive hints for the app builder (#3558)
* Suggestive hints resolving current depth and next depth

* fixes eslint warnings

* adds: for queries,  Function call, an expression containing the function name run followed by the function call operator, ( )

* stops resolves function call inside codehinter fields except customJs and transformations

* stops resolves function call inside codehinter fields except customJs and transformations
2022-07-11 16:00:18 +05:30
Kavin Venkatachalam
4d1850fe47
[Feature]: Added box-shadow property (#3427)
* Added box-shadow property

* Updated slider default value

* Support negative values in box-shadow

* Removed data-cy attribute

* Moved box-shadow property to general styles

* Added margin bottom to the styles panel
2022-07-11 15:19:28 +05:30
Kavin Venkatachalam
126bdcd7af
[Feature]: Component Specific Actions (#3448)
* Build architecture for component specific actions

* Resolve references component action variables

* Add architecture to read component action params from widgetConfig.js

* Add Set table page to component specific actions

* List only components with actions for control component action

* Make component specific actions async

* fx button styles

* fx in action types

* Improve zIndex for component action param select

* fix for select component width

* adding margin to remove height toggle during fx

* Updated SelectSearch with Select

* Added component specific action to Text widget

* Fixed bug on showing the component with actions

* fix :: fx should align neatly inside the empty space designated for it,If type is not specified, codehinter full width

* removing bug :: popover closes on select

* height toggle bug

* Ensure that action is cleared when a different component is selected

* bugfix :: select width issue

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
2022-07-01 16:54:34 +05:30
Kavin Venkatachalam
5280e9d6e7
Move & Resize portal (#3224) 2022-06-08 12:18:47 +05:30
Kavin Venkatachalam
e6d43d21eb
[Feature]: Inline style support for custom component (#3076)
* Inline style support for custom component

* Added skipResolve check
2022-06-03 17:47:43 +05:30
Kavin Venkatachalam
1552f834d6
[Feature]: Copy text from CodeHinter preview (#3155)
* Copy text from CodeHinter preview

* Updated copy text logic
2022-06-02 12:57:20 +05:30
Sherfin Shamsudeen
9ffd885222 Merge branch 'main' into develop 2022-05-20 14:05:45 +05:30
Sherfin Shamsudeen
dd03b91d23
Add try catch for codehinter preview generation (#3099) 2022-05-20 14:03:43 +05:30
Ajith KV
2db14dd9f5
Cypress test for button widget (#2989)
* Added cypress test for button widget

* Added custom commands

* Updated common selectors

* data-cy attributes for the elements

* Updated the login end point

* Updated new login end point

* Added data-cy attribute for autosave indicator

* Updated login end point

* Updated test for auto save indicator

* Updated custom commands for skipping instruction modal
2022-05-16 15:39:10 +05:30
Kavin Venkatachalam
7c30a830db
[Feature]: Custom Component Widget (#2960)
* Created custom component widget

* Updated the custom component key

* Added doc for custom component

* Update iframe.html

* Installed HTML parse in dependencies

* Updated script source

* Added scripts to CSP

* Added Skypack to CSP

* Fixed Run Query issue in Viewer
2022-05-10 15:09:09 +05:30
Kiran Ashok
f838d4560b
Alignment fix for codehinter tooltip (#2768) 2022-04-07 17:03:55 +05:30
Kiran Ashok
1d67752aca
Bugfix :: Fixing alignment of FX button (#2438)
* fx alignment debugging

* updates

* fixing positioning

* fixing positioning

* resolving undefined issue

* fixing positioning in style tab pane

* code cleanup

* pr changes :: aligning fx with label

* adjusting margin
2022-03-31 15:14:45 +05:30
Muhsin Shah C P
d10625ca4c
Changed rest api query builder design (#2472)
* Changing rest api query builder design
- Changed vertical tabs to horizontal
- Removed key,value group header
- Changed icons
etc

* Removed unwanted spaces & fixed dark mode

* Added delete option to the 0th key value pair also
- Changed url field's width

* Resolved a bug

* Fixed size & alignment issues
- Changed some bootstrap row classes to flex layouts

* cleaning code

* Added some styles

* Fixed minor ui issues
2022-03-17 12:50:55 +05:30
Arpit
4ff45bf024
Fix for extra whitespaces resolving to strings (#2408) 2022-03-04 11:14:34 +05:30
Arpit
dd79f24715
[Bugfix] Typing "this" or "window" or "app" on any code box will crash the app completely (#1998)
* fixes: Typing  ,  or  on any code box will crash the app completely

* handle circular dependecies in the preview component and checks to resolved reserved keywords list

* remove comments

* exp: resolves reserved keywords to null if declared inside obj

* Remove unnecessary import for react-hot-toast

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-02-15 12:19:22 +05:30
Arpit
f1b5fc73ed
Fix/codehinter fields scroll (#2211)
* fixes only for restapi

* Fix

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-02-14 19:03:47 +05:30
Navaneeth Pk
277195d8d3
Fixes inconsistent margin of Fx fields (#2194)
Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
2022-02-08 08:43:33 +05:30
Arpit
8c990df18d
[Bugfix] style fixes querypanel (#2163)
* fixes default value for restapi

* fixes default value for restapi

* restapi-url field width 100%

* removes extra padding from codehinter input field

* fixes querypanel code hinter margins

* fixes overlap fields firestore
2022-02-07 18:13:28 +05:30
Navaneeth Pk
7b20e9a27c
Minor style corrections for Fx inputs (#2152)
* Fixes fx

* fix: jump effect while fx switch

* Revert "fix: jump effect while fx switch"

This reverts commit 75471678ce.

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
2022-02-07 16:08:42 +05:30
Kiran Ashok
f5012352e4
Fixes UI issues part of code edit (fx) feature inclusion & number type addition (#2122)
* alignment fixed for fx

* fixing text colour in dark mode fx

* formating all boolean values

* including number type

* updating functinal logic for number type

* style updated

* style updated

* fixing table text colour not showing bug

* fixing darkmode bg colour

* Flipping transition animation , without delay fix

* bugfix:: fixing styles margin updated

* fixing margin

* fixing padding for new number input

* Revert "fixing margin"

This reverts commit b74e524443.

* Set bottom margin for hinter column to 16px

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-02-07 09:13:12 +05:30
Arpit
3a62ac9820
[improvement] Query panel redesign (#1947)
* query panel headers styles

* create query button style update

* create query button style update

* create query button style update: mixins

* querypanel header nav-links updated

* querypanel header buttons

* restapi: url hinter styles

* fixes querypane header width, undo prev styles applied

* querypanel header icons margin fix

* restapi: header tab

* restapi: params tab

* restapi: body tab

* base url style fixed

* added alert component to @/_ui

* adds margin top to query-panel tabs

* bumped font weight of preview

* on hover query style updated

* selected query style update and along with dark themed

* adds new searchbox component, added search queries

* fixes query panel query lists icons margin

* query selected hover bg

* back icon should not be render if callback is a function

* airtable: queries redesigned

* stripe: queries redesigned

* fixed query-pane header responsiveness

* fixes tab title typo

* undp/redo select datasource only when mode='create'

* removes comments

* refactor restapi url codehinter styles

* fixes white spaces in query pane and query pane header

* minor updates for restapi query options styles

* removes tool-tip for lens svg icon for search: query-pane header

* adds button loading spinner with primary color

* fixes hover bg color for queries

* update: query hover bg color to lighter tint

* update query list icons: trash and play svgs

* adds icons to the selection component

* fixes tabs alignments restapi

* fixes codehonter text margin: restapi url

* fixes advanced-options-container margintop

* new UI query: dynamodb

* new UI query: elasticsearch

* new UI query: firestore

* new UI query: mongodb

* new UI query: mysql

* new UI query: psql

* new UI query: typesenseapi

* new UI query: gsheet

* new UI query: sendgrid

* new UI query: twillio

* new UI query: gcs

* new UI query: minio

* new UI query: aws

* update query bg color and hover bg color

* fixes run query icon for dark theme

* fixes input query title text alignment

* update query header title

* adds search queries placeholder and add icon when search box is displayed

* updated No results query text

* undo/redo rest-api tabs: fixes whote spaces

* undo/redo: rest-api tabs conde hinter placeholder paddinleft

* adding new queries when search box component is mounted:fix

* fixes creating a new query after filtering queries

* fixes dark theme for select search components

* reverts query pane header search box with add icon

* fixes input left margin

* fixes bottom padding rest api tabs

* fixes toggle button:not selected in dark theme

* fixes typos

* fixes preview button spinner size

* undo/redo: query-trash-icon.svg for queries and trash.svg for components

* query icons badge bg update[options]

* icon badge fix

* move static styles to theme.scss

* restapi: url field height increment

* fixes query name when adding a new query with filtered querylist

* fixes alignment issues of the query header icon

* revert back to 32px code hinter height

* adds apdding to code mirror line

* updates to react-select

* remove component unmounts and mounts side effect
2022-02-02 22:29:57 +05:30
Sherfin Shamsudeen
36150dc8d5
Fx button for code hinter fields that will flip them to corresponding UI components (#2059)
* Allow flipping non-code fields to code fields

* Revert "Allow flipping non-code fields to code fields"

This reverts commit 190e686994.

* Accept type prop to CodeHinter

* Allow CodeHinter to display UI elements instead of codebox

* Use style FxButton as flipper for code hinter

* Do not show Fx button on codehinter that allows only codebox

* Implement Select and Toggle flippable fields for code hinter

* Apply proper padding for Fx button on codehinter and its toggle component

* Make component properties remember their Fx status

* Avoid generating code when Fx is activated

* Add Fx to color field

* Add Fx to align property type

* Support json type for codehinter and remove unused Text type

* Extend codehinter width to 100%

* Fix bug that caused serverside pagination property to not work

* Remove unnecessary comments
2022-02-01 19:46:21 +05:30
Arpit
27c5c925eb
fixes line-height overlap : portal codehinter (#1719) 2022-01-04 09:26:44 +05:30
Arpit
e95ee37ade
fixes codehinter border in lightmode (#1648) 2021-12-28 12:58:05 +05:30
Arpit
b4f7334b1f
Bugfix: Scrolling is broken for code editor on postgresql query manager (#1583)
* fixes: Scrolling is broken for code editor on postgresql query manager

* resolves comments
2021-12-25 08:51:19 +05:30
Arpit
847fe94850
[Chore] Popup Code Hinter component style fixes (#1561)
* popup icon alignment:fix

* preview bg code block in popup hinter

* portal modal style fixes

* theme classes for preview error

* style fixes

* style fixes-darkmode height

* added color var and theme border mixin

* not related
2021-12-15 09:53:17 +05:30
Arpit
b9754c4b6b
[Feature] popup modal for code hinter (#1465)
* portal for code hinter popup

* codehinter portal styles

* portal editor height

* update icons

* hinter changes

* refactoring to a separate dir

* code hinter - portal

* component details added in the portal header

* portal header: source name fixed

* portal header: inlcludes field name in the header

* display field names for rest api

* display field names for transformation

* handle for empty component names

* portal preview code bg

* foreUpdate

* foreUpdate

* refactored and using same codemirror component to render portal's editor

* clone codemirror to two different component

* fixed - need click to render the field data

* force update

* table component cell types: included

* chart component types: included

* alignment of the preview area

* btn color adapts to theme-fix

* remove console.logs

* disable portal editor for event manager

* scss unsued ruleset removed

* name fixes and remove unsued var

* .

* null check

* removed hardcode componentName

* app z-indexes: added z-index for suggestion-hints

* hook exhaustive-deps

* portal custom hook

* updated function name

* icon position fix

* hinter fails to open in certail scenarios: fixed
2021-12-10 08:39:23 +05:30
Arpit
a203253131
Feature: adds code preview for codeboxes (#1011)
* preview codeHinter default=true

* adding preview code for codeHinter for table widgets

* previw for codeHinter in eventManager and RestAPI headers tab fixed

* added classes to header tabs

* fixed preview for transformations

* widgets preview for title

* preview for advance tab QueryManager

* preview box for datasource queryeditor

* sql code hinter UI spaces fixed
2021-11-15 11:48:09 +05:30