Skip to content

WEBUI-810: Vocabulary Actions[LTS-2023]#3187

Open
vaibhavagarwal4-lab wants to merge 8 commits into
maintenance-3.1.xfrom
fix-WEBUI-810-vocabulary-edit
Open

WEBUI-810: Vocabulary Actions[LTS-2023]#3187
vaibhavagarwal4-lab wants to merge 8 commits into
maintenance-3.1.xfrom
fix-WEBUI-810-vocabulary-edit

Conversation

@vaibhavagarwal4-lab
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 25, 2026 07:48
@vaibhavagarwal4-lab vaibhavagarwal4-lab requested a review from a team as a code owner May 25, 2026 07:48
@vaibhavagarwal4-lab vaibhavagarwal4-lab requested review from madhurkulshrestha-hyland and naveen-konda and removed request for a team May 25, 2026 07:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for read-only vocabularies in the Vocabulary Management UI (WEBUI-810), ensuring server-declared read-only directories cannot be modified from the Web UI.

Changes:

  • Hide “Add entry”, “Edit”, and “Delete” actions when the selected vocabulary is marked readOnly.
  • Add a computed _isReadOnly property (based on selected vocabulary + server-provided readOnly flag) and guard mutating handlers (_createEntry, _save, _editEntry, _deleteEntry).
  • Extend unit tests to cover _computeReadOnly and verify the read-only guards.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
elements/directory/nuxeo-vocabulary-management.js Adds _isReadOnly computed state, hides UI actions for read-only vocabularies, and blocks mutating operations via early-return guards.
test/nuxeo-vocabulary-management.test.js Adds tests for _computeReadOnly and for no-op behavior of create/save/delete when a read-only vocabulary is selected.

Comment thread elements/directory/nuxeo-vocabulary-management.js Outdated
Comment thread test/nuxeo-vocabulary-management.test.js Outdated
@vaibhavagarwal4-lab vaibhavagarwal4-lab changed the title WEBUI-810: Vocabulary Actions WEBUI-810: Vocabulary Actions[LTS-2023] May 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread elements/directory/nuxeo-vocabulary-management.js Outdated
Comment thread test/nuxeo-vocabulary-management.test.js
Comment thread test/nuxeo-vocabulary-management.test.js Outdated
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +97 to +99
paper-button[disabled] {
opacity: 0.95;
}
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.

2 participants