rixo / svench

A lightweight workbench to develop your Svelte components in isolation

Home Page:svench-docs.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Knobs & actions in page view

rixo opened this issue · comments

commented

What I mean by "page view" is the pages with multiple view on them, by contrast with the "focused" view that shows a single view in isolation.

It would be great if actions and knobs could be used in page view too.

This would need to move the "extras" panel from the focused view to the page view. We would also need a concept of a "selected view" on a page with multiple views.

The main open question for me is about what UI this should have, in particular the "selected view".

Some thoughts:

  • For actions, we could open the panel automatically when an action is triggered (and the panel is closed).

  • Panel would need to be collapsible. We don't want to take the whole screen estate on the doc oriented page view. This would probably be a bonus for the focus view too.

  • The whole title bar of views in page mode carry the link to the view, so it's hard to add more to it... Maybe we can find a better, less greedy, UI for the link.