3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-14 09:33:34 -06:00
Commit Graph

3983 Commits

Author SHA1 Message Date
renovate[bot]
05d8fd9d85 Update dependency @types/react-test-renderer to v18.0.7 2024-01-12 19:24:50 +00:00
renovate[bot]
235c747472 Update dependency @types/react-table to v7.7.19 2024-01-12 18:45:27 +00:00
renovate[bot]
7f3b748b29
Update dependency @types/react-highlight-words to v0.16.7 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 17:31:53 +00:00
renovate[bot]
d96cd145d7 Update dependency @types/react-color to v3.0.11 2024-01-12 17:30:28 +00:00
renovate[bot]
e3745b5fb8 Update dependency @types/react-beautiful-dnd to v13.1.8 2024-01-12 17:07:43 +00:00
renovate[bot]
9ba56d9349 Update dependency @types/prismjs to v1.26.3 2024-01-12 16:31:08 +00:00
Jamin
66c85d9826
Frontend: Migrate LoadingIndicator.tsx from aria-label e2e selectors to data-testid ()
* refactor: update component to use data-testid

* refactor: update loading indicator e2e selector

* oops - forgot to update betterer results

* update loading indicator in variable picker

---------

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-12 18:30:11 +02:00
renovate[bot]
b9c616ce1d Update dependency @types/mock-raf to v1.0.6 2024-01-12 13:31:34 +00:00
renovate[bot]
3594a068a6 Update dependency @types/lodash to v4.14.202 2024-01-12 11:42:12 +00:00
renovate[bot]
df513c870f Update dependency @types/jest to v29.5.11 2024-01-12 11:08:22 +00:00
renovate[bot]
d2293e0848
Update dependency @types/is-hotkey to v0.1.10 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 10:21:00 +00:00
renovate[bot]
d3abab2896 Update dependency @types/hoist-non-react-statics to v3.3.5 2024-01-12 09:56:28 +00:00
grafana-delivery-bot[bot]
caee68b5a8
Release: Bump version to 10.4.0-pre ()
"Release: Updated versions in package to 10.4.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-01-12 10:21:50 +01:00
Leon Sorokin
b53e0521d2
Panels: AnnotationsPlugin2 ()
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-12 09:02:40 +02:00
renovate[bot]
8dba53b541 Update dependency @testing-library/user-event to v14.5.2 2024-01-11 11:01:21 +00:00
Alex Khomenko
370fd5a5af
SSO Config: Add generic OAuth ()
* 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: Add Generic OAuth page

* SSO: Add Generic OAuth page

* 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

* Update fields

* Add more fields

* Add more fields

* Fix spacing

* Add UserMapping fields

* Add rest of the fields

* Add FieldRenderer

* Update types

* Update comment

* Update feature toggle

* Add checkbox

* Do not submit form if there are errors

* Fix revalidation

* Redirect on success only

* Fix redirect behavior

* Add missing descriptions

* Use inline checkbox

* Add enabled field

* Restore feature toggle

* Remove source field from PUT request

* Add URL to the fields

* Add hidden prop to fields and sections

* Add Delete button

* Prettier

* Add authStyle, still not working, description updates

* Fix saving select values

* Run prettier

* Use defaultValue in Select field

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-01-11 11:23:38 +01:00
renovate[bot]
ec3207a943 Update dependency @testing-library/dom to v9.3.4 2024-01-11 10:10:51 +00:00
Leon Sorokin
31921bbb01
DashboardGrid: Add LayoutItemContext to affect zIndex from panels () 2024-01-10 12:09:54 -06:00
renovate[bot]
153767a787 Update dependency @leeoniya/ufuzzy to v1.0.14 2024-01-10 14:27:54 +00:00
Jamin
71b98163e5
Frontend: Migrate DataSourceHttpSettings.tsx from aria-label e2e selectors to data-testid () 2024-01-10 11:51:16 +00:00
Jamin
108c196d08
Frontend: Migrate Drawer.tsx from aria-label e2e selectors to data-testid ()
* refactor: update aria-label to data-testid

* refactor: update aria-label to data-testid

* refactor: replace title

* refactor: update selector text

* feat: update translation file

* fix old phrases

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-10 11:20:51 +00:00
renovate[bot]
90e4a53288
Update dependency @floating-ui/react to v0.26.5 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 10:52:41 +00:00
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