Skip to content

Add material and sampled-feature filters to Interactive Explorer#68

Merged
rdhyee merged 1 commit intoisamplesorg:mainfrom
rdhyee:main
Mar 20, 2026
Merged

Add material and sampled-feature filters to Interactive Explorer#68
rdhyee merged 1 commit intoisamplesorg:mainfrom
rdhyee:main

Conversation

@rdhyee
Copy link
Contributor

@rdhyee rdhyee commented Mar 20, 2026

Summary

Adds material and sampled-feature (context) filter checkboxes to the Interactive Explorer, completing P1 faceted filtering.

Approach: Built a supplemental sample_facets.parquet (25MB) by resolving FK arrays in the narrow format to human-readable concept labels. No pipeline rebuild needed — extracted from existing files in 1 second.

New features

  • Material filter (19 categories): earthmaterial, rock, sediment, organicmaterial, mineral, etc.
  • Sampled Feature filter (17 categories): earthinterior, Animalia, pasthumanoccupationsite, etc.
  • Collapsible sections with counts from facet_summaries.parquet
  • Filters apply in point mode via JOIN with sample_facets.parquet
  • In cluster mode, note shows "filters apply at sample zoom level"
  • Also applies to cluster-click nearby samples query

New data file

isamples_202601_sample_facets.parquet on R2 (25.1 MB, 8.3M rows)

  • Schema: pid | material | context
  • Built from narrow parquet edges → IdentifiedConcept label resolution

Test plan

  • Playwright smoke test: zero JS errors, all elements visible
  • 19 material checkboxes populated with counts
  • 17 context checkboxes populated with counts
  • Manual test: zoom to point level, uncheck materials, verify filtered results

🤖 Generated with Claude Code

Built supplemental sample_facets.parquet (25MB, 8.3M rows) from existing
narrow+wide parquet — no pipeline rebuild needed. Uploaded to R2.

New filters:
- Material (19 categories): rock, sediment, organicmaterial, etc.
- Sampled Feature (17 categories): earthinterior, Animalia, etc.
- Collapsible sections populated from facet_summaries.parquet
- Each checkbox shows count (e.g., "rock (1,208,585)")
- Filters apply in point mode via JOIN with facets parquet
- In cluster mode, note shows "filters apply at sample zoom level"
- Also applies to cluster-click nearby samples query

Data file: isamples_202601_sample_facets.parquet on R2
- pid | material | context
- Built by resolving narrow-format edges to IdentifiedConcept labels

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rdhyee rdhyee merged commit 8ccc758 into isamplesorg:main Mar 20, 2026
1 check passed
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