Repository navigation
test(contracts): share accepted and rejected nodes for every UI kit element and release 1.8.1 - #17
Conversation
…lement and release 1.8.1 Part of closing RentnerProxy/platform#626: contract fixtures should cover each UI kit component schema. The shared protocol fixtures held RemoteNode cases for five of the 27 elements. contracts/v1/ui-kit-fixtures.json now has, for each of the 27 UI kit v1 elements, one node with its properties that every consumer must accept and one with a single wrong or missing property that it must reject. The TypeScript and Rust contract tests both check all 54 cases, and the TypeScript test checks that every catalog element has exactly one of each. The npm package ships the file as @rentnerproxy/app-contracts/ui-kit-fixtures.json, so the platform can validate and draw the same nodes. The contract, crates and both npm packages move to 1.8.1; no schema or API changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Part of closing #626: the platform used none of the shared contract fixtures for UI kit elements. @rentnerproxy/app-contracts 1.8.1 ships one accepted and one rejected node for each of the 27 elements (RentnerProxy/app-sdk#17). The platform now checks all 54 with its own tree rules, placing a tab panel or a description item inside its parent as an app would: the accepted nodes enter the tree and are drawn without the loading skeleton, the rejected ones leave the tree untouched. The contracts package moves from 1.7.0 to 1.8.1; between them only version strings and the new fixture file changed. Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Part of closing RentnerProxy/platform#626: "contract fixtures cover each component schema". The shared protocol fixtures had
RemoteNodecases for only 5 of the 27 UI kit elements, and the platform used none of them.contracts/v1/ui-kit-fixtures.json: for each of the 27 UI kit v1 elements, one node with its properties that every consumer must accept, and one with a single wrong or missing property that it must reject.tests/Contracts/ui-kit.test.ts) also checks that every catalog element has exactly one accepted and one rejected case;core/app-contracts/tests/protocol.rs).@rentnerproxy/app-contracts/ui-kit-fixtures.json(export,files, SDK packaging list), so the platform can validate and draw the same nodes.$idand the OpenAPI document moves.Tests
Ran locally:
bun run typecheck;oxlint ., with two warnings already present inapp-protocol.test.ts;bun run contracts:check;bun test: 612 pass;cargo test -p rentnerproxy-app-contracts --test protocol: 13 pass.Release
After merge, tag
v1.8.1publishes the crates, both npm packages and the GitHub release throughrelease.yml. The maintainer approved this release.🤖 Generated with Claude Code
Summary by CodeRabbit