6ec35988cc
- Add inline confirmation dialog before stopping instances - Delete instances from state immediately without page reload - Add health check polling every 30s for running instances - Show tunnel error badge when tunnel is unreachable - Add 'Fix Tunnel' button to recreate broken tunnels - Update API client with health check and tunnel recreation endpoints
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
## ADDED Requirements
|
|
|
|
### Requirement: Stopping a session requires confirmation
|
|
The system SHALL display a confirmation dialog before stopping a running session.
|
|
|
|
#### Scenario: User initiates stop
|
|
- **WHEN** user clicks the "Stop" button on a running session
|
|
- **THEN** a confirmation dialog appears asking "Are you sure you want to stop this session?"
|
|
- **AND** the dialog provides "Cancel" and "Stop" options
|
|
|
|
#### Scenario: User confirms stop
|
|
- **WHEN** user clicks "Stop" in the confirmation dialog
|
|
- **THEN** the session stops
|
|
- **AND** the dialog closes
|
|
|
|
#### Scenario: User cancels stop
|
|
- **WHEN** user clicks "Cancel" in the confirmation dialog
|
|
- **THEN** the dialog closes
|
|
- **AND** the session remains running
|
|
|
|
### Requirement: Deleted sessions disappear from UI immediately
|
|
The system SHALL update the frontend state immediately after a session is successfully deleted.
|
|
|
|
#### Scenario: Delete session
|
|
- **WHEN** user deletes a session
|
|
- **AND** the delete API call returns success
|
|
- **THEN** the session is removed from the visible list
|
|
- **AND** no page reload is required
|
|
|
|
#### Scenario: Delete session failure
|
|
- **WHEN** user deletes a session
|
|
- **AND** the delete API call fails
|
|
- **THEN** the session remains in the list
|
|
- **AND** an error message is displayed
|