feat: Implement user profile preferences for start page, Git identity, and task drawer auto-open, alongside Git server default branch configuration.

This commit is contained in:
2026-03-08 10:19:38 +03:00
parent 12d17ec35e
commit e864a9e08b
30 changed files with 2041 additions and 211 deletions

20
backend/test_pat_api.py Normal file
View File

@@ -0,0 +1,20 @@
from pydantic import BaseModel, Field
from typing import Optional
class GitProvider(str):
pass
class GitServerConfigBase(BaseModel):
name: str = Field(..., description="Display name for the Git server")
provider: str = Field(..., description="Git provider (GITHUB, GITLAB, GITEA)")
url: str = Field(..., description="Server base URL")
pat: str = Field(..., description="Personal Access Token")
pat: str = Field(..., description="Personal Access Token")
default_repository: Optional[str] = Field(None, description="Default repository path (org/repo)")
default_branch: Optional[str] = Field("main", description="Default branch logic/name")
class GitServerConfigSchema(GitServerConfigBase):
id: str
status: str
print(GitServerConfigSchema.model_fields.keys())