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

@ -2581,6 +2581,26 @@
"peering_policy.tried_a_remote_peer_once_it":"Hanno provato un peer remoto, una volta. Ha flappato durante il lancio di un prodotto. Mai più.",
"pitcairn.uk_grant_mo":"Contributo UK {mo}/mese",
"pitcairn.uk_grant_mo_once_islanders":"Contributo UK {mo}/mese quando gli isolani saranno online",
"pni_all.additional_per_month":"Costo mensile aggiuntivo",
"pni_all.all_at_port":"Peering con tutte le reti · {port}",
"pni_all.delivery_and_traffic_charges":"I tempi di consegna variano secondo la rete. Si applicano anche costi di peering basati sul traffico, dove previsti.",
"pni_all.n_blocked_connections":{"one":"{n} connessione non disponibile","other":"{n} connessioni non disponibili"},
"pni_all.n_blocked_pops":{"one":"{n} POP non disponibile","other":"{n} POP non disponibili"},
"pni_all.n_existing_or_pending_unchanged":{"one":"{n} PNI esistente o ordine in attesa resta invariato.","other":"{n} PNI esistenti o ordini in attesa restano invariati."},
"pni_all.n_networks":{"one":"{n} rete","other":"{n} reti"},
"pni_all.n_of_total_connections":"{n} / {total} connessioni",
"pni_all.n_of_total_pops":"{n} / {total} POP in comune",
"pni_all.n_orders_with_net":{"one":"{n} ordine PNI effettuato con {net}. Invariati: {kept}; non disponibili: {blocked}.","other":"{n} ordini PNI effettuati con {net}. Invariati: {kept}; non disponibili: {blocked}."},
"pni_all.new_and_upgrades":"Nuovi: {fresh} · Upgrade: {up}",
"pni_all.no_shared_locations":"Nessun POP in comune disponibile.",
"pni_all.no_shared_pops":"Non hai POP in comune con questa rete.",
"pni_all.order_missing_and_upgrade_smaller":"Ordina i PNI mancanti e potenzia quelli più piccoli nei POP in comune. I PNI più grandi e gli ordini in attesa restano invariati. I POP non disponibili vengono saltati.",
"pni_all.peer_all_networks":"Peering con tutte le reti su tutti i POP",
"pni_all.peer_at_port":"Peering su tutti i POP · {port}",
"pni_all.peer_on_all_pops":"Peering su tutti i POP",
"pni_all.pni_size":"Capacità PNI",
"pni_all.setup_total":"Costo totale di attivazione",
"pni_all.traffic_charges_apply":"Si applicano anche costi di traffico di {price} per Gbps.",
"pnis.a_new_region_is_coming_online":"Una nuova region arriverà presto. Arriva presto dal 2019.",
"pnis.about_n_days_to_go_nothing":"Mancano circa {n} giorni. Non resta che aspettare, o sollecitare.",
"pnis.augment_with_net_delivered_in_city":"<b>Ampliamento con {net} consegnato a {city}.</b><br>Ora {port}.",