From 4167d66e764c9f3fa9b5a40f1de753acc5eb8250 Mon Sep 17 00:00:00 2001 From: Norman Niati Date: Mon, 18 May 2026 13:20:03 +0200 Subject: [PATCH] feat(plugin-id): add Scope auto-suggest on CompanyEditView Replace the free-text v-text-field for the company Scope with a server-backed v-autocomplete that preloads all valid scopes for companies from rest/service/id/container-scope/COMPANY at mount, then filters locally on each keystroke (300ms debounce for consistency with the User Company/Group autosuggest pattern). The v-model stays a string (item-value="name") so the existing save payload contract is unchanged. Demo fallback gated behind import.meta.env.DEV (per Fabrice's review pattern on PR #20) so demo data NEVER reaches production bundles. Includes the same ligojLight theme workaround for v-autocomplete dropdown visibility (to be folded into a global theme fix later). --- ui/src/views/CompanyEditView.vue | 130 ++++++++++++++++++++++++++++++- 1 file changed, 128 insertions(+), 2 deletions(-) diff --git a/ui/src/views/CompanyEditView.vue b/ui/src/views/CompanyEditView.vue index 186d204..02138e2 100644 --- a/ui/src/views/CompanyEditView.vue +++ b/ui/src/views/CompanyEditView.vue @@ -10,7 +10,38 @@ - + + + + + @@ -54,7 +85,7 @@