Skip to content

Add site_settings Table and Register Dashboard Admin Settings - #3480

Merged
xuang7 merged 1 commit into
masterfrom
xuan-update-site-settings-table
Jun 19, 2025
Merged

xuang7 merged 1 commit into
masterfrom
xuan-update-site-settings-table

Conversation

@xuang7

@xuang7 xuang7 commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

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
table

@xuang7 xuang7 added the ddl-change Changes to the TexeraDB DDL label Jun 19, 2025
@xuang7 xuang7 self-assigned this Jun 19, 2025
@xuang7
xuang7 requested a review from aglinxinyuan June 19, 2025 00:47
@xuang7
xuang7 marked this pull request as ready for review June 19, 2025 00:47

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@xuang7
xuang7 merged commit 8ad3064 into master Jun 19, 2025
@xuang7
xuang7 deleted the xuan-update-site-settings-table branch June 19, 2025 01:19
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants