-
Notifications
You must be signed in to change notification settings - Fork 368
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
UI: Add copy URI to navigator #5185
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.
LGTM
@itaiad200 Why under uncommitted changes, the navigator displays " workspace"? Can we change that to show the real URI? (Does not affected the changes in this PR) |
Fine by me. We have a long standing technical debt to unify the 3 options of objects browsing ( |
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.
Thanks for this addition! Just a single comment..
Also - it seems like the clipboard logo in the button is not centered, or is it just me?
hidden={isPathToFile} | ||
disabled={isPathToFile}/> |
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.
Why disable it when it's not a file? I think copying prefixes is valuable too.
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.
We're disabling when it is a file - since the object viewer has already a copy and download buttons
Fixed |
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.
LGTM
import Modal from "react-bootstrap/Modal"; | ||
import { useAPI } from "../../hooks/api"; | ||
import ButtonGroup from "react-bootstrap/ButtonGroup"; |
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.
Please remove
@@ -258,7 +258,6 @@ const ChangesBrowser = ({repo, reference, prefix, onSelectRef, }) => { | |||
<span className="float-start"> | |||
{(delimiter !== "") && ( | |||
<URINavigator path={prefix} reference={reference} repo={repo} | |||
relativeTo={`${reference.id} workspace`} |
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.
You sure we want to remove the rerference.id
too?
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.
relativeTo is not needed, once it is empty the URI nevigator provides the lakefs URI using the reference id as in the Objects view
Closes #5186