Files
worldmonitor/proto
Elie Habib 1937dbf844 feat(portwatch): Maritime Activity section in CountryDeepDivePanel (PR C) (#2805)
* feat(portwatch): Maritime Activity section in CountryDeepDivePanel (PR C)

- Add get_country_port_activity.proto with PortActivityEntry + CountryPortActivityResponse messages
- Register GetCountryPortActivity RPC in service.proto with HTTP GET /get-country-port-activity path
- Run make generate to produce updated service_client.ts and service_server.ts
- Implement get-country-port-activity.ts handler: countries guard, top-5 slice, trendDelta→tankerCallsPrev mapping
- Register handler in intelligence handler.ts and gateway.ts slow cache tier
- Add CountryPortActivityData interface and updateMaritimeActivity? method to CountryBriefPanel
- Implement updateMaritimeActivity in CountryDeepDivePanel: table with 5 ports, anomaly badge, trend color, IMF PortWatch footer
- Add getCountryPortActivity call in country-intel.ts with stale guard
- Add maritime-activity CMD+K entry in commands.ts
- 29 source-string assertions in tests/country-port-activity.test.mjs (all pass)

Task: PR C

* fix(portwatch): pass trendDelta directly, add runtime trend tests
2026-04-08 00:02:23 +04:00
..