Профиль: выбор любимой фракции и строка «Чаще всего играет на»

В кастомизации профиля появился выбор любимой фракции из полного
справочника (PickerSelect, все 12 фракций): фракция — свойство игрока,
а не группы, поэтому список не зависит от подключённых дополнений.
Дополнение показано в строке опции приглушённым текстом, снятие выбора —
кнопкой «Убрать».

В карточке статистики «Любимая фракция» теперь берётся из профиля, а
«Основная фракция» переименована в «Чаще всего играет на» и печатает
название в предложном падеже. Публичный профиль правок не потребовал —
он использует ту же карточку и ту же схему.

schema.d.ts пересобран с живого бэкенда (npm run gen:api).

#17

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ps52xzuUXnWrJ5SRnEeaLk
This commit is contained in:
2026-09-07 16:17:52 +03:00
co-authored by Claude Opus 5
parent 60b22dd8df
commit befabba752
5 changed files with 92 additions and 5 deletions
+9 -1
View File
@@ -1357,6 +1357,8 @@ export interface components {
code: string;
/** Name Ru */
name_ru: string;
/** Name Ru Prepositional */
name_ru_prepositional: string;
/** Expansion Code */
expansion_code: string;
/** Games */
@@ -1761,6 +1763,8 @@ export interface components {
bio?: string | null;
/** Avatar Url */
avatar_url?: string | null;
/** Favorite Faction Id */
favorite_faction_id?: number | null;
/**
* Groups
* @default []
@@ -1881,7 +1885,7 @@ export interface components {
factions: components["schemas"]["FactionStat"][];
best_faction?: components["schemas"]["FactionStat"] | null;
worst_faction?: components["schemas"]["FactionStat"] | null;
most_played_faction?: components["schemas"]["FactionStat"] | null;
favorite_faction?: components["schemas"]["FactionRead"] | null;
main_faction?: components["schemas"]["FactionStat"] | null;
/**
* Recent Form
@@ -1898,6 +1902,8 @@ export interface components {
ProfileUpdate: {
/** Bio */
bio?: string | null;
/** Favorite Faction Id */
favorite_faction_id?: number | null;
};
/** PublicProfile */
PublicProfile: {
@@ -2004,6 +2010,8 @@ export interface components {
bio?: string | null;
/** Avatar Url */
avatar_url?: string | null;
/** Favorite Faction Id */
favorite_faction_id?: number | null;
};
/**
* UserSuggestion