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
Bug 1921087: Next quick start link update #7945
Bug 1921087: Next quick start link update #7945
Conversation
@abhinandan13jan: This pull request references Bugzilla bug 1921087, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
In response to this:
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. |
/kind bug |
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.
I don't see the benefit of not adding a second prop for nextQuickStart. Wdyt?
quickStart={quickStart} | ||
quickStart={{ ...quickStart, nextQuickStarts }} |
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.
Hmmmm, why you don't added a second prop nextQuickStarts
here and in the QuickStartController
?
@@ -5,7 +5,7 @@ import QuickStartFooter from './controller/QuickStartFooter'; | |||
import { QuickStartContext, QuickStartContextValues } from './utils/quick-start-context'; | |||
|
|||
type QuickStartControllerProps = { | |||
quickStart: QuickStart; | |||
quickStart: QuickStart & { nextQuickStarts?: QuickStart[] }; |
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 not a second nextQuickStarts
prop here? Any benefit of reusing a QuickStart object which is now a common QuickStart object?
quickStart: QuickStart & { nextQuickStarts?: QuickStart[] }; | |
quickStart: QuickStart; | |
nextQuickStarts?: QuickStart[]; |
@@ -7,7 +7,7 @@ import QuickStartConclusion from './QuickStartConclusion'; | |||
import './QuickStartContent.scss'; | |||
|
|||
type QuickStartContentProps = { | |||
quickStart: QuickStart; | |||
quickStart: QuickStart & { nextQuickStarts?: QuickStart[] }; |
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.
quickStart: QuickStart & { nextQuickStarts?: QuickStart[] }; | |
quickStart: QuickStart; | |
nextQuickStarts?: QuickStart[]; |
@@ -21,10 +21,11 @@ const QuickStartContent = React.forwardRef<HTMLDivElement, QuickStartContentProp | |||
ref, | |||
) => { | |||
const { | |||
spec: { introduction, tasks, conclusion, nextQuickStart = [] }, | |||
nextQuickStarts = [], |
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.
Extract it from the props instead
/override ci/prow/ceph-storage-plugin The ceph-storage-plugin job should only have run on PRs with changes to |
@spadgett: Overrode contexts on behalf of spadgett: ci/prow/ceph-storage-plugin In response to this:
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. |
284f20c
to
86b08e7
Compare
frontend/packages/console-app/src/components/quick-starts/QuickStartPanelContent.tsx
Outdated
Show resolved
Hide resolved
@@ -6,12 +6,14 @@ import { QuickStartContext, QuickStartContextValues } from './utils/quick-start- | |||
|
|||
type QuickStartControllerProps = { | |||
quickStart: QuickStart; | |||
nextQuickStarts?: QuickStart[]; |
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.
do we need this to be a list or just QuickStart
?
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.
A quickStart could have multple nextQuickStarts
as dependencies. Although we only make use of the first one as of today. But, lets not lose this data for future needs.
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 should show all the next quick starts. Can you make that change and just loop over all the next quick starts to render all of them?
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.
💯 agree... if we have it we should show it. Maybe that's a 4.8 thing and not part of this bug though.
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.
PR is ready for re-review with single nextQuickStart
@rohitkrai03 @invincibleJai
@@ -6,12 +6,14 @@ import { QuickStartContext, QuickStartContextValues } from './utils/quick-start- | |||
|
|||
type QuickStartControllerProps = { | |||
quickStart: QuickStart; | |||
nextQuickStarts?: QuickStart[]; |
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 should show all the next quick starts. Can you make that change and just loop over all the next quick starts to render all of them?
c89599a
to
3963cf8
Compare
/lgtm |
/approve |
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
3963cf8
to
5a45754
Compare
5a45754
to
b8d1eec
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.
/lgtm
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinandan13jan, christianvogt, invincibleJai, jerolimov, nemesis09 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@abhinandan13jan: All pull requests linked via external trackers have merged: Bugzilla bug 1921087 has been moved to the MODIFIED state. In response to this:
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. |
Addresses
https://issues.redhat.com/browse/ODC-5349
Issue
'start next quick start' link doesn't work and is unintuitive
If the next quick start is not installed, then the link doesn't actually work.
It's also not clear to the user as to what the next quick start is since it shows the ID of the quick start and not the quick start label.
Screenshots
Tests
Updates
QuickStartContent
andQuickStartConclusion
Browser conformance
Chrome