fix(web): фильтры VPS, вкладки дашборда и здоровье инвентаря
Docker / build (push) Has been cancelled

Фильтры стран и городов показывают только значения из БД; отключено автозаполнение поиска. Вкладки дашборда приведены к line tabs по REUI. VPS без проекта больше не считается проблемой.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-28 01:15:57 +07:00
co-authored by Cursor
parent 921feb926f
commit 5d83b1a95d
6 changed files with 57 additions and 35 deletions
+7 -3
View File
@@ -217,11 +217,13 @@ export function cityMatchesCountry(
)
}
/** Опции городов: из VPS и справочника, опционально по стране. */
/** Опции городов: из VPS и опционально справочника, опционально по стране. */
export function buildCityOptions(
rows: readonly CityLocationRow[] | undefined,
countryName?: string,
options?: { includeCatalog?: boolean },
): { value: string; label: string }[] {
const includeCatalog = options?.includeCatalog ?? true
const names = new Set<string>()
const countryCode = countryName?.trim()
? COUNTRY_BY_NAME_RU[countryName.trim().toLowerCase()]?.code
@@ -245,8 +247,10 @@ export function buildCityOptions(
}
}
for (const { name } of listCities(countryCode)) {
names.add(name)
if (includeCatalog) {
for (const { name } of listCities(countryCode)) {
names.add(name)
}
}
return [...names]