Skip to content

Notebook layout: responsive chart/grid/cell action bars (overflow menu) + sidebar collapse that keeps focus on the notebook #574

Description

@emrberk

Two related layout problems.

(A) Cell action bars don't adapt to cell width

  • src/scenes/Editor/Notebook/CellChart/ChartActions.tsx renders up to 5 inline buttons.
  • src/scenes/Editor/Notebook/result-table/ResultActionsBar.tsx renders 6 buttons + a download dropdown and only handles overflow via a hidden horizontal scroll (result-table/styles.ts, overflow-x: auto).
  • src/scenes/Editor/Notebook/cells/CellToolbar.tsx already has a "more actions" kebab (DropdownMenu) but only in non-maximized mode, and it's not width-driven.

On narrow cells (grid layout, small columns) actions get clipped or scroll out of reach. Ask: drive action visibility off cell width (ResizeObserver) and push overflow actions into the existing src/components/DropdownMenu kebab.

(B) Sidebars don't shrink gracefully and focus can be lost

The console uses Allotment splitters (src/scenes/Console/index.tsx). The left schema/search panel auto-hides only at the single sm breakpoint (767px, src/hooks/useScreenSize.tsx); the right AI panel is redux-controlled, not size-driven. When the window shrinks the panels squeeze the main notebook and the user's cognitive focus shifts away from it.

Ask: when the window shrinks, responsively collapse the left/right sidebars and keep the notebook (main scene) as the focused/primary content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity: 2enhancementNew feature or requestnotebooksIssues relevant to the notebooks featureweb-consoleIssues relevant to "web-console" package

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions