-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Nv 2099 new in app quick start sandbox screen #3273
Nv 2099 new in app quick start sandbox screen #3273
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.
moved the existing files to the digest-demo-flow
folder
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.
moved the existing files to the digest-demo-flow
folder
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.
moved the existing files to the digest-demo-flow
folder and renamed the NodeStep file
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.
moved the existing files to the digest-demo-flow
folder
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.
Renamed the file and extracted the Node to a separate component
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.
hey, awesome work! 🙌
I've found a few problems:
-
When I've clicked the trigger a couple of times I do see the horizontal scrollbar
-
If I refresh the page, they disappear but I do see an unread notifications count:
-
When I do open the notification center the notifications do disappear:
Screen.Recording.2023-04-25.at.12.54.15.mov
- When I had some notifications in the notification center and I do open it, they are appearing in the sandbox:
Screen.Recording.2023-04-25.at.11.19.40.mov
- The notification center is jumping on smaller screens.
Screen.Recording.2023-04-25.at.11.17.41.mov
- The sandbox content is not centered.
apps/web/src/components/quick-start/in-app-onboarding/InAppSandbox.tsx
Outdated
Show resolved
Hide resolved
<Ellipses isTransparent={false} /> | ||
<div>Your app or Demo app</div> | ||
<Ellipses isTransparent={true} /> |
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 don't need to draw transparent ellipses at the end, just position the title appropriately with css, like: margin: 0 auto;
should work...
then you won't need that isTransparent
flag at all
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.
Tend to agree I think we could remove the last one with isTransparent={true}
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.
The title needs to be at the center of the whole row, not just the center of available/remaining space.
margin: 0 auto
will center it only for the available space.
for example, if the row width is 200px, and the ellipse takes 50px of width space, then margin: 0 auto
will center the title of the available 150px; which isn't the center of the Row.
To center it I can think of a couple of ways,
The first one will be to have the title align center with width: 100%, and position the ellipse at the left using absolute: position (not fan of absolute positioning),
and the other one is the one that I've implemented.
<Ellipses isTransparent={false} /> | ||
<div>Novu UI</div> | ||
<Ellipses isTransparent={true} /> |
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.
same
apps/web/src/components/quick-start/in-app-onboarding/InAppSandboxWorkflow.tsx
Outdated
Show resolved
Hide resolved
apps/web/src/pages/quick-start/components/QuickStartWrapper.tsx
Outdated
Show resolved
Hide resolved
<Route path={ROUTES.QUICK_START_NOTIFICATION_CENTER} element={<NotificationCenter />} /> | ||
<Route path={ROUTES.QUICK_START_SETUP} element={<FrameworkSetup />} /> | ||
<Route path={ROUTES.QUICK_START_SETUP_FRAMEWORK} element={<Setup />} /> | ||
<Route path={ROUTES.QUICK_START_SETUP_TRIGGER} element={<Trigger />} /> | ||
<Route path={ROUTES.QUICK_START_SETUP_SUCCESS} element={<InAppSuccess />} /> |
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.
it would be nice to see e2e tests for the in-app onboarding
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.
Will add them in a different PR :)
5e9b37f
to
4bf3f8a
Compare
Looks great @BiswaViraj, a few things I've noticed: |
<Ellipses isTransparent={false} /> | ||
<div>Your app or Demo app</div> | ||
<Ellipses isTransparent={true} /> |
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.
Tend to agree I think we could remove the last one with isTransparent={true}
flex: 1; | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; |
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.
The go back button on the demo sandbox is not clickable I think it is because of the position:absolute;
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.
Yeah it was 😅, fixed it :D
fdec8af
to
f95c7de
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.
Great work @BiswaViraj ! Just noted very small things
Let's merge it and start testing 🚀
About the subscriber, I'm not sure that actually creating the subscriber for them is optimal scenario. As it actually adds that onboarding subscriber to their organization - but its only in dev, so probably its ok.
apps/web/src/components/quick-start/in-app-onboarding/InAppSandbox.tsx
Outdated
Show resolved
Hide resolved
if (!templatesLoading && !notificationGroupLoading && !createTemplateLoading && !onboardingNotificationTemplate) { | ||
createOnBoardingTemplate(); | ||
} | ||
}, [templates, onboardingNotificationTemplate]); |
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 are we getting all templates? Can't we get only that specific one?
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 am curious about this one
apps/web/src/pages/quick-start/components/QuickStartWrapper.tsx
Outdated
Show resolved
Hide resolved
752c2da
to
3eb037b
Compare
What change does this PR introduce?
Why was this change needed?
Other information (Screenshots)
Screen.Recording.2023-04-22.at.6.12.16.PM.mov