27 lines
1.0 KiB
Markdown
27 lines
1.0 KiB
Markdown
## ADDED Requirements
|
|
|
|
### Requirement: Display services in a card layout
|
|
The frontend SHALL display each discovered service as a card.
|
|
|
|
#### Scenario: Services are discovered
|
|
- **WHEN** the frontend receives a list of services from the backend
|
|
- **THEN** it SHALL render a card for each service.
|
|
|
|
### Requirement: Show service details on each card
|
|
Each service card SHALL display the service name, the exposed port, and the URL to access it.
|
|
|
|
#### Scenario: Displaying a service
|
|
- **WHEN** a service is displayed
|
|
- **THEN** the card SHALL show the service name, port, and URL.
|
|
|
|
### Requirement: Real-time updates
|
|
The frontend SHALL update in near real-time when services are started or stopped.
|
|
|
|
#### Scenario: A new service is started
|
|
- **WHEN** a new service is started on the host
|
|
- **THEN** a new card for that service SHALL appear in the frontend without requiring a page refresh.
|
|
|
|
#### Scenario: A service is stopped
|
|
- **WHEN** a service is stopped on the host
|
|
- **THEN** the corresponding card SHALL be removed from the frontend without requiring a page refresh.
|