ID
Title / Context
@@ -606,7 +583,7 @@ export default function NewWorkspacePage(): React.JSX.Element {
{tasksError ? (
@@ -615,6 +592,41 @@ export default function NewWorkspacePage(): React.JSX.Element {
) : null}
+ {tasksLoading && filteredWorkItems.length === 0 ? (
+ // Why: shimmer skeleton stands in for the first ~3 rows while
+ // the initial fetch is in flight, so the card is never empty
+ // or collapsed during load. Only shown when we have no cached
+ // items — on revalidate we keep the stale list visible.
+
+ {Array.from({ length: 3 }).map((_, i) => (
+
+ ))}
+
+ ) : null}
+
{!tasksLoading && filteredWorkItems.length === 0 ? (
No matching GitHub work
diff --git a/src/renderer/src/components/ui/light-rays.tsx b/src/renderer/src/components/ui/light-rays.tsx
deleted file mode 100644
index ca665d2f0..000000000
--- a/src/renderer/src/components/ui/light-rays.tsx
+++ /dev/null
@@ -1,179 +0,0 @@
-'use client'
-
-import { useEffect, useMemo, useState, type CSSProperties } from 'react'
-import { cn } from '@/lib/utils'
-
-type LightRaysProps = {
- ref?: React.Ref
- count?: number
- color?: string
- blur?: number
- speed?: number
- length?: string
-} & React.HTMLAttributes
-
-type LightRay = {
- id: string
- left: number
- rotate: number
- width: number
- swing: number
- delay: number
- duration: number
- intensity: number
-}
-
-const createRays = (count: number, cycle: number): LightRay[] => {
- if (count <= 0) {
- return []
- }
-
- return Array.from({ length: count }, (_, index) => {
- const left = 8 + Math.random() * 84
- const rotate = -28 + Math.random() * 56
- const width = 160 + Math.random() * 160
- const swing = 0.8 + Math.random() * 1.8
- const delay = Math.random() * cycle
- const duration = cycle * (0.75 + Math.random() * 0.5)
- const intensity = 0.6 + Math.random() * 0.5
-
- return {
- id: `${index}-${Math.round(left * 10)}`,
- left,
- rotate,
- width,
- swing,
- delay,
- duration,
- intensity
- }
- })
-}
-
-/**
- * Why: CSS-only implementation of the magic-ui LightRays component to avoid
- * adding a framer-motion dependency. Uses CSS @keyframes for the fade+swing
- * animation cycle that the original drives with motion.animate.
- */
-function Ray({
- left,
- rotate,
- width,
- swing,
- delay,
- duration,
- intensity
-}: LightRay): React.JSX.Element {
- const animName = `ray-fade-swing`
-
- return (
-
- )
-}
-
-export function LightRays({
- className,
- style,
- count = 7,
- color = 'rgba(160, 210, 255, 0.2)',
- blur = 36,
- speed = 14,
- length = '70vh',
- ref,
- ...props
-}: LightRaysProps): React.JSX.Element {
- // Why: users with prefers-reduced-motion should get a static backdrop
- // instead of an animated composite layer — both an accessibility and a
- // perf win on low-end GPUs.
- const prefersReducedMotion = useMemo(() => {
- if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {
- return false
- }
- return window.matchMedia('(prefers-reduced-motion: reduce)').matches
- }, [])
-
- const effectiveCount = prefersReducedMotion ? 0 : count
- const [rays, setRays] = useState([])
- const cycleDuration = Math.max(speed, 0.1)
-
- useEffect(() => {
- setRays(createRays(effectiveCount, cycleDuration))
- }, [effectiveCount, cycleDuration])
-
- return (
-
- {/* Why: the @keyframes block lives here as a
-
-
-
- {rays.map((ray) => (
-
- ))}
-
-
- )
-}