mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
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:
@@ -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[] = [],
|
||||
|
||||
Reference in New Issue
Block a user