The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: remove unused shimmer utility test and CSS
Steven Enamakel4659dceebda5
diff --git a/app/src/__tests__/shimmerUtility.test.ts b/app/src/__tests__/shimmerUtility.test.tsindex 1b59bdeaf1..ac06d24ad4 100644--- a/app/src/__tests__/shimmerUtility.test.ts+++ b/app/src/__tests__/shimmerUtility.test.ts@@ -2,42 +2,29 @@ import { readFileSync } from 'node:fs';import { resolve } from 'node:path';import { describe, expect, it } from 'vitest';-// Read from disk (tests run from `app/`): vitest stubs CSS imports, even-// `?raw`, to empty modules.-const css = readFileSync(resolve('src/index.css'), 'utf8');-/*** The reasoning panel's live label (and the running tool group) apply the- * `shimmer` class. The assistant-ui registry components expect it from the- * `tw-shimmer` plugin, which this app never installed, so the class used to- * match nothing and a streaming trace looked identical to a settled one. This- * pins the in-house `@utility shimmer` so it cannot silently disappear again.+ * `shimmer` class from `tw-shimmer`, the dependency the assistant-ui registry+ * elements declare. This app once shipped those elements without it, so the+ * class matched nothing and a streaming trace looked identical to a settled+ * one. This pins both halves: the package is installed and the stylesheet+ * imports it.*/-describe('shimmer utility', () => {- const block = (() => {- const start = css.indexOf('@utility shimmer {');- if (start === -1) return '';- // The utility body runs to the first closing brace at column 0.- const end = css.indexOf('\n}', start);- return css.slice(start, end + 2);- })();-- it('is defined in index.css', () => {- expect(block, '@utility shimmer is missing from index.css').not.toBe('');- });- it('clips an animated gradient to the text', () => {- expect(block).toMatch(/background-clip:\s*text/);- expect(block).toMatch(/color:\s*transparent/);- expect(block).toMatch(/animation:\s*var\(--animate-shimmer\)/);- });+// Read from disk (tests run from `app/`): vitest stubs CSS imports, even+// `?raw`, to empty modules.+const read = (path: string) => readFileSync(resolve(path), 'utf8');- it('animates with keyframes and a theme variable that exist', () => {- expect(css).toMatch(/--animate-shimmer:\s*shimmer\s/);- expect(css).toMatch(/@keyframes shimmer\s*\{/);+describe('tw-shimmer', () => {+ it('is imported by the app stylesheet', () => {+ expect(read('src/index.css')).toMatch(/@import\s+['"]tw-shimmer['"];/);});- it('stands still for reduced-motion users', () => {- expect(block).toMatch(/prefers-reduced-motion:\s*reduce[\s\S]*animation:\s*none/);+ it('is a declared dependency that provides the `shimmer` utility', () => {+ const pkg = JSON.parse(read('package.json')) as {+ dependencies?: Record<string, string>;+ };+ expect(pkg.dependencies?.['tw-shimmer']).toBeTruthy();+ expect(read('node_modules/tw-shimmer/src/index.css')).toMatch(/@utility shimmer \{/);});});diff --git a/app/src/index.css b/app/src/index.cssindex e18c8c7471..8cb9fd9710 100644--- a/app/src/index.css+++ b/app/src/index.css@@ -15,6 +15,11 @@/* Tailwind CSS imports */@import 'tailwindcss';@import 'tw-animate-css';+/* `shimmer` text effect the assistant-ui registry elements use (the reasoning+ panel's live label, running tool groups). It is the registry's declared+ dependency; without it the class matches nothing and a streaming trace looks+ identical to a settled one. Guarded by `src/__tests__/shimmerUtility.test.ts`. */+@import 'tw-shimmer';@plugin '@tailwindcss/forms';@plugin '@tailwindcss/typography';@@ -545,33 +550,6 @@/* Utility layer - Custom utilities */-/* Text shimmer for live labels ("Thinking…" on the reasoning panel, running- tool groups). The assistant-ui registry components call `shimmer` from the- `tw-shimmer` plugin; this app never installed it, so the class used to be a- silent no-op and a streaming trace looked identical to a settled one. A- light band sweeps across muted text via background-clip, reusing the- `shimmer` keyframes above. Guarded by `src/__tests__/shimmerUtility.test.ts`. */-@utility shimmer {- color: transparent;- background-image: linear-gradient(- 90deg,- var(--color-muted-foreground) 0%,- var(--color-muted-foreground) 35%,- var(--color-foreground) 50%,- var(--color-muted-foreground) 65%,- var(--color-muted-foreground) 100%- );- background-size: 200% 100%;- -webkit-background-clip: text;- background-clip: text;- animation: var(--animate-shimmer);-- @media (prefers-reduced-motion: reduce) {- animation: none;- color: var(--color-muted-foreground);- background-image: none;- }-}@utility scrollbar-hide {/* NOTE: a `.scrollbar-thin` utility used to live here. It had zero call