Skip to content
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

feat(WizardSlideshow): component to be used on wizard-related logics to render a step with animation between steps #2557

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

YossiSaadi
Copy link
Contributor

@YossiSaadi YossiSaadi commented Oct 21, 2024

WizardSlideshow result:
Oct-21-2024 15-43-02

Original design request:
Oct-21-2024 15-45-06

https://monday.monday.com/boards/3532714909/pulses/7525075588

@YossiSaadi YossiSaadi requested a review from a team as a code owner October 21, 2024 12:36
@YossiSaadi
Copy link
Contributor Author

@shaharzil @talkor I'm not a big favor of the name I gave to that component, but I think using just Wizard here is too confusing, as it is only responsible on rendering a single child with animation among given children. it does not do any other logic related to Wizard in general
Would love to get your opinion on that one

Copy link
Member

@talkor talkor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool
I personally don't like the naming, worth considering it
Also notice you are not exporting any of these components

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally don't like the naming. I think it should be a Carousel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think carousel is more of a "never ending" thing where you see everything, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, it doesn't have to be only slide, this can - in the future - to accept a variation for animation and just be some kind of animation controller

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it's just Wizard, why the Slideshow? Slideshow sounds like PowerPoint

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, it is just a name I came up with instead of Wizard, since it is not really a wizard, it does nothing else than replacing steps according to a given step

animate="enter"
exit="exit"
transition={slideAnimationTransition}
className={cx(styles.slide, className)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really need a className?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now it would be an internal component, but in case we decide to expose a few animation components next that is an hachana lemazgan, I gave it all the vibe props
export interface SlideTransitionProps extends VibeComponentProps {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Anyway notice you are not exporting the other component. Not sure if it's intended or not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants