refactor(places): one name for the uncategorized bucket and the category matcher

PlacesSidebarHeader uses the UNCATEGORIZED constant, placesBrowserModel stops
re-exporting matchesCategoryFilter (its test imports it from utils/placesFilter),
and the orphan comment in the en places strings joins the places.filters key.
This commit is contained in:
EvKoh
2026-10-03 15:54:19 +02:00
committed by Maurice
parent 4b263c8e4b
commit b6115d48f3
4 changed files with 10 additions and 10 deletions
@@ -1,8 +1,9 @@
import { describe, it, expect } from 'vitest'
import {
filterPool, firstPlannedDayNumbers, matchesCategoryFilter, matchesSearch,
filterPool, firstPlannedDayNumbers, matchesSearch,
plannedPlaceIds, poolCounts,
} from './placesBrowserModel'
import { matchesCategoryFilter } from '../../../../utils/placesFilter'
import type { AssignmentsMap, Day, Place } from '../../../../types'
const mkPlace = (id: number, over: Partial<Place> = {}): Place =>
@@ -17,9 +17,6 @@ import {
* there.
*/
/** Kept under this name for the browser's callers; the predicate itself lives in utils/placesFilter. */
export { matchesCategoryFilter }
export function plannedPlaceIds(
assignments: AssignmentsMap,
accommodations: PlannedAccommodation[] = [],