mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
fix(voice): keep the area in follow-ups on OSM places
osm_query handed its places to the analyst with no presentation, so "which of
those have emergency?" after "hospitals in Kathmandu" was answered as "anywhere
in the loaded data". The handoff now carries the scope the places were found
in ("inside Kathmandu" with its areaId, or "in view"), as an analyst count over
that area would.
This commit is contained in:
1 parent
451be8e3b7
commit
474cce51eb
5 files changed
+71
-9
No files matched your search
@@ -1226,9 +1226,12 @@ export function createGevActionRunner({
|
||||
onCredit: () => registerDynamicCredit(viewer, OSM_PLACES_CREDIT),
|
||||
// The listed places become the analyst's "last answer", so
|
||||
// "which of those…" filters them and never an older set.
|
||||
rememberResults: (rows) => {
|
||||
rememberResults: (rows, presentation) => {
|
||||
if (!current()) return;
|
||||
if (rows) ensureAnalystEngine().remember('osm-places', rows);
|
||||
if (rows)
|
||||
ensureAnalystEngine().remember('osm-places', rows, {
|
||||
presentation,
|
||||
});
|
||||
else analystEngine?.reset();
|
||||
},
|
||||
progress: reportProgress,
|
||||
|
||||
Reference in new issue
Block a user