* Update size parameter placeholder for image generation
Updated the placeholder for the size parameter in the operations.json file to specify valid options based on the selected model (DALL-E 2 or DALL-E 3).
- Added size options for DALL-E 2: 256x256, 512x512, 1024x1024 (default: 1024x1024)
- Added size options for DALL-E 3: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
* Implement model-specific size validation for image generation
Added logic to enforce model-specific size validation for DALL-E 2 and DALL-E 3 in the query_operations.ts file.
- DALL-E 3 accepts sizes: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
- DALL-E 2 accepts sizes: 256x256, 512x512, 1024x1024 (default: 1024x1024)
- Introduced a utility function to validate and apply the appropriate size based on the selected model.
* Add model selection and update schema for OpenAI API operations
This commit will add optional model selection to both completion and chat operations, update the QueryOptions type to include the model field, and modify the operations.json schema to support model selection in the UI for various OpenAI models, including GPT-4 Turbo and GPT-3.5 Turbo. The commit also adjusts the code structure to handle these changes effectively.
* Refactor OpenAI SDK integration and add image generation operation
Refactored OpenAI SDK integration to use correct imports for SDK version 4.56.0.
Replaced deprecated method listModels() with models.list() to retrieve model information.
Fixed redundant apiKey initialization in getConnection method.
Added support for the ImageGeneration operation in the run method to handle image generation using OpenAI's DALL-E.
Improved connection test logic to check for model availability instead of relying on the response status.
* Refactor image generation logic with improved error handling and response format
Updated the image generation logic to include a proper status, message, and description in the response format.
Added validation for the number of images and size using utility functions getNumberOfImages and getSizeEnum.
Commented out getNumberOfImages and num_images parameter in the image generation function as they are not currently in use but reserved for future implementation.
Removed redundant commented code for better readability and maintainability.
Ensured image URL is returned as part of the structured JSON response with a "success" or "failed" status.
Improved error handling by providing detailed error messages and descriptions when the query fails.
* Add UI components for model selection and image generation options
Added dropdown UI component for selecting OpenAI models, including DALL-E 3 and DALL-E 2 options.
Included a component for setting the image size (size) during image generation.
Provided descriptions and placeholders for the size input, with default values for image generation parameters.
Disabled model selection by default with dall-e-3 pre-selected for initial use.
A component for num_images can be set up if required, and the field will be added in future updates.
* Update QueryOptions type to include optional image generation parameters
Added optional num_images parameter to QueryOptions for specifying the number of images to be generated, although currently commented out for future use.
Included size parameter to QueryOptions to define the size of the generated image.
Ensured backward compatibility by making these parameters optional in the QueryOptions interface.
* Update OpenAI SDK and clean up dependencies
Updated the OpenAI SDK version from ^3.2.1 to ^4.56.0 in dependencies.
Fixed duplicate entries and cleaned up redundant dependency declarations.
Ensured consistency in devDependencies by removing duplicate typescript and @vercel/ncc entries.
* Added Edit column functionality in ToolJet Database Table
* feat: null constraint support for create_table add_column edit_column
* fix: default data-type validation has been added
* completed column header revamp
* feat: added not null toggle in create new table drawer
* feat: on toggle not null constraint value will be persisted
* fix: loads label for not null toggle dynamically
* feat: add new column to tjdb null constraint support
* new datatype dropdown design implemented
* added new icon for delete column
* added delete icon for column
* added delete icon for column
* fix: when table name is empty create button will be disabled
* fix: datatype dropdown height fix
* fix: datatype drop down issue fix
* fix: datatype dropdown alignment fix
* fix: delete icon changed to new theme
* fix: delete icon changed to new one
* fix: create new column column name and datatype mandatory validation added
* fixed styling issues
* Added 2 space indentation for css
* inline css moved to css files as well as added 2 space indentation
* fix: createTable addColumn editColumn api payload structure change to incorporate constraint changes
* fix: error handling added for editColumn api
* added 2 space indentation
* fix: create table API payload structure changes
* added 2 space indentation and applied styles for dark mode as well
* disabled the existing column's dataType
* fix: create new column payload updated
* renamed columnIndex to columnSelection and fixed the plus column creator button position issue
* renamed columnIndex to columnSelection and added text visiblity for dropdown in dark and light mode
* moved the react-select's new styles to constants.js file as function
* react select's css moved to constants.js file
* fix: review comments has been fixed
* added edit column warning UI
* completed edit column new flow
* remove Please wait for ToolJet to update..this line from edit column warning message
* increased height for add column + button
* fix: create table will not accept empty values for mandatory fields like tablename column_name datatype
* fix: custom error message for tjdb add row operation
* stylefix: table footer page info section realignment changes
* fix: moved addNewColumn btn to dropdown on clicking table in sidebar
* feat: bulk update and add row option is moved to drop down
* add ability to collapse sidebar
* add tooltip
* fiexed the tooltip issue in collapsible sidebar
* fix background on blank slate
* fix: layout changes for tjdb table header section
* stylefix: tjdb table menu bar style fixes
* stylefix: header btn gap has been reduced
* fix: edit row data populated into the form
* adjusted height
* added small alignment changes
* pagination-rewamp
* adjusted footer style when we collapse the sidebar
* fixed the pagination issue when we add new row
* feat : sticky column header
* feat: expandable row with menu bar flaky issue
* fix: on row hover expand icon will now be visible
* stylefix: added bg color for row hover and cell hover
* stylefix: adjusted expand icon sise
* feature : cell navigation
* fix: flaky issue on tjdb menu bar while expanding row has been fixed
* added naviagation function for table cells
* fix: edit row drawer variable name fixes
* added cell edit option in table cell
* feat: tjdb cell edit dropdown menu completed
* fix merge
* updates node version
* fix: sticky column to left
* feature : cell navigation
* add support for null values on tjdb bulk upload
* stylefix: table background for dark mode fixed
* feature : cell edit implementation
* feat: progress bar for cell edit
* feature : cell edit implementation on boolean datatye
* bug fixes
* toggle implementation
* fix: removed duplicate not null constraint toggle in edit column form
* fix: when last filter is deleter in tjdb dashboard filter drop down will be closed
* feat : cell edit implementation completed
* removed console logs
* fix: edit column onclick not null toggle crash issue fixed
* solved bugs
* added border 2px for selected cells
* added cellvalue in cell input if it have not null constraint
* stylefix: css value for cell hover has been updated
* fix: table header sticky
* stylefix: row hover background color for dark mode
* fix: autocomplete is off for cell edit input field
* fix: null tag was shown when we focus on the input field as well
* fix: in cell edit menu either null or default can be choosen
* fix: cell edit menu null toggle value sync and edit menu not opening issue
* stylefix: row hover bg color was broken
* fix: cell navigation flaky issue
* stylefix: progress bar attached to the bottom of the cell
* fix: tooljetdb collapsible side bar style changes has been fixed
* fix: added infor for cell edit menu navigation
* fix: cell navigation and cell edit menu boolean view arrow navigation
* fix: flow issues in cell navigation has been fixed
* fix: backspace key will remove null values and open cell edit mode
* fix: updated icon for openai datasource
* fix: when we update or delete record pagesize has been modified but it should remain same
* feat: typing on selected field inserts value and enable edit menu and removes null value if exist
* stylefix: table checkbox styling updated
* stylefix: tooljetdb table checkbox indeterminate mode style fixes
* stylefix: row selection background color
* fix: table first column can be selected but not edited
* fix: tooljetDB delete row btn text should be in plural when multiple rows are selected
* fix: when column header menu is opened and closed cell click was not working it is fixed now
* fix null value on id column on row insert
* fix: cell text overlfow will truncate
* fix: in tooljetdb while creating new row filters and sorts which were selected will be made default
* fix: tooljetdb table cell tooltip design change
* fix: on column select and hover entire column was flaky issue fixed
* fix: on edit cell and delete row filter-sort-page-pagesize will be retained
* fix: text info for multiple records selected was wrong
* fix: In tooljetdb tooltip on cell hover wasnt shown for cells pertaining to selected column
* fix: tooljetdb on create row operation scroll will be moved to top
* stylefix: in dark mode on hovering selected row cell background color was wrong
---------
Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>