feat(frontend): refine recursive sub-clustering workflow#31
Merged
Conversation
Add optional point_ids field to SubClusterRequest for recursive sub-clustering by arbitrary point sets. Add SuggestKRequest, SuggestKScoreEntry, and SuggestKResponse models for silhouette-based optimal k recommendation. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add POST /{job_id}/sub-cluster endpoint that accepts point_ids for recursive sub-clustering of arbitrary point sets. Add POST /{job_id}/suggest-k endpoint with silhouette score analysis for optimal cluster count recommendation. Include 5 new tests covering both endpoints.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add DrillLevel, SuggestKRequest, SuggestKScoreEntry, and SuggestKResponse types. Add point_ids field to SubClusterRequest. Add subClusterByPointIds() and suggestK() API functions for recursive drill-down and optimal k suggestion. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add drillPath, subClusterColorMap, and isLoadingDrill state to Zustand store. Implement drillInto, navigateDrill, resetDrill actions for recursive drill navigation. Add buildColorMap helper and isolateCluster action for Ctrl/Cmd+click cluster isolation. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Update ParticleCloud, InstancedSpheres, and ImageSpriteCloud to read drill state from store. When drilling, recolor points by sub-cluster assignment and dim non-drilled clusters to 15% opacity. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Create DrillBreadcrumb component with clickable path segments and Escape key navigation. Rewrite ClusterLegend with explicit drill-down buttons (chevron icons) replacing double-click, and sub-cluster legend view for drilled state. Add CameraZoom to ScatterPlot for auto-zooming to drilled cluster bounding box. Add suggest-k button to ClusterDetailDrawer. Wire resetDrill cleanup in PlotPage. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add 3 Playwright E2E tests: drill into cluster via chevron button, verify breadcrumb navigation back to all clusters, and verify sub-cluster legend displays during drill mode. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…gend drill buttons - Rewrite ClusterDetailDrawer with k-slider, suggest-k, and compute button - Simplify ClusterLegend to display-only (no drill buttons or handlers) - Delete SubClusterView (mini 3D plot no longer needed) - Update E2E drill tests to use drawer compute flow
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Tests Report 📄Tests Succees ✅JUnit Details
Coverage Details (96% >= 90%) ✅Diff Cover Details
|
||||||||||||||||||||||||||
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.
Summary
Test Plan