-
-
Notifications
You must be signed in to change notification settings - Fork 970
Query improvements #2905
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
Merged
+7,863
−2,394
Merged
Query improvements #2905
Changes from all commits
Commits
Show all changes
165 commits
Select commit
Hold shift + click to select a range
0ebfbfc
Updates recharts to 2.15.2
samejr 0f2954e
Updated Chart.tsx with latest from shadcn install guide
samejr 19171e5
Initial setup for new charts in storybook
samejr fdef069
Adds a basic Card component
samejr bcbac73
Adds big number chart
samejr 1ecbb3b
Adds mock data for line chart
samejr 8b5a8ae
Adds loading spinners
samejr 5efe10d
Tooltip invalid style fixes
samejr 3114ccd
Adds stacked chart
samejr 1de951a
Typo
samejr 6ffb7e1
Adding more chart types
samejr bfc6b0f
Adds a custom legend that displays the chart values
samejr ea1e1bf
Adds a tooltip to display x axis data
samejr 09ae94a
Moves some hard coded data out of the chart component
samejr 9842430
Update legend values when you hover on the chart
samejr 8b9dd7f
Uses the AnimatedNumber to animate between the values in the legend
samejr fb77c83
Updates the axis font size
samejr eec68b0
Figure out which bar in the stack you’re hovering over
samejr cbda3dc
Much better solution to figuring out what bar in a stack your mouse i…
samejr 8ed11b8
Brighten the legend text when it’s highlighted
samejr 47ab8e3
Better chart spacing
samejr e917013
Small style improvements
samejr ae9e36c
Improves resetting the state of the chart values on mouse leave
samejr 0b0557a
Small style improvements
samejr dd52123
Adds a big dataset bar chart
samejr f41d5f8
Caps the number of items in the legend to 5
samejr 6a5c34f
Fix random generated chart data console error
samejr df80383
adds a key
samejr 8216dbb
Show the item being hovered over as the last item in the legend
samejr c0e5067
Bar chart can have an optional reference line
samejr 311c199
Adds a zoomable bar chart
samejr 9e904b1
Don’t select text when you drag on the chart
samejr 911d33a
fixes legend numbers updating
samejr 9887553
Moves different charts to their own files
samejr 41504fe
Turn off chart animations
samejr c63396a
Todo update
samejr 774efde
storybook chart page updates
samejr c43bedf
Sets the chart data when zooming to only get the new start and end dates
samejr bf11bf0
Hovering over a single bar in a stack highlights only that bar
samejr 90f7cd9
When dragging to select a zoom range, show the dates that will be sel…
samejr 5b11978
Remove the mouse scroll wheel to zoom
samejr 6ca4746
Removes the animation transition when you hover over the bars
samejr 972a1ea
Removes old example charts
samejr 5c4b609
Tidy imports
samejr 3ead545
Fix import for bigNumber
samejr 20f52ad
Improves the ReferenceLine look and behviour
samejr 96a8505
Don’t dim the chart bars when dragging to zoom
samejr 178334a
Clean up the mouseMove function + add crosshair mouse pointer
samejr 6d13015
Speed up the animating numbers
samejr a8adce6
Todo updates
samejr c314b7d
Show a message if the zoom range is too small
samejr 7a30d0d
todos update
samejr f1fc99e
Bar stack is more visible
samejr 9eb9604
Move the date data up to the route so all charts can update when zooming
samejr 69eb264
Alphabetize the storybook side menu
samejr 989b067
Toggle to switch the chart states in storybook
samejr e915d99
Adds different chart states like loading, no data, invalid
samejr 96b3d66
todo update
samejr 9da5cea
Small improvement to the tooltip style
samejr d9cf6f8
Improved chart loading states
samejr 1e1b1b9
Improves layout of the loading states + animation tweak
samejr 1d429a8
Todos update
samejr 10c7035
Add min-height to the charts
samejr 9637bf8
Small card component update
samejr 2ddb6b9
2 new svg icons
samejr a9a087b
Show more x axis values but hide them on hover
samejr ac3c7f1
Surface stackId prop
samejr ce8aedf
Moves the chartState to the main Chart component
samejr 10dd6a5
Added some more types
samejr 5916d0e
Small improvements
samejr 476dc1e
Removes NamedIcon page from storybook
samejr 290d9fc
Updates the semented control to have better variants controls
samejr af9117a
Update line chart style and data
samejr a6dde44
Adds a loading state for the line chart
samejr d298232
Adds loading states for line charts
samejr 95ca34b
Fix for bad import
matt-aitken 4242599
Trying to integrate the chart into the app
matt-aitken 121479e
Started refactor
matt-aitken f75e624
Lines/bars actually appear again
matt-aitken e0810b4
Some fixes. Legend displaying
matt-aitken eab3895
Smaller legend font
matt-aitken e71e563
Zooming displays properly but just logs and doesn't zoom yet
matt-aitken 62c2cea
Removed duplicate storybook nav items
matt-aitken d48844a
Zooming working
matt-aitken c38fb60
Storybook route data updated
matt-aitken 3f0b667
Show total in legend
matt-aitken 599dae1
Added label when hovering for total
matt-aitken 011c8ee
Nicer title label formatting
matt-aitken 3eecac6
Chart is showing, but needs styling
matt-aitken 1ab011a
WIP with layout changes to query
matt-aitken 864cf88
Added PopoverArrowTrigger variants
matt-aitken 73646d2
Improved the layout with the stats and buttons
matt-aitken b88d471
Fix for type errors
matt-aitken 9357b44
Improved the graph layout
matt-aitken 1f42d81
Separated the Query stuff into more files as it was… long
matt-aitken 602bd51
The graph now renders in a <Card>
matt-aitken 1da8368
Switching to using ReactTable WIP
matt-aitken 86bd4db
It now renders reasonably well
matt-aitken 36bbe94
Fix for copy button not being on the right
matt-aitken a0974e2
Resizable columns
matt-aitken 4dd19ac
Clipping columns
matt-aitken c2c0f80
Added column filtering
matt-aitken c16fcbf
Filter against formatted values too
matt-aitken a2211ed
Nicer filtering styles
matt-aitken d7dd089
Sorting
matt-aitken 757de45
Overscan increased to 20
matt-aitken cef63be
Working on fixing the Table scrolling
matt-aitken a13d30e
Fixed table scrolling
matt-aitken bb5018c
Make Query scope clearer
matt-aitken 511dc88
When narrow fixed tabs/stats layout
matt-aitken 00a8a2d
Better filtering behaviour
matt-aitken bbde1cb
Legend hover improved
matt-aitken c8e6ebe
Environment col shows slug. Improved table header styles
matt-aitken 76f6c7b
Don't have a size on the environment slug component
matt-aitken 1259353
whereClauseFallback added to TSQL
matt-aitken eeb476c
Query date picker works
matt-aitken 3caf161
Improved date filter display
matt-aitken bffbf37
Fixed loading state
matt-aitken 4d72ade
Remove console.log
matt-aitken c172447
UI updates if triggered is set in the query
matt-aitken 3ea6bc2
Support multiple series
matt-aitken 357a4d9
Usage graph
matt-aitken 7292440
No data check should only care about null/undefined
matt-aitken d0ede77
Multiple series
matt-aitken 520fa6a
Only hide bar labels when zoom is enabled
matt-aitken e7ed8ff
Usage label $ not ($)
matt-aitken d3a2bd1
Don't save repeated queries to the history
matt-aitken fcd2ce5
Always start the y-axis at 0
matt-aitken 19e41fa
Indigo resize handles
matt-aitken 4e6ebd7
Fix for bar widths being wrong in small datasets
matt-aitken dfd1075
When editing the time period it does the query again
matt-aitken 45a616a
Fix for line/area chart hovering
matt-aitken 90e8002
The AI updates the time filter
matt-aitken d10ed35
useLocalString instead of toLocaleDateString
matt-aitken 85cda5d
Legend values should be numbers
matt-aitken 34daf54
Removed legacy/deprecated charts
matt-aitken 6807a8f
Need to use ClientOnly around random elements
matt-aitken 21483f6
Shared the `AITimeFilter` type
matt-aitken 95ae603
formatBytes protection from divide by zero
matt-aitken df3521c
Force TypeScript to 5.5.4
matt-aitken 0ed6b51
Make sure the column is wide enough for the header cell
matt-aitken e1a4ebd
Tooltip on the time picker when it's disabled
matt-aitken 1f5b0f4
Fixed header alignment
matt-aitken ed0fd70
Fixed time filtering and page reloading
matt-aitken e21b778
Save the query date range
matt-aitken fc696c4
Fix for hydration errors and option to hide date
matt-aitken 8806ee8
Nicer AI streaming
matt-aitken 89007b9
Don't repeat the date when showing a range
matt-aitken 81c4ba6
Time filtering fixes
matt-aitken 0bc9820
Fixed old import
matt-aitken d347d72
Don't show "Triggered" on the filter
matt-aitken 58d0d8e
Don't show the normal recharts legend
matt-aitken 8b71097
Chart fullscreen
matt-aitken 560e634
Fullscreen from the legend
matt-aitken 1fa5947
Fit the chart in the container (inc legend)
matt-aitken 4c09958
Make includeDate optional
matt-aitken c528e0b
Removed unused code
matt-aitken c6a07ef
Removed stray comment
matt-aitken b03c7f7
Share time filter tool code
matt-aitken 191327f
isSameDay fixed
matt-aitken 84b05d6
Better AppliedFilter label hiding
matt-aitken 8eb423a
Chart axis for negative vals fix
matt-aitken 9d46312
Fixed totalling of chart series
matt-aitken ed8e1a8
Fix for Rendered more hooks than during the previous render.
matt-aitken 146077e
Fix for inconsistent date handling for graphs
matt-aitken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| export function AbacusIcon({ className }: { className?: string }) { | ||
| return ( | ||
| <svg className={className} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| <g clipPath="url(#clip0_16909_120578)"> | ||
| <path | ||
| d="M4 3V21" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M20 21V3" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M8 5L8 6" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M14 5L14 6" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M15 10L15 11" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M9 10L9 11" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M12 15L12 16" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M8 15L8 16" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| <path | ||
| d="M3 21H21" | ||
| stroke="currentColor" | ||
| strokeWidth="2" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| /> | ||
| </g> | ||
| </svg> | ||
| ); | ||
| } | ||
22 changes: 22 additions & 0 deletions
22
apps/webapp/app/assets/icons/ArrowTopRightBottomLeftIcon.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| export function ArrowTopRightBottomLeftIcon({ className }: { className?: string }) { | ||
| return ( | ||
| <svg className={className} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| <path | ||
| d="M14.8258 10.5L20.125 5.20083V8.5625C20.125 9.08027 20.5447 9.5 21.0625 9.5C21.5803 9.5 22 9.08027 22 8.5625V2.9375C22 2.41973 21.5803 2 21.0625 2H15.4375C14.9197 2 14.5 2.41973 14.5 2.9375C14.5 3.45527 14.9197 3.875 15.4375 3.875H18.7992L13.5 9.17417C13.1339 9.54029 13.1339 10.1339 13.5 10.5C13.8661 10.8661 14.4597 10.8661 14.8258 10.5Z" | ||
| fill="currentColor" | ||
| /> | ||
| <path | ||
| d="M2 21.0625V15.4375C2 14.9197 2.41973 14.5 2.9375 14.5C3.45527 14.5 3.875 14.9197 3.875 15.4375V18.7992L9.17417 13.5C9.54029 13.1339 10.1339 13.1339 10.5 13.5C10.8661 13.8661 10.8661 14.4597 10.5 14.8258L5.20083 20.125H8.5625C9.08027 20.125 9.5 20.5447 9.5 21.0625C9.5 21.5803 9.08027 22 8.5625 22H2.9375C2.69757 22 2.45765 21.9085 2.27459 21.7254C2.1847 21.6355 2.11689 21.5319 2.07114 21.4214C2.0253 21.3108 2 21.1896 2 21.0625Z" | ||
| fill="currentColor" | ||
| /> | ||
| <path | ||
| d="M14.8258 10.5L20.125 5.20083V10C20.125 10.5178 20.5447 10.9375 21.0625 10.9375C21.5803 10.9375 22 10.5178 22 10V2.9375C22 2.41973 21.5803 2 21.0625 2H14C13.4822 2 13.0625 2.41973 13.0625 2.9375C13.0625 3.45527 13.4822 3.875 14 3.875H18.7992L13.5 9.17417C13.1339 9.54029 13.1339 10.1339 13.5 10.5C13.8661 10.8661 14.4597 10.8661 14.8258 10.5Z" | ||
| fill="currentColor" | ||
| /> | ||
| <path | ||
| d="M2 21.0625V13.9375C2 13.4197 2.41973 13 2.9375 13C3.45527 13 3.875 13.4197 3.875 13.9375V18.7992L9.17417 13.5C9.54029 13.1339 10.1339 13.1339 10.5 13.5C10.8661 13.8661 10.8661 14.4597 10.5 14.8258L5.20083 20.125H10.0625C10.5803 20.125 11 20.5447 11 21.0625C11 21.5803 10.5803 22 10.0625 22H2.9375C2.69757 22 2.45765 21.9085 2.27459 21.7254C2.1847 21.6355 2.11689 21.5319 2.07114 21.4214C2.0253 21.3108 2 21.1896 2 21.0625Z" | ||
| fill="currentColor" | ||
| /> | ||
| </svg> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.