You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a `boolean` property type for true/false values, mirroring the
recently-merged Select pattern. `BooleanValue` and the
`ValueType::Boolean` deserialization path already existed in both PHP
and TS; this PR adds the type wrapper, property definition, schema and
subject UI, and registration.
Schema JSON: `{ "type": "boolean" }`. No type-specific attributes;
`default` may be `true`, `false`, or `null`. The construction-time check
rejects non-boolean defaults, slightly stricter than siblings.
`BooleanInput` always emits a `BooleanValue`, so a Boolean field is
never "unset" once interacted with. The input renders as a single
inline `label [switch]` row to match the `Require a value` row directly
above it in the schema editor.
Demo data: `Is public` on the Company schema (true on ACME Inc), plus
three Boolean variants in the Everything showcase schema.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: i18n/qqq.json
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,9 @@
144
144
"neowiki-property-type-datetime": "Label for the date and time property type in the schema editor",
145
145
"neowiki-field-invalid-date": "Validation error shown when the entered date value cannot be parsed. Date values must be strict ISO 8601 calendar dates in YYYY-MM-DD form with no time or timezone component (for example, '2025-06-15'). Values with a time part, partial values such as year-only, and calendar overflows such as '2025-02-30' are rejected, and min/max bounds are inclusive.",
146
146
"neowiki-property-type-date": "Label for the date (without time) property type in the schema editor",
147
+
"neowiki-property-type-boolean": "Label for the boolean (true/false) property type shown in the property type selector.",
148
+
"neowiki-boolean-true": "Label shown in the value display for a boolean property whose value is true (e.g. in the infobox or schema-table 'Initial value' column).",
149
+
"neowiki-boolean-false": "Label shown in the value display for a boolean property whose value is false (e.g. in the infobox or schema-table 'Initial value' column).",
147
150
"neowiki-select-unknown-option": "Placeholder shown in a select-property display when a stored option ID cannot be resolved to a label (e.g. the option was removed from the Schema).",
148
151
149
152
"neowiki-managesubjects-tab": "Label for the Data tab that appears alongside the standard action tabs (View, Edit, History) on content pages, linking to the Subject management page.",
0 commit comments