| name | spinder-page-routing |
| description | Create new pages and routes in the Spinder application, following the routing architecture and page component patterns. |
Spinder Page Routing Skill
This skill helps add new pages and routes to the Spinder single-page application, ensuring proper integration with the routing system and component architecture.
When to Use
Use this skill when you need to:
- Add a new page to the application
- Create new routes for navigation
- Implement page-specific functionality
- Follow the SPA routing patterns
- Integrate new features as separate pages
Routing Architecture
The Spinder routing system uses:
- Client-side routing with history API
- Route configuration in shared services
- Page components that extend providers
- Switch-based rendering in the main app
- Event-driven navigation
Steps to Add a New Page and Route
- Add route name to enum in
src/shared/type.routes.ts
- Add route configuration in
src/shared/service.client.ts
- Create page component at
src/client/page.<page-name>.ts
- Update app render method in
src/client/app.ts
- Import page component in
src/client/app.ts
Step 1: Add Route Name to Enum
In src/shared/type.routes.ts, add your new route name:
export const RouteName = z.enum([
,
,
,
,
]);