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
add pipeline task hubURL link #10703
add pipeline task hubURL link #10703
Conversation
target="_blank" | ||
> | ||
read more | ||
</a> |
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.
can you use ExternalLink
component here ?
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.
added
be2f9f5
to
e9618ef
Compare
const hubURL = selectedItem.data?.latestVersion?.hubURL; | ||
const hubLink = hubURL && `${TEKTON_HUB_ENDPOINT}/${hubURL}`; |
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.
This will set the latestVersion.hubUrl
for all the available task versions. for eg: the same link will be used for multiple versions (0.1 and 0.2 will have same Read more link).
Ideally, the hubUrl should be read from versions
variable in line number 41 and when the version is changed, the hubLink
should be formed based on the selected version.
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.
update
additionalClassName="opp-quick-search-details__hublink" | ||
dataTestID="task-hub-link" | ||
href={hubLink} | ||
text={t('pipelines-plugin~read more')} |
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.
text={t('pipelines-plugin~read more')} | |
text={t('pipelines-plugin~Read more')} |
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.
updated
dfe8dce
to
62b5ae7
Compare
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 can go with the Read more
text as a link text for now, Let us revisit this with PM/UX on January and make necessary changes if it is needed.
62b5ae7
to
45cf86b
Compare
/test e2e-gcp-console |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinandan13jan, debsmita1, karthikjeeyar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Propagating the acks from the Epic /label docs-approved Since the API is not available yet, we couldn't verify it on the cluster( I outlined this qe verification issue due to lack of API availability in the story as well). However I have verified using mock API and in localhost. /label qe-approved |
@abhinandan13jan: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Addresses
https://issues.redhat.com/browse/ODC-6434
Description
Adds a "Read More" link which points to hubURL for a particular Task Version.
Screenshots
Tests
Added Hub URL check
Browser conformance
Chrome