Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain-level frontend settings #2350

Open
4 tasks
achimnol opened this issue Jun 28, 2024 · 0 comments
Open
4 tasks

Domain-level frontend settings #2350

achimnol opened this issue Jun 28, 2024 · 0 comments
Labels
comp:manager Related to Manager component comp:webui Related to WebUI component
Milestone

Comments

@achimnol
Copy link
Member

achimnol commented Jun 28, 2024

Just like #2349, let's add admin-level frontend settings API. This settings will cover domain/site-specific theme customizations (brand colors, font, logo, etc.) and default localization settings for new users (timezone, language, etc.). This could be also reused across different add-ons like FastTrack.

  • Add a config-domain-frontend json schema definition, placing it under src/ai/backend/manager/models/schema.
    • For logo, let's just accept an arbitrary URL.
  • Add a frontend_settings column to the domains table.
    • Fill the default settings when migrating the database.
  • Add a frontend configuration API set to the manager:
    • POST|GET /config/frontend/{domain_id} (write/read config; only superadmins can write)
    • GET /config/schema/domain-frontend (return the content of json schema)
  • When creating a new user, apply the default localization settings.
@achimnol achimnol added type:feature Add new features comp:manager Related to Manager component comp:webui Related to WebUI component labels Jun 28, 2024
@achimnol achimnol added this to the 24.09 milestone Jun 28, 2024
@achimnol achimnol changed the title Global admin settings for frontend Domain-level frontend settings Jun 28, 2024
@achimnol achimnol removed the type:feature Add new features label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component comp:webui Related to WebUI component
Projects
None yet
Development

No branches or pull requests

1 participant