3
0
mirror of https://github.com/grafana/grafana.git synced 2025-01-28 01:07:16 -06:00
Commit Graph

3961 Commits

Author SHA1 Message Date
renovate[bot]
e1746df794 Update d3 2024-01-10 10:19:20 +00:00
renovate[bot]
3c045d1dfb
Update dependency @emotion/react to v11.11.3 ()
* Update dependency @emotion/react to v11.11.3

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-09 18:20:08 +02:00
renovate[bot]
1cefa419c0
Update babel monorepo ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 15:54:57 +00:00
renovate[bot]
a449df3455
Update dependency @cypress/webpack-preprocessor to v6.0.1 ()
* Update dependency @cypress/webpack-preprocessor to v6.0.1

* fix type errors

* restore old checksum for scenes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-09 15:32:24 +00:00
Adela Almasan
26f54a2fc7
VizTooltips: Add wrapper shadow () 2024-01-08 13:36:48 -06:00
Leon Sorokin
200c71f5d6
VizTooltips: Optimize performance () 2024-01-05 16:07:04 -06:00
Leon Sorokin
1ec04243da
Heatmap: All tooltip mode selector ()
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-05 13:11:24 -06:00
Alex Khomenko
99f7110e39
React Hook Form: Update to v 7.49.2 ()
* Update RHF to latest

* Update Form types

* Fix alerting types

* Fix correlations types

* Update tests

* Fix tests

* Update LabelsField.tsx to use InputControl

* Update RuleEditorGrafanaRules.test.tsx

* Update RuleEditorCloudRules.test.tsx

* Only require one label

* Update RuleEditorRecordingRule.test.tsx

* Fix labels rules

* Revert

* Remove RHF from ignore rules

* Revert

* update form validation for overriding group timings

* Fix changes to correlations

* Fix auth type errors

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-01-05 12:41:49 +02:00
Alvaro Huarte
40583aec0f
Table: Add select/unselect all column values to table filter ()
* Add/Remove columns values to the filter using a UX similar to the github inbox

* Align select all checkbox and fix wording

* Update docs/sources/panels-visualizations/visualizations/table/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-04 16:09:16 +01:00
Sonia Aguilar
d29f9cfd3c
Fix: Switch component not being styled as disabled when is checked ()
* Fix Switch component not being styled as disabled when checked

* Remove unnecessary code
2024-01-04 15:07:22 +01:00
Jamin
576b8ccff6
Frontend: Migrate PageToolbar.tsx from aria-label e2e selectors to data-testid ()
* refactor: update PageToolbar to use data-testid

* refactor: update selector text

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-04 13:52:38 +02:00
Leon Sorokin
7210e378b8
TimeSeries: Fix stacking opacity accumulation on exit from PanelEdit () 2024-01-03 22:56:03 -06:00
Ashley Harrison
9de79fb5e9
Chore: remove react-popper-tooltip in favour of @floating-ui/react ()
* use floating-ui instead of react-popper-tooltip in Tooltip

* remove useTheme2 usage

* remove escape handling logic in favour of useDismiss

* don't need this useEffect anymore

* convert Toggletip to use floating-ui

* use explicit version

* convert OperationInfoButton to use Toggletip

* convert nestedFolderPicker to use floating-ui

* convert Dropdown to use floating-ui and remove react-popper-tooltip

* fix Modal/Tooltip tests

* revert to old toggletip behaviour

* revert OperationInfoButton to not use Toggletip

* add mock for requestAnimationFrame

* remove requestAnimationFrame mock

* remove fakeTimers where they're not used

* use floating-ui in ButtonSelect

* Fix filters unit tests

* only attach description if label is different

* use 'fixed' strategy for Toggletip

* use stroke and strokeWidth

* set move: false to only show the tooltip if a hover event occurs

* update type for onClose
2024-01-03 12:42:26 +00:00
Ryan McKinley
ae3156d727
XYChart: Config cleanup and refactoring ()
* xy config cleanup

* more cleanup

* clean up betterer some

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-31 16:50:53 -08:00
Adela Almasan
7eea30d0e8
VizTooltip: Improved StateTimeline tooltip ()
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-12-29 17:38:40 -06:00
Leon Sorokin
b3387793f1
Chore: uPlot v1.6.28 () 2023-12-29 13:43:15 -06:00
Brendan O'Handley
a9f4ffab5d
Prometheus: Migrate from aria-label to data-testid for selectors ()
* migrate from aria-label to data-testid for selectors

* fix e2e tests with shared components

* fix e2e tests with more shared components

* pass data-testid to SelectBase component

* pass data-testid to value container and traverse the dom to access the input in e2e
2023-12-26 13:43:06 -06:00
Jamin
f41a0559fa
Frontend: Migrate NewsContainer.tsx from aria-label e2e selectors to data-testid () 2023-12-26 15:06:33 +00:00
Alex Khomenko
fde8a00721
SSO: Add GitHub auth configuration page ()
* Setup route

* Set up the page

* Add orgs

* Load settings

* Make API call

* Remove log

* Add FormPrompt

* Update types

* Add tests

* Fix tests

* Cleanup

* Load settings

* Fix naming

* Switch to PUT endpoint

* Switch to CSS object

* Setup fields

* Render fields

* Extend types

* Dynamic provider page

* Rename page

* Filter out non-implemented providers

* Fix types

* Add teamIDs validation

* Update tests

* Fix URL

* Update name

* Send full data

* Add password input

* Update test

* Expand default values

* Fix test

* Use SecretInput

* Remove dev mode for the feature toggle

* Convert fields

* Remove fieldFormat utils

* Update fields logic

* Update tests

* Update betterer

* SSO: Make client secret not required

* Update field name

* Revert feature toggle to dev mode

* Use provider endpoint

* Fix form state check

* Update tests

* Fix URL redirect after form submit

* Mock locationService

* Separate Form component

* Fix trailing slash
2023-12-21 15:26:42 +02:00
Jamin
38f176edfb
Frontend: Migrate SubMenu.tsx: from aria-label e2e selectors to data-testid () 2023-12-21 11:52:57 +00:00
Marco Schaefer
1260451af3
Faro: Upgrade to v1.3.5 () 2023-12-18 16:20:21 +01:00
Khushi Jain
54dc5846c2
Chore: Refactor dataviz aria-label e2e selectors to data-testid ()
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-17 02:10:04 +02:00
Adela Almasan
4dc4c285f1
Heatmap: Update tooltip UX () 2023-12-15 19:17:49 -06:00
Drew Slobodnjak
b166bdc3fc
Stat: Add Percent Change Option ()
* Stat: Add Percent Change Option

* Ensure div style only applied for percent change

* Add metrics section to gdev

* Apply new style and fix nan truthy

* Handle no text case properly

* Only display percent change with value

* Improve styling

* Remove VizOrientation dep and improve styling

* Display percent change for text mode name

* Add check for undefined percentChange

* Don't show percent change option for all values

* Make metric alignment more robust

* Make percent change column case tighter

Check undefined directly to avoid truthy issues

* Simplify percentChange calculation

* Add documentation for show percent change

* Add tests for percent change

* Refactor big value and pull out percent change

* minor changes

* initial approach at addressing setting % change colors to be conventional (not super happy with handling of contrast)

* Clean up initial color change approach (no need to handle 0 case as is handled as NaN currently

* Update shadow styling and include icon

* Update docs/sources/panels-visualizations/visualizations/stat/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Stat: Add Percent Change Option (refactor and color exploration)  ()

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>

* some missed cleanup :D

* update percent change to show to not be tied to text value; update docs accordingly

* initial start for fixing scaling of % change for no text mode

* Fix styling for case where textmode is none

* Tweak styling a bit for icon and minimum padding

* Apply flex wrap to container styles

* Update gdev for stat panel tests

* attempt at fixing horizontal percent change styling / placement

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-12-15 16:15:31 -08:00
Adela Almasan
d4b75928ca
Tooltip: Improved Timeseries and Candlestick tooltips () 2023-12-13 16:34:56 -06:00
Joao Silva
147c1b8d8f
Card: Revert grid template row size change () 2023-12-13 14:33:20 +00:00
Laura Fernández
d28284c8f1
TimeRangePicker: do not swap time ranges when to is before from () 2023-12-13 14:40:09 +01:00
Victor Marin
5aff3389f4
Table: Highlight row on shared crosshair ()
* bidirectional shared crosshair table WIP

* add shared crosshair to table panel

* lower around point threshold

* add feature toggle

* add index based verification

* add adaptive threshold

* switch to debounceTime

* lower debounce to 100

* raise debounce back to 200

* revert azure dashboard

* re-render only rows list on data hover event

* further break down table component

* refactor

* raise debounce time

* fix build
2023-12-13 11:33:14 +02:00
Leon Sorokin
09cef892a5
OptionsPicker: Use fuzzy search and improve ranking of matches () 2023-12-12 16:41:50 -06:00
Torkel Ödegaard
eec4fd623d
Stat: Fix inconsistent center padding () 2023-12-12 09:59:49 -08:00
Ashley Harrison
ffda25f4a3
Skeleton: Abstract out attach/animation logic ()
* apply styles globally to skeleton

* use abstraction everywhere

* just use withSkeleton

* add comment

* update docs

* use it in News as well

* rename withSkeleton to attachSkeleton

* move to @grafana/ui/src/unstable

* rename skeletonProps to rootProps
2023-12-12 11:05:36 +00:00
Esteban Beltran
46142da4db
Chore: Migrate from aria-label to data-testid in plugin-related tests ()
* Update basicsettings for datasource

* Change aria-label for data-testid

* Update more tests

* Update betterer

* Remove unnecessary data-testid

* Put back aria label for some datasource selectors

* Try to use data-testid with alerts

* Update betterer
2023-12-11 15:05:54 +01:00
Josh Hunt
8ce4faf5ea
Chore: Deprecate FieldConfigEditorProps in favor of StandardEditorProps ()
* Deprecate FieldConfigEditorProps in favor of StandardEditorProps

* update editors to no longer use FieldOverrideEditorProps
2023-12-07 13:03:18 +02:00
Ashley Harrison
7cdddb2790
PluginList: Add plugin list loading skeleton ()
* add plugin skeleton

* lineHeight: 1 instead of 0
2023-12-05 16:39:23 +00:00
ssama88
fbaa611f17
Storybook: Fix Selected Card layout issues () 2023-12-04 10:52:42 +00:00
Leon Sorokin
2ac60dc300
Chore: Remove core-js polyfills () 2023-11-29 11:12:23 -06:00
Isabella Siu
c6232351f2
CloudWatch Logs: Support fetching fields in monaco editor () 2023-11-29 10:37:23 -05:00
Adela Almasan
a6c9a9db92
StatusHistory: Add tooltip multi mode () 2023-11-28 21:23:05 +00:00
Ashley Harrison
9789c0cc79
Remove type assertions in VizLegendTable ()
no type assertions
2023-11-28 15:15:27 +00:00
Leon Sorokin
b022ddeee8
VizLegend: Implement natural sort, simplify, optimize () 2023-11-27 16:39:43 -06:00
Laura Fernández
e422a92eae
RadioButton: Make description appear in a Tooltip component () 2023-11-27 13:54:07 +01:00
Dominik Prokop
703deeff0b
DashboardScene: Add time picker keybindings ()
* grafana/data: Add time range zoom out util

* Add keybindings for time range zoom out

* TimeRangePicker: change the way absolute time range is detected

* Depend on dashboard scene tructure rather

* Revert "grafana/data: Add time range zoom out util"

This reverts commit bc1602db57.

* Lint

* Lint

* dashboardSceneGraph tests
2023-11-27 00:32:23 -08:00
Ashley Harrison
5355131aed
Tab: Only make Tab an anchor if a href is passed ()
* initial work

* only make the tab an anchor if it has a href

* move things around for smaller diff

* use content()

* eslint-disable the type assertions

* extract props into common object and add missing return statement
2023-11-23 10:51:07 +00:00
Josh Hunt
05070385cd
Chore: Refactor TimeRangePicker for aria-label selectors ()
* Change from aria-label to data-testid for e2e selectors

* translate

* update tests

* swap buttons:
2023-11-23 10:39:26 +00:00
kay delaney
9e11779921
Chore: Clean up usage of deprecated stylesFactory function () 2023-11-21 14:01:53 +00:00
Laura Fernández
aae702c237
RadioButtonGroup: Add missing disabled and disabledOptions on its story () 2023-11-17 12:57:44 +01:00
Ihor Yeromin
6f0c5395ac
Tooltips: Support long labels ()
* feat(tooltips): support long labels

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-11-16 14:53:23 +01:00
Alex Khomenko
d641f9153e
Grafana/ui: Move Grid out of unstable ()
* Grafana/ui: move Grid out of unstable

* Update docs
2023-11-16 07:23:22 +02:00
Leon Sorokin
768fde02aa
TooltipPlugin2: Absorb ZoomPlugin () 2023-11-15 17:23:54 -06:00
Alex Khomenko
441403729f
Grid: Make props responsive ()
* Grid: Make props responsive

* Make 'columns' and 'minColumnWidth' mutually exclusive

* Cleanup
2023-11-15 18:49:27 +02:00