46 lines
2.5 KiB
Markdown
46 lines
2.5 KiB
Markdown
# Setup Wizard Live API Wiring (Replacing Mocks)
|
|
|
|
## Module
|
|
Web
|
|
|
|
## Status
|
|
VERIFIED
|
|
|
|
## 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)
|
|
|
|
## Verification
|
|
- Verified on 2026-02-11 via `docs/qa/feature-checks/runs/web/setup-wizard-live-api-wiring/run-001/`.
|
|
- Tier 0 confirmed setup wizard route/component/service/model/test assets and key symbol presence.
|
|
- Tier 1 passed focused Angular behavior regression (12 files / 55 tests) and `npm run build`.
|
|
- Tier 2 validated live API wiring behavior: route wiring, session status normalization, backend step-id normalization, and initialization against server-selected current step.
|