Skip to content

feat(dev): wire councilPlatformUrl into network-dashboard config (PR-B3) - #93

Closed
AquiGorka wants to merge 1 commit into
mainfrom
feat/network-dashboard-config-council-url
Closed

feat(dev): wire councilPlatformUrl into network-dashboard config (PR-B3)#93
AquiGorka wants to merge 1 commit into
mainfrom
feat/network-dashboard-config-council-url

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Summary

Third member of the coordinated PR-B trio. Pairs with:

Merge order: A → B1 → B2 → B3.

What this fixes

infra-up.sh generates network-dashboard/public/config.js for the local stack. Today the config exposes rpcUrl, horizonUrl, environment, stellarNetwork — but not the council-platform URL. PR-B2's SPA needs councilPlatformUrl to derive the WS endpoint at ws://localhost:${COUNCIL_PLATFORM_PORT}/api/v1/public/events/ws. Without it the SPA logs "councilPlatformUrl not configured" and the feed shows "Offline".

This one-liner surfaces COUNCIL_PLATFORM_PORT through the generated config exactly like STELLAR_RPC_PORT is surfaced today. Parallel-stack overrides via COUNCIL_PLATFORM_PORT continue to work — that's why the value is derived from the env var rather than hardcoded.

Diff

   rpcUrl: "http://localhost:${STELLAR_RPC_PORT}/soroban/rpc",
   horizonUrl: "http://localhost:${STELLAR_RPC_PORT}",
+  councilPlatformUrl: "http://localhost:${COUNCIL_PLATFORM_PORT}",
 };

Test plan

  • PM merge B1 → B2 → B3, run ./down.sh && ./up.sh, open http://localhost:3040, status flips from "Connecting…" to "Live".
  • After ./setup-c.sh && ./setup-pp.sh, a green ✓ PP joined card appears in the right rail.

Coordinated with council-platform PR-B1 (public events WS) and
network-dashboard PR-B2 (activity-feed scaffold). Merge order:
A → B1 → B2 → B3.

The network-dashboard SPA now talks to council-platform's WS at
/api/v1/public/events/ws to render live activity. Without
councilPlatformUrl in the generated config, the SPA had no way to
discover the local council-platform port, so the WS client falls
through to its "offline" branch.

One-line addition: surface COUNCIL_PLATFORM_PORT through the generated
config.js. Mirrors how rpcUrl is plumbed today. No other changes —
parallel-stack overrides via COUNCIL_PLATFORM_PORT continue to work
the same way.
@AquiGorka

Copy link
Copy Markdown
Contributor Author

Closing per PM direction — superseded.

@AquiGorka AquiGorka closed this May 18, 2026
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.

1 participant