-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add query history to the Preview Web UI #24972
Conversation
@koszti sure! I will :) |
Please follow style from #24981 now |
a8da2f3
to
e1cadb6
Compare
@mosabua np, done |
"sass": "^1.81.0", | ||
"zustand": "^5.0.1" | ||
"sass": "^1.83.4", | ||
"zustand": "^5.0.3" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.14.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this file have a stable order of elements? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is auto generated by npm. Am i missing something?
@@ -78,6 +78,66 @@ export interface WorkerStatusInfo { | |||
uptime: string | |||
} | |||
|
|||
export interface QueryStats { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like these typed response classes 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
luckily the auto completion works too in IDEs
const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)') | ||
|
||
const styleToUse = () => { | ||
if (config.theme === ThemeStore.Auto) { | ||
return prefersDarkMode ? materialDark : materialLight | ||
return prefersDarkMode ? a11yDark : materialLight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a11 light? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just couple of visual nits
e1cadb6
to
4efd1a2
Compare
I updated and made the following changes:
I tried so hard few days ago but couldn’t get the wrap lines to work and ran out of ideas. I thought no one would notice, but it turns out that wasn’t the case!. :) |
4efd1a2
to
b39a5c6
Compare
|
Oh .. sorry for the churn.. didnt realize you already removed it .. I think we can remove it once we have an example usage for each component .. that might be the case already now.. dont know myself |
b39a5c6
to
b241d4d
Compare
no worries, I was wrong. Making it hidden was pretty easy actually. Now it's hidden in the menu bar but it's still accessible at http://localhost:5173/ui/preview#/demo-components |
Awesome |
@wendigo wdyt, can this be merged? |
@koszti 👍🏻 |
Description
Add Query History with search to the preview UI. Partially addressing #22697
NOTE: The layout of the metric cards at the top is currently broken, which could lead to layout issues if the values begin to change. This may become more pronounced when running queries, particularly when testing the query history and filter functions. Please note that this layout issue is outside the scope of the current PR and will be resolved separately by another PR.
Additional context and related issues
Retains the same functionality as the existing web UI, enhanced with the updated layout, design, and user experience.
Screenshots
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: