Repository navigation
Add site_settings Table and Register Dashboard Admin Settings - #3480
Merged
Merged
Conversation
This was referenced Jun 26, 2025
xuang7
added a commit
that referenced
this pull request
Jul 4, 2025
### **Purpose:** This PR migrates the configuration storage of UI elements, starting with logos, from static files to the database while preserving the existing logo‐customization feature. Future updates will extend this approach to additional elements. ### **Design Proposal:** Design #3528 **Related PRs:** #3453 - Logos customization UI (default values were defined in separate files and loaded directly; the database only stored updated logos) #3480 - site_settings table schema #3489 - Updated logos customization UI ### **Changes (updated):** - gui/../admin/settings/admin-setting.component.ts/html/scss: add the “Branding” card for logo upload/reset. - gui/..component/dashboard.component.ts: integrate dynamic logo rendering. - gui/../service/admin/settings/admin-settings.service.ts:CRUD API for settings - config-service/../ConfigService.scala: database connection and defaults preload on startup - amber/../dashboard/admin/settings/AdminSettingsResource.scala: REST endpoints for config CRUD ### **Changes (new)** - config/../resource/default.conf: defined logo defaults (and placeholders for future settings) and added config-service section with **always-reset-configurations-to-default-values** = false flag to control database reset behavior - config/../scala/DefaultsConfig.scala: loads defaults from default.conf ### **Demonstration:** The settings page retains its familiar upload interface, now organized under a Branding card: <img width="1555" alt="admin_setting" src="https://github.com/user-attachments/assets/60264dab-356a-413f-8f05-9a2fd1c8c541" /> --------- Co-authored-by: Xinyuan Lin <[email protected]>
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
…#3480) ### **Purpose:** Support site-wide settings by adding the site_settings table and standardizing the admin settings route constant. ### **Changes:** - Add site_settings table to the main DDL (texera.ddl) to enable site-wide settings storage. - Register DASHBOARD_ADMIN_SETTINGS route constant. <img width="442" alt="table" src="https://github.com/user-attachments/assets/c3f48060-bd43-420b-b5d9-66cdfe684a97" />
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
### **Purpose:** This PR migrates the configuration storage of UI elements, starting with logos, from static files to the database while preserving the existing logo‐customization feature. Future updates will extend this approach to additional elements. ### **Design Proposal:** Design apache#3528 **Related PRs:** apache#3453 - Logos customization UI (default values were defined in separate files and loaded directly; the database only stored updated logos) apache#3480 - site_settings table schema apache#3489 - Updated logos customization UI ### **Changes (updated):** - gui/../admin/settings/admin-setting.component.ts/html/scss: add the “Branding” card for logo upload/reset. - gui/..component/dashboard.component.ts: integrate dynamic logo rendering. - gui/../service/admin/settings/admin-settings.service.ts:CRUD API for settings - config-service/../ConfigService.scala: database connection and defaults preload on startup - amber/../dashboard/admin/settings/AdminSettingsResource.scala: REST endpoints for config CRUD ### **Changes (new)** - config/../resource/default.conf: defined logo defaults (and placeholders for future settings) and added config-service section with **always-reset-configurations-to-default-values** = false flag to control database reset behavior - config/../scala/DefaultsConfig.scala: loads defaults from default.conf ### **Demonstration:** The settings page retains its familiar upload interface, now organized under a Branding card: <img width="1555" alt="admin_setting" src="https://github.com/user-attachments/assets/60264dab-356a-413f-8f05-9a2fd1c8c541" /> --------- Co-authored-by: Xinyuan Lin <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…#3480) ### **Purpose:** Support site-wide settings by adding the site_settings table and standardizing the admin settings route constant. ### **Changes:** - Add site_settings table to the main DDL (texera.ddl) to enable site-wide settings storage. - Register DASHBOARD_ADMIN_SETTINGS route constant. <img width="442" alt="table" src="https://github.com/user-attachments/assets/c3f48060-bd43-420b-b5d9-66cdfe684a97" />
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
### **Purpose:** This PR migrates the configuration storage of UI elements, starting with logos, from static files to the database while preserving the existing logo‐customization feature. Future updates will extend this approach to additional elements. ### **Design Proposal:** Design apache#3528 **Related PRs:** apache#3453 - Logos customization UI (default values were defined in separate files and loaded directly; the database only stored updated logos) apache#3480 - site_settings table schema apache#3489 - Updated logos customization UI ### **Changes (updated):** - gui/../admin/settings/admin-setting.component.ts/html/scss: add the “Branding” card for logo upload/reset. - gui/..component/dashboard.component.ts: integrate dynamic logo rendering. - gui/../service/admin/settings/admin-settings.service.ts:CRUD API for settings - config-service/../ConfigService.scala: database connection and defaults preload on startup - amber/../dashboard/admin/settings/AdminSettingsResource.scala: REST endpoints for config CRUD ### **Changes (new)** - config/../resource/default.conf: defined logo defaults (and placeholders for future settings) and added config-service section with **always-reset-configurations-to-default-values** = false flag to control database reset behavior - config/../scala/DefaultsConfig.scala: loads defaults from default.conf ### **Demonstration:** The settings page retains its familiar upload interface, now organized under a Branding card: <img width="1555" alt="admin_setting" src="https://github.com/user-attachments/assets/60264dab-356a-413f-8f05-9a2fd1c8c541" /> --------- Co-authored-by: Xinyuan Lin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose:
Support site-wide settings by adding the site_settings table and standardizing the admin settings route constant.
Changes: