Skip to content

Commit

Permalink
downgrade promql code mirror to avoid warning, add keys to tooltip bu…
Browse files Browse the repository at this point in the history
…ttons

Signed-off-by: Gabriel Bernal <[email protected]>
Signed-off-by: Gabriel Bernal <[email protected]>
  • Loading branch information
jgbernalp committed Feb 12, 2025
1 parent 9fe475c commit a3ae25c
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 43 deletions.
86 changes: 47 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions prometheus/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@perses-dev/prometheus",
"private": true,
"version": "0.5.0",
"version": "0.5.1",
"scripts": {
"dev": "rsbuild dev",
"build": "rsbuild build",
Expand All @@ -12,10 +12,10 @@
"dependencies": {
"@module-federation/enhanced": "^0.8.9",
"@nexucis/fuzzy": "^0.5.1",
"@prometheus-io/codemirror-promql": "^0.301.0",
"@perses-dev/explore": "0.0.0-snapshot-explorer-plugin-c4a7621",
"@prometheus-io/codemirror-promql": "^0.45.6",
"color-hash": "^2.0.2",
"qs": "^6.13.0",
"@perses-dev/explore": "0.0.0-snapshot-explorer-plugin-c4a7621"
"qs": "^6.13.0"
},
"peerDependencies": {
"@emotion/react": "^11.7.1",
Expand Down
2 changes: 2 additions & 0 deletions prometheus/src/components/PromQLEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function PromQLEditor({ completeConfig, datasource, ...rest }: PromQLEdit
onClick={handleShowTreeView}
sx={{ position: 'absolute', right: '5px', top: '5px' }}
size="small"
key="tree-view-button"
>
<FileTreeIcon sx={{ fontSize: '18px' }} />
</IconButton>
Expand All @@ -115,6 +116,7 @@ export function PromQLEditor({ completeConfig, datasource, ...rest }: PromQLEdit
onClick={() => setTreeViewVisible(false)}
sx={{ position: 'absolute', top: '5px', right: '5px' }}
size="small"
key="tree-view-close-button"
>
<CloseIcon sx={{ fontSize: '18px' }} />
</IconButton>
Expand Down

0 comments on commit a3ae25c

Please sign in to comment.