-
Notifications
You must be signed in to change notification settings - Fork 2
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
Major overhaul of charts #44
Conversation
And keep track of a global state
For datepicker
This way switching tabs means queries no longer disappear (as they are hidden by default right now) Not just in the react app. This way when you switch tabs data is
Between SingleChart and the Multi/Functions chart
<StyledButton | ||
onClick={() => { | ||
navigator.clipboard.writeText(query); | ||
if (ref.current) { |
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 think you can safely combine the two ifs here? perhaps i'm missing something
|
||
export function FunctionChart(props: Props) { | ||
const { query, timeRange, setTimeRange, title, description = "" } = props; | ||
export const FunctionChart = function FunctionChart(props: Props) { |
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.
export const FunctionChart = function FunctionChart(props: Props) { | |
export function FunctionChart(props: Props) { |
src/charts/utils/loadingGraph.ts
Outdated
import { getNonce } from "../../utils"; | ||
import { vscode } from "../chart"; | ||
|
||
const requests: Record<string, (result: Result<Timeseries[], String>) => void> = |
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'm not sure how often items are changed in requests
, but it might be beneficial performance-wise to use Map here instead
This PR:
output.mp4