feat: add OID display mode toggle for Blockly editor#2172
Merged
GermanBluefox merged 3 commits intoioBroker:masterfrom Apr 10, 2026
Merged
feat: add OID display mode toggle for Blockly editor#2172GermanBluefox merged 3 commits intoioBroker:masterfrom
GermanBluefox merged 3 commits intoioBroker:masterfrom
Conversation
Add 4 switchable display modes for OID fields in the Blockly editor: - Name: show object common.name (default, current behavior) - Name path: show all parent names joined with dots - ID: show last segment of object ID - Full ID: show complete object ID Features: - Toolbar dropdown button with custom gift-tag SVG icons (blue for name modes, orange for ID modes, filled for path variants) - Workspace context menu entries as alternative - Persisted in localStorage across sessions - Translated labels in all 11 ioBroker languages - Only affects visual display, not generated JavaScript code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c82d3d5 to
a316ad0
Compare
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
Menu:



Namepath:
Full ID:
Changes
src-editor/public/google-blockly/own/field_oid.js— Display mode logic, icon rendering via SVG<image>in Blockly field, async parent object fetching for names and iconssrc-editor/public/google-blockly/own/blocks_words.js— Translation keys for display mode labels and "Show icon"src-editor/src/Editor.tsx— Toolbar dropdown button with tag icons, divider + checkbox for icon togglesrc-editor/src/Components/BlocklyEditor.tsx— Context menu entries viaconfigureContextMenusrc-editor/src/Components/BlocklyEditorTS.tsx— Same context menu entries (TS variant)src-editor/src/Components/blockly-plugins/index.ts— FieldOID type definitionssrc-editor/src/assets/oid-*.svg— 4 custom gift-tag SVG iconssrc-editor/src/i18n/*.json— "OID display mode" tooltip translationTest plan
npm run buildpassesnpm run test— 41 tests passnpm run lint— no new errors🤖 Generated with Claude Code