Skip to content

test(contracts): share accepted and rejected nodes for every UI kit element and release 1.8.1 - #17

Merged
RentnerKev merged 1 commit into
mainfrom
rentner/test/ui-kit-fixtures
Nov 30, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
rentner/test/ui-kit-fixtures

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Part of closing RentnerProxy/platform#626: "contract fixtures cover each component schema". The shared protocol fixtures had RemoteNode cases for only 5 of the 27 UI kit elements, and the platform used none of them.

  • New 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.
    • Example rejected cases: an unknown badge tone, a page header without its heading, an empty action menu, a select field name that starts with a digit.
  • Both contract implementations check all 54 cases:
    • TypeScript (tests/Contracts/ui-kit.test.ts) also checks that every catalog element has exactly one accepted and one rejected case;
    • Rust (core/app-contracts/tests/protocol.rs).
  • The npm package ships the file as @rentnerproxy/app-contracts/ui-kit-fixtures.json (export, files, SDK packaging list), so the platform can validate and draw the same nodes.
  • Version 1.8.1 for the contract, the crates and both npm packages. No schema or API changes; only the version in the generated schema $id and the OpenAPI document moves.

Tests

Ran locally:

  • bun run typecheck;
  • oxlint ., with two warnings already present in app-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.1 publishes the crates, both npm packages and the GitHub release through release.yml. The maintainer approved this release.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • The app contracts package now includes shared UI kit examples for checking valid and invalid component configurations.
    • UI kit contract validation now covers components across layout, navigation, forms, data display, and other areas.
  • Updates
    • App UI and contracts packages are updated to version 1.8.1.

…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 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds shared valid and invalid fixtures for UI-kit elements, checks them in Rust and TypeScript, includes the fixtures in the contracts package, and updates related package versions to 1.8.1.

Changes: UI-kit Fixtures and 1.8.1 Release

Layer / File(s) Summary
Shared fixtures and contract validation
contracts/v1/ui-kit-fixtures.json, core/app-contracts/tests/protocol.rs, tests/Contracts/ui-kit.test.ts
Adds 54 valid and invalid fixtures for 27 UI-kit elements. Rust and TypeScript tests check fixture validity and coverage.
Fixture packaging and version updates
contracts/v1/primitives.ts, packages/app-contracts/package.json, .github/scripts/ci/package-sdk.ts, core/Cargo.toml, packages/app-ui/package.json, tests/Contracts/app-contracts.test.ts
Exports and packages the fixture file. Updates the contract, workspace, and npm package versions to 1.8.1 and updates the version assertion.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related PRs

Suggested labels: area: core, area: contracts, area: npm, area: automation

Merge Risk: Minimal · up to c8654 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two main parts of the change: adding shared accepted and rejected node fixtures for every UI kit element, and the 1.8.1 release. Both appear in the changeset. The title is long (93…
Description check Passed The description follows the template's main sections: Change, Verification, and Risks. The Change section explains the problem (RemoteNode fixtures covered only 5 of 27 UI kit elements), links the rel…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two main parts of the change: adding shared accepted and rejected node fixtures for every UI kit element, and the 1.8.1 release. Both appear in the changeset. The title is long (93 characters) and bundles a release bump with the test change, but it still reflects the primary change.

Full details: Description check

Explanation

The description follows the template's main sections: Change, Verification, and Risks. The Change section explains the problem (RemoteNode fixtures covered only 5 of 27 UI kit elements), links the related platform issue (RentnerProxy/platform#626) with 'Part of closing', and describes the resulting behavior. The Verification section lists the checks run and their results. The Risks section is only partly covered: it says there are no schema or API changes and that the release is versioned, but it does not clearly state whether the change is additive within the current major version or breaking. It also does not explicitly confirm that no secrets, environment files, or production data are included. These gaps are non-critical, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d73c27a and c8654eb.

Files ignored due to path filters: 4

  • contracts/v1/contracts.schema.json is excluded by !contracts/v1/contracts.schema.json
  • contracts/v1/openapi.json is excluded by !contracts/v1/openapi.json
  • core/Cargo.lock is excluded by !**/*.lock, !core/Cargo.lock
  • core/app-contracts/contracts.schema.json is excluded by !core/app-contracts/contracts.schema.json
Files selected for processing: 9

  • .github/scripts/ci/package-sdk.ts
  • contracts/v1/primitives.ts
  • contracts/v1/ui-kit-fixtures.json
  • core/Cargo.toml
  • core/app-contracts/tests/protocol.rs
  • packages/app-contracts/package.json
  • packages/app-ui/package.json
  • tests/Contracts/app-contracts.test.ts
  • tests/Contracts/ui-kit.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions github-actions Bot added area: automation GitHub checks, release and repository automation. area: contracts App contract schemas, fixtures and documents area: core Rust core, native protocols and safe storage. area: npm labels Nov 30, 2026
@RentnerKev
RentnerKev merged commit 45b2470 into main Nov 30, 2026
16 of 17 checks passed
@RentnerKev
RentnerKev deleted the rentner/test/ui-kit-fixtures branch November 30, 2026 22:00
RentnerKev added a commit to RentnerProxy/platform that referenced this pull request Nov 30, 2026
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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: automation GitHub checks, release and repository automation. area: contracts App contract schemas, fixtures and documents area: core Rust core, native protocols and safe storage. area: npm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant