-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for Adding to IPFS via Context Menu #585
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to distinguish between image/audio/video in the label "Add This Object to IPFS"? Fallback to "object" if unknown/multiple but it would read much better as "Add this image to IPFS" etc.
Also, "This" -> "this"
More thoughts:
|
3dceb95
to
f36d71d
Compare
Ad #585 (review)) Good ideas. It is possible to provide different label for image, video and audio, so I did just that (see screenshot below). Ad 1) It executes Ad 2) There are cases when users want raw CID, but I agree it should not be the default. |
👍 nice! How about "Add Linked Content to IPFS" instead of "Add Link Destination to IPFS"? |
What do "copy canonical" and "copy public gateway" do in this context? I assume they refer to the page not the selection, but it's not clear. I think it'd be easier to reason about if it was
|
I restored option to get raw CID as a third read-only "Copy.." action. Note: until Page Actions are redesigned in #587 the same action labels are used in popu-menus (but don't have to):
How does this look? Should I move Direct CID below Public Gateway URL? Or rename it? @olizilla yes, that one was an extreme edge case, usually it is page or image. Depending on what is clicked, "Copy" actions will look for base URL in this order:
I would not put truncated values in menus, it does not tell much and makes them look cluttered. However, like you initially suggested do you think we should have separate "Copy.." labels for each context (in context-click menus)? |
ERH GERD, SORRY I PRESSED THE UPDATE BRANCH BUTTON ACCIDENTALLY. revoke my permissions at once. 😿 |
anyhoo
Is it possible to add the entire selection to IPFS regardless of what's in it? Could it always be "Add selection to IPFS" even if it's images and text? "Direct CID" is tricky, as direct doesn't mean anything in this context. I think its more intuitive if we tell the user what the CID will be for (page, selection).
It might be a terrible idea, as it could make them look cluttered, but I mildly disagree that it wouldn't tell the user much. Showing what they'll get is really helpful if you don't know what a CID is, or what "canonical" means. |
bc03050
to
53990e8
Compare
@olizilla after our call I've looked at what Menu API lets us to do and we can add menu separators, icons (only in Firefox, so it the end I disabled them) and submenus. What if we duplicate "Add.." (every site) and "Copy.." (only IPFS sites) actions per context?
As a PoC I've enabled submenus for every context that had more than one action. Some examples below: Multiple Contexts vs Single Context
Different Contexts
I also renamed "Canonical Address" to "IPFS Path". Any thoughts on submenus? |
Closes #599 Also, simplified some labels and did some cleanup.
53990e8
to
b6b8638
Compare
(Closes #579, #592, #599)
I played a bit with the concept from #579 and it is not enough to change the order.
Instead we should have clear, separate labels for each context. So far I've added a separate menu item for adding link destination and kept common label for images,videos and audio as "Add This Object to IPFS".
Screenshot below illustrates the most extreme case is when you select part of a page and then click on an image that is also a link (so you get actions for all those contexts):
@alanshaw @olizilla would appreciate quick review of "Add ... to IPFS" menu labels, do they sound ok or awkward? How we could improve it to make English locale better?