Commit graph

1965 commits

Author SHA1 Message Date
Kiran Ashok
a738efe593
Fixed left sidebar inspector gets blurred when query panel is opened (#7032)
* fix :: ui color change for inspector , blur fix

* fix :: blur issue in chrome while zooming out in inspector
2023-07-19 15:34:05 +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
Manish Kushare
c276b6fb1e
Add support for one level of nested data in the table component (#6489)
* supporting one level of nested data and auto generating column for the same

* bug fixed

* proper functionality of add new row for nested data

* refactored

* simplified the utility function name and made suggested changes
2023-07-19 10:13:37 +05:30
Johnson Cherian
d99d6ce3d1
Fixed widget position calculation on resize (#6907)
* fix: correct widget position calculation on resize

* fix: fix widget misalaignment issue for contianer

* Update frontend/src/Editor/Container.jsx

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

* Update frontend/src/Editor/SubContainer.jsx

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

* fix: prevent state update id no size change on resize action

* fix: round position of widget to multiple of spacing

---------

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-07-18 15:28:49 +05:30
Kiran Ashok
88990d47cb
fix :: update position of debugger (#6994) 2023-07-18 15:27:49 +05:30
Nakul Nagargade
f321c19265
Move showComments and currentLayout to zustand store (#6646)
* Move version manager editor states to zustand

* Update appDataStore to appVersionsManagerStore

* Move released version popup state to global

* Move isVersionReleased to global store

* Rename appVersionsManagerStore to appVersionStore and destructure zustand data inside components

* Move showComments and toggleComments states to zustand store

* Move current layout from editor local states to editor store

* Resolve code comments

* Bug fixes
2023-07-18 13:11:31 +05:30
gsmithun4
33f16cd406 Merge branch 'main' into platform/v1.1 2023-07-12 10:15:27 +05:30
Kavin Venkatachalam
9c469bbbd8
Fixes app crash with modal component (#6999)
* Fixes crashing the app when tooljet icon is clicked with modal widget

* Version bump
2023-07-12 10:12:52 +05:30
gsmithun4
8490267087 Merge branch 'main' into platform/v1.1 2023-07-11 18:44:07 +05:30
Kiran Ashok
2a489624b1
Hotfix :: Dynamic height feature not working with modal widget (#6996)
* fix :: new dynamic height feature for canvas not working for modal widget when dropped to canvas

* version bump

* passing height prop to container
2023-07-11 18:32:44 +05:30
Muhsin Shah
108bb0f244 add: disable edit icon if version is released 2023-07-11 16:06:23 +05:30
gsmithun4
467a96ae15 Merge branch 'main' into platform/v1.1 2023-07-11 14:41:46 +05:30
Johnson Cherian
fb9874e3ea
Dynamic page height (#6983)
* fix: commented page maxwidth input

* fix: Update canvas height only for widget dimension change

* fix: update heigh on widget deletion

* fix: reduced header/footer height from canvas height

* fix: fixed typo

* style: coorected page height for view and edit modes

* refactor: removed unused code
2023-07-11 14:31:26 +05:30
Kiran Ashok
59eee6c12c
Listview component with grid option (#6975)
* feat :: list view component with grid mode

* cypress fix and migration fix for older app to default mode to list
2023-07-11 14:30:54 +05:30
Arpit
a9d76bfa72
fixes: iframe link is only rendered (#6982) 2023-07-11 13:40:26 +05:30
Muhsin Shah C P
4331b40869
[Improvements] Environment changes (#6762)
* Added priority, enabled, current_environment_id columns
- added data-migrations to backfill the priority and current environment id for each version

* working on multi environments improvement
- added checks for promoted env
- promote env feature
- released app & production env check
- promoted version definition check

* added import support

* working on migration issues

* fixed failing migration

* fixed failing migration once again

* Fixed possible bugs
- seed
- test case helpers
- app version release

* fixed migration bug

* working on migration progress

* working on migration progress class

* added migration progress

* fixed unit tests

* fixed e2e cases

* added default priority

* added PR changes

* changed import logic

* added global datasource design and api changes

* changed default env if the id is null

* added unique constraint and a bug fix

* changed app versions api
- added current environment id to the where conditions

* fixed failing test cases

* added new test cases

* added new api changes

* added back the enabled check

* fixed test case

* change: added environment to create versions dto

* typo: environmentId

* added new api for fetching versions

* added appVersions count changes to CE

* Changed app versions by environmentid logic

* added PR changes for EE

* fixed wrong promoted env id issue

* fix: can't switch to staging

* added import export changes
- update delete modal text

* added EE import export code, modal updated text

* added common migration code for CE and EE

* fixes
- enable run button for released version
- disable change datasource for queries

* changed released version popup design to new EE design

* add: hide delete icons for released version
2023-07-11 10:10:03 +05:30
arpitnath
828cebee9a Merge branch 'platform/v1.1' of github.com:ToolJet/ToolJet into platform/v1.1 2023-07-10 23:45:15 +05:30
arpitnath
39106fb618 Merge branch 'main' into platform/v1.1 2023-07-10 23:44:59 +05:30
arpitnath
77e768d043 Merge branch 'platform/v1.1' into fix/iframe-embed-ce 2023-07-10 19:41:49 +05:30
Kavin Venkatachalam
e604fdd2b6
[Hotfix]: Fixed bug on deleting events in query manager (#6963)
* Fixed bug on deleting events in query manager

* Version bump
2023-07-07 23:43:46 +05:30
Johnson Cherian
721c5009ac
fix: update componentid inside widget details (#6926) 2023-07-05 18:23:02 +05:30
Johnson Cherian
8133c02791
fix: invoke on-page-load events after query details loaded (#6924) 2023-07-05 16:12:28 +05:30
Kiran Ashok
601262c1fe
fix :: for placeholder in custom json in form (#6916) 2023-07-05 14:09:21 +05:30
Kiran Ashok
88a677ad90
fix :: for multiple bounded box in canvas not showing annotations (#6914) 2023-07-05 14:09:12 +05:30
Johnson Cherian
92a6ead284
fix: appending base URL query params on redirect (#6908) 2023-07-05 14:08:51 +05:30
Muhsin Shah C P
43225c6385
fixed datasource save button loading issue (#6776) 2023-07-05 12:24:08 +05:30
Arpit
10668546d9
Improvement - adds ability to resolve workspace variables in GDS connection forms (#6824)
* adds ability to resolveworkspace variables in GDS connection forms

* clean up

* resolves workpace variables in GDS connection form UI (client-side)

* fixes: encrypted source options resolver helper

* add workspace vars support for textarea components used in gds

* updates warning banner

* update textarea with the new UI

* Revert "Merge branch 'develop' into improvements/add-support-workspace-vars-datasource-forms"

This reverts commit f3b42005aa, reversing
changes made to 68334ca281.

* Revert "Revert "Merge branch 'develop' into improvements/add-support-workspace-vars-datasource-forms""

This reverts commit 9b19e5b530.

* fixes crash when trting to resolve variables

* remove comments
2023-07-04 15:32:45 +05:30
arpitnath
9b38832439 fixes linting issues 2023-07-04 03:44:57 +05:30
SatVeer Singh
236b7987b4
fix: Calendar popover in dark mode (#6635) 2023-07-03 17:23:22 +05:30
Sebabrata Kundu
ba6c1d804b
fix(front-end): open layout accordion settings by default for custom comp widget (#6808) 2023-07-03 17:22:43 +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
Kavin Venkatachalam
d8726c5961
Merge pull request #6896 from ToolJet/appbuilder-1.1
Merge appbuilder 1.1 changes to develop
2023-07-03 17:20:57 +05:30
Kiran Ashok
286de4f292
Feature :: Form widget with JSON input (#6787)
* json form init

* adding conditional render for dynamic props

* adding conditional render and check input is valid array for not throwing error

* updating init schema

* temp commit :: advanced data exposing

* theme udpate

* schema update

* temp commit :: tested text input and dropdown widget

* showAllOption default value in multiselect component is not added in  component definition

* feat :: All form widgets added

* added form widget schema as a conditional render

* feat :: handle submit button

* fix ::validation and submit button

* fix :: filepicker ui break

* cleanup , check for ui break

* fix :: default items

* fix typo

* seperating logic to util file , fix  issue in exposed variable key

* revert unwanted change

* ux improvements in schema

* fix :: backward compatibility  and reset/submit button

* review changes

* review changes

* fix :: circular dependency removal

* typo

* type fixes

* fix ::  naming conventions for schema types

* fix key

* updating schema

* fix :: some widgets having label key , removing this as label is added through json

* fix :: make labels hidden if present in widgets

* fix :: labels for widgets which have inbuilt ones

* logs

* fix :: for keys not gettting updated on type change

* fix :: breaking of apps when giving non boolean values

* fix :: making a common function for checking valid boolean types
2023-07-03 16:19:33 +05:30
Kiran Ashok
43150c83ea
fix :: background color for outer margin of canvas (#6856) 2023-07-03 13:16:19 +05:30
Kiran Ashok
ba631106a4
Default value for annotation in bounded box widget (#6608)
* init json default data bounding box

* fix :: delete issue

* show json only on advanced toggle

* chnage json as default value

* updating type

* fix :: backward compatibility break

* fix :: initial annotation exposing

* removing annotation if image is not there

* removing unwanted changes

* allowing empty values for default value

* fixing overflow of default bounded box

* fix :: update to make overflow impoissible

* review :: changes

* update logic for positioning

* cleanup

* fix :: initial load bug

* converting px to %
2023-07-03 13:13:05 +05:30
Manish Kushare
9051aa6328
Avoiding event propagation for cell consisting input element in table to avoid unintentional row selection while editing cell values (#6852)
* avoid event propogation in the cell with input element in table

* code enhancement

* refactored the code
2023-07-03 13:10:16 +05:30
Manish Kushare
b5e3a82804
exposed the selected cell value in the inspector (#6452) 2023-07-03 13:09:14 +05:30
Kiran Ashok
2320a5a4df
Feature :: Support decimal places in number input widget (#6531)
* added loading state and decimal points to numbe input widget

* fix :: placeholder

* int to float

* feat :: make number input with decimal points

* fix :: type issues

* addming min and max value

* fix type of number input

* bugfix :: remove string conversion
2023-07-03 13:08:57 +05:30
Kiran Ashok
2b2bb66641
Feature :: Exposing button text in button widget (#6530)
* exposing button text in button widget

* change casing of exposed variable
2023-07-03 13:08:23 +05:30
Manish Kushare
4ed8e75009
[ hotfix ] Bug fixed, not able to edit column type text when action button is present in the row in the table component (#6820)
* not able to edit text column when action button is present in the row

* version bump
2023-06-30 16:05:12 +05:30
Kiran Ashok
1737cafa83
Added bar type option to chart widget (#6286)
* feat :: added bar type option to chart widget

* imp :: resuing variables

* typo
2023-06-30 09:07:46 +05:30
arpitnath
c1f32b1a1f fix/iframe-embed: 634e618..441b894 2023-06-30 00:10:39 +05:30
Nakul Nagargade
0a82e50afb
Move Editor's version manager regarding states to zustand store (#6593)
* Move version manager editor states to zustand

* Update appDataStore to appVersionsManagerStore

* Move released version popup state to global

* Move isVersionReleased to global store

* Rename appVersionsManagerStore to appVersionStore and destructure zustand data inside components

* Remove closeCreateVersionModalPrompt and showCreateVersionModalPrompt

* Refactor isVersionReleased

* Resolve code comments

* update action on clicking release version btn

* Resolve code comments

* Resolve code comments

* Resolve code comments

* Fix isVersionReleased not getting updated on editor mount

* Fix released version error message not shaking on editng released version

* Resolve code comments

* Fix preview in query giving internal server error
2023-06-29 15:30:10 +05:30
Kiran Ashok
4267027465
Bugfix :: Box shadow is getting applied to the surrounding box (#6802)
* feat :: temp commit added box shadow for freq used components

* fix :: box shadow for all components

* cleanup

* review :: changes , sending boz shadow with styles

* fix :: apply box shadow to the item instead of container

* fix :: daterange picker shadows
2023-06-29 15:14:05 +05:30
Johnson Cherian
8774e7c1ba
feat: conditional execution of even handler functions (#6391) 2023-06-29 15:11:14 +05:30
Manish Kushare
665159a241
Codehinter portal is not getting closed after clicking inside it for go to app action (#6705)
* bug fixed : codehinter portal getting closed after clicking on it for go to app control action

* fixed the codehinter portal height for go-to-app

* refactor go-to-app component
2023-06-29 15:10:03 +05:30
Manish Kushare
05516a1d7d
showing page 1 of 1 when no data is available in the table for client side pagination (#6718) 2023-06-29 15:09:30 +05:30
Manish Kushare
6e4ebeb679
bug fixed : changeSet getting updated without changing the value in the table (#6729)
* bug fixed : changeSet getting updated without changing the value in text column type

* removed unwanted condition check
2023-06-29 15:08:45 +05:30
Manish Kushare
f7558980e4
allowing duplicate titles in the exported data (#6618) 2023-06-29 15:08:05 +05:30
Johnson Cherian
613f9124b0
fix: added duplicate check for page name and handle (#6559)
* fix: added duplicate check for page name and handle

* fix: updated error message for erro thrown when user tries to create page with already used name
2023-06-29 15:07:27 +05:30