From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 91E111FF0B4 for ; Fri, 27 Nov 2026 17:14:19 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 45E342181B; Fri, 27 Nov 2026 17:13:23 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager/proxmox-geojson-data/yew-widget-toolkit/yew-widget-toolkit-assets 00/38] map: show running remote migrations and rework the world map Date: Fri, 27 Nov 2026 17:11:57 +0100 Message-ID: <20261127161241.3713494-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.248 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: DWDCBLOFB4NNSWX3UOPDWACWMSMTG355 X-Message-ID-Hash: DWDCBLOFB4NNSWX3UOPDWACWMSMTG355 X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The map of a PDM view now shows the running migrations between remotes as animated connections between their locations. While at it, the map widget got much cheaper to draw and a new look. proxmox-geojson-data: Generates the borders between countries as lines that are there only once, and the land as polygons built from the simplified coast. The borders were drawn twice and often did not match before, and the file shrinks to about half the size. proxmox-yew-widget-toolkit-assets and proxmox-yew-widget-toolkit: The toolkit series starts with fixes and improvements that do not depend on the rest (closing the info card after a drag, the placement of button menus near the lower edge of the window, comparing the map data by reference). Then the map gets faster: the shapes of the world map are split into one path per region, so that the browser can skip what is outside of the area it draws, the map and the points are separate layers, and moving the pointer over the map or panning it does not render the shapes anew. On top of that come the new features of the Map and WorldMap: animated changes of the view, a new look for the points (dot, halo and count), a graticule, connections between points, a shade for the night with a button to toggle it, helpers to show the shares of a cluster and to ping a point, labels next to the points, a status in a corner of the map and additional buttons in its panel. Each of them has its classes in a matching patch of the assets series. proxmox-datacenter-manager: Loads the running migration tasks, reads their target from the start of the task log and shows them as connections on the map. The map also shades the night, shows the states of the remotes of a cluster as a ring, pings points with problems, labels the locations and summarizes the remotes and migrations in a corner, with menus that lead to the remotes. Dependencies: * the toolkit patches need the assets patches, and the WorldMap now needs the land as polygons, so the new data from proxmox-geojson-data. With the old data the land is not filled anymore. * the PDM patches need all of the others, including an update of the pwt-assets submodule. * the toolkit now uses gloo-render directly for the animation frames. It is already built as a dependency of yew. Things that are easy to miss: * The target of a migration is not part of the task list, so the UI parses it from the line PVE logs at the start of a migration ("starting migration of VM 100 to node 'pve2' (192.0.2.2)") and matches the address against the nodes of the configured remotes. The running tasks are polled once a second while the page is visible, the log of each task is only read once. The interval might be too little, increasing it would just be changing one constant. * The image that shades the night is encoded as (uncompressed) PNG in the toolkit. Letting a canvas do that does not work in Firefox with the protection against fingerprinting, which returns garbage when reading back from a canvas. Drawing the shade with SVG polygons instead was noticeably slower while panning in Firefox. * Whether a label fits is estimated from the number of its characters, the text is not measured. proxmox-geojson-data: Dominik Csapak (1): generate the borders between countries as lines without duplicates Makefile | 21 +++++++++++++++++++-- world-map.json | 4 ++-- 2 files changed, 21 insertions(+), 4 deletions(-) proxmox-yew-widget-toolkit-assets: Dominik Csapak (10): charts: world map: add classes for the map and its features charts: map: stack the map and its points in two layers charts: map: show locations as a dot with a halo charts: map: show the buttons as one panel charts: map: add classes for connections charts: world map: add class for the shade of the night charts: map: add classes for the shares and the ping of a location charts: map: add class for the shadow of a connection charts: map: add class for the labels of locations charts: map: add class for the status of a map scss/_charts.scss | 379 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 366 insertions(+), 13 deletions(-) proxmox-yew-widget-toolkit: Dominik Csapak (20): widget: charts: map: factor out the radius factor of a cluster widget: charts: map: close the info card with the first click after a drag widget: menu: open the menu of a button above it if there is no room below widget: charts: world map: compare the map data by reference widget: charts: world map: draw polygons as areas and line strings as lines widget: charts: world map: split the map into one path per region widget: charts: map: draw the points in an svg element of their own widget: charts: map: don't render if the pointer moves over the same point widget: charts: map: keep the tooltip on its points when clustering anew widget: charts: world map: add a graticule widget: charts: map: animate changes of the view widget: charts: map: draw points as a dot with a halo and their count widget: charts: map: let the style sheet color the zoom buttons widget: charts: map: allow drawing connections between points widget: charts: map: allow additional buttons in the panel widget: charts: world map: allow shading the night widget: charts: map: add helpers to show shares and to ping a point widget: charts: map: draw a shadow below connections widget: charts: map: allow showing labels next to the points widget: charts: map: allow showing a status in a corner of the map Cargo.toml | 1 + src/widget/charts/alpha_image.rs | 117 ++++ src/widget/charts/map/map_point.rs | 93 ++- src/widget/charts/map/mod.rs | 949 ++++++++++++++++++++++++++--- src/widget/charts/map/zoom_info.rs | 80 +++ src/widget/charts/mod.rs | 6 +- src/widget/charts/world_map.rs | 623 ++++++++++++++++--- src/widget/menu/menu_popper.rs | 7 + 8 files changed, 1688 insertions(+), 188 deletions(-) create mode 100644 src/widget/charts/alpha_image.rs proxmox-datacenter-manager: Dominik Csapak (7): ui: views: map: only load and parse the world map once ui: views: map: only format the titles once when sorting ui: views: map: show running remote migrations ui: views: map: shade the night on the map ui: views: map: show the states of a cluster and ping problems ui: views: map: show the names of the locations ui: views: map: show a summary of the remotes and migrations ui/src/dashboard/map.rs | 475 +++++++++++++++++++++++++++++++++++---- ui/src/dashboard/mod.rs | 2 +- ui/src/dashboard/view.rs | 72 +++++- 3 files changed, 501 insertions(+), 48 deletions(-) Summary over all repositories: 14 files changed, 2576 insertions(+), 253 deletions(-) -- Generated by murpp 0.11.0