Skip to content

Commit cf7de5e

Browse files
JeroenDeDauwclaude
andcommitted
Reword schema-picker placeholder to "Select a schema" and make it full-width
The picker now browses on click, so "Select a schema" reads better than "Search for a schema". Rename the now-shared message (used by the relation editor's target schema and the subject creator) from the subject-creator-specific key to a neutral neowiki-schema-lookup-placeholder, and document it in qqq. Stretch the CdxCombobox to full width so it matches the other fields in the editor. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 706264e commit cf7de5e

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"neowiki-subject-creator-schema-title",
414414
"neowiki-subject-creator-existing-schema",
415415
"neowiki-subject-creator-new-schema",
416-
"neowiki-subject-creator-schema-search-placeholder",
416+
"neowiki-schema-lookup-placeholder",
417417
"neowiki-schema-display-property-name",
418418
"neowiki-schema-display-property-type",
419419
"neowiki-schema-display-property-required",

i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"neowiki-subject-creator-schema-title": "Have an existing schema?",
104104
"neowiki-subject-creator-existing-schema": "Use existing",
105105
"neowiki-subject-creator-new-schema": "Create new",
106-
"neowiki-subject-creator-schema-search-placeholder": "Search for a schema",
106+
"neowiki-schema-lookup-placeholder": "Select a schema",
107107
"neowiki-subject-creator-label-field": "Subject label",
108108
"neowiki-subject-creator-label-placeholder": "Enter a label for the subject",
109109
"neowiki-subject-creator-save": "Create subject",

i18n/qqq.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"neowiki-subject-editor-error": "Error notification title shown when updating a subject fails. $1 is the subject label.",
5353
"neowiki-subject-editor-validation-failed": "Toast title shown when the backend rejects a Subject save under enforcement. $1 is the Subject label.",
5454
"neowiki-subject-lookup-placeholder": "Placeholder text shown in the subject search input field.",
55+
"neowiki-schema-lookup-placeholder": "Placeholder text shown in the schema picker input field.",
5556
"neowiki-subject-lookup-no-results": "Message shown in the subject lookup dropdown when no subjects match the search query.",
5657
"neowiki-subject-lookup-no-match": "Error message shown in the subject lookup when the user types text but does not select a subject from the dropdown results.",
5758

resources/ext.neowiki/src/components/common/SchemaLookup.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ref="comboboxRef"
55
v-model:selected="selectedSchema"
66
:menu-items="menuItems"
7-
:placeholder="$i18n( 'neowiki-subject-creator-schema-search-placeholder' ).text()"
7+
:placeholder="$i18n( 'neowiki-schema-lookup-placeholder' ).text()"
88
@input="filterSchemas"
99
@update:selected="onSelect"
1010
@blur="reconcileOnBlur"
@@ -89,3 +89,9 @@ function focus(): void {
8989
9090
defineExpose( { focus } );
9191
</script>
92+
93+
<style lang="less">
94+
.ext-neowiki-schema-lookup .cdx-combobox {
95+
width: 100%;
96+
}
97+
</style>

0 commit comments

Comments
 (0)