Add react-router-dom with two routes: "/" → MyScenariosPage (scenario grid with search, create, open, delete against the scenarios API) and "/editor" → AppShell. "Sair do cenário" returns to the list. New: use-scenarios hook, ScenarioCard, MyScenariosPage (+ tests, 235 web tests green). API: backfill legacy initialConditions rows missing instanceId so GET /scenarios serializes under the updated schema. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"name": "@ymir/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"clean": "rm -rf dist coverage",
|
|
"test": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui"
|
|
},
|
|
"dependencies": {
|
|
"@types/leaflet": "^1.9.21",
|
|
"@ymir/types": "workspace:*",
|
|
"leaflet": "^1.9.4",
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7",
|
|
"react-leaflet": "^5.0.0",
|
|
"react-router-dom": "^7.18.1",
|
|
"zustand": "^5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.61.1",
|
|
"@sinclair/typebox": "^0.34.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"@vitest/coverage-v8": "^4.1.9",
|
|
"jsdom": "^29.1.1",
|
|
"typescript": "^5.8.0",
|
|
"vite": "^6.3.0",
|
|
"vitest": "^4.1.9"
|
|
}
|
|
}
|