Skip to content

Commit b21c402

Browse files
committed
userSettings simplifications
1 parent 2dd9e1e commit b21c402

File tree

14 files changed

+159
-615
lines changed

14 files changed

+159
-615
lines changed

backend/app/domain/user/settings_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DomainNotificationSettings:
2020

2121
@dataclass
2222
class DomainEditorSettings:
23-
theme: str = "one-dark"
23+
theme: str = "auto"
2424
font_size: int = 14
2525
tab_size: int = 4
2626
use_tabs: bool = False

backend/app/schemas_pydantic/user_settings.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@ class NotificationSettings(BaseModel):
2121
class EditorSettings(BaseModel):
2222
"""Code editor preferences"""
2323

24-
theme: str = "one-dark"
24+
theme: str = "auto"
2525
font_size: int = 14
2626
tab_size: int = 4
2727
use_tabs: bool = False
2828
word_wrap: bool = True
2929
show_line_numbers: bool = True
30-
# These are always on in the editor, not user-configurable
31-
font_family: str = "Monaco, Consolas, 'Courier New', monospace"
32-
auto_complete: bool = True
33-
bracket_matching: bool = True
34-
highlight_active_line: bool = True
35-
default_language: str = "python"
3630

3731
@field_validator("font_size")
3832
@classmethod

docs/reference/openapi.json

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4991,7 +4991,7 @@
49914991
"theme": {
49924992
"type": "string",
49934993
"title": "Theme",
4994-
"default": "one-dark"
4994+
"default": "auto"
49954995
},
49964996
"font_size": {
49974997
"type": "integer",
@@ -5017,31 +5017,6 @@
50175017
"type": "boolean",
50185018
"title": "Show Line Numbers",
50195019
"default": true
5020-
},
5021-
"font_family": {
5022-
"type": "string",
5023-
"title": "Font Family",
5024-
"default": "Monaco, Consolas, 'Courier New', monospace"
5025-
},
5026-
"auto_complete": {
5027-
"type": "boolean",
5028-
"title": "Auto Complete",
5029-
"default": true
5030-
},
5031-
"bracket_matching": {
5032-
"type": "boolean",
5033-
"title": "Bracket Matching",
5034-
"default": true
5035-
},
5036-
"highlight_active_line": {
5037-
"type": "boolean",
5038-
"title": "Highlight Active Line",
5039-
"default": true
5040-
},
5041-
"default_language": {
5042-
"type": "string",
5043-
"title": "Default Language",
5044-
"default": "python"
50455020
}
50465021
},
50475022
"type": "object",

frontend/src/lib/__tests__/settings-cache.test.ts

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)