grafana/public/app
Kyle Cunningham 80e7f54166
Table Panel: Refactor Cell Options to Allow for Options per Cell Type (#59363)
* Update table data structure schema.

* Update table panel configuration options for new structure

* Fix TS errors from refactor

* Separate background and gauge display modes

* Remove the now used Bar Gauge display from the mud

* Fix types up

* Reorganize data structures

* Fix type issues.

* Start stubbing necessary code.

* Continue implementing option refactor

* Change category for cell type selection.

* Consolidate cell options

* Fix various typing issues

* Clean up dead code

* Stub handling display mode changes

* Make subOption editor dynamic

* Setup interface for sub-option editor props

* Remove unused imports

* Remove console.log call

* Persist display mode changes, stub sub options change, update comments.

* Make sure updates from cells are persisted

* Persist sub-option changes

* Update BarGaugeCell to take into account new settings.

* Add deprecated field back

* Remove unecessary options in configuration

* Update default cell to accept new settings

* Make sure color text display works

* Add deprecated property notice

* Use constant as opposed to string

* Make sure we name globally namespaced things uniquely

* Update to use unique name

* Use union type with discriminator.

* Simplify types and operation

* Update type definitons

* Update types

* Update property names in cells

* Remove React.FC usage

* Update option editor signature

* Update options structure

* Change variable name

* Fix "Color Text" display

* Remove debug statement

* Make sure we remain backwards compatible with display mode.

* Add migration for configuration.

* Export BarGaugeDisplayMode from grafana-ui

* Update import

* Fix bar gauge and dashboard migrator tests

* Fix potential undefined references causing test failures

* Fix another potential reference error in DefaultCell

* Try to fix breaking change detection.

* Cache setting changes

* Make sure we return with onChange invocation

* Fixed migrating overrides

* Fix a number of review comments

* Simplify option editors

* Fix unused imports

* Fill out comments for types

* Actually use defaultPanelConfig for editor default

* Move TableCellEditorProps alongside TableCellOptionEditor

* Update docs for table panel

* Also make sure we remove TableCellEditorProps from model file

* Stub migration tests

* Add tests for default config migration

* Add basic overrides test

* Flesh out tests a bit more

* Add inspect to same category as cell editor

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-01-12 18:42:57 +07:00
..
angular Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
core Alerting: improve FolderPicker and Evaluation Group Select for Huge lists (#61221) 2023-01-12 11:45:03 +01:00
features Table Panel: Refactor Cell Options to Allow for Options per Cell Type (#59363) 2023-01-12 18:42:57 +07:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Table Panel: Refactor Cell Options to Allow for Options per Cell Type (#59363) 2023-01-12 18:42:57 +07:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes DataSourceList: Build a dashboard button to open new dashboard in panel edit with data source already set (#60532) 2023-01-06 09:21:40 -05:00
store PublicDashboard: Add RTK Query with loading and error state. Add MSW dependency for testing. (#55518) 2022-09-22 09:35:04 -03:00
types Logs volume: Refactor (#60998) 2023-01-09 18:33:48 +01:00
app.ts Runtime: Expose panel plugin import utils (#60799) 2022-12-29 00:45:50 -08:00
AppWrapper.tsx CommandPalette: Search for dashboards using API (#61090) 2023-01-10 14:59:32 +00:00
dev.ts Chore: Make "why-did-you-render" a dynamic import (#53121) 2022-08-08 15:33:49 +01:00
index.ts Type window.nonce (#51200) 2022-06-22 09:28:05 +01:00