Skip to content

feat(client): site bonus — click site bar to open Moorhen + ribbons in Site tab - #40

Merged
martinemnoble1 merged 2 commits into
mainfrom
feat/site-nav-and-ribbons
Jun 10, 2026
Merged

feat(client): site bonus — click site bar to open Moorhen + ribbons in Site tab#40
martinemnoble1 merged 2 commits into
mainfrom
feat/site-nav-and-ribbons

Conversation

@martinemnoble1

Copy link
Copy Markdown
Owner

Two site-focused bonus features (they compose: clicking a site bar lands you in Site mode → ribbons).

1) Click a site bar → open Moorhen at that site

  • SummaryCharts: the "events per site" bar gains an onClickonSiteClick(site_num) (clicked bar index → sites[index]), pointer cursor on hover.
  • ProjectDashboard: wires it to navigate('/projects/:id/inspect?site=N').
  • InspectPage: reads ?site= and passes initialSite to the drawer.
  • InspectDrawer: a consume-once effect waits for datasets + Coot, then switches to the Site tab and loads that site's first event.

2) Ribbons in the Site tab

At model load, when the tab is Site, the protein draws as "CRs" (ribbons) + "ligands" (bound ligand as sticks); other tabs keep "CBs". Chosen via an axisRef.

Notes

Verification

tsc clean. Verified in-app ("excellent").

🤖 Generated with Claude Code

martinemnoble1 and others added 2 commits June 10, 2026 20:00
…n Site tab

1) Click a bar on the 'events per site' chart to deep-link into the Moorhen
   viewer focused on that site. SummaryCharts gains onSiteClick (clicked bar
   index -> site_num; pointer cursor on hover); ProjectDashboard navigates to
   /projects/:id/inspect?site=N; InspectPage reads the param and the drawer
   consumes it once datasets+Coot are ready — switching to the Site tab and
   loading that site's first event.

2) In the Site tab the protein renders as ribbons (CRs) + the bound ligand as
   sticks ('ligands') for spatial context while scanning sites, instead of
   bonds (CBs). Chosen via an axisRef at model-load time; other tabs keep CBs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@martinemnoble1
martinemnoble1 merged commit c9bc01e into main Jun 10, 2026
4 checks passed
@martinemnoble1
martinemnoble1 deleted the feat/site-nav-and-ribbons branch June 10, 2026 19:23
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