feat(example-showcase): demo field conditional rules on Invoice (B2)#1653
Merged
Conversation
Adds visibleWhen / readonlyWhen / requiredWhen to the showcase Invoice header to exercise the full dual-side conditional-rule feature end to end: - issued_on.requiredWhen = "record.status in ['sent', 'paid']" - tax_rate.readonlyWhen = "record.status == 'paid'" (server also strips writes) - paid_on.visibleWhen / requiredWhen = "record.status == 'paid'" Drives the objectui field-conditional-rules live e2e. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Exercises the B2 dual-side field conditional rules end-to-end on the showcase Invoice header:
requiredWhen/readonlyWhenare enforced server-side by this repo's rule-validator +stripReadonlyWhenFields(shipped in feat: field conditional rules (CEL) — spec + server enforcement (B2) #1649); the client honors all three reactively via@objectstack/formula(objectui PR chore(automation): retire the workflow_rule authoring paradigm (ADR-0018 M5 dropped) #1578).visibleWhenis a pure client UX affordance.Verification
Drives the objectui
field-conditional-ruleslive e2e (Status → paid/sent/draft re-gates each dependent field). Example-only change; no published package affected.🤖 Generated with Claude Code