Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/ui/Alert.test.tsx

Steven Enamakel44fc85a0485e
diff --git a/app/src/components/ui/Alert.test.tsx b/app/src/components/ui/Alert.test.tsx
index 2582998256..a99df25d24 100644
--- a/app/src/components/ui/Alert.test.tsx
+++ b/app/src/components/ui/Alert.test.tsx
@@ -1,12 +1,21 @@
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
-import { Alert, AlertDescription, AlertTitle, type AlertVariant } from './Alert';
+import { Alert, AlertDescription, AlertTitle, alertVariants, type AlertVariant } from './Alert';
const RAW_PALETTE = /\b(?:bg|text|border|ring)-(?:neutral|stone|slate|canvas|white|black)\b/;
const VARIANTS: AlertVariant[] = ['default', 'info', 'success', 'warning', 'destructive'];
+/**
+ * The class attribute every existing call site produced before `density`
+ * existed. Every default-density assertion below compares against this, so a
+ * later variant addition cannot silently reshape the ~34 alerts already in the
+ * tree.
+ */
+const BASE_GEOMETRY = ['rounded-xl', 'px-4', 'py-3', 'text-sm'] as const;
+const COMPACT_GEOMETRY = ['rounded-lg', 'px-3', 'py-2', 'text-xs'] as const;
+
describe('Alert', () => {
it('renders its title and description', () => {
render(