Skip to content

Commit 543a4a8

Browse files
fix: update import paths for consistency in utility functions
1 parent 774685b commit 543a4a8

File tree

5 files changed

+137
-8
lines changed

5 files changed

+137
-8
lines changed

frontend/src/components/HomeComponents/DevLogs/__tests__/__snapshots__/DevLogs.test.tsx.snap

Lines changed: 133 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ exports[`DevLogs Component using Snapshot renders open dialog with logs correctl
180180
Refresh
181181
</button>
182182
<button
183-
disabled=""
184183
variant="outline"
185184
>
186185
Copy All
@@ -191,9 +190,140 @@ exports[`DevLogs Component using Snapshot renders open dialog with logs correctl
191190
class="flex-1 overflow-y-auto border rounded-md p-4 bg-gray-50 dark:bg-gray-900"
192191
>
193192
<div
194-
class="text-center py-8 text-gray-500"
193+
class="space-y-2"
195194
>
196-
No logs available
195+
<div
196+
class="p-3 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 hover:shadow-sm transition-shadow group"
197+
>
198+
<div
199+
class="flex justify-between items-start gap-2"
200+
>
201+
<div
202+
class="flex-1 font-mono text-sm"
203+
>
204+
<div
205+
class="flex items-center gap-2 mb-1"
206+
>
207+
<span
208+
class="text-gray-500 dark:text-gray-400"
209+
>
210+
Mon, 01 Jan 2024 12:00:00 GMT
211+
</span>
212+
<span
213+
class="font-semibold text-blue-600 dark:text-blue-400"
214+
>
215+
[INFO]
216+
</span>
217+
<span
218+
class="text-purple-600 dark:text-purple-400 text-xs"
219+
>
220+
SYNC_START
221+
</span>
222+
</div>
223+
<div
224+
class="text-gray-800 dark:text-gray-200 break-words"
225+
>
226+
Sync operation started
227+
</div>
228+
<div
229+
class="text-xs text-gray-500 dark:text-gray-400 mt-1"
230+
>
231+
Sync ID: sync-123
232+
</div>
233+
</div>
234+
<button
235+
class="opacity-0 group-hover:opacity-100 transition-opacity"
236+
variant="ghost"
237+
>
238+
<div>
239+
CopyIcon
240+
</div>
241+
</button>
242+
</div>
243+
</div>
244+
<div
245+
class="p-3 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 hover:shadow-sm transition-shadow group"
246+
>
247+
<div
248+
class="flex justify-between items-start gap-2"
249+
>
250+
<div
251+
class="flex-1 font-mono text-sm"
252+
>
253+
<div
254+
class="flex items-center gap-2 mb-1"
255+
>
256+
<span
257+
class="text-gray-500 dark:text-gray-400"
258+
>
259+
Mon, 01 Jan 2024 12:01:00 GMT
260+
</span>
261+
<span
262+
class="font-semibold text-yellow-600 dark:text-yellow-400"
263+
>
264+
[WARN]
265+
</span>
266+
</div>
267+
<div
268+
class="text-gray-800 dark:text-gray-200 break-words"
269+
>
270+
Warning message
271+
</div>
272+
</div>
273+
<button
274+
class="opacity-0 group-hover:opacity-100 transition-opacity"
275+
variant="ghost"
276+
>
277+
<div>
278+
CopyIcon
279+
</div>
280+
</button>
281+
</div>
282+
</div>
283+
<div
284+
class="p-3 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 hover:shadow-sm transition-shadow group"
285+
>
286+
<div
287+
class="flex justify-between items-start gap-2"
288+
>
289+
<div
290+
class="flex-1 font-mono text-sm"
291+
>
292+
<div
293+
class="flex items-center gap-2 mb-1"
294+
>
295+
<span
296+
class="text-gray-500 dark:text-gray-400"
297+
>
298+
Mon, 01 Jan 2024 12:02:00 GMT
299+
</span>
300+
<span
301+
class="font-semibold text-red-600 dark:text-red-400"
302+
>
303+
[ERROR]
304+
</span>
305+
<span
306+
class="text-purple-600 dark:text-purple-400 text-xs"
307+
>
308+
SYNC_ERROR
309+
</span>
310+
</div>
311+
<div
312+
class="text-gray-800 dark:text-gray-200 break-words"
313+
>
314+
Error occurred
315+
</div>
316+
</div>
317+
<button
318+
class="opacity-0 group-hover:opacity-100 transition-opacity"
319+
variant="ghost"
320+
>
321+
<div>
322+
CopyIcon
323+
</div>
324+
</button>
325+
</div>
326+
</div>
197327
</div>
198328
</div>
199329
</div>

frontend/src/components/HomeComponents/FAQ/FAQ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Accordion } from '@/components/ui/accordion';
22
import { FAQItem } from './FAQItem';
33
import { FAQList } from './faq-utils';
4-
import { BlueHeading } from '@/lib/Utils';
4+
import { BlueHeading } from '@/lib/utils';
55
import { HighlightLink } from '@/components/ui/link-highlight';
66

77
export const FAQ = () => {

frontend/src/components/LandingComponents/FAQ/FAQ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Accordion } from '@/components/ui/accordion';
22
import { FAQItem } from './FAQItem';
33
import { FAQList } from './faq-utils';
4-
import { BlueHeading } from '@/lib/Utils';
4+
import { BlueHeading } from '@/lib/utils';
55
import { url } from '@/components/utils/URLs';
66
import { HighlightLink } from '@/components/ui/link-highlight';
77

frontend/src/components/ui/calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { ChevronLeft, ChevronRight } from 'lucide-react';
33
import { DayPicker } from 'react-day-picker';
44

5-
import { cn } from '@/lib/Utils';
5+
import { cn } from '@/lib/utils';
66
import { buttonVariants } from '@/components/ui/button';
77

88
export type CalendarProps = React.ComponentProps<typeof DayPicker>;

frontend/src/components/ui/date-picker.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { format } from 'date-fns';
22
import { Calendar as CalendarIcon } from 'lucide-react';
3-
4-
import { cn } from '@/lib/Utils';
53
import { Button } from '@/components/ui/button';
64
import { Calendar } from '@/components/ui/calendar';
75
import {
86
Popover,
97
PopoverContent,
108
PopoverTrigger,
119
} from '@/components/ui/popover';
10+
import { cn } from '@/lib/utils';
1211

1312
interface DatePickerProps {
1413
date: Date | undefined;

0 commit comments

Comments
 (0)