Commit graph

38 commits

Author SHA1 Message Date
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
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
Gandharv
300b054204
Add smooth scroll for suggestion box (#767)
* add smooth scroll for suggestion box

* add empty check for object
2021-09-17 19:32:50 +05:30
Gandharv
1587321f4a
Feature: show errors in codehinter previews (#765)
* add error to suggestion box in codehinter

* rename variable to withError
2021-09-16 17:31:22 +05:30
Gandharv
5bb0594973
Enable suggestion box for codehinter (#737)
* enable suggestion box for codehinter

* add heading as type of the preview

* add preview only on focus

* remove box shadow

* add background to widget inspector documentation footer link

* doc footer updats

* add condition where boolean value was not getting printed

* use index as key
2021-09-15 21:10:59 +05:30
Gandharv
1bfc6602fc textfield: firefox scrollbar issue fix (#650)
* textfield: firefox scrollbar issue fix

* cross-button: in widget inspector the cross was misaligned

* replace overflow scroll with auto
2021-08-31 19:40:11 +05:30
Gandharv
365e9e3cb3
Redesigned Rest api query builder 🎉 (#612)
* feat: add rest api new design

* fix page break on create/save query

* remove console.log

* align the i/p fields

* rename files

* remove border from i/p

* remove hover styles

* fix: filter empty headers, url_params, body

* fix when editmode headers empty

* fix the options on preview getting null

* fix navlink color on dark mode

* add color for non active tab in dark mode
2021-08-30 16:55:27 +05:30
navaneeth
f3e08a2d0f Set scrollable height for codehinter 2021-08-21 10:12:04 +05:30
navaneeth
636bf0bc4b Codehinter enhancements 2021-08-21 09:39:04 +05:30
Navaneeth Pk
23df1b981f
UI fixes for query editor (#375) 2021-07-03 22:37:50 +05:30
Navaneeth Pk
150961b591
Feature/dark mode (#366)
* Dark mode part 1

* Dark mode part 2

* Dark mode part 3

* Dark mode part 4

* Dark mode part 5

* Dark mode part 6

* Dark mode part 7

* Dark mode part 7

* Dark mode part 8

* set light mode as default

* Dark mode part 9

* Dark mode part 10

* Dark mode part 11
2021-07-03 19:47:47 +05:30
Navaneeth Pk
cf2673d237
Feature: previews for CodeHinter fields (#334)
* Feature: previews for codehinter fields

* css fix
2021-06-26 22:53:00 +05:30
Navaneeth Pk
dcc91501c7
Fix for codehinter not suggesting new widgets (#330) 2021-06-26 13:51:52 +05:30
navaneeth
dd3545a6cf Feature: Option to enable codehinter suggestions withiut dyn vars 2021-06-03 11:48:55 +05:30
navaneeth
5e114a4bdb Optimized codehinter to reduce onChange events 2021-06-01 17:35:37 +05:30
navaneeth
72a90f97c6 Feature: Placeholders for codehinter fields 2021-05-13 23:25:39 +05:30
navaneeth
1f39b87f3d CodeHinter support for SQL queries 2021-05-09 09:55:17 +05:30
navaneeth
bc57117edb CodeHinter: Support for additional styling 2021-05-09 09:28:34 +05:30
navaneeth
6d06c8f989 Code suggestions should update without refresh 2021-05-09 08:50:26 +05:30
navaneeth
35a7cc3d60 Memoize codemirror hints 2021-05-03 21:34:54 +05:30
navaneeth
deee605424 Switch inspector fields to CodeHinter 2021-05-03 21:25:29 +05:30
navaneeth
2121dd1d1c Code hinter for transformations 2021-05-03 19:57:32 +05:30
navaneeth
16e5e9d78e Extending codehinter for restapi fields 2021-05-03 18:07:31 +05:30
navaneeth
16cf6244d6 Cleanup the layout of codehinter 2021-05-03 16:56:31 +05:30
navaneeth
33f6b8b215 Feature: Code hinting using codemirror 🎉 2021-05-03 13:40:23 +05:30