Skip to content

fix: bookmark {dest_type} shows destination class; add {leads_to} token#484

Merged
GQuantrill merged 1 commit into
qafrom
fix/bookmark-dest-type-leads-to
Jul 18, 2026
Merged

fix: bookmark {dest_type} shows destination class; add {leads_to} token#484
GQuantrill merged 1 commit into
qafrom
fix/bookmark-dest-type-leads-to

Conversation

@GQuantrill

Copy link
Copy Markdown
Owner

Bug: {dest_type} resolved to whLeadsTo || wh.dest, so a hole pinned to a specific system rendered that system (e.g. J110555) instead of a destination class — even though the token is labelled "Destination class (C5, HS)". Reported: {sig} {dest_type} {type} {age}ABC-123 J110555 D364 0h.

Fix:

  • {dest_type} is now the destination class via whDestClass() — the wormhole type's charted destination (D364 → C2). It falls back to the leads-to only when that's itself a class/band (e.g. a K162 the user tagged "C4"), never a pinned system.
  • New {leads_to} token = the raw leads-to value: a pinned system (J110555) or the class/band the user set.

So the reported format now gives ABC-123 C2 D364 0h, and adding {leads_to} yields the specific destination.

Behaviour note: anyone whose custom format used {dest_type} to surface a pinned system will now see the class there instead — they should switch that token to {leads_to}. The default format ({sig} {dest_type} {size}) is unchanged in shape; for typed holes it now shows a proper uppercase class.

(The token legend in settings is hardcoded English — pre-existing, not i18n'd — so the new {leads_to} entry follows suit. No web test harness exists to add a unit test; verified via build.)

tsc + build + lint (0 errors) pass locally.

{dest_type} resolved to whLeadsTo || wh.dest, so a hole pinned to a
specific system showed that system (e.g. J110555) instead of a class —
despite being labelled 'Destination class'.

- {dest_type} is now the destination CLASS via whDestClass (the type's
  charted dest, e.g. D364 -> C2), falling back to the leads-to only when
  it's itself a class/band (a K162 tagged 'C4'), never a pinned system.
- New {leads_to} token carries the raw leads-to: a pinned system
  (J110555) or the class/band the user set.

So '{sig} {dest_type} {type} {age}' now gives 'ABC-123 C2 D364 0h', and
'{leads_to}' adds the specific destination. Existing formats using
{dest_type} to show a pinned system should switch that token to
{leads_to}.
@GQuantrill
GQuantrill merged commit 92c20aa into qa Jul 18, 2026
2 checks passed
@GQuantrill
GQuantrill deleted the fix/bookmark-dest-type-leads-to branch July 20, 2026 14:55
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