File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -753,14 +753,17 @@ export default function StatsGraphTab() {
753753 < div className = "flex flex-col gap-3" >
754754 < Input
755755 type = "time"
756- id = "time-picker"
756+ id = "time-picker-start "
757757 step = "1"
758758 defaultValue = "01:00:00"
759- onChange = { ( time ) => {
760- startDate ?. setHours ( parseInt ( time . target . value . split ( ":" ) [ 0 ] ) ) ;
761- startDate ?. setMinutes (
762- parseInt ( time . target . value . split ( ":" ) [ 1 ] ) ,
763- ) ;
759+ onChange = { ( e ) => {
760+ if ( startDate ) {
761+ const newDate = new Date ( startDate ) ;
762+ const [ hours , minutes ] = e . target . value . split ( ":" ) ;
763+ newDate . setHours ( parseInt ( hours ) ) ;
764+ newDate . setMinutes ( parseInt ( minutes ) ) ;
765+ setStartDate ( newDate ) ;
766+ }
764767 } }
765768 className = "bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
766769 />
@@ -798,9 +801,18 @@ export default function StatsGraphTab() {
798801 < div className = "flex flex-col gap-3" >
799802 < Input
800803 type = "time"
801- id = "time-picker"
804+ id = "time-picker-end "
802805 step = "1"
803806 defaultValue = "01:00:00"
807+ onChange = { ( e ) => {
808+ if ( endDate ) {
809+ const newDate = new Date ( endDate ) ;
810+ const [ hours , minutes ] = e . target . value . split ( ":" ) ;
811+ newDate . setHours ( parseInt ( hours ) ) ;
812+ newDate . setMinutes ( parseInt ( minutes ) ) ;
813+ setEndDate ( newDate ) ;
814+ }
815+ } }
804816 className = "bg-background appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
805817 />
806818 </ div >
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ const badgeVariants = cva(
2424) ;
2525
2626export interface BadgeProps
27- extends React . HTMLAttributes < HTMLDivElement > ,
27+ extends
28+ React . HTMLAttributes < HTMLDivElement > ,
2829 VariantProps < typeof badgeVariants > { }
2930
3031function Badge ( { className, variant, ...props } : BadgeProps ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ const buttonVariants = cva(
3434) ;
3535
3636export interface ButtonProps
37- extends React . ButtonHTMLAttributes < HTMLButtonElement > ,
37+ extends
38+ React . ButtonHTMLAttributes < HTMLButtonElement > ,
3839 VariantProps < typeof buttonVariants > {
3940 asChild ?: boolean ;
4041}
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ const sheetVariants = cva(
5050) ;
5151
5252interface SheetContentProps
53- extends React . ComponentPropsWithoutRef < typeof SheetPrimitive . Content > ,
53+ extends
54+ React . ComponentPropsWithoutRef < typeof SheetPrimitive . Content > ,
5455 VariantProps < typeof sheetVariants > { }
5556
5657const SheetContent = React . forwardRef <
Original file line number Diff line number Diff line change @@ -172,7 +172,10 @@ export async function fetchTelemetryDataInRange(
172172 }
173173 }
174174
175- return mapTelemetryData < number > ( transformedRow ) ;
175+ return {
176+ ...mapTelemetryData < number > ( transformedRow ) ,
177+ created_at : transformedRow . created_at ,
178+ } ;
176179 } ) ;
177180 } catch ( error ) {
178181 console . error ( "Error fetching telemetry data in range:" , error ) ;
You can’t perform that action at this time.
0 commit comments