Commit Graph
100 Commits
Author SHA1 Message Date
Ivan Ortega Alba a7c06d26f1 Dashboards: Add new toggle for dashboard changes out of dashgpt toggle (#83897) 2024-03-05 14:01:31 +02:00
Ivan Ortega AlbaandAdela Almasan 112c0e7a79 Dashboards: Auto-generate get stuck and quick feedback actions doesn't respond (#83879)
* Update the component only when the response is fully generated

* Fix quick feedback action doesn't respond

* Fix history not displaying after the second click

* Fix the history that moves when regenerating

---------

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
2024-03-05 12:10:46 +01:00
Ivan Ortega Alba 59fb26443f DashboardSceneChangeTracker: Do not load the worker until is editing (#83817) 2024-03-04 14:31:14 +01:00
29d6cd8fa0 DashboardScene: Share change detection logic between saving and runtime (#81958)
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-29 18:18:26 +02:00
Ivan Ortega Alba 5460d75e74 QueryVariableEditor: Select a variable ds does not work (#83144) 2024-02-21 17:57:53 +02:00
Ivan Ortega Alba 3d86d101b7 Dashboards: Use auto and only use AdHocFiltersVariable to manage filters (#81318) 2024-02-13 22:38:26 +02:00
Ivan Ortega Alba 35e96d6b04 Settings: Consistent footer actions across edit views (#82048) 2024-02-08 11:50:53 +02:00
Ivan Ortega Alba a9f17a3f24 QueryVariable: Be able to edit the variable using scenes (#80847) 2024-01-31 13:31:08 +01:00
Ivan Ortega AlbaandAlexandra Vargas 3b401d0d4d CustomVariable: Be able to edit them using scenes (#80193)
---------
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
2024-01-17 19:14:01 +02:00
Ivan Ortega Alba 07778cb221 DashboardLinksSettings: Move them to Scenes (#79998) 2024-01-16 13:24:54 +02:00
Ivan Ortega Alba e9f1b41d23 EditVariable: Add base form to edit variables (#80172) 2024-01-12 12:01:11 +02:00
Ivan Ortega Alba eb64209301 GeneralSettings: Enable support for nowDelay (#79703) 2024-01-11 17:53:06 +01:00
Ivan Ortega Alba 1892ae5ca8 Tracking: Report dash nowDelay and liveNow values (#79744) 2023-12-29 12:36:09 +01:00
Ivan Ortega Alba 9fd3c9df55 GeneralSettings: hide time picker from settings using scenes (#79526) 2023-12-15 12:52:34 +02:00
Ivan Ortega Alba e56a252158 GeneralSettings: Edit general dashboards settings to scenes (#78492) 2023-12-01 17:04:56 +02:00
Ivan Ortega Alba 8d7314bb9a DeleteDashboard: Redirect to home after deleting a dashboard (#78918) 2023-12-01 10:15:41 +01:00
Ivan Ortega Alba ddfe4e1bdd FeatureToggle: Disable dashgpt by default and mark it as preview (#78348) 2023-11-17 18:51:51 +02:00
Ivan Ortega Alba f32f8a160e SaveDashboard: Reduce time to open drawer when many changes applied (#78283) 2023-11-17 10:02:53 +01:00
Ivan Ortega Albaandnmarrs a03f9e7660 Feature toggle: Mark dashgpt as GA (#76304)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-23 09:39:12 -07:00
Ivan Ortega AlbaandNathan Marrs 2a2401e673 useOpenAIStream: Improve error handling (#76212)
* Simplify error message

* Add timeout

* Unsubscribe when unmount

---------

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
2023-10-10 17:23:08 +03:00
Ivan Ortega Alba 7d0c4c5aa7 Auto-generate: Improve long text generation (#76213)
Breaklines don't render for history text
2023-10-10 09:45:13 +02:00
Ivan Ortega Alba 1a96f3742f Dashboards: It always detect changes when saving an existing dashboard (#76116)
Deep clone originalDashboard to avoid mutations by object reference
2023-10-06 14:32:04 +02:00
Ivan Ortega Alba c88d5d7b40 Auto-generate: Hide the button when LLM plugin is not enabled (#75878)
* Auto-generate: Hide the button when LLM plugin is not enabled

* Performance: Reduce time to receive the first character of OpenAI
2023-10-03 23:36:45 +02:00
Ivan Ortega Alba 6aa27607ae DataSourcePicker: Disable autocomplete for the search input (#75898) 2023-10-03 18:06:27 +03:00
Ivan Ortega Alba 72c413025d Auto-generate: Error handling and monitoring (#75468)
* Error handling for the hook to expose `error` as part of the state
* Monitor errors at the hook level to catch common OpenAI issues
* Allow retry when the request fails
* Optimize onGenerate number of calls
* Re-enable component tests
2023-10-02 16:04:12 +02:00
Ivan Ortega Alba 735b6493b1 Dashboards: Auto-generate dashboard title and description when saving as (#75246) 2023-09-26 12:53:08 +02:00
Ivan Ortega Alba eba74f0408 Analytics: Track usage of auto-generate functionality (#75267) 2023-09-22 16:03:50 +02:00
Ivan Ortega Albaandnmarrs d531f5ab42 Dashboards: Auto-generate dashboard title and description from settings (#75240)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-09-21 19:07:56 -07:00
224e2c9efb Dashboards: Auto-generate dashboard changes description (#75003)
Co-authored-by: Aaron Sanders <aaron.sanders@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-09-21 05:41:49 -07:00
Ivan Ortega AlbaandIsabel 4f329e9fa6 Import:Enhance clarity through improved copy and streamlined links (#74383)
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-09-12 11:13:00 +02:00
Ivan Ortega Alba 087e1658c2 Revert "Rename "Add new data source" to "Connect data"" (#74321)
Revert "Rename "Add new data source" to "Connect data" (#73688)"

This reverts commit 7543a28ae2.
2023-09-05 12:43:35 +02:00
Ivan Ortega Alba 8113707dc8 Dashboards: Add "import dashboard" to empty dashboard landing page (#74018) 2023-09-01 10:11:32 +02:00
Ivan Ortega Alba 7543a28ae2 Rename "Add new data source" to "Connect data" (#73688)
* DS Picker: Rename "Add new data source" to "Connect data"

* DS Picker: Center empty list CTA
2023-08-28 11:54:51 +02:00
Ivan Ortega Alba 148b6186b7 DS Picker: Ignore capitalization when sorting by name (#72665) 2023-08-01 13:20:59 +02:00
Ivan Ortega Alba 8415dd40d7 DSPicker: Use new DS picker everywhere in Grafana (#70609) 2023-07-26 18:40:51 +02:00
Ivan Ortega Alba 18b4f72c7a DS Picker: Use trigger width as min width (#71501) 2023-07-13 17:10:38 +02:00
Ivan Ortega Alba 699e499cc7 Variables: Page refreshes hitting enter to select a variable value (#70996) 2023-07-11 12:30:08 +02:00
Ivan Ortega Alba ad5a36e7a3 AsyncSegment: Display no-options placeholder for no items status (#70995)
AsyncSegment: Display no options dropdown placeholder for no items status
2023-07-06 15:27:11 +02:00
Ivan Ortega Alba 6ad9e386ad DS Picker: Filter available DS based on component props (#70613)
* Apply filters consistently to every list in the picker

* Display all built-in DS when editing a panel

* Add `uploadFile` prop to toggle the CSV file DS
2023-07-06 11:50:55 +02:00
Ivan Ortega Alba 3bf8dc1397 DS Picker: Add missing props and improve autoheight logic (#70393)
* DS Picker: Add `inputId` and `noDefault` options

* DS Picker: Add `disabled` state

* Add tests for `disabled`

* Select default DS if `current` is not provided

* Remove `width` from style

* Move types next to components

* Only calculate height when opening
2023-06-23 10:26:18 +02:00
Ivan Ortega Alba 565ed09f6b Explore: Use new DS picker (#70054) 2023-06-17 10:12:29 +02:00
Ivan Ortega Alba 6be0ca396f DS Picker: first item is always active when filtering (#70071)
* Select always the first item by default when filtering

* Avoid re-render when updating the selected item state
2023-06-16 18:30:49 +03:00
Ivan Ortega Alba 9b1f1df9e8 Mixed DS: Use new DS picker (#70052) 2023-06-16 15:12:52 +02:00
Ivan Ortega Alba 5b97670f11 DS Picker: Support width and hideTextValue (#70074) 2023-06-15 16:34:20 +02:00
Ivan Ortega Alba 1e75c9c514 DS Picker: Use new built-in DS icons (#69797) 2023-06-14 12:36:21 +03:00
Ivan Ortega Alba 908b248e10 DS Picker: Built-in datasources are not marked as selected (#70020) 2023-06-14 10:52:49 +02:00
Ivan Ortega Alba bc48622919 DS Picker: Fix React key issue for built-in data source list (#70018) 2023-06-13 16:06:49 +00:00
Ivan Ortega Alba 819041c732 Schema: Improve Dashboard kind docs and remove deprecated props (#69359)
Remove unused properties: 
  * `FieldColorModeId.PaletteSaturated`: It doesn't exist and it is not a valid palette.
  * `VariableModel.rootStateKey`: It is not persisted in the DB, so it shouldn't be in the schema. It is a property only used in the frontend to store the Redux store key.
  * `VariableModel.error`: It is not persisted in the DB, so it shouldn't be in the schema. It is a property only used in the frontend to store fetching errors.
  * `Panel.thresholds`: old property only existing in previous versions of the dashboard schema.
  * `Panel.timeRegions`: old property only existing in previous versions of the dashboard schema.
2023-06-06 14:28:10 +02:00
cb83861630 Improve Dashboards schema docs (#68904)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
2023-05-29 15:15:28 +03:00
Ivan Ortega AlbaandJuan Cabanas c9adcc1e97 DS Picker: Make responsive the modal for smaller devices (#68875)
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2023-05-26 16:38:58 +02:00
Ivan Ortega Alba 9e61172245 DS Picker: Use custom scrollbar (#68845) 2023-05-22 23:55:18 +02:00
Ivan Ortega AlbaandJuan Cabanas 49467b3e5a DS Picker takes the max height available and flip when needed (#68698)
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2023-05-18 19:42:19 +02:00
Ivan Ortega Alba 1505a188eb Dashboards: Remove no-datasource screen (#68574)
* Dashboards: Remove non-ds configured landing page

* Remove `datasourceOnboarding` feature toggle
2023-05-17 14:22:40 +02:00
Ivan Ortega Alba da00df8e5c DS Picker: Align open advanced button to right (#68394) 2023-05-12 16:03:25 +00:00
Ivan Ortega Alba ede8df846e Add/Edit Panel: Enable new DS picker toggle by default (#68380)
* Add Panel: Enable new DS picker and onboarding DS prompt

* Add e2e selectors
2023-05-12 17:09:30 +02:00
Ivan Ortega Alba cb293ecf1c Improve DS Advance Picker to give user context about the built in DS and CTA (#68203)
* Add description to DS built-in list of items

* Open the new DS view in a new tab
2023-05-10 15:56:00 -03:00
Ivan Ortega Alba 0565c3440f DS Picker: Do not create extra history entries for panel onboarding (#68227) 2023-05-10 18:57:10 +02:00
Ivan Ortega Alba 1afaf4d73e Improve empty state when no ds picker were found (#67422) 2023-05-04 13:17:03 +03:00
Ivan Ortega Alba cdf8555ace Use URL isFirstPanel to enable panel editor onboarding (#67546) 2023-04-28 19:09:44 +02:00
Ivan Ortega Alba 8b6160bc66 Fix: Advanced DS picker search is case sensitive (#67420) 2023-04-28 10:38:14 +00:00
Ivan Ortega Alba 4d96afa979 Check add DS permissions in advanced DS picker (#67237) 2023-04-27 16:51:31 +02:00
Ivan Ortega Alba a576bd4f26 DataSourcePicker: Tweak styles (#67280) 2023-04-26 15:07:51 +02:00
Ivan Ortega Alba 581cc85ba5 Add analytics to new DS picker and onboarding experience (#67060)
* Add analytics to ds picker advanced mode

* Add analytics to ds picker dropdown
2023-04-25 21:07:16 +02:00
Ivan Ortega Alba 44035ecbb2 Advanced DS Picker open Connections page when toggle is enabled (#67139) 2023-04-25 10:42:04 +02:00
Ivan Ortega Alba 4d474e8e4f Fix icon size for data source picker list item (#67144) 2023-04-25 10:41:31 +02:00
Ivan Ortega Alba 49624ca2ef Adjust styles for DS picker dropdown and modal (#67004)
Adjust styles for dropdown and modal
2023-04-21 11:25:03 +02:00
Ivan Ortega Alba 40c7b3126e Prompt DS modal when the user adds the first panel to a dashboard (#66911)
* Prompt DS modal when the user adds the first panel to a dashboard

* Rename state prop and use toggle

* Change modal size

* Avoid flickering for dashboard modal when changing number of results

* When editing panel 1, only display when new dashboard
2023-04-20 13:44:19 +02:00
Ivan Ortega Alba 3edc246ca3 Variables are available in the new DS picker and modal (#66923) 2023-04-20 11:34:24 +02:00
Ivan Ortega AlbaandOscar Kilhed c7af53b79f [Under FF] New DS Picker with advance mode (#66566)
* Add a wrapper to switch between the previous and new DS picker depending on the feature toggle advancedDataSourcePicker.

* Add a new component to represent the modal DS picker, which we will refer as advanced DS picker
Integrate this into the Edit panel, for now, until we're ready to replace everywhere the grafana-runtime DS picker by the wrapper.

* Replace Drawer component with the dropdown

* Adjust the first version of the styles to fit into this Figma design

* Adjust the design of the FileDropzoneDefaultChildren to match with the new DS modal but everywhere else is used nowadays.

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2023-04-19 16:08:09 +03:00
Ivan Ortega Alba 7bc31ab04b Replace the DS drawer toggle with the new DS picker one (#66551) 2023-04-14 13:01:10 +02:00
Ivan Ortega Alba 45df536263 Flaky E2E: Wait for the data to be loaded before switch to table view (#66072)
Fix flaky e2e for panel edit suite
2023-04-06 09:07:41 +02:00
Ivan Ortega Alba cde1b5b162 PanelHeader: Add analytics for non-menu items (#64729) 2023-03-14 14:17:14 +01:00
Ivan Ortega Alba fc8a753892 PanelChrome: Do not show menu when panel is embedded (#64549) 2023-03-13 17:47:52 +01:00
Ivan Ortega Alba f1a17d54cd PanelHeader: Add analytics (#64533) 2023-03-10 12:56:41 +01:00
Ivan Ortega Alba 14e29451cf Loki ds: Interpolation breaks in Loki queries when no scoped vars (#63694) 2023-02-24 00:18:08 -08:00
Ivan Ortega Alba ca4cd85504 InfluxDB ds: Query variable breaks trying to interpolate __interval (#63682) 2023-02-23 20:30:20 +01:00
Ivan Ortega Alba 5bfe098b0a test: use deterministic timestamp to compare snapshots (#61670) 2023-01-23 09:44:10 +01:00
Ivan Ortega Alba 29f8722c91 PanelChrome: Allow hovering on description when status error is visible (#61757) 2023-01-19 14:01:36 +01:00
Ivan Ortega Alba d0f6a3a4ca Scene: Dashboard loader supports transformations & unit tests (#60855)
* Scene: use transformations for panel queries

* refactor: Clean up DashboardLoader class

* test: Add unit tests for creators

* test: Ensure the row herarchy is properly replicated

* test: Ensure the URLSync is initialized

* refactor: Use fixture to create panels
2023-01-04 08:29:22 -05:00
Ivan Ortega Alba 7de81ca673 test: Fix Jest reporter (#60810) 2022-12-29 03:14:09 -05:00
Ivan Ortega Alba 0d65063d0b Jest: Add logger to print test results in Loki friendly format (#59672) 2022-12-27 12:06:06 +01:00
Ivan Ortega Alba 3e52d5e72b Fix: Report E2E result stack trace (#60596) 2022-12-20 20:36:18 +02:00
Ivan Ortega Albaanddsotirakis 3417125553 Reporter: add logger E2E results to be queried by Loki (#58839)
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
2022-11-29 10:59:12 +01:00
Ivan Ortega Alba 1a6b46e98d Scenes: Add support for Datasource variables (#59147) 2022-11-24 13:53:31 +01:00
Ivan Ortega Alba f98ec2c582 Scenes: Add custom variable support (#59057) 2022-11-22 16:30:16 +01:00
Ivan Ortega Alba 766867735d E2E: Fix flakiness for dashboard-search spec (#58950) 2022-11-18 14:55:34 +01:00
Ivan Ortega Alba f4d238cdbd Build: Disable flaky RuleEditor frontend test (#58844) 2022-11-16 16:41:32 +01:00
Ivan Ortega Albaandpolinaboneva 7fd613ec0d E2E: Remove time zone scenario flackyness (#55458)
Co-authored-by: polinaboneva <polina.boneva@grafana.com>
2022-10-05 16:00:33 +03:00
Ivan Ortega Alba bed531f5fb Panel: Disable legends when showLegend is false prior to schema v37 (#55126) 2022-09-14 14:33:03 +02:00
Ivan Ortega Alba fbfe2b2800 Library Panel: Allow to delete it when disabled or deprecated (#54662) 2022-09-05 16:45:45 +02:00
Ivan Ortega Alba 4a0a6c8fd4 Analytics: Rename create dashboard event (#54390) 2022-08-29 16:26:54 +02:00
Ivan Ortega Alba c66c275342 SearchSrv: stop using IDs (#54296)
* SearchSrv: stop using IDs

* Remove IDs from test
2022-08-26 15:41:47 +02:00
Ivan Ortega Alba c332bf885c Migrate to UID: Stop using search result ID (#54099)
* DashList: Stop using IDs

* DashLinks: Stop using IDs

* BackendSrv: Do not use ID for search endpoint

* DashboardDataDTO: Remove ID

* Remove unused properties from DashboardSearchItem
2022-08-26 09:42:46 +02:00
Ivan Ortega Alba 38c690ecb0 Revert "Analytics: Use Fullstory to get behavioral data (#53732)" (#53762)
This reverts commit 961479b111.
2022-08-16 12:45:14 +02:00
Ivan Ortega Alba 961479b111 Analytics: Use Fullstory to get behavioral data (#53732) 2022-08-16 10:32:00 +02:00
Ivan Ortega Alba 6423485061 Preferences: Use search endpoint to get missing dashboard (#53540) 2022-08-11 10:34:01 +02:00
Ivan Ortega Alba 742686bab1 Library Panels: Use UIDs to list Dashboards using a panel (#53477) 2022-08-10 03:43:09 -04:00
Ivan Ortega Alba c9d50ddaaa Search: Track user searches and results interactions (#52949) 2022-07-29 11:30:13 -04:00
Ivan Ortega Alba 2ec01c8d08 Preferences: Use dashboardUID to set the home dashboard (#51919) 2022-07-22 10:44:22 +02:00
Ivan Ortega Alba 3fbec39952 History: list, compare and restore versions using UID (#51989) 2022-07-21 11:52:36 +02:00