Commit Graph

37 Commits

Author SHA1 Message Date
Geido
d352b74ff4 chore: Upgrade antd@4.10.3 (#22007) 2022-11-17 22:48:54 +02:00
EugeneTorap
d76f305343 chore: Use queryEditorId in SqlEditor child components (#21650) 2022-11-16 08:06:20 -05:00
JUST.in DO IT
5e1eecb3e7 chore(dataset): enable reload for schema and table (#22032) 2022-11-03 17:59:05 -07:00
Ville Brofeldt
dc7399540b chore: bubble up more db error messages (#21982) 2022-11-01 07:54:27 +02:00
Andrew
df7840c041 chore: Added translate functions (#21816) 2022-10-19 09:54:16 +08:00
JUST.in DO IT
e2b77a7543 fix(sqllab): avoid unexpected re-rendering on DatabaseSelector (#21316) 2022-09-23 14:28:42 -03:00
John Bodley
8c16806f57 fix: Address regression introduced in #21284 (#21470)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2022-09-16 14:18:03 -07:00
John Bodley
eac6fdcd29 chore(sqllab): Cleanup /tables/... endpoint (#21284) 2022-09-13 08:22:12 -07:00
Phillip Kelley-Dotson
8c2719b11c feat: add tableselector to dataset creation page (#21075)
Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
2022-09-07 13:42:47 -07:00
JUST.in DO IT
2d70ef670e feat(sqllab): Make LeftBar width resizable (#21300) 2022-09-01 21:26:20 -07:00
JUST.in DO IT
65a11b6f45 refactor: introduce react-query on api resource hook (#21240) 2022-09-01 13:39:34 -07:00
JUST.in DO IT
53de94c047 Revert "fix(sqllab): avoid unexpected re-rendering on DatabaseSelector (#21141)" (#21174) 2022-08-23 22:26:05 -07:00
JUST.in DO IT
f77b910e2c perf(sqllab): Rendering perf improvement using immutable state (#20877)
* perf(sqllab): Rendering perf improvement using immutable state

- keep queryEditors immutable during active state
- add unsavedQueryEditor to store all active changes
- refactor each component to subscribe the related unsaved editor state only

* revert ISaveableDatasource type cast

* missing trigger prop

* a default of an empty object and optional operator
2022-08-23 12:17:19 -03:00
JUST.in DO IT
a1389d3a9f fix(sqllab): avoid unexpected re-rendering on DatabaseSelector (#21141) 2022-08-22 15:43:42 +08:00
cccs-RyanK
fe91974163 chore: Remove unecessary code from async and sync select components (#20690)
* Created AsyncSelect Component
Changed files to reference AsyncSelect if needed

* modified import of AsyncSelect, removed async tests and prefixes from select tests

* fixed various import and lint warnings

* fixing lint errors

* fixed frontend test errors

* fixed alertreportmodel tests

* removed accidental import

* fixed lint errors

* updated async select

* removed code from select component

* fixed select test

* fixed async label value and select initial values

* cleaned up async test

* fixed lint errors

* minor fixes to sync select component

* removed unecessary variables and fixed linting

* fixed npm test errors

* fixed linting issues

* fixed showSearch and storybook

* fixed linting
2022-07-28 10:09:37 -03:00
Phillip Kelley-Dotson
9da7c1f7b8 feat: hack db connection modal ctabtns (#20017)
* add flow for dbconnmodal to datasetmodal

* fix bug

* second part

* fix dataset to sql lab

* fix lint

* more lint

* add key value

* fix type

* add new styling

* remove undefined from types
2022-07-05 08:56:12 -07:00
Phillip Kelley-Dotson
06ec88eb99 feat: add empty states to sqlab editor and select (#19598)
* feat: add empty states to sqlab editor and select

* add suggestions and test

* update type

* lint fix and add suggestions

* fix typo

* run lint

* remove unused code

* fix test

* remove redux for propagation and other suggestions

* add t

* lint

* fix text and remove code

* ts and fix t in p

* fix spelling

* remove unused prop

* add fn to prop change state

* remove unused code

* remove unused types

* update code and test

* fix lint

* fix ts

* update ts

* add type export and fix test

* Update superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* Update superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* Update superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* Update superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* remove handlerror and unused code

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2022-04-15 15:09:07 -07:00
Diego Medina
26a0f05759 fix(sql lab): table selector should display all the selected tables (#19257)
* fix: table Selector should clear once selected

* Multi select

* Add tests

* refactor

* PR comments
2022-04-13 08:42:12 -06:00
Diego Medina
3b427b2029 fix: auto-complete of tables and names are not working in SQL lab (#19152) 2022-03-16 20:46:06 -06:00
Hugh A. Miles II
e6bb0fc7ad feat: Add toast for successful table or schema refreshes in Sqllab (#18169)
* save

* add use redux to test

* update test for db selector

* add condition for refresh only
2022-01-26 20:26:50 -05:00
Geido
4b969710e4 Rename CertifiedIcon to CertifiedBadge (#17715) 2021-12-10 11:45:53 -07:00
Michael S. Molina
55be249870 fix: Order of Select items when unselecting (#17169)
* fix: Order of Select items when unselecting

* Adds a property comparator that supports strings and numbers

* Uses a named export for propertyComparator
2021-10-25 08:47:01 -03:00
Beto Dealmeida
16a1df75fc fix: clear modal state after adding dataset (#17044)
* fix: clear modal state after adding dataset

* Fix test

* Small fixes
2021-10-10 16:21:14 -07:00
Michael S. Molina
7c1c89c94b fix: Loading indicator of table and schema selectors (#17040) 2021-10-08 16:17:43 -03:00
Michael S. Molina
596e1cdf9b refactor: Changes the DatabaseSelector and TableSelector to use the new Select component (#16483) 2021-09-22 07:43:46 -03:00
Erik Ritter
8adc31d14c Revert "chore: Changes the DatabaseSelector to use the new Select component (#16334)" (#16478)
This reverts commit c768941f2f.
2021-08-26 22:28:04 -03:00
Michael S. Molina
c768941f2f chore: Changes the DatabaseSelector to use the new Select component (#16334) 2021-08-23 15:41:03 -03:00
Geido
a7cbcde9bf fix: Edit physical dataset from the Edit Dataset modal (#15770)
* Remove unnecessary onChange

* Remove confliciting onChange

* Revert unnecessary change

* Enhance and fix tests
2021-07-19 14:39:01 -04:00
stellalc7
680b447bc4 style(sqllab): update table count styling (#15200)
* Change text style and opacity

* Edit changes to text style and opacity for table length

* Edit changes to text style and opacity
2021-06-24 08:04:04 -07:00
Phillip Kelley-Dotson
e1ceb7f7cc refactor: Icon to icons for certifiedIcon (#15306)
* initial commit

* updated css

* fix lint
2021-06-23 14:49:17 -06:00
Michael S. Molina
331310db9b refactor: Bootstrap to AntD - Form - iteration 2 (#14379) 2021-05-05 22:00:37 -07:00
Erik Ritter
5315d2cc2d Revert "fix: select table overlay (#13694)" (#13901)
This reverts commit b247279ffe.
2021-03-31 18:47:38 -07:00
Michael S. Molina
9d6832dc27 test: Adds tests and storybook to CertifiedIcon component (#13457) 2021-03-30 14:31:35 -07:00
AAfghahi
b247279ffe fix: select table overlay (#13694) 2021-03-26 10:39:39 -04:00
Erik Ritter
64785c20bd feat: add warning metadata to tables and metrics (#13606) 2021-03-17 21:27:34 -07:00
Michael S. Molina
0b213bf484 test: Adds tests and storybook to RefreshLabel (#13409) 2021-03-05 21:21:01 -08:00
Michael S. Molina
cfc83c271c chore: Moves TableSelector tests to component's folder (#13411) 2021-03-03 15:44:36 -08:00