EncyclopediaFilter Module
Pure predicate + helpers for the Units-tab encyclopedia filter (feature 044). Stateless — one source of truth for both render and tests.
Functions and values
| Function or value |
Description
|
Full Usage:
apply selection entries
Parameters:
EncyclopediaSelection
entries : EncyclopediaEntry list
Returns: EncyclopediaEntry list
|
`entries |> List.filter (matches selection)` (order-preserving).
|
|
The canonical "no filters, no search" snapshot. Alias for `EncyclopediaSelection.defaults`.
|
|
Canonical display-name derivation used by both the tab detail pane and the search-substring test.
|
Full Usage:
matches selection entry
Parameters:
EncyclopediaSelection
entry : EncyclopediaEntry
Returns: bool
|
`true` iff `entry` passes every active category in `selection` AND the search text. Empty category = pass-all.
|
|
Map a viz-internal `MovementShape` into the Hub-UI chip key. `None` for values the Hub chooses not to expose (e.g. `Unknown`).
|
|
Map a viz-internal `Tier` into the Hub-UI chip key. `None` for values the Hub chooses not to expose as a chip.
|
FSBarV1_Archived