feat(studio): field-level conditional-required, help text & min length#1446
Merged
Conversation
Surfaces the model-supported field power props in the object field inspector (all confirmed on @objectstack/spec FieldSchema): - conditionalRequired (CEL): field becomes required when the predicate is true — shown for every field type in the Advanced section. - inlineHelpText: end-user help shown below the field on a form. - minLength: paired with the existing maxLength for text-like types. Note: the object FieldSchema has no field-level conditional *visibility* (that is a view/form concern, expressed via `visibleOn` on view fields), so it is intentionally not added here. All strings localized (en-US / zh-CN). +5 RTL cases; inspector suite 12. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
Summary
First half of the deferred Tier-2 trio — the field-level conditional & validation props, adapted to what the object
FieldSchemaactually persists.Added to the object field inspector (all confirmed on
@objectstack/specFieldSchema):Model note (why not "conditional visibility")
FieldSchemahas no field-level conditional visibility —hiddenis a plain boolean, and conditional display is a view/form concern (visibleOnlives on view fields, not object fields). So per the design discussion, this PR delivers the supportedconditionalRequiredinstead, and field-level visibility is intentionally left to the view designer. (inlineHelpTextturned out to exist after all — earlier missed because it's on the spec package, notdesigner.ts.)Tests
+5 RTL cases (help text / minLength / conditionalRequired commit, conditional-required shown for non-text types, read-only disables). Inspector suite at 12;
tscclean; 0 lint errors.Next
PR B (separate): bulk multi-select of fields with bulk delete / move-to-group — the third trio item.
🤖 Generated with Claude Code