Skip to content

Andy g6/website split view#844

Draft
AndyG6 wants to merge 12 commits intomainfrom
AndyG6/website-split-view
Draft

Andy g6/website split view#844
AndyG6 wants to merge 12 commits intomainfrom
AndyG6/website-split-view

Conversation

@AndyG6
Copy link
Copy Markdown

@AndyG6 AndyG6 commented Mar 5, 2026

split screen feature in the layout model added!

this change allows the graphs to be displayed 2 at a time, or 3 at a time or EVEN 4 IN ONE TIME

Comprehensive technical changes (claude summary)

Introduced Layout, LayoutItem, and GraphId types in GraphsTypes.ts. A layout item is either a single GraphId or a GraphId[] (split group)
Renamed graphs.order → graphs.layout in the Redux store and session storage
Added GraphsLayoutHelpers.ts with pure layout manipulation helpers: moveGraph, moveGraphToIndex, extractGraph, and splitGraph
Replaced SortableContext/useSortable with useDraggable + a custom pointermove listener for richer drag intent detection (split vs. reorder vs. extract)

how to recreate change

-You can reorder the graphs via gap drop zones (highlighted with a blue line indicator)
-Split them alongside an existing item (left/right highlight on hover)
-Can also extract a graph out of a split group back into its own row

image

Copy link
Copy Markdown
Contributor

@fyang151 fyang151 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is cool! when youre dragging over to make a split horizontal graph, what do you think about resizing the other div on drag over? currently we just kinda have a ghost that sits on top of the div were dragging over
image

@minjunminji
Copy link
Copy Markdown
Contributor

I'd consider limiting it to only two graphs per row, ppl don't really need four on one row and it's difficult to read the graphs when they're that narrow. Also prevents confusion with moving around the graphs.

@matthewcflam matthewcflam self-assigned this Apr 4, 2026
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.

4 participants