Sprint 1: Auth, metro map canvas, services, and retro UI
Authentication: - Laravel Fortify + Sanctum with Inertia views - RBAC middleware (admin, project_owner, team_member, viewer) - Retro terminal-styled login/register/forgot-password pages Metro Map (core UI): - D3.js zoomable SVG canvas with metro line rendering - Station nodes with glow-on-hover, status coloring, tooltips - Breadcrumb navigation for multi-level drill-down - Node preview panel with zoom-in action - C64-style CLI bar with blinking cursor at bottom Backend services: - ProjectService (CRUD, phase transitions, park/stop, audit logging) - ThemaService (CRUD with audit) - MapDataService (strategy map L1, project map L2) - Thin controllers: MapController, ProjectController, ThemaController - 32 routes total (auth + app + API) Style foundation: - Retro-futurism theme: VT323, Press Start 2P, IBM Plex Mono fonts - Dark palette with cyan/orange/green/purple neon accents - Comprehensive seed data (4 themes, 12 projects, commitments, deps) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,39 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\MapController;
|
||||
use App\Http\Controllers\ProjectController;
|
||||
use App\Http\Controllers\ThemaController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Dashboard');
|
||||
});
|
||||
// Redirect root to map
|
||||
Route::get('/', fn () => redirect('/map'));
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return Inertia::render('Dashboard');
|
||||
// Authenticated routes
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
// Metro Map
|
||||
Route::get('/map', [MapController::class, 'index'])->name('map');
|
||||
Route::get('/map/project/{project}', [MapController::class, 'project'])->name('map.project');
|
||||
|
||||
// API endpoints for dynamic map data
|
||||
Route::prefix('api')->group(function () {
|
||||
Route::get('/map/strategy', [MapController::class, 'apiStrategy'])->name('api.map.strategy');
|
||||
Route::get('/map/project/{project}', [MapController::class, 'apiProject'])->name('api.map.project');
|
||||
});
|
||||
|
||||
// Projects
|
||||
Route::post('/projects', [ProjectController::class, 'store'])->name('projects.store');
|
||||
Route::get('/projects/{project}', [ProjectController::class, 'show'])->name('projects.show');
|
||||
Route::put('/projects/{project}', [ProjectController::class, 'update'])->name('projects.update');
|
||||
Route::post('/projects/{project}/transition', [ProjectController::class, 'transition'])->name('projects.transition');
|
||||
Route::post('/projects/{project}/park', [ProjectController::class, 'park'])->name('projects.park');
|
||||
Route::post('/projects/{project}/stop', [ProjectController::class, 'stop'])->name('projects.stop');
|
||||
Route::delete('/projects/{project}', [ProjectController::class, 'destroy'])->name('projects.destroy');
|
||||
|
||||
// Themas
|
||||
Route::get('/themas', [ThemaController::class, 'index'])->name('themas.index');
|
||||
Route::post('/themas', [ThemaController::class, 'store'])->name('themas.store');
|
||||
Route::put('/themas/{thema}', [ThemaController::class, 'update'])->name('themas.update');
|
||||
|
||||
// Dashboard (redirects to map)
|
||||
Route::get('/dashboard', fn () => redirect('/map'))->name('dashboard');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user