Spaces:
Paused
Paused
fix: add missing Bug icon import and remove duplicate widget exports
Browse files- Add Bug icon import from lucide-react in Widgets.tsx
- Remove duplicate MiniCountryStats and MiniABTest from MiscWidgets.tsx
(they are already exported from AnalyticsWidgets.tsx)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
apps/matrix-frontend/.gitignore
CHANGED
|
@@ -22,3 +22,4 @@ dist-ssr
|
|
| 22 |
*.njsproj
|
| 23 |
*.sln
|
| 24 |
*.sw?
|
|
|
|
|
|
| 22 |
*.njsproj
|
| 23 |
*.sln
|
| 24 |
*.sw?
|
| 25 |
+
.vercel
|
apps/matrix-frontend/src/components/widgets/mini/MiscWidgets.tsx
CHANGED
|
@@ -1,43 +1,6 @@
|
|
| 1 |
import { Sun, Moon, Key, FileText, GitBranch, Layers, Bookmark, Type } from 'lucide-react';
|
| 2 |
|
| 3 |
-
|
| 4 |
-
<div className="h-full flex flex-col gap-0.5">
|
| 5 |
-
{[
|
| 6 |
-
{ country: '🇺🇸 USA', pct: 45 },
|
| 7 |
-
{ country: '🇬🇧 UK', pct: 22 },
|
| 8 |
-
{ country: '🇩🇪 Germany', pct: 15 },
|
| 9 |
-
{ country: '🇫🇷 France', pct: 10 },
|
| 10 |
-
].map(c => (
|
| 11 |
-
<div key={c.country} className="flex items-center gap-2 text-[7px]">
|
| 12 |
-
<span className="w-14 truncate">{c.country}</span>
|
| 13 |
-
<div className="flex-1 h-1.5 bg-secondary rounded-full overflow-hidden">
|
| 14 |
-
<div className="h-full bg-primary" style={{ width: `${c.pct}%` }} />
|
| 15 |
-
</div>
|
| 16 |
-
<span className="w-6 text-right text-primary">{c.pct}%</span>
|
| 17 |
-
</div>
|
| 18 |
-
))}
|
| 19 |
-
</div>
|
| 20 |
-
);
|
| 21 |
-
|
| 22 |
-
export const MiniABTest = () => (
|
| 23 |
-
<div className="h-full flex flex-col gap-1">
|
| 24 |
-
<div className="flex items-center justify-between text-[8px]">
|
| 25 |
-
<span className="text-muted-foreground">A/B Test</span>
|
| 26 |
-
<span className="text-green-400">Running</span>
|
| 27 |
-
</div>
|
| 28 |
-
<div className="flex gap-2">
|
| 29 |
-
<div className="flex-1 bg-secondary/30 rounded p-1 text-center">
|
| 30 |
-
<span className="text-[7px] text-muted-foreground">Variant A</span>
|
| 31 |
-
<span className="text-[10px] font-mono text-primary block">12.4%</span>
|
| 32 |
-
</div>
|
| 33 |
-
<div className="flex-1 bg-primary/20 rounded p-1 text-center border border-primary/30">
|
| 34 |
-
<span className="text-[7px] text-muted-foreground">Variant B</span>
|
| 35 |
-
<span className="text-[10px] font-mono text-primary block">15.2%</span>
|
| 36 |
-
</div>
|
| 37 |
-
</div>
|
| 38 |
-
<span className="text-[6px] text-green-400 text-center">B winning with 95% confidence</span>
|
| 39 |
-
</div>
|
| 40 |
-
);
|
| 41 |
|
| 42 |
export const MiniFeatureFlags = () => (
|
| 43 |
<div className="h-full flex flex-col gap-1">
|
|
|
|
| 1 |
import { Sun, Moon, Key, FileText, GitBranch, Layers, Bookmark, Type } from 'lucide-react';
|
| 2 |
|
| 3 |
+
// MiniCountryStats and MiniABTest are now in AnalyticsWidgets.tsx to avoid duplicate exports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
export const MiniFeatureFlags = () => (
|
| 6 |
<div className="h-full flex flex-col gap-1">
|
apps/matrix-frontend/src/pages/Widgets.tsx
CHANGED
|
@@ -105,7 +105,8 @@ import {
|
|
| 105 |
GitBranch,
|
| 106 |
DollarSign,
|
| 107 |
Skull,
|
| 108 |
-
Grid
|
|
|
|
| 109 |
} from 'lucide-react';
|
| 110 |
import MatrixRain from '@/components/MatrixRain';
|
| 111 |
import CyberCard from '@/components/CyberCard';
|
|
|
|
| 105 |
GitBranch,
|
| 106 |
DollarSign,
|
| 107 |
Skull,
|
| 108 |
+
Grid,
|
| 109 |
+
Bug
|
| 110 |
} from 'lucide-react';
|
| 111 |
import MatrixRain from '@/components/MatrixRain';
|
| 112 |
import CyberCard from '@/components/CyberCard';
|