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

Nv 2099 new in app quick start sandbox screen #3273

Merged
merged 21 commits into from
May 9, 2023

Conversation

BiswaViraj
Copy link
Contributor

@BiswaViraj BiswaViraj commented Apr 22, 2023

What change does this PR introduce?

  • adds the new in-app onboarding flow

Why was this change needed?

Other information (Screenshots)

image

image

image

Screen.Recording.2023-04-22.at.6.12.16.PM.mov

@linear
Copy link

linear bot commented Apr 22, 2023

@BiswaViraj BiswaViraj self-assigned this Apr 22, 2023
Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor

@LetItRock LetItRock left a 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:

  1. When I've clicked the trigger a couple of times I do see the horizontal scrollbar
    Screenshot 2023-04-25 at 12 48 58

  2. If I refresh the page, they disappear but I do see an unread notifications count:
    Screenshot 2023-04-25 at 12 49 48

  3. When I do open the notification center the notifications do disappear:

Screen.Recording.2023-04-25.at.12.54.15.mov
  1. 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
  1. The notification center is jumping on smaller screens.
Screen.Recording.2023-04-25.at.11.17.41.mov
  1. The sandbox content is not centered.

Screenshot 2023-04-25 at 11 21 37

Comment on lines 25 to 24
<Ellipses isTransparent={false} />
<div>Your app or Demo app</div>
<Ellipses isTransparent={true} />
Copy link
Contributor

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

Copy link
Contributor

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}

Copy link
Contributor Author

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.

Comment on lines 34 to 33
<Ellipses isTransparent={false} />
<div>Novu UI</div>
<Ellipses isTransparent={true} />
Copy link
Contributor

Choose a reason for hiding this comment

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

same

apps/web/src/pages/quick-start/components/SetupStatus.tsx Outdated Show resolved Hide resolved
Comment on lines 196 to +199
<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 />} />
Copy link
Contributor

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

Copy link
Contributor Author

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 :)

@BiswaViraj BiswaViraj force-pushed the nv-2099-new-in-app-quick-start-sandbox-screen branch from 5e9b37f to 4bf3f8a Compare May 2, 2023 16:27
@ainouzgali
Copy link
Contributor

Looks great @BiswaViraj, a few things I've noticed:
When opening my notification center bell, it shows the notifications I already have in the sandbox. Also, shows the unseen count badge in both locations - in my notification center, shows the count badge but not the notifications.
Also, the go back button is not working from /quickstart/notification-center

Comment on lines 25 to 24
<Ellipses isTransparent={false} />
<div>Your app or Demo app</div>
<Ellipses isTransparent={true} />
Copy link
Contributor

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;
Copy link
Contributor

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

Copy link
Contributor Author

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

@BiswaViraj BiswaViraj force-pushed the nv-2099-new-in-app-quick-start-sandbox-screen branch 2 times, most recently from fdec8af to f95c7de Compare May 4, 2023 10:39
Copy link
Contributor

@ainouzgali ainouzgali left a 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.

if (!templatesLoading && !notificationGroupLoading && !createTemplateLoading && !onboardingNotificationTemplate) {
createOnBoardingTemplate();
}
}, [templates, onboardingNotificationTemplate]);
Copy link
Contributor

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?

Copy link
Contributor

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/design-system/icons/general/Discord.tsx Outdated Show resolved Hide resolved
apps/web/src/pages/quick-start/components/SetupStatus.tsx Outdated Show resolved Hide resolved
@ainouzgali
Copy link
Contributor

Screen Shot 2023-05-08 at 16 54 20

Is it a missing light theme change?

@BiswaViraj BiswaViraj force-pushed the nv-2099-new-in-app-quick-start-sandbox-screen branch from 752c2da to 3eb037b Compare May 9, 2023 13:44
@BiswaViraj BiswaViraj added this pull request to the merge queue May 9, 2023
Merged via the queue into next with commit 6de5759 May 9, 2023
26 checks passed
@BiswaViraj BiswaViraj deleted the nv-2099-new-in-app-quick-start-sandbox-screen branch May 9, 2023 14:27
@BiswaViraj BiswaViraj restored the nv-2099-new-in-app-quick-start-sandbox-screen branch May 10, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants