remix-project icon indicating copy to clipboard operation
remix-project copied to clipboard

Pinned panel

Open ioedeveloper opened this issue 9 months ago • 2 comments

Closes https://github.com/ethereum/remix-project/issues/3787

How it works

This PR introduces the functionality of being able to pin/dock a plugin to a fixed position on the right of the IDE.

  • Each plugin (except the filePanel) have a new icon on the header as indicated in the image below. Screenshot 2024-05-15 at 15 07 49

NOTE: We would need to discuss the plugins that should have this new icon to pin and unpin plugins.

  • After clicking on the "pin" icon, the plugin should be moved to the right of the IDE. Screenshot 2024-05-15 at 15 14 17

NOTE: For now, only internal plugins have the ability to maintain state when pinned from left to right and vice-versa. Iframe plugins will have to reload when it switches sides. Also, i have only implemented state persistence for udapp and search plugin, because they are the easiest to implement for now because of how state is managed in this two plugins. Implementing for other internal plugins will involve a lot of code changes, which is out of the scope of this PR.

  • When an icon is pinned, it stays pinned until you unpin the plugin or deactivate the plugin. Even after reload pinned plugins are still pinned.
  • I will add more when i have more to disclose. Have fun testing...

ioedeveloper avatar May 15 '24 12:05 ioedeveloper

Deploy Preview for remixproject ready!

Name Link
Latest commit 567f277d0935e67d607e194fab8c5090b25dca86
Latest deploy log https://app.netlify.com/sites/remixproject/deploys/664b672c2707d10008f26885
Deploy Preview https://deploy-preview-4798--remixproject.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar May 15 '24 12:05 netlify[bot]

@ioedeveloper please exclude the plugins you've added from the plugin manager

LianaHus avatar May 16 '24 16:05 LianaHus