Skip to content

Keep the map answering and its readout on screen on a busy estate - #5870

Open
rcourtman wants to merge 1 commit into
mainfrom
fix/map-busy-estate-spec-71
Open

rcourtman wants to merge 1 commit into
mainfrom
fix/map-busy-estate-spec-71

Conversation

@rcourtman

Copy link
Copy Markdown
Owner

The map's end-to-end spec failed every run on main. On the suite's
estate of about a thousand resources the page was too busy to take a
press within ten seconds, and what it did answer it wrote off screen.
Each cause is fixed where it lives.

Product:

  • 858 of 966 active tiles were marked as spiking, each mark two
    animations. Only the twelve busiest are marked now.
  • The busy-tile pulses animated opacity, which draws each pulsing tile
    as a see-through group of its own and doubled the cost of a frame
    while flow lines moved. They pulse fill and outline opacity instead,
    and look the same.
  • Every refresh replaced every node in the drawing, the element under
    the pointer included, so a hover or a press in flight was lost. The
    targets are kept where the same thing is still drawn in the same
    place.
  • The legend and the hover readout sat in the flow under the map, 1,365px
    below the window on that estate. From a tablet up they stay at the
    foot of the window.
  • Every refresh searched about 35 layouts to arrive where it was. The
    fit now makes the layout it last chose first and keeps it when the
    same tiles come out in the same places.

Mock data: the disconnected Docker host was generated as just seen and
never refreshed, so a minute or two after start it went stale and one
of its containers jumped to first place on the map. It is now ten
minutes gone from the start.

Spec: a route handler could fail a finished journey at teardown, the
keyboard journey compared tiles by labels that carry live readings, and
the 900px legend check scrolled to the foot before looking.

The spec passed 8 of its last 10 whole runs on pulse-dev, against none
of four before. Both failures were ten second press timeouts while the
machine was heavily loaded, on presses that redraw the whole estate in
their own handler. That cost is recorded in the subsystem contract and
is not fixed here, so the spec stays on probation.

The map's end-to-end spec failed every run on main. On the suite's
estate of about a thousand resources the page was too busy to take a
press within ten seconds, and what it did answer it wrote off screen.
Each cause is fixed where it lives.

Product:
- 858 of 966 active tiles were marked as spiking, each mark two
  animations. Only the twelve busiest are marked now.
- The busy-tile pulses animated opacity, which draws each pulsing tile
  as a see-through group of its own and doubled the cost of a frame
  while flow lines moved. They pulse fill and outline opacity instead,
  and look the same.
- Every refresh replaced every node in the drawing, the element under
  the pointer included, so a hover or a press in flight was lost. The
  targets are kept where the same thing is still drawn in the same
  place.
- The legend and the hover readout sat in the flow under the map, 1,365px
  below the window on that estate. From a tablet up they stay at the
  foot of the window.
- Every refresh searched about 35 layouts to arrive where it was. The
  fit now makes the layout it last chose first and keeps it when the
  same tiles come out in the same places.

Mock data: the disconnected Docker host was generated as just seen and
never refreshed, so a minute or two after start it went stale and one
of its containers jumped to first place on the map. It is now ten
minutes gone from the start.

Spec: a route handler could fail a finished journey at teardown, the
keyboard journey compared tiles by labels that carry live readings, and
the 900px legend check scrolled to the foot before looking.

The spec passed 8 of its last 10 whole runs on pulse-dev, against none
of four before. Both failures were ten second press timeouts while the
machine was heavily loaded, on presses that redraw the whole estate in
their own handler. That cost is recorded in the subsystem contract and
is not fixed here, so the spec stays on probation.
@rcourtman
rcourtman enabled auto-merge December 4, 2026 01:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant