Add infinite canvas artwork explorer with pan/zoom and clusters#1
Open
loopstrangest wants to merge 1 commit into
Open
Add infinite canvas artwork explorer with pan/zoom and clusters#1loopstrangest wants to merge 1 commit into
loopstrangest wants to merge 1 commit into
Conversation
…ail panel - Install react-zoom-pan-pinch for pan/zoom functionality - Add InfiniteCanvas component with zoom controls (+/-/reset) - Add API functions for AIC aggregations and cluster artwork fetching - Add cluster layout engine for positioning clusters on canvas - Replace flat card grid with positioned clusters grouped by classification - Implement lazy-loading of artwork images as clusters enter viewport - Add slide-in detail panel for artwork metadata - Add grouping selector dropdown (classification/department/style) - Add search-to-viewport animation that zooms to matching clusters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
✅ Deploy Preview for aic-api-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket | Artifacts | Task
What problems was I solving
The existing Art Institute of Chicago browser displayed artworks as a flat, paginated list limited to 20 items on page 1. Users couldn't explore relationships between artworks or navigate the collection spatially. The experience felt like scrolling a database rather than wandering through a museum.
This PR transforms the app into an infinite canvas where users can:
What user-facing changes did I ship
How I implemented it
New Dependencies
react-zoom-pan-pinch— Lightweight pan/zoom library using CSS transformsNew Components
src/components/InfiniteCanvas.jsx— Wraps content in TransformWrapper/TransformComponent, exposeszoomToBounds()andresetView()methods via ref, tracks viewport bounds on transform changessrc/components/Cluster.jsx— Renders a cluster with label and artwork grid, handles artwork positioning within cluster boundssrc/components/DetailPanel.jsx— Slide-in panel with artwork metadata, closes on backdrop click or Escape keysrc/components/GroupingSelector.jsx— Dropdown for switching grouping dimensionNew API Functions
src/api/fetchAggregations.js— Fetches cluster counts using AIC API's Elasticsearch aggregations with.keywordsuffix andlimit=0src/api/fetchClusterArtworks.js— Fetches artworks for a specific cluster using bool query filtersNew Utilities
src/utils/clusterLayout.js— Grid layout calculator that positions clusters based on doc_count, calculates artwork positions within clustersApp.jsx Changes
clusterMeta,groupByField,viewport,loadedClusters,loadingClusters,artworkData,selectedArtworkDeviations from the plan
Implemented as planned
Deviations/surprises
Additions not in plan
Items planned but not implemented
How to verify it
Manual Testing
Automated Tests
Description for the changelog
Add infinite canvas artwork explorer with pan/zoom, clustered artwork display by classification/department/style, lazy-loading, detail panel, and search-to-viewport navigation.