mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-04 22:08:29 +00:00
8 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
609360e775
|
feat : Foreign key feature in ToolJet database (#9544)
* feat: added support for creating primarykey and unique constraint while creating new table * feat : primary key with unique constraint * feat : able to create primary key on table creation * minor changes for backend * checked and added constraints for primary key * Added tooltips for primary key columns and added a fix for autofocus for last focussable element in focustrap * Added a new component named TableSchema so that we can use this same component in both create table and edit table * fix: fetching tjdb table metadata query has been updated to support unique constraint * feat : primary key in edit table * mariadb library update * atleast one primarky should be mandatory for each field * fix: list tjdb table data api due to id column sort by default * fix: tjdb dashboard table column datatype icon and name was missing when primary key feature was added and table header content component refactored * fix: tjdb create row operation made compatible with Primary key * fix: add column operation will now suport serail and unique constraint * fix: Edit column operation support unique constraints * fix: added primary key icon is tjdb dashboard table * feat : foreign key drawer ui * fix: dynamic tooltip text in table for serial datatype and primarykey * fix: cell edit menu should not open for primary key column and serial datatype column * fix: cell edit menu save flow and boolean toggle update flow will now execute based on primary key * minor ui change in nested drawer for foreign key relation * fix: edit row operation now supports and works based on primary key for updates * fix: add row operation refetch query works based on primary key * Added foreign key active state icon * feat: API to edit table schema * Added fixes for primary constraints * fix: edit table allows to add new columns and delete old columns as well * fixes related to primary key * fix: primary key mandatory check on edit table API * fix: moved table rename inside db transaction * fix: on editing a primary key column it will not remove primary key constraint * changes and fixes in primary key integration * edit table api integration * fix: primary key mandatory validation was wrongly placed in edit table api in tooljetdb * fix: edit tooljetdb table dto validation modified * edit table api integration * edit table success toast update message * Added tooltip for serial datatype defaultvalue and design change of Add more columns button * added scrollbar to tableschema and added a hover effect to column which has foreign key relation * feat: Foreign key creation support in create table Inprogress * fix: code review comments for backend fix inprogress * fix: in edit table operation in tooljetdb for serial datatype default values can't be edited * fix: edit table payload naming convention changed * fix : review comments and ui fixes * fix : undefined check error in renameTable function * fix: unique constraint will be false by default on version less than 2.30.0 * added primary key icon in edit column header * fix: unable to change single primary key to composite primary key when a column has duplicate values * added regex check for serial datatype's default value * feat : in edit table the primary columns should be group together and in top of the schema * fix: custom exception filter for tooljetdb and optimized cell edit save flow by reducing a refetch api call * fix: primarykey column default value of character varying datatype is in wrong format * fix: tjdb exception filter is added at controller level and it can group multiple exceptions altogther * fix: on a exception postgrest error message has been sent as response * fix: edit-table api payload details were mis-matching * fix: on editing serial datatype column default value is not necessary * fix: in create and edit table drawer datatype dropdown selection was wrong in serial datatype scenario * fix: multiple exceptions can be handled together * removed the code comments * fix : primary key columns should in top of the order in edit table and edit row * revert back the changes of primary key column group together in edit table * Add null value for default value when we change the datatype in edit table flow * fix: feature to create foreign key while creating a new table * integrated source table details and source column details * fix : serial data type cause error in default value when there is more than one serial data type * feat: tooljet database table metadata api now includes foreign key details * feat : foreign key designs for create and edit table * fix : view table api error issue * feat : foreign key designs for create and edit column * feat: added support for creating foreign key in add column api * feat: api to create edit and delete foreign key has been added to tooljet database * feat : foreign key designs in create and edit row as well as cell edit and in dashboard * fix : cell click issue in cell edit for boolean type * feat: added support to select specific columns in the postgrest query * feat: added foreign key referenced table id in metadata details * fix: naming convention changed for foriegn key apis * fix: updated DTO to check on-delete and on-update operation of foreign key details * completed api integration and remaining ui popups for delete and change in foreign key and customized tooltip * added routing logic for navigate to reference table from source table * implemented infinite scroll logic for cell edit foreign key column values * moved scroll logic to selectBox component * fix: removed the scroll for column schema section in create and edit table drawer * fix : major bugs * fix: added support to delete FK in Edit Column API * feat: Join FK columns auto populate on query manager * feat : allowing to create multiple foreign keys in single table * feat: auto suggestion on joins * fix: foreign key column must be rearranged to top of the list * fix : major bugs * fix : bugs list * fix: foreignkey details on tjdb context were not updated properly * fix : bugs in calling selectQuery api * completed missed routing logic in cell edit dropdown * fix: cell edit menu on clicking search closes * fix : bugs list * fix: cellEdit drop down menu provides wrong values for FK * fix: fk values is made to default onClosing CellEditMenu * fix: on table cell click foreign key details are made to default state * fix : bugs in edit row and in all dropdown which is showing reference table's column values * fix: infinite scroll for listing foreign key drop down * fix: infinite scroll in FK data dropdown goes unresponsive * fix : width of tooltip in showing foreign key relation and throwing error when opening a default value dropdown in create table and create column * fix : the search api needs to hit only for the referenced column names values in dropdown * fix: basic lint fixes * fix : default value preselect value is passing as empty in create row and in create table for the edit part added delete functionality and fixed editing foreign keys in create table and fix in edit table api fixed bugs related to forein key edit * fix : create row sort logic and fix for edit foreign key relation * fix : merge conflict stylings collapsed * feat: implemented infinite scrolling for listing down FK data in cell edit menu drop in tooljetdatabase * fix: in edit column while we create a new foreign key it was not reflected on edit ccolumn view * fix: join query when auto populated with columns table name was missing * fix: Not able to edit a table when a column has been referenced for foreign key-the issue has been fixed * fix: serial data-type column will have placeholder as auto-generated * fix : bugs from design review * fix : icon mismatch in source and target column * Feature: Import Export revison for TJDB relations (#9597) * make create table infer serial data type * make import/export backward compatible * fix column type check * fix: cell edit drop down search issue and drop down misses the values on second load and fixed the edit primary key column issue * fix : disabling serial type in source column and removing strict rule of unique constraint for serial type and fix of bugs which is related to foreign keys * fix : validation issue for save changes button in foreign key drawer * disabled creation of foreign key from create and edit column and enabled support for bigint with integer in foreign key relation * fix : edit column foreign key relation is becomes false when we close the foreign key drawer * fix: composite primary key columns cannot be mapped to foreign key * fix : create column and edit column : previous column values are populated in foreign key drawer and fixes of bugs which is related to foreign key relation in create and edit column * fix : Unable to see the column menu icon when column name has 32 characters * fix : edit column delete is not working when we chnage the foreign key toggle to false * fix bulk upload for case sensitive columns * fix : while selecting different table in target table, the target column should be empty * Fix : Bugs from Foreign key feature (#9552) * Added tooltip when add relation button is disabled * Set the values to no actions by default for action dropdowns * Added tootip for add relation button when disabled * Updated the UI of dropdowns in the actions section of foreign key drawer * Disable the add relation button when less than 2 table are present in edit mode and less than 1 in create mode * Updated the logic to render option description in actions dropdown and highlight table names * Adding conditional chaining to avoid app getting crashed * Avoding showing toast message for crating foreign key in create column and table mode * Updated tooltip description for add relation button Added full stops to descriptions of options in actions dropdown * Show tooltip on read docs regarding fk for column and table operations * Updated description of foreign key relation text in create/edit table drawer * Updated description of foreign key relation text in create/edit column drawer * Type error fixed * Show unuqie constaint info UI update * Added copyrights for foreign keys * fix: When we create a FK relation, and then if we change a source column name, when we open default drop down throws error in create column * Feature: Add setup to standardise TJDB error handling (#9629) * add wip error handling setup * make errors thrown as TooljetDatabaseError * fix types * handle query manager errors * make error logging better * add comment * remove redundant logger * fix: add column api dto validation updated * return records to throw errors from postgrest * fix type * Chore: Primary key backward compatibility migration (#9636) * recreate pk constraints for existing tables for backward compatibility * fix comment * handle unique name error on table create * Fix : Bug fixes from foreign key feature (#9637) * Removed create table and column info to add foreign key message * Added tooltip when at least one column is not filled Enable the add relation buttton when at least one column is present and filled otherwise disabled * fix : placeholder text in foreign key drawer and error handleing text as well --------- Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com> Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com> |
||
|
|
53567af03e
|
ToolJet database empty and loading state design (#8823)
* ToolJet database empty state design draft * Added loading state for ToolJet database * Fixed stylings * completed loading and empty state and as well as added proper text for empty state and for filtered results empty state as well * Fixed the create new table drawer transition issue * docker update |
||
|
|
322c15b154
|
fix : Close icon issue in ToolJet database search bar (#8875)
* Fixed close icon issue in ToolJet database * docker update * fixed missed edgecases |
||
|
|
c6fe0aa45e
|
Feature: Import export tjdb schema (#5752)
* add ability to import export app and tjdb schema * init * feat ::global settings popover new ui * feat :: ui for version export modal * fix :: import export modal * cleanup * ui updates * header footer style fixes * closing settings modal while showing export modal * style fix header * feat :: added button to download table schema * fix :: styling for fx * add ability to import and export apps with tjdb schema * handle duplicate table in workspace * fix table rename * fix selected table on edit and delete * fix invalid toast on table delete * fix column default value * handle exports to strip '::' and quotes * make import/export backward compatible * handle page redirects based on resource import * handle import without tjdb schema * fix column delete and addition * make data migrations to be run per organizations * wip * update migration * fix credentials to be included * fix specific version export * make use of apps ability for import export resource * fix import navigation * fix lint * fix failing tests * fix lint * enable tjdb for public apps * update export error message on tjdb table blank * fix table not selected after creation * fix :: styling for imp exp modal , and functionality bug fixes after dev merge * fixes blank slate and columns selection * fix table delete * fix invalid toast on table edit * fix column information missing tjdb query manager * make ds imports to either reuse global or create * export only unique table ids * create default datasources if not present in export data * reuse existing table on imports * add timestamp to table name if name already exists * add ability to clone with tjdb * make imports work with marketplace plugin * skip dataqueries for which plugins are not installed * fix filter input width * fix failing spec * fix marketplace plugin installation in diff workspaces * fix check for plugin installed in workspace * fix export when table name is empty --------- Co-authored-by: stepinfwd <stepinfwd@gmail.com> |
||
|
|
65259afeb2
|
Feature Homepage and settings redesign (#5763)
* adding colors
* feat :: add button
* feat :: added typography
* feat: init storybook
* removes browserlist
* feat :: adding button styles and button component
* feat :: added sass addon
* stories update
* feat :: replacing with radix colors
* danger variants
* updates buttin story
* fix :: removing default items
* cleanup
* fix icons update
* feat :: folder list component
* fix :: naming
* icon and split button :: init
* intermediate save :: app card component
* renaming
* updates
* update for module imports
* updates icon
* update :: homepage design updates
* design changes dashboard
* updates :: apps section
* workspace stting new design upate
* updates dasboard design
* style :: fixes
* feat :: added context for sidebar nav breadcrumb
* added all solid icons
* intermediate update
* change: conditions for fetching users
* sorybook updates
* design updates :: workspace settings page
* manage users page
* lint fixes
* fix :: styling
* stle fixes :: workspace settings
* homepage redesign
* fix :: all drawer colors and position ,teplate page revamp , database page header fixes
* imported all bulk icons
* svg to jsx : bulk icons
* minor :: cleanup
* fix :: manage users drawer
* fix :: searchboxes , userspage fixes
* fix :: all inputs and minor ui fixes
* database page ui fixes
* fix :: database and folder search functionality and iconlist in homecard
* fixed some db functionality and edge cases for longer texts
* fix :: user addition manage user page
* self review cleanup and change in bulk icon fill state
* fix :: homepage seacbar
* merging develop and resolving conflicts
* remove unwanted stories
* reverting merge with develop
* Revert "reverting merge with develop"
This reverts commit
|
||
|
|
0271dbf17d
|
Add data-cy for database functionality (#5455)
* Added data-cy for table header and subheader * added data-cy for table operations * added data-cy for table and text * Added data-cy for delete icon and fields * Updated and removed duplicate data-cy * deleted unused files * Updated data-cy for filter section |
||
|
|
2f025d11d3
|
Update homepage design (#5121)
* move all apps link under folders * home page changes * css changes * fix * fix comments icon * breadcrumb fix * change logo * css fixes * icon * fix: comment notifications page id param addition * loader heights change * fix spacing * update scroll * delete unused file * theme dark fix * fix cursor * css changes * exp: removes skeleton * exp: update apploader * hide selector if single workspace * keep search icon while searching pages * update apploader * use ui/select * update plugin icons * modal css changes * css changes * show delete, edit on hover only - querymanager * update sidebaritem to use svg directly instead of img tag * use svg for appicon |
||
|
|
602b1b4ad3
|
Feature: Tooljet Database (#4951)
* wip
* internal db per workspace
* fix async query
* feat: add storage layer route
* feat: add drawer component
* feat: add react-table to load data
* feat: add columns form
* feat: add create column form, create row form
* feat: add postgrest js
* add tooljet db controller to proxy requests to postgrest
* util: add postgrest filter builder helper utility
* feat: add filter popover
* use helper utility for building query
* add sortable filters
* add box shadow for filter popup
* use overlay trigger
* use react select
* add new column addition
* add dropdown for table header, table list
* Move filter.jsx
* feat: add sort popover
* feat: add postgrest js .order fn
* setup tooljetdb with restricted grants for users
* make db schemas added loaded dynamically on postgrest server
* fix query
* sign jwt token to auth user at postgrest
* update db schema user with workspace
* chore: add table listing
* update data and columns from api
* feat: add context api for sharing data
* add ability to create table, view tables and add columns
* use columns for sort from context api
* fix ormconfig
* feat: add table listing integration
* feat: add create table integration
* fix for rds deployment
* add internal table translation instead of schema
* remove tooljetdb as a datasource
* wrap placeholder on proxy query
* add active workspace guard
* scope tooljetdb by workspace
* update active workspace guard
* seperate proxy related concerns to different service
* make use of org id param
* rename storage layer to tooljet databse
* update specs
* feat: Update list when new table added
* feat: add create column
* chore: add orgId to url + misc changes
* chore: move popover to separate file
* remove unused var
* rename files
* feat: add multiple columns
* feat: add new row
* removes postgrest-js from pkg lock
* feat: add row data
* feat: add sorting
* feat: allow row deletion
* feat: add search
* feat: add filtering
* feat: add edit mode
* feat: add columns while edit table
* add view table action
* update setup for column constraint
* fix query
* integrate view_table, primary key field
* render toogle for boolean data type
* update view table query for primary key
* fetch metadata refactor
* add capability to set default values
* feat: allow deletion of record based on primary key
* feat: add default value while creating column
* send query from sort & filter component
* css changes
* allow empty data
* add requested changes
* add err message
* add common fn
* allow sort + filter
* remove unwanted defaults key
* css changes
* add more operators
* dark mode fixes
* add drawer footer
* add loader for list tables
* add dashboard design changes
* design changes
* add capability to drop table and delete column
* add breadcrumbs
* design changes
* add profile
* refactor tooljetdb controller
* update routes
* add empty page changes
* delete column fix
* fix delete column
* design changes
* fetch tables post delete
* homepage changes
* hide ellipsis on hover
* add org settings page
* add edit + create org
* add notification center
* fix: group permissions switch issue
* add logo
* remove anchor tag
* fix merge conflicts
* css changes
* add err boundary
* setup query editor
* css changes
* fix: merge conflicts
* add menuPortal prop to filterform and sort form
* fix seed
* fix: build
* design changes
* design changes + refactor code
* fix imports
* fix: drawer issue on delete table
* add search box changes
* fix: tablename max-length 255
* fix: set newly created table as selected item
* remove edit column option
* added badges to enterprise only features
* disable edit column
* table styles
* fix: popover position, placeholder default
* fix: display boolean values in table
* fix: tooljet database default type values
* css changes
* add query manager for tooljet db with create and list row
* dark mode fixes
* remove Header component
* add ability to delete tooljetdb rows from query manager
* add ability to update tooljetdb rows
* dark mode fixes
* css changes
* display actions icon on hover
* folder onclick change
* add empty page styles
* fix proxy requests
* feat: randomize icon creation
* add max items per page prop for pagination
* removes unwanted position attr
* add table name validation + disable submit btn while api fetch
* [Bugfix] internal storage toast | trigger toasts for running preview db queries (#5019)
* resolves: no toasts are fired when preview query is run for db queries
* fire success toast for created and no content status text for query success
* remove invalid migration
* skip migration if tooljet db already created
* fix: app clone icon param
* fix: show confirmation box if filter options are empty in query (#5021)
* for now: show native confirmation box of the brower to confirm the delete all query
* typo
* Revert "typo"
This reverts commit
|