Repository navigation
Form editor 10f-5: datatype or language after the text of a literal - #250
Merged
Merged
Conversation
…ts text A literal is edited in a text area laid over a hidden copy of its text, so its tag follows the last character and wraps with the text: - XSD datatypes are named by their local name (date), others by their prefixed name (geo:wktLiteral); language tags in standard form (LanguageTags.normalize). The tooltip gives the IRI or the language name; the accessible name says what the tag changes. - A plain string has no tag at rest and shows `string` while edited. - At rest a long text keeps the lines of its card, fading out before the tag on its last line (useOverflowing). - Texts are checked by the XSD lexical rules of rdf-validation, the library shacl-engine checks sh:datatype with, plus a day that exists in its month; an invalid text shows "Not a valid integer — expected 42" under the value, with the tag and underline in the error colour. - Enter writes and moves to the field of a new value, Shift+Enter breaks the line, Escape moves to that field, Backspace removes an empty value; literals emptied while edited are removed when the row is left. The tests share one typeInto helper for native and VS Code fields.
Base automatically changed from
form-editor-v3/tag-suggestions
to
feature/form-editor-v3
November 19, 2026 07:31
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.
First of four stacked PRs implementing the "Datatype & language" spec (10f-5 to 10f-8), on top of 10f-4. Retarget to
feature/form-editor-v3once 10f-4 merges.A literal is now edited in a native text area laid over a hidden copy of its text. The copy sets the height and places the tag after the last character, so the tag follows the text and wraps with it.
Changes
date,integer).geo:wktLiteral), or their local name without a prefix.de-DE,zh-Hant-TW), viaLanguageTags.normalize.stringwhile being edited.useOverflowing). With the focus, the whole text shows.rdf-validation, the library shacl-engine checkssh:datatypewith, so the field and SHACL validation agree. It is now a direct dependency; it was already installed through shacl-engine.anyURImust contain no white space.useWrappedLinesis removed. The tests share onetypeIntohelper that works for native and VS Code fields.The tag still opens the existing tag picker; 10f-6 replaces it with the Datatype | Language pop-up.
Verification
npm run checknode ./build.js