Skip to content

Update infrastructure-cascade.ts#139

Closed
Justin-Diamond wants to merge 1 commit into
koala73:mainfrom
Justin-Diamond:main
Closed

Update infrastructure-cascade.ts#139
Justin-Diamond wants to merge 1 commit into
koala73:mainfrom
Justin-Diamond:main

Conversation

@Justin-Diamond

Copy link
Copy Markdown

FIX: Previously, non-cable sources always returned 0.1 (10%), which made pipelines/chokepoints/ports always show 10% on the site. Now uses the hardcoded strength/redundancy values already encoded, or falls back to 0.

Summary

Fixes the % Capacity effect calculated and displayed on infra cascade feature. Before, it correctly calculated the effect for purposes of color/display order, but showed wrong % capacity effect.

Type of change

Changed the value returned by infra cascade for non-cable infra.

Affected areas

Only the % capacity value in infra cascade is affected.

Checklist

Didn't test in dev environment, only changed the # returned.

FIX: Previously, non-cable sources always returned 0.1 (10%), which made pipelines/chokepoints/ports always show 10% on the site. Now uses the hardcoded strength/redundancy values already encoded, or falls back to 0.
@vercel

vercel Bot commented Feb 20, 2026

Copy link
Copy Markdown

@Justin-Diamond is attempting to deploy a commit to the eliehabib projects Team on Vercel.

A member of the Team first needs to authorize it.

@koala73 koala73 closed this in d7ef62c Feb 20, 2026
@koala73

koala73 commented Feb 20, 2026

Copy link
Copy Markdown
Owner

Merged with changes , thank you @Justin-Diamond

facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
Closes koala73#139 — pass DependencyGraph as parameter (no redundant rebuild),
check direct edges first, then walk BFS dependency chain for indirect
impacts (chokepoint → port → country). Returns 0 for truly unaffected.
koala73 added a commit that referenced this pull request Jun 19, 2026
…#4351)

Resolves all 3 critical Dependabot alerts without changing runtime behavior:

- shell-quote 1.8.3 -> 1.8.4 (root + pro-test) via overrides. It is a
  transitive peer dep of the dead react-devtools-core/react-native tree;
  the bump is a security patch with no runtime impact. (#140, #141,
  GHSA-w7jw-789q-3m8p)
- vitest ^2.1.2 -> ^3.2.6 (consumer-prices-core), a dev-only test tool.
  All 54 tests pass and `tsc` builds clean under v3; zero production
  dependencies changed and no CI job runs it. (#139, GHSA-5xrq-8626-4rwp)

Also folded in, since it was the sole remaining blocker keeping the
security-audit gate red on every PR:

- undici 7.24.5 -> 7.28.0 (scripts), an in-range (^7.x) direct-dep patch
  for the SOCKS5 ProxyAgent TLS bypass (GHSA-vmh5-mc38-953g, high).

Removed the now-obsolete GHSA-w7jw-789q-3m8p baseline entries from
audit-production-dependencies.mjs (shell-quote is patched, not deferred)
and re-pointed the two baseline tests at advisories that are still
baselined. Full audit matrix passes exit=0 across all 6 workspaces;
lockfiles are idempotent (npm ci-safe).

Claude-Session: https://claude.ai/code/session_01JWozy1k6rwrf6ENB3XSJDR
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.

2 participants