Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:

- run: npx playwright install chromium

- run: vp run fmt:check
- name: Check
run: vp run check

- run: vp run lint --format github
- name: Test
run: vp run test

- run: vp run test
- name: Build
run: vp run @vibe/dashboard#build

- run: vp run @vibe/dashboard#build

- run: vp run ready
- name: Ready
run: vp run ready
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/rolldown/BundleSizeChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export function BundleSizeChart() {
}}
style={{ fontSize: "11px", fill: "#94a3b8" }}
/>
{bundleSizeDiffData.map((entry: any, index: number) => (
{bundleSizeDiffData.map((entry: any) => (
<Cell
key={`cell-${index}`}
key={`cell-${entry.name}`}
fill={entry.isBaseline ? "#94a3b8" : entry.value >= 0 ? "#dc2626" : "#16a34a"}
/>
))}
Expand Down
9 changes: 3 additions & 6 deletions apps/dashboard/src/context/SidebarContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext, useContext, useState } from "react";
import { createContext, useContext, useMemo, useState } from "react";

interface SidebarContextType {
collapsed: boolean;
Expand All @@ -9,12 +9,9 @@ const SidebarContext = createContext<SidebarContextType | undefined>(undefined);

export function SidebarProvider({ children }: { children: React.ReactNode }) {
const [collapsed, setCollapsed] = useState(false);
const value = useMemo(() => ({ collapsed, setCollapsed }), [collapsed]);

return (
<SidebarContext.Provider value={{ collapsed, setCollapsed }}>
{children}
</SidebarContext.Provider>
);
return <SidebarContext.Provider value={value}>{children}</SidebarContext.Provider>;
}

export function useSidebar() {
Expand Down
2 changes: 1 addition & 1 deletion data/rolldown-version-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -889,4 +889,4 @@
"totalSize": 720281,
"buildTime": 917
}
]
]
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@
"description": "A frontend dashboard for displaying different metrics",
"type": "module",
"scripts": {
"ready": "vite run fmt && vite run lint && vite run test && vite run build",
"ready": "vite run check && vite run test && vite run build",
"dev": "vite run @vibe/dashboard#dev",
"build": "vite run @vibe/dashboard#build",
"lint": "vite lint --deny-warnings --type-aware --type-check",
"check": "vp check",
"check:fix": "vp check --fix",
"test": "vite test",
"fmt": "vite fmt",
"fmt:check": "vite fmt --check",
"cache:clean": "vite cache clean",
"generate": "node tools/override-rolldown.mjs --stats"
"generate": "node tools/override-rolldown.mjs --stats",
"prepare": "husky"
},
"devDependencies": {
"husky": "catalog:",
"lint-staged": "catalog:",
"playwright": "catalog:",
"top-github-dependents-by-stars": "catalog:",
"vite-plus": "catalog:"
},
"lint-staged": {
"*": "vp check --fix"
},
"packageManager": "pnpm@10.26.0"
}
902 changes: 653 additions & 249 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ catalog:
semver: ^7.7.2
tailwindcss: ^4.1.13
top-github-dependents-by-stars: ^1.0.4
husky: ^9.1.7
lint-staged: ^16.2.7
typescript: ^5.9.2
vite: npm:@voidzero-dev/vite-plus-core@latest
vite-plus: 0.0.0-ffb4d08a8edafe855c59736c0a38ee85a2373ebb
vite-plus: 0.0.0-g61d318d2.20260227-0939
vitest: npm:@voidzero-dev/vite-plus-test@latest

minimumReleaseAge: 1440
Expand Down