* Theme: Change white base in dark theme
* Updated
* Updated snapshots
(cherry picked from commit f884381a68)
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
* fix(routing): remove baseUrl only if at start of url
* test(routing): add subdirectory suburl tests for stripBaseFromUrl
* test(routing): add absolute url check to fix tests, add extra tests
(cherry picked from commit 8b2ee06f3c)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
#31871 introduced support for configuring timeout in seconds
for HTTP data sources. That had a bug where backend expected
a numeric timeout value where it was actually stored as a
string. This should resolve this by requiring input to be
numbers, storing input as numeric and falling back to string
value if there's no numeric value.
Ref #31871
(cherry picked from commit d15d87db8a)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
* Grafana-UI: Removes knobs from storybook addons pane
* removed other knobs settings since we are disabling it
* remove the knobs disable config in individual stories
(cherry picked from commit 8d9e1d75a5)
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* Graph: fixes storybook crashing when using the story
* fixes the GraphWithLegend story too
(cherry picked from commit 70155c7fd0)
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* fix(card): defend against invalid elements types passed to BaseActions
* test(card): add test to support conditional buttons being passed in
* fix(playlistpage): remove disabled prop from LinkButton for editors
* chore(playlistpage): remove title from edit button
(cherry picked from commit c13f247a94)
* Grafana-UI: Fix Checkbox vertical layout issues
* reorganise css
* revert my 'fix' and just go back to setting a min height :(
(cherry picked from commit 32d9b04666)
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
* Timeline/Status grid tooltip support first pass
* Tooltips workin
* Use getValueFormat to get the duration
* Separate boxes highlight from tooltip interpolation
* Separate state timeline tooltip component, rely on field display color to retrieve color of series
* create an onHover/onLeave API and optimize implementation
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit 7359ba44d0)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
* VizLegendTable: fixes column spacing to span to the right side
* reverted text alignment to right
* implemented a more readable solution for tabble legend spacing
(cherry picked from commit 4d574bb8aa)
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* add timeline value cache
* add timeline value cache
* with console logs
* cleanup
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit 744ca8d439)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* UnsavedChanges: Move Change tracker to use Prompt
* Fix a lot of race conditions and stacking of changes in onConfirm and onDismiss
* Listen to save event
* add missing delay argument
* migrated the change tracker unit tests
* Updated snapshot
* Removed unessary action
* removed updateSourcePanel
* Fix hiding save library panel modal prompt when clicking discard
* change saved libray panel title and buttons so they are a bit different as Prompt and when used from save button
* Fixed issue with saving new dashboard
* Now all scenarios work
* increase wait time
* Fixed one more race condition
(cherry picked from commit e6f2b10a36)
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
* Table: datalink to have text underline and support for image datalink
* fixes image oversize issue when using both image and link in a column
* fixes small nit
* extracted the getLink logic to be a standalone utility function
* Updates table tests to suit current structure
* fixes small syntax nit
* fixes bad typing issue
* annotes the getCellLinks logic as an internal utility function
* removes blank whitespace
* Tests: updates test cases to use getByRole
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
(cherry picked from commit 865eac309c)
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
* Switch to GraphNG for Logs Histogram
* Remove redundant timeZone
It was used just to format timestamp in the tooltip but it's not needed anymore.
* Add tests for creating logs histogram data
* Update decoractors tests
* Adjust bar width to be more like in the old graph
* Fix tooltip pointer color
* Test tooltip pointer color
* Decouple graph config from uPlot internals
* Ensure nested properties are not mutated when overrides are applied
* Add legend toggling for Explore graphs
* Remove unused component
ExploreGraphNGPanel is now used in Explore
* Code formatting
* allow multiple bars pathBuilders to be globally cached with different settings
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit f4a40a4d85)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* Add prevent default if onClick exists
* Apply field overrides
(cherry picked from commit fcdab32750)
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
* Remove fieldName and hideInLegend properties from UPlotSeriesBuilder
* Fix test
(cherry picked from commit 573d7b8893)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>