Commit graph

77 commits

Author SHA1 Message Date
Sherfin Shamsudeen
61773e4b04
Return promise returned by onComponentOptionChanged for subcontainer as well (#2378) 2022-02-28 17:28:56 +05:30
Arpit
2d3a028789
Resolves lint warnings/errors: frontend (#2311) 2022-02-21 23:34:02 +05:30
Navaneeth Pk
b59817d625
Updated dnd to follow pointer position (#2144)
* Updated dnd to follow pointer position

* Remove console.log

* Select component on resize

* Minor fixes
2022-02-06 18:45:38 +05:30
Gandharv
a649d1c88b
Add clone component functionality (#1970)
* feat: add clone component functionality

* change to cmd + d

* use unique name for copied item

* fix container clone issues

* move naming logic to parent

* deprecate old method

* remove inspector after clone

* generate uuid from pkg

* use copy of appdefinition

* remove redundant if stmt

* Fixes for tabs

Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-02-03 14:45:40 +05:30
Navaneeth Pk
95c2883498
Prevents multiple widget handles from being shown (#2092) 2022-02-03 12:37:34 +05:30
Muhsin Shah C P
7bb438d442
Fixes dark mode for widgets in sub-container (#2103) 2022-02-03 08:25:15 +05:30
Kiran Ashok
2626bd6ec3
Fixes modal crashes on dropping widget inside it (#2069)
* fixing undefined error

* fixing undefined error
2022-02-02 14:36:12 +05:30
Muhsin Shah C P
ac00f530f2
Adds a custom remove component function for sub-container (#2020) 2022-01-31 16:48:58 +05:30
Navaneeth Pk
f0c8cb344f
Fixes widget crash when added to subcontainers (#1987) 2022-01-28 13:22:55 +05:30
Navaneeth Pk
4d6906503b
[WIP] Widget: List view (#1575)
* list view initial commit

* More stuffs

* More stuffs

* Minor changes

* merge fixes

* Minor changes

* Fix misspelt variable name that caused data to not show up

* Merge conflicts

* Fix lint for ListView component

* Update ListView to new API

* Fixes

* Fixes

* Fix radio

* Fix

* Lint fixes

* Set icon for List View widget

* Fix list view within tabs

* Fix

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-01-14 13:57:31 +05:30
Akshay
5b30aa2007
Chore: Setup pipeline (#1539)
* github actions for PR and push to develop branch

* test workflow

* move to workflows folder

* add setup node action

* modify build

* specify npm version

* config unit test

* specify host postgres

* specify container to run on

* add postgresql dependency

* add specify ws adapter for test

* add e2e test

* fix linting

* only log errors on tests

* update eslint config

* fix linting

* run e2e test in silent mode

* fix library app spec

* dont send email on test env

* fix org scope

* mock env vars

* remove reset modules

* force colors

* explicitly close db connection

* add eslint rule for floating promises

* update workflow

* fix floating promise

* fix lint

* update workflow

* run on all push and pulls

* update lint check files

* simplify workflow

* increase js heap size on env

* separate lint and build

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-12-10 08:43:05 +05:30
Navaneeth Pk
ae02ec49a9
Feature/calendar popover (#1442)
* Calendar popover

* Cleanup

* Fix scroll

* Resize issue fix

* Make calendar event popover optional

* Fix lint issues on CalendarPopOver.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-23 13:29:22 +05:30
Navaneeth Pk
354ccd7786
Tabs widget (#1438)
* Feature: Tab widget

* Fix container in container crash

* Container inside tabs

* props

* Fix

* Add icon

* Default tab property

* Fix lint issues with Tabs.jsx

* Introduce tab id to select between tabs

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-22 21:41:26 +05:30
Navaneeth Pk
20cccd1df7
Responsive canvas (#1363)
* Better canvas

* Better canvas

* Better canvas

* Fix for resize

* Fix for drag

* Fix for drag

* Fix for drag

* Adjust width of components by # of grid lines

* Adjust components to comply with gridline based width

* Fix the width of rigth sidebar

* Fix for subcontainer resize issue

* Fix for dropped widget width (sc)

* Fix subcontainer drag width

* Fix grid for sub container

* Fix viewer

* Fix

* Fix

* Use RnD for dragging within canvas

* bounds for subcontainers

* fix for subcontainers

* Fix for mouseover issue

* Fix

* Fix widget widths

* Fixes chart

* Fixes qr scanner and divider

* Remove scaleValue

* Mmerge fix

* Mmerge fix

* Fix for ormconfig

* Fixes for comments

* Add comment where the user clicked

* Disable dragging on viewer

* Max width for canvas

* Fix for widget click events

* Fix for radio button

* Rebase widget width and left offset for responsive canvas

* Fix

* Fix the width of file picker

* Fix for calendar widget

* Disable zoom selector

* Fixes comment positions

* css fixes

* Fix

* Recompute width and offset of subcontainer widgets based on its parent's width

* Calculate container width separately for modal children while migrating to responsive

* Refactor migration to responsive canvas whereinwhich all mutations are done only after all required changes are computed

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-16 17:14:09 +05:30
Akshay
7023f72d1d
Feature: User access management 🔥 (#918)
* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* Feature: User access permission group usage (#883)

* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* revise migrations

* hide roles usage

* setup group permissions for apps and users

* fix defaultChecked

* fix update permission checkbox

* fix casl ability check to have params passed

* fix casl apps abilities to check with app specific permission

* add ability to delete groups

* conditionally render edit and delete options for all and admin users

* fix user role to group migration

* revise group management pages to disallow updating default group

* move manage users and groups to navbar dropdown

* show only addable apps and users on dropdowns

* rename header as profile settings

* scope addable apps and users by organization

* scope viewable apps on homepage

* hide manage groups link from non admins

* make permissions to be used with radio input

* add loading state for add apps/users buttons

* revise unit tests

* revise migrations

* fix e2e tests

* comment out dead code

* fix seeds script

* handle folder count

* captalize error toast

* hide manage users dropdown for non admins

* show fobidden error on blank homepage

* fix folder app count

* fix invalid state set

* make group name clickable for edit instead

* users with edit permission can deploy apps

* not show edit link on homepage if user dont have update permission

* remove unused entity from merge

* remove roles usage from manage org users page

* fix folder count and blank slate on homepage

* disable add buttons if there is no selections

* humanize default groups on view

* make app added onto groups have read permission by default

* not show app menu if user is not admin

* remove admin users from group user addition dropdown

* create default permissions for app cloned

* fix querying index page without page params

* fix admin scoped out from group add

* remove apps from header

* fix invitation url not shown

* scope admin deletion check by org

* scope public apps by organization

* add specs for group permissions e2e

* removed unused entity and add group permissions spec

* remove console logs

* remove unused permission

* scope public app count by org

* remove console log

* refactor manage group permission resources component

* update group permssion in org scope
2021-10-11 20:45:58 +05:30
Omeir Fawaz
1561884fad
Add link to documentation on empty canvas (#943) 2021-10-08 11:33:24 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
navaneeth
3eeffb6479 selectedComponent should be passed to subcontainers 2021-09-19 14:43:17 +05:30
Sherfin Shamsudeen
61d612ed64
Bugfix/component editing inside container (#641)
* Add support for editing and deleting components inside container

* Dont allow config handle click event to propagate

* Supply removeComponent method for Container component
2021-08-30 18:53:58 +05:30
navaneeth
d95cd5bb3c Feature: Mobile layput for container widget & it's children 2021-06-04 20:21:36 +05:30
navaneeth
6bf64aa39b Should be possible to resize in all directions 2021-05-26 10:49:05 +05:30
navaneeth
53b25850f3 Inspector should open only when menu handle is clicked 2021-05-17 00:19:05 +05:30
navaneeth
5c36d617f2 Show grid lines for sub-containers when a widget is over it 2021-05-15 20:39:37 +05:30
navaneeth
12902071cb Fix for canvas grid being hidden 2021-05-15 20:19:25 +05:30
navaneeth
882b55b32c Hide grid for other sub-containers while dragging 2021-05-11 23:17:39 +05:30
navaneeth
981cb915d6 Hide config handle if edit mode 2021-05-10 17:06:33 +05:30
navaneeth
1db2fb7083 Feature: Modals 🎉 2021-05-09 23:36:11 +05:30