wip
This commit is contained in:
parent
f1601257c7
commit
c2070693fb
68 changed files with 2305 additions and 212 deletions
|
|
@ -102,7 +102,7 @@ export class DashboardRecorder {
|
|||
/**
|
||||
* Best-effort wait for tracked API traffic to go quiet (250ms of no
|
||||
* pending requests and no loading indicator). Unlike waitForStable this
|
||||
* never throws — it simply returns at the deadline. Used before computing
|
||||
* never throws: it simply returns at the deadline. Used before computing
|
||||
* hexagon click targets so the projection runs against the response for
|
||||
* the CURRENT viewport rather than one captured mid-animation.
|
||||
*/
|
||||
|
|
@ -133,7 +133,7 @@ export class DashboardRecorder {
|
|||
// Empty responses don't replace the snapshot (parse* skips them), so a
|
||||
// snapshot whose bounds differ from the latest REQUEST means the current
|
||||
// view has zero matching features and we'd be projecting stale data.
|
||||
// Surface that loudly — it almost always means the storyboard's filters
|
||||
// Surface that loudly: it almost always means the storyboard's filters
|
||||
// emptied the area it zoomed into.
|
||||
const snapshotBounds = this.lastPostcodes?.bounds ?? this.lastHexagons?.bounds;
|
||||
if (snapshotBounds && this.lastRequestedMapBounds) {
|
||||
|
|
@ -141,7 +141,7 @@ export class DashboardRecorder {
|
|||
if (snapKey !== this.lastRequestedMapBounds) {
|
||||
console.log(
|
||||
`[dashboard] WARNING: map snapshot is stale (snapshot bounds ${snapKey} ` +
|
||||
`vs latest request ${this.lastRequestedMapBounds}) — the current view ` +
|
||||
`vs latest request ${this.lastRequestedMapBounds}). The current view ` +
|
||||
`likely has no matching features; clicks may land on empty map.`
|
||||
);
|
||||
}
|
||||
|
|
@ -221,7 +221,7 @@ export class DashboardRecorder {
|
|||
}
|
||||
|
||||
/**
|
||||
* The pixel rect inside `mapBox` that's safe to click — i.e. not under
|
||||
* The pixel rect inside `mapBox` that's safe to click, i.e. not under
|
||||
* the dashboard's left filters pane, right details pane, or (on mobile)
|
||||
* the floating MobileBottomSheet. We detect the sheet via the only
|
||||
* `section.rounded-t-2xl` in the DOM and treat its top as a hard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue