feat: add city/state/country to complex, new settings page with sidebar, and Biome linting

- Added city, state, and country optional fields to Complex model
- Updated onboarding to include optional location fields
- Created new settings page with sidebar navigation (Datos del Complejo, Canchas)
- Replaced ESLint with Biome for frontend and backend linting
- Added parallel dev script with concurrently
- Migrated register-routes to use direct app.route() pattern
This commit is contained in:
Jose Selesan
2026-04-10 15:36:15 -03:00
parent 77004b14b0
commit 9ee98a4cb4
129 changed files with 2929 additions and 3186 deletions

View File

@@ -1,16 +1,16 @@
import type { AppContext } from '@/types/hono'
import { getComplexBySlug } from '@/modules/complex/services/complex.service'
import { getComplexBySlug } from '@/modules/complex/services/complex.service';
import type { AppContext } from '@/types/hono';
type ComplexSlugParams = { slug: string }
type ComplexSlugParams = { slug: string };
export async function getComplexBySlugHandler(c: AppContext) {
const { slug } = c.req.valid('param' as never) as ComplexSlugParams
const { slug } = c.req.valid('param' as never) as ComplexSlugParams;
const complex = await getComplexBySlug(slug)
const complex = await getComplexBySlug(slug);
if (!complex) {
return c.json({ message: 'Complejo no encontrado.' }, 404)
return c.json({ message: 'Complejo no encontrado.' }, 404);
}
return c.json(complex)
return c.json(complex);
}