Skip to content

[FEATURE] Auto-adjust diagram zoom/pan to the participants involved in the current step #3738

Description

@QY-25123

Feature

In the OAuth Debugger's sequence diagram, when the interaction moves between participants that are far apart (e.g. Step 5 switches from Client–MCP Server to Client–Authorization Server), the diagram view doesn't follow. Since the two participants sit far apart horizontally, the current pan/zoom only shows the empty space between them and misses the actual message content, as shown in the attached screenshot.

Solution

Automatically adjust zoom/pan (fit-to-view or center-and-zoom) to the two participants relevant to the currently active step whenever the step changes, so the interaction is always fully visible without manual scrolling/zooming.

Alternatives

  • Keep manual zoom, but add a "Focus this step" action (distinct from the existing "Show in diagram") that recenters the view.
  • Add a mini-map indicator showing which part of the diagram is off-screen.

Additional Context

Screenshot attached showing Step 5's interaction only partially visible in the diagram.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions