Add bulk PNI ordering across networks and POPs

Add two actions to the NOC Traffic tab:
- Order PNIs with one network at every shared POP.
- Order PNIs with all eligible networks at every shared POP, including
  long-tail peers.

Both actions offer a selectable port size and preview new connections,
upgrades, total setup costs, additional monthly charges and blocked sites.
Upgrade smaller PNIs while preserving larger connections, pending orders
and existing LAG members. Reserve router capacity across the batch and
account for pending speed and LAG augments to avoid overbooking ports.

Require the full setup budget before placing any orders. Reuse normal
peering policies, minimum port sizes and provisioning delays, then
recompute and save once for the entire batch. Keep large global previews
compact with collapsible network and blocked-connection lists.

Translate the new UI into all five supported languages and add tests for
single-network and global ordering, capacity, budgets, repeated clicks,
save migration, and mobile keyboard interaction.

Validation:
- Build and translation checks pass.
- 308 of 309 tests pass. The existing subsea reach test also fails on
  origin/main because the Windows locale uses a dot as the thousands
  separator where the assertion expects a comma.
- Chromium desktop and phone checks pass with the supplied save.
- Big-network benchmark against origin/main: dashboard tabs take
  16.8 -> 17.6 ms on desktop and 77.1 -> 80.7 ms on a simulated phone
  (median of 15 runs). Routing results are identical, with no slowdowns
  beyond the benchmark's noise threshold.
This commit is contained in:
logfro 2026-10-28 01:44:17 +01:00
parent ad94833ad1
commit 4932b3f93a
12 changed files with 442 additions and 7 deletions

View file

@ -2582,6 +2582,26 @@
"peering_policy.tried_a_remote_peer_once_it":"Tried a remote peer once. It flapped during a product launch. Never again.",
"pitcairn.uk_grant_mo":"UK grant {mo}/mo",
"pitcairn.uk_grant_mo_once_islanders":"UK grant {mo}/mo once the islanders are online",
"pni_all.additional_per_month":"Additional monthly cost",
"pni_all.all_at_port":"Peer all networks · {port}",
"pni_all.delivery_and_traffic_charges":"Delivery times vary by network. Traffic-based peering charges also apply where required.",
"pni_all.n_blocked_connections":{"one":"{n} blocked connection","other":"{n} blocked connections"},
"pni_all.n_blocked_pops":{"one":"{n} blocked POP","other":"{n} blocked POPs"},
"pni_all.n_existing_or_pending_unchanged":{"one":"{n} existing PNI or pending order stays unchanged.","other":"{n} existing PNIs or pending orders stay unchanged."},
"pni_all.n_networks":{"one":"{n} network","other":"{n} networks"},
"pni_all.n_of_total_connections":"{n} / {total} connections",
"pni_all.n_of_total_pops":"{n} / {total} shared POPs",
"pni_all.n_orders_with_net":{"one":"{n} PNI order placed with {net}. Unchanged: {kept}; blocked: {blocked}.","other":"{n} PNI orders placed with {net}. Unchanged: {kept}; blocked: {blocked}."},
"pni_all.new_and_upgrades":"New: {fresh} · Upgrades: {up}",
"pni_all.no_shared_locations":"No shared POPs are available.",
"pni_all.no_shared_pops":"You have no POPs in common with this network.",
"pni_all.order_missing_and_upgrade_smaller":"Orders missing PNIs and upgrades smaller ones at your shared POPs. Larger PNIs and pending orders stay unchanged. Unavailable POPs are skipped.",
"pni_all.peer_all_networks":"Peer all networks on all POPs",
"pni_all.peer_at_port":"Peer on all POPs · {port}",
"pni_all.peer_on_all_pops":"Peer on all POPs",
"pni_all.pni_size":"PNI size",
"pni_all.setup_total":"Total setup cost",
"pni_all.traffic_charges_apply":"Traffic charges of {price} per Gbps also apply.",
"pnis.a_new_region_is_coming_online":"A new region is coming online soon. It has been coming online soon since 2019.",
"pnis.about_n_days_to_go_nothing":"About {n} days to go. Nothing to do but wait, or chase it.",
"pnis.augment_with_net_delivered_in_city":"<b>Augment with {net} delivered in {city}.</b><br>Now {port}.",