Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

<!-- changelog:entries -->

## [Unreleased]

### Testing

- Test(web-ui): set up vitest testing infrastructure (#103)

Add unit testing infrastructure to the Web UI (`control-plane/web/client/`),
which previously had zero test coverage.

- Install vitest, @testing-library/react, @testing-library/jest-dom,
@testing-library/user-event, @vitest/coverage-v8, and jsdom as devDependencies
- Add `vitest.config.ts` with jsdom environment, `@` path alias, and v8 coverage provider
- Add `src/test/setup.ts` to extend vitest with jest-dom matchers
- Add `src/test/components/status/StatusBadge.test.tsx` with comprehensive tests:
- All `AgentState`, `HealthStatus`, and `LifecycleStatus` values via `it.each`
- Priority ordering between `state`, `healthStatus`, and `lifecycleStatus` props
- `showIcon` behaviour and `size` prop smoke tests
- `status` prop (AgentStatus object): `status.state`, `showHealthScore` percentage
display, `state_transition` arrow label, and `animate-pulse` during transitions
- Dedicated `AgentStateBadge`, `HealthStatusBadge`, `LifecycleStatusBadge` exports
- `getHealthScoreColor` utility — boundary tests across all four score tiers
- `getHealthScoreBadgeVariant` utility — returns correct badge variant per tier
- Add `test`, `test:watch`, and `test:coverage` scripts to package.json
- Wire `npm run test` into `scripts/test-all.sh` alongside the existing lint step

## [0.1.42-rc.4] - 2026-02-27


Expand Down Expand Up @@ -3379,4 +3404,4 @@ Improves error handling and test coverage for new CLI logic. (54f483b)
- Cleaned repository layout for public distribution.

### Removed
- Private experimental artifacts and internal operational scripts.
- Private experimental artifacts and internal operational scripts.
Loading
Loading