AddThisFeature

Split View

Let users compare or edit two records side by side without opening another tab.

involved UI & Polish

What it adds

Two independent panes, each holding its own record, its own URL, and its own loading and error state.

What your agent is told to do

5
  1. 1

    Represent both panes in the URL so a split view can be linked, bookmarked, and restored. One pane's record must not be inferable from the other's.

  2. 2

    Give each pane its own fetch, its own loading state, and its own error state. A failure in one pane must leave the other usable.

  3. 3

    Scope actions to the pane they were triggered in. Saving, deleting, or navigating in one pane must never silently swap the other pane's record.

  4. 4

    Below the responsive breakpoint, show one pane at a time with an explicit control to switch, and keep the inactive pane's state rather than discarding it.

  5. 5

    Drag handles, minimum and maximum widths, keyboard resizing, and size persistence are owned by Resizable Panels; extend that rather than building a second resize implementation.

Edge cases it handles

6
  • Opening the same record in both panes must either be prevented or kept genuinely in sync — two stale copies of one record is the worst outcome.
  • Deleting the record in one pane must leave that pane in a clear removed state, not a blank frame or a redirect that closes the split.
  • A restored split view must handle a record that is now deleted or no longer permitted, showing that pane's own error rather than failing the whole view.
  • Unsaved edits in a pane must survive the other pane navigating, and must be flagged before the split is closed.
  • Keyboard focus must move between panes deliberately, and each pane needs a landmark or label so screen reader users know which is which.
  • A global search or command action must have a defined target pane — the focused one — rather than picking one at random.

Definition of done

8
  • Both panes are encoded in the URL and the view restores from it.
  • Each pane loads, errors, and empties independently.
  • An action in one pane never changes the other pane's record.
  • Narrow screens present a single pane with an explicit switch that preserves both panes' state.
  • Restoring a split view with a deleted or forbidden record degrades that pane only.
  • Resize behaviour is delegated to Resizable Panels, not reimplemented.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.