Skip to content

feat: enable gui logo configuration CRUD using database - #3511

Merged
xuang7 merged 14 commits into
masterfrom
xuan-migrate-logos-into-database
Jul 4, 2025
Merged

xuang7 merged 14 commits into
masterfrom
xuan-migrate-logos-into-database

Conversation

@xuang7

@xuang7 xuang7 commented Jun 28, 2025 •

Copy link
Copy Markdown
Contributor

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:
admin_setting

@xuang7 xuang7 added the config Pull requests that update configuration label Jun 28, 2025
@xuang7 xuang7 self-assigned this Jun 28, 2025
@xuang7
xuang7 marked this pull request as ready for review June 28, 2025 17:40
@xuang7
xuang7 requested review from aglinxinyuan and bobbai00 June 28, 2025 17:40
@xuang7
xuang7 requested a review from aglinxinyuan June 29, 2025 02: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!

@bobbai00 bobbai00 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.

Left some comments

@xuang7
xuang7 requested a review from bobbai00 July 2, 2025 00:52
@bobbai00 bobbai00 changed the title Migrate logo configuration from static files into the database feat: enable gui logo configuration CRUD using database Jul 4, 2025

@bobbai00 bobbai00 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. Left some minor comments. Please take care of them

@xuang7
xuang7 merged commit e75455f into master Jul 4, 2025
@xuang7
xuang7 deleted the xuan-migrate-logos-into-database branch July 4, 2025 21:49
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
### **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

config Pull requests that update configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants