fix: address remaining review feedback

- Use i18n key for "games" label instead of hardcoded "Roms"
- Remove min-width on size bar fill so zero-size platforms show no bar
- Align Python TypedDict keys to str to match JSON wire format

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
cc
2026-03-10 19:58:14 -04:00
parent 60f5c38c8c
commit f82a4e15f5
2 changed files with 4 additions and 4 deletions

View File

@@ -18,5 +18,5 @@ class StatsReturn(TypedDict):
STATES: int
SCREENSHOTS: int
TOTAL_FILESIZE_BYTES: int
METADATA_COVERAGE: dict[int, list[MetadataCoverageItem]]
REGION_BREAKDOWN: dict[int, list[RegionBreakdownItem]]
METADATA_COVERAGE: dict[str, list[MetadataCoverageItem]]
REGION_BREAKDOWN: dict[str, list[RegionBreakdownItem]]

View File

@@ -187,7 +187,7 @@ function getCoveragePercent(matched: number, total: number): string {
<!-- Detail table: label | value -->
<div class="detail-table mt-2">
<div class="detail-row">
<span class="detail-label">Roms</span>
<span class="detail-label">{{ t("setup.games") }}</span>
<div>
<v-chip size="x-small" label>
{{ platform.rom_count }}
@@ -345,7 +345,7 @@ function getCoveragePercent(matched: number, total: number): string {
.size-bar-fill {
height: 100%;
min-width: 2px;
min-width: 0;
background: rgb(var(--v-theme-primary));
border-radius: 0 2px 2px 0;
transition: width 0.3s ease;