ipfs-webui icon indicating copy to clipboard operation
ipfs-webui copied to clipboard

feat: create shortcut component that can be used on any page

Open SgtPooki opened this issue 10 months ago • 2 comments

We need to take the shortcut functionality added by https://github.com/ipfs/ipfs-webui/pull/2337 and ensure it is fully encapsulated into a component/context/hook that is flexible and can be used by both files list & grid view, as well as any other components that may need it (peers page, or any future pages)

SgtPooki avatar Mar 17 '25 19:03 SgtPooki

@SgtPooki should the shortcuts shown in the component be relevant shortcuts to the page its being viewed on or should it just be general shortcuts regardless of the page?

george-hub331 avatar Mar 18 '25 14:03 george-hub331

@george-hub331 I think we should probably have defaults for all pages, whatever those are, but ideally we would be able to customize them for specific actions on a page.

I imagine a react context with some hooks would be a good approach.

This is low priority though i would say.

SgtPooki avatar Mar 19 '25 17:03 SgtPooki