feat: Update branding terminology and improve settings dialog for logo management
This commit is contained in:
parent
e52c09857f
commit
e1dbc2ee84
10 changed files with 104 additions and 57 deletions
|
|
@ -72,3 +72,28 @@ def test_config_from_env_uses_persisted_active_branding(tmp_path, monkeypatch):
|
|||
assert config.active_branding_id == "agravity"
|
||||
assert config.app_name == "Agravity Bridge"
|
||||
assert config.get_config_path().name == "config.json"
|
||||
|
||||
|
||||
def test_switching_back_to_default_restores_default_branding(tmp_path):
|
||||
"""Switching from a custom branding back to default should restore the default name."""
|
||||
manager = BrandingManager(base_dir=tmp_path)
|
||||
config = Config(
|
||||
app_name="WebDrop Bridge",
|
||||
app_version="1.0.0",
|
||||
log_level="INFO",
|
||||
log_file=None,
|
||||
allowed_roots=[],
|
||||
allowed_urls=[],
|
||||
webapp_url="http://localhost:8080",
|
||||
enable_logging=True,
|
||||
active_branding_id="agravity",
|
||||
)
|
||||
|
||||
manager.apply_to_config(config)
|
||||
assert config.app_name == "Agravity Bridge"
|
||||
|
||||
config.active_branding_id = "default"
|
||||
manager.apply_to_config(config)
|
||||
|
||||
assert config.app_name == "WebDrop Bridge"
|
||||
assert config.branding_display_name == "Default"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue