Skip to content

fix: workbench play/pause controls layout and split 2D into its own workspace #97

Description

@Osayi-ANL

Issue

Two related layout problems in the post-processing workbench:

  1. Play/pause controls and inputs area is poorly laid outbtn_play, btn_pause, frame slider, and associated inputs are cramped or misaligned, making the playback controls hard to use.

  2. 2D workspace is not its own independent tab — the 2D view (workspace_2d.py) is currently bundled alongside other workspace modes rather than having its own dedicated tab/panel. This makes it harder to work with 2D data independently.

Files:

  • src/dashpva/viewer/workbench/workbench.py — play/pause wiring (btn_play, btn_pause at lines 1196–1221); workspace tab registration
  • src/dashpva/viewer/workbench/workspace/workspace_2d.py — 2D workspace implementation; needs to register as a standalone tab
  • src/dashpva/viewer/controls/controls_2d.py — 2D input controls; layout may need restructuring

Fixes

  • src/dashpva/viewer/workbench/workbench.py — restructure the play/pause + frame input row into a clean horizontal layout with consistent spacing; ensure slider, play, pause, and frame number input are all visible and aligned
  • src/dashpva/viewer/workbench/workspace/workspace_2d.py — register Workspace2D as its own independent tab in the workspace tab widget, separate from 3D and 1D modes
  • src/dashpva/viewer/controls/controls_2d.py — adjust control layout to fit cleanly in the new standalone 2D tab

Acceptance Criteria

  • Open the post workbench — play, pause, frame slider, and frame number input are aligned in a single uncluttered row
  • The workspace tab bar has a dedicated "2D" tab that opens the 2D view independently
  • Switching to the 2D tab does not affect the state of 1D or 3D workspaces
  • Play/pause controls work correctly from within the 2D workspace tab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions