This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch 3112-opc-ua-multi-node-selection-editor
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to
refs/heads/3112-opc-ua-multi-node-selection-editor by this push:
new fd38380fdf feat(#3112): Add description header to text editor
fd38380fdf is described below
commit fd38380fdf33498c6e7fb062d72a055f14f7ed1d
Author: Philipp Zehnder <[email protected]>
AuthorDate: Tue Aug 13 14:07:07 2024 +0200
feat(#3112): Add description header to text editor
---
ui/cypress/tests/connect/opcua/opcAdapterConfiguration.spec.ts | 4 +++-
.../static-tree-input-text-editor.component.ts | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ui/cypress/tests/connect/opcua/opcAdapterConfiguration.spec.ts
b/ui/cypress/tests/connect/opcua/opcAdapterConfiguration.spec.ts
index b52715d834..7fb8215f07 100644
--- a/ui/cypress/tests/connect/opcua/opcAdapterConfiguration.spec.ts
+++ b/ui/cypress/tests/connect/opcua/opcAdapterConfiguration.spec.ts
@@ -121,7 +121,9 @@ describe('Test OPC-UA Adapter Configuration', () => {
TreeStaticPropertyUtils.switchToTextEditor();
TreeStaticPropertyUtils.getTextInTextEditor().should(
'equal',
- 'ns=3;s=StepUp' + 'ns=3;s=AlternatingBoolean',
+ '# Provide OPC UA Node IDs below, one per line.# Format: ' +
+ 'ns=<namespace>;s=<node_id> (e.g., ns=3;s=SampleNodeId)' +
+ 'ns=3;s=StepUpns=3;s=AlternatingBoolean',
);
});
diff --git
a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-text-editor/static-tree-input-text-editor.component.ts
b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-text-editor/static-tree-input-text-editor.component.ts
index 5ade0ab7b3..0dfcc08ffd 100644
---
a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-text-editor/static-tree-input-text-editor.component.ts
+++
b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-tree-input/static-tree-input-text-editor/static-tree-input-text-editor.component.ts
@@ -44,6 +44,9 @@ export class StaticTreeInputTextEditorComponent implements
OnInit {
},
};
+ headerText =
+ '# Provide OPC UA Node IDs below, one per line.\n' +
+ '# Format: ns=<namespace>;s=<node_id> (e.g., ns=3;s=SampleNodeId)\n';
textEditor: string = '';
private textChangeSubject: Subject<string> = new Subject<string>();
@@ -56,6 +59,7 @@ export class StaticTreeInputTextEditorComponent implements
OnInit {
ngOnInit() {
this.textEditor =
+ this.headerText +
this.staticProperty.selectedNodesInternalNames.join('\n');
}