-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Description
While reviewing the current implementation of our Datasource plugin editor in Grafana, We noticed that several UI components and APIs being used are either deprecated or outdated. This could lead to long-term maintenance issues and limit compatibility with future Grafana releases.
🔍 Observations
1. Outdated UI Components
- The editor currently uses components like
<Select>
, which have been deprecated or are not recommended for use in newer Grafana plugin development. - These components may lack support for features like:
- Dynamic filtering
- Keyboard accessibility
- Enhanced UX (e.g., search-as-you-type)
2. Deprecated Variable Editor API
- The plugin currently uses
setVariableQueryEditor
, which is now deprecated. - Grafana recommends using either
StandardVariableSupport
orDatasourceVariableSupport
depending on the datasource needs.
✅ Proposed Fix
UI Improvements
- Replace all deprecated
<Select>
components with the ComboBox component from the Grafana UI toolkit. - Ensure that the new components support search, accessibility, and dynamic options.
Variable Editor Refactor
- Migrate away from
setVariableQueryEditor
. - Implement either
StandardVariableSupport
orDatasourceVariableSupport
as per the plugin’s structure and functionality.
📦 Benefits
- Aligns with Grafana's latest plugin development standards.
- Reduces tech debt and future migration effort.
- Provides a better and more modern configuration experience for users.
- Ensures longer-term compatibility and community support.
Metadata
Metadata
Labels
No labels