Skip to content

Info card tweaks: morphology types, unified catalogues row, leaner layout#281

Merged
rulkens merged 6 commits into
mainfrom
worktree-tweak-info-cards
Jun 7, 2026
Merged

Info card tweaks: morphology types, unified catalogues row, leaner layout#281
rulkens merged 6 commits into
mainfrom
worktree-tweak-info-cards

Conversation

@rulkens
Copy link
Copy Markdown
Owner

@rulkens rulkens commented Jun 7, 2026

Tweaks across the galaxy/POI info cards (desktop + mobile). First commit on a branch we'll keep adding to.

Changes

  • Morphology as galaxy type for famous galaxies — they showed "Unknown galaxy type" because the type was colour-derived (u−r) and famous rows lack photometry. New pure formatMorphology() util ("SBb""Barred spiral (SBb)", "E""Elliptical (E)", …). Exposed as its own GalaxyInfo.morphology field, independent of the colour-derived galaxyType; cards render morphology ?? galaxyType.description.
  • Unified "Catalogues" row, under the thumbnail — one row for every galaxy (famous or survey). The builder emits GalaxyInfo.catalogues: {label, href}[], with the label chosen at the point each URL is built so it can't drift from the page it points at. Removes the old duplicate famous-NED / bottom-"View on NED" mechanisms and the card's source branch.
  • Source badge on the name row — folded the Famous/SDSS/2MRS/GLADE/category chip onto the headline row across all four cards.
  • "Lean hero" fold — only Redshift z + Diameter sit above "More details"; RA/Dec/apparent-mag move below.
  • SDSS link fix — the Quick Look (quickobj) endpoint returns a server error for some objIds; switched to the canonical Explore Summary page.

Decomplection (entanglement-radar)

  • morphology is its own field, not overloaded onto galaxyType.description.
  • Catalogue links are built in the one place that knows the URLs → card is pure presentation.
  • Dropped a duplicated 'Unknown galaxy type' literal.
  • Moved famousWikipediaTitle to utils/format so the service layer no longer imports from components/.

Verification

  • npm run typecheck clean
  • 2443 tests pass
  • Visual check on the dev server + the SDSS link still want a human eyeball.

🤖 Generated with Claude Code

Tweaks across the galaxy/POI info cards (desktop + mobile):

- Famous galaxies show their curated Hubble type ("Barred spiral (SBb)")
  instead of "Unknown galaxy type". New pure formatMorphology() util; the
  builder exposes it as its own GalaxyInfo.morphology field (independent of
  the colour-derived galaxyType), and the cards render
  `morphology ?? galaxyType.description`.
- One "Catalogues" row for every galaxy, rendered under the thumbnail. The
  builder now emits GalaxyInfo.catalogues ({label, href}[]) with the label
  chosen where each URL is built, so it can't drift from the page it points
  at. Removes the duplicate famous-NED / bottom-"View on NED" mechanisms and
  the card's source branch (card is pure presentation).
- Source badge (Famous/SDSS/2MRS/GLADE/category) folded onto the name row
  across all four cards.
- "Lean hero" fold: only Redshift z + Diameter sit above "More details";
  RA/Dec/apparent-mag move below.
- Fix the SDSS object link: the Quick Look (quickobj) endpoint 500s for some
  objIds; switch to the canonical Explore Summary page.

Moves famousWikipediaTitle to utils/format so the service layer no longer
imports from components/. Typecheck clean; 2443 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 7, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
skymap 7d0c8ed Commit Preview URL

Branch Preview URL
Jun 07 2026, 09:29 PM

rulkens and others added 5 commits June 7, 2026 23:03
Captures the brainstormed Option A (scroll-snap bottom sheet, minimal
peek, drag gesture) for the selected-target card on mobile. Panel
launcher is a gated fast-follow pending an entanglement-radar pass over
SettingsPanel.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Renames the structure-card family from the legacy 'poi' naming to
'structure', matching the StructureRecord data type it already consumes:
PoiDetailCard -> StructureDetailCard, CompactPoiCard -> CompactStructureCard,
and the poi prop/vars -> structure throughout InfoCard. The card eyebrow
now reads 'Structure' instead of 'POI'.

Engine-wide identifiers (isPoi, POI_CATEGORY_INFO, the #poi= deep-link
param) are intentionally left as a separate, larger migration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Track the poi* -> structure* convergence as a high-priority surfaced
issue: enumerate the engine/identity/URL holdouts, flag the #poi=
deep-link param as a persisted format needing back-compat, and
prescribe entanglement-radar (map) + /simplify (apply). Also note the
mobile bottom-sheet spec under the existing reflow item.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The explore/summary endpoint also 500s; quickobj is the lighter object
page the link is meant to open. The earlier JsonSerializationException
was SkyServer's scheduled-maintenance outage, not a quickobj defect.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rulkens rulkens merged commit ab6ea52 into main Jun 7, 2026
1 check passed
@rulkens rulkens deleted the worktree-tweak-info-cards branch June 7, 2026 21:30
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