Wire Azure OCR to central settings toggle; remove redundant Users section
- settings/src/integrations/schema.js: rename azure from 'Azure AD' to 'Azure Document Intelligence', swap fields to endpoint + api_key - Add use_global_azure column (migration + model) - global_settings_service: add azure to check_global_status and apply_global_overrides - api/settings.py: expose use_global_azure in response/update; apply overrides in test_azure_connection before credential check - Settings.tsx: add 'Use credentials from main stack settings' toggle for Azure OCR section (endpoint/key disabled when on, test button enabled when global is configured); remove Users section (managed centrally via auth service), clean up UserData interface, users query and mutations Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d7898ba897
commit
1564a66283
5 changed files with 44 additions and 161 deletions
|
|
@ -220,6 +220,7 @@ class KitchenSettings(Base):
|
|||
use_global_newbook: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
use_global_resos: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
use_global_sambapos: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
use_global_azure: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
|
||||
# Internal API key (for in-house apps like menu display plugin)
|
||||
api_key: Mapped[str | None] = mapped_column(String(100), nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue