Skip to content

Commit 39b5b31

Browse files
committed
Remove superfluous "Type" fields from the default "Edit entity" dialog
1 parent 85807c5 commit 39b5b31

4 files changed

Lines changed: 3 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
88
- Fix unable to scroll inside canvas components and templates when `requireCtrl` in `zoomOptions` is set `false`.
99
- Disable changing an entity IRI in a form when `MetadataProvider.canModifyEntity()` disallows it.
1010

11+
#### 💅 Polish
12+
- Remove superfluous "Type" fields from the default "Edit entity" dialog.
13+
1114
## [0.32.0] - 2026-03-10
1215
#### 🐛 Fixed
1316
- Avoid marking grouped relation as "layout only" when importing a diagram (only grouped relation links themselves).

i18n/i18n.schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@
382382
"edit_entity.dialog.caption": { "$ref": "#/$defs/Value" },
383383
"edit_entity.iri.label": { "$ref": "#/$defs/Value" },
384384
"edit_entity.label.label": { "$ref": "#/$defs/Value" },
385-
"edit_entity.type.label": { "$ref": "#/$defs/Value" },
386385
"edit_relation.dialog.caption": { "$ref": "#/$defs/Value" },
387386
"edit_relation.dialog.caption_new": { "$ref": "#/$defs/Value" },
388387
"edit_relation.validation_progress.title": { "$ref": "#/$defs/Value" },

i18n/translations/en.reactodia-translation.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@
270270
"dialog.cancel.title": "Cancel the dialog",
271271
"edit_entity.dialog.caption": "Edit entity",
272272
"edit_entity.iri.label": "IRI",
273-
"edit_entity.type.label": "Type",
274273
"edit_relation.dialog.caption": "Edit relation",
275274
"edit_relation.dialog.caption_new": "Establish new relation",
276275
"edit_relation.validation_progress.title": "Validating selected link type",

src/forms/editEntityForm.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,6 @@ export function EditEntityForm(props: {
9393
readonly: !metadata.editable.canChangeIri,
9494
})}
9595
</div>
96-
<div className={`${FORM_CLASS}__row`}>
97-
<label>
98-
{t.text('visual_authoring.edit_entity.type.label')}
99-
{data.types.map(type => (
100-
<input key={type}
101-
className='reactodia-form-control'
102-
name='reactodia-edit-entity-type'
103-
title={type}
104-
value={t.formatLabel(
105-
model.getElementType(type)?.data?.label, type, model.language
106-
)}
107-
disabled={true}
108-
/>
109-
))}
110-
</label>
111-
</div>
11296
<FormInputGroup className={`${CLASS_NAME}__properties`}
11397
languages={languages}
11498
extraPropertyShape={metadata.shape.extraProperty}

0 commit comments

Comments
 (0)