ui/phase-23: turn-report view with twenty sections and TOC
Replaces the Phase 10 report stub with a scrollable orchestrator that renders every FBS array as a dedicated section (galaxy summary, votes, player status, my/foreign sciences, my/foreign ship classes, battles, bombings, approaching groups, my/foreign/uninhabited/unknown planets, ships in production, cargo routes, my fleets, my/foreign/unidentified ship groups). A sticky table of contents (a <select> on mobile), "back to map" affordance, IntersectionObserver-driven active-section highlight, and SvelteKit Snapshot-based scroll save/restore round out the view. GameReport gains six new fields (players, otherScience, otherShipClass, battleIds, bombings, shipProductions); decodeReport, the synthetic- report loader, the e2e fixture builder, and EMPTY_SHIP_GROUPS extend in lockstep. ~90 new i18n keys land in en + ru together. The legacy-report parser is extended to populate the new sections from the dg/gplus text formats (Your Sciences, <Race> Sciences, <Race> Ship Types, Bombings, Ships In Production). Ships-in-production prod_used is derived through a new pkg/calc.ShipBuildCost helper; the engine's controller.ProduceShip refactors to call the same helper without any behaviour change (engine tests stay unchanged and green). Battles remain in the parser's Skipped list — the legacy text carries no stable per-battle UUID. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -409,6 +409,143 @@ const ru: Record<keyof typeof en, string> = {
|
||||
"game.inspector.planet.ship_groups.row.mass": "масса {mass}",
|
||||
"game.inspector.planet.ship_groups.race.unknown": "неизвестно",
|
||||
"game.inspector.planet.ship_groups.race.foreign": "чужие",
|
||||
|
||||
"game.report.loading": "загрузка отчёта…",
|
||||
"game.report.back_to_map": "назад к карте",
|
||||
"game.report.toc.title": "разделы",
|
||||
"game.report.toc.mobile_label": "перейти к разделу",
|
||||
"game.report.section.galaxy_summary.title": "общие сведения о галактике",
|
||||
"game.report.section.galaxy_summary.field.turn": "ход",
|
||||
"game.report.section.galaxy_summary.field.size": "размер карты",
|
||||
"game.report.section.galaxy_summary.field.planets": "всего планет",
|
||||
"game.report.section.galaxy_summary.field.race": "ваша раса",
|
||||
"game.report.section.votes.title": "голоса",
|
||||
"game.report.section.votes.mine": "мои голоса",
|
||||
"game.report.section.votes.target": "голосую за",
|
||||
"game.report.section.votes.target_none": "(пока никого)",
|
||||
"game.report.section.votes.received_header": "голосов получено в прошлой раздаче",
|
||||
"game.report.section.votes.column.race": "раса",
|
||||
"game.report.section.votes.column.votes": "получено голосов",
|
||||
"game.report.section.votes.empty": "голосов ещё нет",
|
||||
"game.report.section.player_status.title": "статус игроков",
|
||||
"game.report.section.player_status.column.name": "имя",
|
||||
"game.report.section.player_status.column.drive": "двигатель %",
|
||||
"game.report.section.player_status.column.weapons": "оружие %",
|
||||
"game.report.section.player_status.column.shields": "защита %",
|
||||
"game.report.section.player_status.column.cargo": "трюм %",
|
||||
"game.report.section.player_status.column.population": "население",
|
||||
"game.report.section.player_status.column.industry": "производство",
|
||||
"game.report.section.player_status.column.planets": "планет",
|
||||
"game.report.section.player_status.column.votes": "получено голосов",
|
||||
"game.report.section.player_status.local_marker": "вы",
|
||||
"game.report.section.player_status.extinct_marker": "RIP",
|
||||
"game.report.section.my_sciences.title": "мои науки",
|
||||
"game.report.section.my_sciences.column.name": "имя",
|
||||
"game.report.section.my_sciences.column.drive": "двигатель %",
|
||||
"game.report.section.my_sciences.column.weapons": "оружие %",
|
||||
"game.report.section.my_sciences.column.shields": "защита %",
|
||||
"game.report.section.my_sciences.column.cargo": "трюм %",
|
||||
"game.report.section.my_sciences.empty": "науки ещё не определены",
|
||||
"game.report.section.foreign_sciences.title": "науки других рас",
|
||||
"game.report.section.foreign_sciences.race_header": "науки расы {race}",
|
||||
"game.report.section.foreign_sciences.empty": "наук других рас пока не видно",
|
||||
"game.report.section.my_ship_classes.title": "мои классы кораблей",
|
||||
"game.report.section.my_ship_classes.column.name": "имя",
|
||||
"game.report.section.my_ship_classes.column.drive": "двигатель",
|
||||
"game.report.section.my_ship_classes.column.armament": "вооружение",
|
||||
"game.report.section.my_ship_classes.column.weapons": "оружие",
|
||||
"game.report.section.my_ship_classes.column.shields": "защита",
|
||||
"game.report.section.my_ship_classes.column.cargo": "трюм",
|
||||
"game.report.section.my_ship_classes.empty": "классы кораблей ещё не спроектированы",
|
||||
"game.report.section.foreign_ship_classes.title": "классы кораблей других рас",
|
||||
"game.report.section.foreign_ship_classes.race_header": "классы кораблей расы {race}",
|
||||
"game.report.section.foreign_ship_classes.column.mass": "масса",
|
||||
"game.report.section.foreign_ship_classes.empty": "классов кораблей других рас пока не видно",
|
||||
"game.report.section.battles.title": "сражения",
|
||||
"game.report.section.battles.empty": "сражений в этом ходу не было",
|
||||
"game.report.section.battles.id_label": "сражение",
|
||||
"game.report.section.bombings.title": "бомбардировки",
|
||||
"game.report.section.bombings.empty": "бомбардировок в этом ходу не было",
|
||||
"game.report.section.bombings.column.planet": "планета",
|
||||
"game.report.section.bombings.column.owner": "владелец",
|
||||
"game.report.section.bombings.column.attacker": "атакующий",
|
||||
"game.report.section.bombings.column.production": "производство",
|
||||
"game.report.section.bombings.column.industry": "промышленность",
|
||||
"game.report.section.bombings.column.population": "население",
|
||||
"game.report.section.bombings.column.colonists": "колонисты",
|
||||
"game.report.section.bombings.column.industry_stockpile": "запас промышленности ($)",
|
||||
"game.report.section.bombings.column.materials_stockpile": "запас материалов (M)",
|
||||
"game.report.section.bombings.column.attack_power": "сила удара",
|
||||
"game.report.section.bombings.wiped": "уничтожена",
|
||||
"game.report.section.approaching_groups.title": "приближающиеся группы",
|
||||
"game.report.section.approaching_groups.empty": "приближающихся групп нет",
|
||||
"game.report.section.approaching_groups.column.from": "откуда",
|
||||
"game.report.section.approaching_groups.column.to": "куда",
|
||||
"game.report.section.approaching_groups.column.distance": "расстояние",
|
||||
"game.report.section.approaching_groups.column.speed": "скорость",
|
||||
"game.report.section.approaching_groups.column.mass": "масса",
|
||||
"game.report.section.my_planets.title": "мои планеты",
|
||||
"game.report.section.my_planets.empty": "планет пока нет",
|
||||
"game.report.section.my_planets.column.number": "#",
|
||||
"game.report.section.my_planets.column.name": "имя",
|
||||
"game.report.section.my_planets.column.coordinates": "x, y",
|
||||
"game.report.section.my_planets.column.size": "размер",
|
||||
"game.report.section.my_planets.column.resources": "ресурсы",
|
||||
"game.report.section.my_planets.column.population": "население",
|
||||
"game.report.section.my_planets.column.industry": "производство",
|
||||
"game.report.section.my_planets.column.industry_stockpile": "$",
|
||||
"game.report.section.my_planets.column.materials_stockpile": "M",
|
||||
"game.report.section.my_planets.column.colonists": "колонисты",
|
||||
"game.report.section.my_planets.column.production": "текущее производство",
|
||||
"game.report.section.my_planets.column.free_industry": "своб.",
|
||||
"game.report.section.ships_in_production.title": "в производстве",
|
||||
"game.report.section.ships_in_production.empty": "в производстве пусто",
|
||||
"game.report.section.ships_in_production.column.planet": "планета",
|
||||
"game.report.section.ships_in_production.column.class": "класс",
|
||||
"game.report.section.ships_in_production.column.cost": "стоимость",
|
||||
"game.report.section.ships_in_production.column.prod_used": "вложено",
|
||||
"game.report.section.ships_in_production.column.percent": "процент",
|
||||
"game.report.section.ships_in_production.column.free": "своб. производство",
|
||||
"game.report.section.cargo_routes.title": "маршруты грузов",
|
||||
"game.report.section.cargo_routes.empty": "маршруты не заданы",
|
||||
"game.report.section.cargo_routes.column.source": "откуда",
|
||||
"game.report.section.cargo_routes.column.load": "груз",
|
||||
"game.report.section.cargo_routes.column.destination": "куда",
|
||||
"game.report.section.foreign_planets.title": "планеты других рас",
|
||||
"game.report.section.foreign_planets.empty": "чужих планет пока не видно",
|
||||
"game.report.section.foreign_planets.column.owner": "владелец",
|
||||
"game.report.section.uninhabited_planets.title": "необитаемые планеты",
|
||||
"game.report.section.uninhabited_planets.empty": "необитаемых планет пока не видно",
|
||||
"game.report.section.unknown_planets.title": "неопознанные планеты",
|
||||
"game.report.section.unknown_planets.empty": "неопознанных планет нет",
|
||||
"game.report.section.my_fleets.title": "мои флоты",
|
||||
"game.report.section.my_fleets.empty": "флотов пока нет",
|
||||
"game.report.section.my_fleets.column.name": "имя",
|
||||
"game.report.section.my_fleets.column.groups": "групп",
|
||||
"game.report.section.my_fleets.column.state": "состояние",
|
||||
"game.report.section.my_fleets.column.destination": "куда",
|
||||
"game.report.section.my_fleets.column.origin": "откуда",
|
||||
"game.report.section.my_fleets.column.range": "осталось",
|
||||
"game.report.section.my_fleets.column.speed": "скорость",
|
||||
"game.report.section.my_ship_groups.title": "мои группы кораблей",
|
||||
"game.report.section.my_ship_groups.empty": "групп кораблей пока нет",
|
||||
"game.report.section.my_ship_groups.column.id": "id",
|
||||
"game.report.section.my_ship_groups.column.class": "класс",
|
||||
"game.report.section.my_ship_groups.column.count": "числ.",
|
||||
"game.report.section.my_ship_groups.column.cargo": "груз",
|
||||
"game.report.section.my_ship_groups.column.state": "состояние",
|
||||
"game.report.section.my_ship_groups.column.destination": "куда",
|
||||
"game.report.section.my_ship_groups.column.origin": "откуда",
|
||||
"game.report.section.my_ship_groups.column.range": "осталось",
|
||||
"game.report.section.my_ship_groups.column.speed": "скорость",
|
||||
"game.report.section.my_ship_groups.column.mass": "масса",
|
||||
"game.report.section.my_ship_groups.column.fleet": "флот",
|
||||
"game.report.section.foreign_ship_groups.title": "группы кораблей других рас",
|
||||
"game.report.section.foreign_ship_groups.empty": "чужих групп пока не видно",
|
||||
"game.report.section.unidentified_groups.title": "неопознанные группы",
|
||||
"game.report.section.unidentified_groups.empty": "неопознанных групп нет",
|
||||
"game.report.section.unidentified_groups.column.x": "x",
|
||||
"game.report.section.unidentified_groups.column.y": "y",
|
||||
};
|
||||
|
||||
export default ru;
|
||||
|
||||
Reference in New Issue
Block a user