Files
git.stella-ops.org/docs/features/unchecked/web/setup-wizard-live-api-wiring.md

40 lines
2.0 KiB
Markdown

# Setup Wizard Live API Wiring (Replacing Mocks)
## Module
Web
## Status
IMPLEMENTED
## Description
Replaced mocked setup wizard calls with real HttpClient calls to Platform setup endpoints including Problem+JSON error handling, retry state tracking, data freshness banners, and deterministic unit tests.
## Implementation Details
- **Feature directory**: `src/Web/StellaOps.Web/src/app/features/setup-wizard/`
- **Routes**: `setup-wizard.routes.ts`
- **Components**:
- `config-missing` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/components/config-missing.component.ts`)
- `setup-wizard` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/components/setup-wizard.component.ts`)
- `step-content` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/components/step-content.component.ts`)
- `step-indicator` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/components/step-indicator.component.ts`)
- **Services**:
- `setup-wizard-api` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/services/setup-wizard-api.service.ts`)
- `setup-wizard-state` (`src/Web/StellaOps.Web/src/app/features/setup-wizard/services/setup-wizard-state.service.ts`)
- **Models**:
- `src/Web/StellaOps.Web/src/app/features/setup-wizard/models/setup-wizard.models.ts`
- **Source**: SPRINT_20260112_005_FE_setup_wizard_ui_wiring.md
## E2E Test Plan
- **Setup**:
- [ ] Log in with a user that has appropriate permissions
- [ ] Navigate to `/setup`
- [ ] Ensure test data exists (scanned artifacts, SBOM data, or seed data as needed)
- **Core verification**:
- [ ] Verify the editor/studio loads with editable content or empty template
- [ ] Verify changes can be saved and persisted
- [ ] Verify validation errors are displayed for invalid input
- **Edge cases**:
- [ ] Verify graceful handling when backend API is unavailable (error state)
- [ ] Verify responsive layout at different viewport sizes
- [ ] Verify accessibility (keyboard navigation, screen reader labels, ARIA attributes)