Commit Graph

97 Commits

Author SHA1 Message Date
Lily Kuang 2400179fb0
chore: migrate react-diff-viewer to react-diff-viewer-continued for react 18 upgrade (#22834) 2023-01-26 09:01:31 -08:00
Geido 9ed2326a20
feat: Move cross filters to Dashboard (#22785) 2023-01-25 18:01:06 +01:00
Artem Shumeiko f3696ceef3
chore: Localization of several charts and elements (#22150)
Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
2023-01-11 09:42:54 -07:00
Reese 2679ee2e46
fix(chart-table): Scrollbar causing header + footer overflow (#21064) 2022-12-15 22:25:20 -07:00
Yongjie Zhao 22fab5e58c
feat: Axis sort in the Bar Chart V2 (#21993) 2022-11-26 22:06:26 +08:00
Cody Leff 76e57ec651
feat(dashboard): menu improvements, fallback support for Drill to Detail (#21351) 2022-10-19 18:34:46 -03:00
Yongjie Zhao 8f61e3c5d9
refactor: preparation for time section migration (#21766) 2022-10-12 08:38:30 +08:00
Michael S. Molina eb2a1345a8
fix: Drill to detail formatted val on TableChart (#21719) 2022-10-06 14:45:09 -03:00
Mayur 60bab4269f
fix(table-chart): don't color empty cells in table chart with color formatters (#21501) 2022-09-28 16:16:12 +08:00
Yongjie Zhao d67b04683c
feat: support multiple columns with time grain in Table Chart (#21547) 2022-09-23 16:08:35 +08:00
Evan Rusackas 135909f814
feat: Making bar graphs in Table viz from fixed-size divs instead of calculated gradients (#21482) 2022-09-20 07:36:36 -06:00
Cody Leff 2285ebe72e
fix(explore): Prevent shared controls from checking feature flags outside React render (#21315) 2022-09-14 20:41:47 +02:00
Michael S. Molina 68fa4d2665
feat: Adds drill to detail context menu to Table (#21168)
* feat: Adds drill to detail context menu to Table

* Improves context menu positioning

* Fixes Pivot Table typying
2022-08-26 13:35:26 -03:00
Antonio Rivero Martinez 234c44626d
TableChart: (#20833)
- Handle resize properly when only the scrollbar is changing so it doesn't get stuck into an infinite loop.
2022-07-27 12:32:34 -06:00
Diego Medina 5d107b86ab
fix: explore warnings cleanup (#20864) 2022-07-26 13:28:50 +08:00
stevetracvc 7e504ff680
feat: truncate long values in table viz, a per-column setting (#19383)
* feat: truncate long values, a per-column setting

* fix: lint

* fix: removed width for column control

* fix: removed truncate option for time, bool, and numeric columns

* prevent extra div if not truncating
2022-07-06 22:16:48 -06:00
Diego Medina ac01a1b02f
chore: Set table viz default row limit to 1000 (#20475) 2022-07-06 22:09:23 -06:00
Yongjie Zhao c348a095b9
refactor(standardized form data): refine interface and improve code smells (#20518) 2022-06-28 21:09:42 +08:00
stevetracvc a45d011e74
fix: issue with sorting by multiple columns in a table (#19920)
Recent commit to sort alphanumeric columns via case insensitive
comparison broke the multi-column sort option. React-table only sorts
by the second (or third...) column if the first column matches.
Since the alphanumeric sort only returned -1 or 1, it never would move
to the subsequent columns when the earlier column values matched.
2022-06-23 08:39:46 -03:00
smileydev 1ae935379f
fix(chart & table): make to prevent dates from wrapping (#20384) 2022-06-21 09:58:50 -03:00
Diego Medina 93774d1860
fix: table viz sort icon bottom aligned (#20447) 2022-06-21 09:10:37 -03:00
Lyndsi Kay Williams ba0c37d3df
feat(explore): Frontend implementation of dataset creation from infobox (#19855)
* Frontend implementation of create dataset from infobox

* Fixed sl_dataset type

* Fix test

* Fixed sl_dataset type (forgot to save)

* RTL testing

* Adjusted styling/text on infobox and save dataset modal

* Appease lint

* Make infobox invisible and fix tests

* Remove unnecessary placeholder

* Move types to sql lab

* Moved logic into save dataset modal

* Change DatasourceMeta type to Dataset

* Add ExploreDatasource union type to save dataset modal

* Get user info from redux inside save dataset modal

* Addressed comments

* Adjusting to new query type

* Fixed save dataset in explore and union type

* Added testing

* Defined d for queries

* Remove dataset from SaveDatasetModal

* Clarify useSelector parameter

* Fix dndControls union type

* Fix shared-controls union type

* Fix controlPanel union type

* Move ExploreRootState to explore type file

* Remove unnecessary testing playground

* Move datasource type check in DatasourcePanel to a function

* Make all sqllab Query imports reference @superset-ui/core Query type

* Deconstruct query props in ResultSet

* Fix union type in /legacy-plugin-chart-heatmap/src/controlPanel

* Change SaveDatasetModal tests to RTL

* Cleaned datasourceTypeCheck

* Fix infobox styling

* Fix SaveDatasetModal test

* Fix query fixture in sqllab and Query type in SaveDatasetModal test

* Fix Query type and make test query fixture

* Added columns to Query type, separated results property, created QueryResponse union type, and fixed all types affected

* Fixed a couple missed broken types

* Added ExploreDatasource to SqlLab type file

* Removed unneeded Query import from DatasourcePanel

* Address PR comments

* Fix columnChoices

* Fix all incorrect column property checks

* Fix logic on dndGroupByControl

* Dry up savedMetrics type check

* Fixed TIME_COLUMN_OPTION

* Dried savedMetrics type check even further

* Change savedMetricsTypeCheck to defineSavedMetrics

* Change datasourceTypeCheck to isValidDatasourceType

* Fix Query path in groupByControl

* dnd_granularity_sqla now sorts Query types with is_dttm at the top

* Fixed/cleaned query sort

* Add sortedQueryColumns and proper optional chaining to granularity_sqla

* Move testQuery to core-ui, add test coverage for Queries in columnChoices

* Moved DEFAULT_METRICS to core-ui and wrote a test for defineSavedMetrics

* Add license and clean dataset test object

* Change DatasourceType.Dataset to dataset
2022-06-07 15:03:45 -05:00
Yongjie Zhao dd4b581fb5
feat: standardized form_data (#20010) 2022-06-05 21:05:01 +08:00
stevetracvc 7e9b85f76c
feat: add drag and drop column rearrangement for table viz (#19381) 2022-05-24 19:10:57 -07:00
Kamil Gabryjelski 0f68deedf1
perf(plugin-chart-table): Add memoization to avoid rerenders (#19976)
* perf(plugin-chart-table): Add memoization to avoid rerenders

* Fix typing
2022-05-13 18:10:48 +02:00
smileydev 902ac05372
fix(chart & table): make to allow highlight in case of numeric column (#19938)
* fix(chart & table): make to allow highlight in case of numeric column

* fix(chart & table): make to use emitFilter directly

* fix(chart & table): make to use styled component instead of inline style
2022-05-04 14:20:57 -06:00
Michael S. Molina e9032e95ec
chore: Adds theme object to chart properties (#19951) 2022-05-04 09:55:22 -03:00
Geido ed1309e6bd
fix: Dates alignment in Table viz (#19668)
* Fix dates alignment

* Add package lock changes

* Update package-lock

* Clean up
2022-04-28 11:37:49 +02:00
Josh Soref bebb10e495
chore(frontend-tests): Spelling (#19853)
* spelling: against

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: been

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: charts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: clicking

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: columns

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: duplicate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: especially

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: extensions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: fields

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: filter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: for

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: label

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: labeled

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: nativefilter

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: registry

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: render

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: resizable

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: response

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: successful

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: transform

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unfortunately

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: until

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: virtual

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: wrapper

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-26 10:35:01 -07:00
Kamil Gabryjelski fcc8080ff3
fix(plugin-chart-table): Resetting controls when switching query mode (#19792) 2022-04-20 17:25:31 +02:00
Diego Medina 955413539b
fix: Table Autosizing Has Unnecessary Scroll Bars (#19628) 2022-04-11 15:20:41 -06:00
Stephen Liu 6f5778273e
chore: add type checking in plugin test directory (#19387) 2022-03-28 10:20:06 +08:00
Kamil Gabryjelski a8a48af7fa
chore: Make font-weights themable, fix font faces (#19236)
* fix(fonts): Import all necessary font packages

* Make html tags themable

* Set bold font weight to 600, add medium font weight to theme

* Replace hard coded font weights with theme variables

* Change some font weight light elements to normal

* Fix tests

* Fix bug in pivot table

* Address code review comments
2022-03-22 09:36:15 +01:00
Jesse Yang ae13d8313b
feat(select): keep options order when in single mode (#19085) 2022-03-11 13:01:38 -08:00
Smart-Codi bc6aad0a88
fix: Show Totals error with sort and group by together (#19072) 2022-03-09 21:35:29 -07:00
Diego Medina 0e0beceac1
fix: Pivot Table Conditional Formatting Doesn't Show All Options (#19071)
* fix: Pivot Table Conditional Formatting Doesn't Show All Options

* PR comments

* PR comments
2022-03-09 15:04:04 -07:00
Ville Brofeldt 834686a3d9
bump and harmonize urijs and xss (#18922) 2022-03-01 18:38:29 +02:00
Geido a9a892945e
fix: Position of arrows in Table chart (#18739)
* Fix arrow position

* Improve position

* Add right position

* Improve styling
2022-02-22 15:42:05 +02:00
Adam Dobrawy 7c69a1bc60
chore: improve React import reference consistency (#18608) 2022-02-10 21:03:16 -08:00
Yongjie Zhao e91b9a678f
refactor: move superset-ui dependencies to peerDependencies (#17965)
* chore: add commit message

* update learn

* update superset-ui-demo

* move superset-ui into peerDeps

* add --no-private argument in lerna version

* fix conflicts

* refresh lock file
2022-01-11 13:53:37 +08:00
Erik Ritter 1e544ce531
fix: null dates in table chart (#17974) 2022-01-10 10:07:59 -08:00
Yongjie Zhao cb97e37a92
refactor: import value name from root of superset-ui/core (#17947)
* chart

* index and number-format

* char-composition and color

* connection

* dimension and math-expression

* models

* query

* time-format

* residual modules

* change config of jest and eslint

config

* wip

update package.json

* fix lint

* WithLegend import from superset-ui/core
2022-01-08 09:16:24 +08:00
Kamil Gabryjelski a2d8b94c52
chore(plugin-chart-table): move adhoc filters control closer to the metrics (#17797) 2021-12-17 14:39:09 +01:00
Kamil Gabryjelski 82b47cacba
fix(plugin-chart-table): sort alphanumeric columns case insensitive (#17765) 2021-12-15 11:48:25 -07:00
Kamil Gabryjelski 124af4c566
chore(explore): Migrate BigNumber to v1 api [ID-28][ID-55] (#17587)
* chore(explore): Migrate BigNumber to v1 api

* Move to echarts

* Use Echarts trendline

* Fix imports

* Fix parsing dates as strings

* Add from_dttm and to_dttm to v1 chart response

* Fix post processing

* Fix timeRangeFixed

* Fix tests

* Remove from and to dttm from cache

* Cleanup date formatting

* Fix storybook

* Fix missing types

* Fix timestamp with timezone

* Add types to demo's tsconfig

* bug fix

* fix import

* Fix cypress tests

* add sort

* add resample to handle missing values properly

* Sync ChartDataResponseResult schema with ts interface

* Lint fix

* Add migration

* Fix migration

* Remove pass

* Re-raise the exception in migration

* Typo fix

* Update revision

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-12-15 10:15:14 +01:00
Corbin Robb f476ba23a2
fix(select): select component sort functionality on certain options (#17638)
* fix: Select component sort function sorting by label instead of value on numbers

* fix: change select component default sorting to sort by the initial index rather than a property like value or label

* fix: select sorting add sortOptions to select components using sortByProperty

* fix: change select component back, add order to options coming in from SelectControl

* fix: select component options intitial sort bug

* fix: add test cases for select fix

Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
2021-12-09 11:40:25 -05:00
Yongjie Zhao 3c41ff68a4
refactor(monorepo): move superset-ui to superset(stage 2) (#17552) 2021-11-30 08:29:57 +08:00