- Mount CommandRegistryProvider in (dashboard)/layout.tsx and a CommandMenu that binds the global Cmd-K / Ctrl-K hotkey (useCommandPalette) and lazy-loads the dialog via next/dynamic (own chunk; dynamic target is a local re-export command-palette-dialog.tsx because the package declares only an `import` export condition). - src/lib/admin-commands.ts: pure builder for 21 navigate-mode commands across the major surfaces (Users, Subscriptions, Licenses, Billing, Usage, Broadcasts, Flags, Experiments, Audit, Ops, …) plus theme-toggle and sign-out actions wired to the existing auth/theme contexts; onNavigate -> router.push. - @bytelyst/command-palette added as workspace:* (importer-only lockfile change; --frozen-lockfile clean). - vitest.config: inline command-palette + dedupe react for the interaction test. Tests: pure command-set assertions + a happy-dom Cmd-K/Ctrl-K interaction test (react-dom/client + act, no new deps). Verify: typecheck+lint+build green (123 routes); vitest 19 files / 165 tests (+6); format:check no new failures; e2e 11 passed / 80 failed (unchanged vs UX-1 baseline — environmental, no backend). Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
91 lines
2.7 KiB
JSON
91 lines
2.7 KiB
JSON
{
|
|
"name": "@bytelyst/admin-web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build --webpack",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"typecheck": "tsc --noEmit",
|
|
"check": "tsc --noEmit && eslint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"build:analyze": "ANALYZE=true next build",
|
|
"test:coverage": "vitest run --coverage",
|
|
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
|
|
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
|
|
"size:check": "bundlesize",
|
|
"prepare": "husky install"
|
|
},
|
|
"dependencies": {
|
|
"@azure/cosmos": "^4.9.1",
|
|
"@azure/identity": "^4.13.0",
|
|
"@azure/keyvault-secrets": "^4.10.0",
|
|
"@bytelyst/api-client": "workspace:*",
|
|
"@bytelyst/auth": "workspace:*",
|
|
"@bytelyst/charts": "workspace:*",
|
|
"@bytelyst/command-palette": "workspace:*",
|
|
"@bytelyst/config": "workspace:*",
|
|
"@bytelyst/cosmos": "workspace:*",
|
|
"@bytelyst/dashboard-components": "workspace:*",
|
|
"@bytelyst/data-viz": "workspace:*",
|
|
"@bytelyst/datastore": "workspace:*",
|
|
"@bytelyst/design-tokens": "workspace:*",
|
|
"@bytelyst/devops": "workspace:*",
|
|
"@bytelyst/errors": "workspace:*",
|
|
"@bytelyst/extraction": "workspace:*",
|
|
"@bytelyst/logger": "workspace:*",
|
|
"@bytelyst/react-auth": "workspace:*",
|
|
"@bytelyst/telemetry-client": "workspace:*",
|
|
"@bytelyst/ui": "workspace:*",
|
|
"@radix-ui/react-slider": "^1.3.6",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"bcryptjs": "^3.0.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"jose": "^6.1.3",
|
|
"lucide-react": "^0.563.0",
|
|
"next": "16.1.6",
|
|
"posthog-js": "^1.196.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"react-markdown": "^10.1.0",
|
|
"redis": "^4.7.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"tailwind-merge": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.58.2",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"bundlesize": "^0.18.1",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.6",
|
|
"husky": "^9.0.0",
|
|
"lint-staged": "^15.0.0",
|
|
"prettier": "^3.0.0",
|
|
"shadcn": "^3.8.4",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{js,jsx,json,md,yml,yaml}": [
|
|
"prettier --write"
|
|
]
|
|
}
|
|
}
|