-
Notifications
You must be signed in to change notification settings - Fork 23
feat(creation-tunnel): init plan components #1278
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
Conversation
d201a79 to
adaec03
Compare
|
🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/tunnel-creation/plan-select/index.html. This preview will be deleted once this PR is closed. |
caa8a97 to
6bcc75c
Compare
florian-sanders-cc
left a comment
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.
Well done @Galimede the component looks good and the code is easy to read 👍
I left a few minor feedback and here are a few more:
- When reviewing, I felt like the
cc-plan-pickerandcc-plan-configuratorcould be merged into a single component.cc-plan-pickercould be a subrender that is nested only when there arerelatedPlans. It's not that big of a deal, this is a nitpick and I'll leave it up to you ;), - Unless we're planning on using
cc-plan-pickeralone (but I don't see the usecase), I don't think we need to makecc-plan-pickera form element. Since its value is controlled by the parent anyway it doesn't bring any benefits.
Apart from that it's great!
e22b9fb to
3c40c29
Compare
pdesoyres-cc
left a comment
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.
Well done @Galimede.
I really like the design.
I feal like you could merge cc-plan-picker and cc-plan-configurator inside one single component (that could be named cc-plan-picker)
I also left some comments
HeleneAmouzou
left a comment
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.
GG ! It looks very nice ! 👏
I have left some comments, mostly nitpicks.
src/components/cc-plan-configurator/cc-plan-configurator.stories.js
Outdated
Show resolved
Hide resolved
src/components/cc-plan-configurator/cc-plan-configurator.stories.js
Outdated
Show resolved
Hide resolved
src/components/cc-plan-configurator/cc-plan-configurator.stories.js
Outdated
Show resolved
Hide resolved
f0a57d6 to
16c8890
Compare
florian-sanders-cc
left a comment
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.
Don't forget to add the cc-plan-item & cc-plan-picker components to the list of components to be typechecked by CI (in tsconfig.ci.json) 😉
Apart from that I only have a few nitpicks compared to my first review!
Gg @Galimede almost there 😎
florian-sanders-cc
left a comment
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.
All good! Thanks & gg @Galimede
pdesoyres-cc
left a comment
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.
Well done Mathieu. Almost there, I left some comments and nitpicks.
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.
Well done @Galimede, the API and types are really good. I mostly have issues/nitpicks about the CSS and UI.
cc-plan-item
- when the name of the plan is long, it does not wrap
- we will try to avoid such situations but the component should still work properly if it happens
- we need to story to demonstrate such a case: long plan name and custom CSS for story with a small
widthon the component (like when it's used in the picker).
- I wrote a lot of comments about your flexbox usage, but here's one that is a bit more global: the
display: flexon the:hostis not really used (same for the twoflex: xxon.titleand.details. They could/should be useful in the picker so allcc-plan-itemhave the same height and the.titletakes the rest of the height`- This requires a change in the picker
- The
flex: xxon.titleand.detailswould still need to be fixed
- the "selected" icon can sometimes go above the plan name or badge, is this a problem?
cc-plan-picker
- like we need a story in cc-plan-item for long plan names, we need a story in this one to show how a long name will wrap, grow the height of the plan item and the other on the same row.
roberttran-cc
left a comment
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.
Looking good! A few minor feedback on my side.
Also, I observed a weird behavior with the plan picker & keyboard focus but it may be legit:
- testing a story with related plans
- choosing another "parent" plan with the right arrow (you should just not select the last "parent" plan)
- focus is now on the new value
- pressing tab
- the focus is on the "related" plans, the first one
- pressing shift+tab to focus back to the "parent" plans
- I expect to be focused on the selected plan but I'm focused on the last "parent" plan
48ad192 to
321fa39
Compare
hsablonniere
left a comment
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 had a quick look at the "hubert feedbacks", LGTM 👍 Well done!
321fa39 to
90e054f
Compare
90e054f to
e262014
Compare
|
🔎 The preview has been automatically deleted. |
What does this PR do?
This PR introduces three new components for the new creation-tunnel:
cc-plan-item=> The base plan cardcc-plan-picker=> One plan pickercc-plan-configurator=> The form control element where you can refine your choice with two pickersHow to review?