Skip to content

Add url query param to expand the active preview #2479

@patcon

Description

@patcon

Description

When I link people to a specific plot, the expanded version can't be encoded in the url I share.

Context

I'd like to share links to generated plots, with a direct link to a fullscreen plot I want them to see.

It would help me bring things to the attention of non-technical users who might be intimidated see see the full pipeline. It is especially helpful on mobile where it might be hard to see the "expand preview" button without scrolling horizontally.

I've found the sn query param that allows me to link a permanent "selected name" (rather than sid "selected ID, which is transient with a uuid that changes), but I can't figure out how to expand it by default.

Possible Implementation

I'd love for showPreview=true to auto-expand to fullscreen. I'd also like this to be appended to url when expand is clicked.

Possible Alternatives

Maybe instead of auto-updating the url (which is perhaps annoying for going fwd and back), it could be a "copy link" button, which also stores the more permanent sn=my_node_name query param instead of sid=d34db33f.

Checklist

  • Include labels so that we can categorise your feature request

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions