| title | description | detail_level | tags | revised | ||||
|---|---|---|---|---|---|---|---|---|
Create Service Page |
Documentation of the Create Service page UI structure, components, and functionality |
Page-level technical details |
|
true |
The Create Service page provides an interface for users to create new service definitions or edit existing ones. It offers a structured form with validation and preview capabilities to ensure services are properly configured.
/service/create // For new services
/service/edit/[id] // For editing existing services
- Service name input
- Command shortcut input
- URL template builder
- Parameter configuration
- Icon selection/upload
- Label assignment
- URL pattern input with parameter highlighting
- Parameter definition fields
- Parameter validation rules
- Default value configuration
- Live service preview
- Test execution capability
- Validation feedback
- Example usage
flowchart TD
A[Create Service] --> B[Enter Basic Info]
B --> C[Define URL Template]
C --> D[Add Parameters]
D --> E[Set Labels]
E --> F[Preview]
F --> G{Valid?}
G -->|Yes| H[Save Service]
G -->|No| I[Show Errors]
I --> D
H --> J[Success Message]
J --> K[Return to Inventory]
- Required fields: name, shortcut, URL template
- Shortcut uniqueness verification
- URL template syntax validation
- Parameter consistency check
- Name and description
- Type (string, number, boolean, enum)
- Required/optional status
- Default values
- Validation rules (regex, min/max length)
- Automatic favicon fetching from domain
- Custom icon upload (PNG, SVG)
- Icon preview and cropping