Skip to content

Commit dee2495

Browse files
committed
emojis are gross
1 parent 9dd4b33 commit dee2495

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

apps/dashboard/components/charts/annotation-modal.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import { EyeIcon, EyeSlashIcon, PlusIcon, XIcon } from "@phosphor-icons/react";
4+
import { Loader2 } from "lucide-react";
45
import { useEffect, useState } from "react";
56
import { useHotkeys } from "react-hotkeys-hook";
67
import { Badge } from "@/components/ui/badge";
@@ -373,9 +374,7 @@ export function AnnotationModal(props: AnnotationModalProps) {
373374
disabled={!text.trim() || loading}
374375
onClick={handleSubmit}
375376
>
376-
{loading && (
377-
<div className="mr-2 size-4 animate-spin rounded-full border-2 border-current border-t-transparent" />
378-
)}
377+
{loading ? <Loader2 className="mr-2 size-4 animate-spin" /> : null}
379378
{isCreate ? "Create annotation" : "Save changes"}
380379
</Button>
381380
</DialogFooter>

apps/dashboard/components/charts/metrics-chart-with-annotations.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function MetricsChartWithAnnotations({
151151
loading: "Creating annotation...",
152152
success: () => {
153153
refetchAnnotations();
154-
return "Annotation created successfully! 🎉";
154+
return "Annotation created successfully!";
155155
},
156156
error: (err) => {
157157
console.error("Failed to create annotation:", err);
@@ -228,7 +228,7 @@ export function MetricsChartWithAnnotations({
228228
/>
229229

230230
{/* Edit Annotation Modal */}
231-
{editingAnnotation && (
231+
{editingAnnotation ? (
232232
<AnnotationModal
233233
annotation={editingAnnotation}
234234
isOpen={true}
@@ -237,7 +237,7 @@ export function MetricsChartWithAnnotations({
237237
onClose={closeEditModal}
238238
onSubmit={handleSaveAnnotation}
239239
/>
240-
)}
240+
) : null}
241241
</>
242242
);
243243
}

apps/dashboard/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Checkbox({
1313
return (
1414
<CheckboxPrimitive.Root
1515
className={cn(
16-
'peer size-4 shrink-0 rounded-[4px] border border-input outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40',
16+
'peer cursor-pointer size-4 shrink-0 overflow-hidden disabled:data-[state=checked]:border-foreground rounded-sm data-[state=checked]:border-blue-700 data-[state=unchecked]:badge-angled-rectangle-gradient data-[state=checked]:blue-angled-rectangle-gradient border border-accent-brighter outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 dark:aria-invalid:ring-destructive/40',
1717
className
1818
)}
1919
data-slot="checkbox"

apps/dashboard/components/ui/input.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
5050
<input
5151
ref={ref}
5252
className={cn(
53-
'peer flex h-9 text-[13px] placeholder:text-[13px] w-full min-w-0 rounded border px-3 py-1 text-sm outline-none transition-all selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
54-
'bg-accent/40 dark:bg-input/30',
55-
'focus-visible:bg-background focus-visible:border-primary/50 focus-visible:blue-angled-rectangle-gradient',
56-
'aria-invalid:border-destructive aria-invalid:red-angled-rectangle-gradient',
53+
'peer flex h-9 text-[13px] placeholder:text-[13px] w-full min-w-0 rounded-sm border border-accent-brighter px-3 py-1 text-sm outline-none transition-all selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
54+
'bg-input dark:bg-input/80',
55+
'focus-visible:bg-background focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:blue-angled-rectangle-gradient',
56+
'aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:red-angled-rectangle-gradient dark:aria-invalid:ring-destructive/40',
5757
variant === 'ghost' &&
5858
'border-transparent bg-transparent hover:bg-accent/30 focus-visible:bg-accent/50',
5959
className
@@ -64,7 +64,6 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
6464
onBlur={handleBlur}
6565
{...props}
6666
/>
67-
{/* Animated focus indicator line */}
6867
{showFocusIndicator && (
6968
<motion.span
7069
className={cn(

0 commit comments

Comments
 (0)