Skip to content

Conversation

@noraeb
Copy link
Collaborator

@noraeb noraeb commented Jul 24, 2025

  • Refactored editor rendering to display only the active editor component
  • Persistent filter value is saved when switching editors and restored in the search field when you return

closes #4

@noraeb noraeb closed this Jul 28, 2025
@noraeb noraeb reopened this Jul 28, 2025
this.selectionList.searchValue = this.searchValue;
}
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do all editors have the same property and update code? If so we can move it into the baseclass BaseElementEditor

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, fixed that

Comment on lines 83 to 105
@search-change=${this.handleSearchChange('Report')}
></report-control-editor>`;
case 'GOOSE':
return html`<gse-control-editor
.doc=${this.doc}
.editCount=${this.editCount}
.searchValue=${this.filterValues.GOOSE}
@search-change=${this.handleSearchChange('GOOSE')}
></gse-control-editor>`;
case 'SampledValue':
return html`<sampled-value-control-editor
.doc=${this.doc}
.editCount=${this.editCount}
.searchValue=${this.filterValues.SampledValue}
@search-change=${this.handleSearchChange('SampledValue')}
></sampled-value-control-editor>`;
case 'DataSet':
return html`<data-set-editor
.doc=${this.doc}
.editCount=${this.editCount}
.searchValue=${this.filterValues.DataSet}
@search-change=${this.handleSearchChange('DataSet')}
></data-set-editor>`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the @search-change still relevant? It seems like the value is stored when the tab changes and I dont see any search-change events being fired

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No you are right, I forgot to remove them, just fixed it

@noraeb noraeb requested a review from clepski July 28, 2025 09:37
@noraeb noraeb merged commit e9703b2 into openscd:main Aug 21, 2025
0 of 2 checks passed
@noraeb noraeb deleted the fix/performance-issues branch August 21, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance issues with the publisher

2 participants