orbit/js
Brian Fertig ff557f87ba Fix jumpgate activation bug and add NAV chart diagnostics
- `_applyResearchEffects` now receives the node id explicitly instead of
  reading `node.id`, which is undefined (the id is the key in the tree's
  `nodes` map, not a field on the object) — this was silently skipping
  `activateGates` so researched jumpgates stayed dark
- Add `systemIdOfGatesNode()` as the pure inverse of `systemNodeId()` for
  the gates node, with round-trip tests
- Reconcile gate activation in `_onEnterSystem()`: if the gates tech is
  already unlocked, re-run `_activateSystemJumpgates` (idempotent) so a
  missed activation self-heals on the next entry/jump/reload
- Make `_activateSystemJumpgates` idempotent by tracking fresh keys and
  early-returning when everything is already online
- Add `navPoints()` and `navChart()` to SystemCategory.js as pure,
  testable cores for the jumpgate unlock condition (discovered/missing
  split over all NAV points)
- Add `js/dev/NavDiag.js` with `orbitNav()` / `orbitNavBrief()` console
  commands that print the live NAV chart and which objects are still
  undiscovered, installed by `main.js` on every page load
- Update `data/landing.json` to reference the correct gasgiant surface/shop
  videos for slot 03
- Add tests for `navPoints`, `navChart`, and `systemIdOfGatesNode`
- Document the activation wiring bug, the `orbitNav()` diagnostic, and the
  new pure functions in PROJECT_NOTES.md
2026-09-06 17:41:29 -06:00
..
build
config
dev Fix jumpgate activation bug and add NAV chart diagnostics 2026-09-06 17:41:29 -06:00
entities Implement gate jump travel between systems 2026-09-06 16:37:48 -06:00
galaxy Implement gate jump travel between systems 2026-09-06 16:37:48 -06:00
mining
reputation
research Fix jumpgate activation bug and add NAV chart diagnostics 2026-09-06 17:41:29 -06:00
save Add per-system research category that unlocks jump gates 2026-09-06 15:56:38 -06:00
scan
scenes Fix jumpgate activation bug and add NAV chart diagnostics 2026-09-06 17:41:29 -06:00
tether
ui Add per-system research category that unlocks jump gates 2026-09-06 15:56:38 -06:00
utils
vendor
visuals
main.js Fix jumpgate activation bug and add NAV chart diagnostics 2026-09-06 17:41:29 -06:00