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":"Ils ont essayé un peer distant, une fois. Il a flappé pendant un lancement de produit. Plus jamais.",
"pitcairn.uk_grant_mo":"Subvention britannique {mo}/mois",
"pitcairn.uk_grant_mo_once_islanders":"Subvention britannique {mo}/mois une fois les insulaires en ligne",
"pni_all.additional_per_month":"Coût mensuel supplémentaire",
"pni_all.all_at_port":"Peering avec tous les réseaux · {port}",
"pni_all.delivery_and_traffic_charges":"Les délais de livraison varient selon le réseau. Des frais de peering liés au trafic s'appliquent aussi lorsque le réseau l'exige.",
"pni_all.n_blocked_connections":{"one":"{n} connexion indisponible","other":"{n} connexions indisponibles"},
"pni_all.n_blocked_pops":{"one":"{n} POP indisponible","other":"{n} POP indisponibles"},
"pni_all.n_existing_or_pending_unchanged":{"one":"{n} PNI existant ou commande en attente reste inchangé.","other":"{n} PNI existants ou commandes en attente restent inchangés."},
"pni_all.n_networks":{"one":"{n} réseau","other":"{n} réseaux"},
"pni_all.n_of_total_connections":"{n} / {total} connexions",
"pni_all.n_of_total_pops":"{n} / {total} POP en commun",
"pni_all.n_orders_with_net":{"one":"{n} commande de PNI passée avec {net}. Inchangés : {kept} ; indisponibles : {blocked}.","other":"{n} commandes de PNI passées avec {net}. Inchangés : {kept} ; indisponibles : {blocked}."},
"pni_all.new_and_upgrades":"Nouveaux : {fresh} · Augmentations : {up}",
"pni_all.no_shared_locations":"Aucun POP en commun disponible.",
"pni_all.no_shared_pops":"Tu n'as aucun POP en commun avec ce réseau.",
"pni_all.order_missing_and_upgrade_smaller":"Commande les PNI manquants et augmente la capacité des plus petits dans les POP en commun. Les PNI plus grands et les commandes en attente restent inchangés. Les POP indisponibles sont ignorés.",
"pni_all.peer_all_networks":"Peering avec tous les réseaux sur tous les POP",
"pni_all.peer_at_port":"Peering sur tous les POP · {port}",
"pni_all.peer_on_all_pops":"Peering sur tous les POP",
"pni_all.pni_size":"Capacité du PNI",
"pni_all.setup_total":"Coût total d'installation",
"pni_all.traffic_charges_apply":"Des frais de trafic de {price} par Gbps s'appliquent également.",
"pnis.a_new_region_is_coming_online":"Une nouvelle région arrive bientôt. Elle arrive bientôt depuis 2019.",
"pnis.about_n_days_to_go_nothing":"Encore environ {n} jours. Rien à faire qu’attendre, ou relancer.",
"pnis.augment_with_net_delivered_in_city":"<b>Extension avec {net} livrée à {city}.</b><br>Désormais {port}.",