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(dashboard): Nv 5276 Subscriber UI overview tab #7632

Merged
merged 14 commits into from
Feb 6, 2025

Conversation

BiswaViraj
Copy link
Member

@BiswaViraj BiswaViraj commented Jan 31, 2025

What changed? Why was the change needed?

  • fetch and update subscriber

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Jan 31, 2025

Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit ff7e9a5
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/67a37eccc363440009d11994
😎 Deploy Preview https://deploy-preview-7632.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit ff7e9a5
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/67a37ecc2636db00080a97ba
😎 Deploy Preview https://deploy-preview-7632.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@BiswaViraj BiswaViraj changed the title feat(dashbaord): Nv 5276 Subscriber UI overview tab feat(dashboard): Nv 5276 Subscriber UI overview tab Jan 31, 2025
/>
<SheetPortal>
<SheetContentBase asChild onInteractOutside={handleCloseSheet} onEscapeKeyDown={handleCloseSheet}>
<motion.div
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this Sheet is reusable across multiple screens (Create workflows, create environment, etc...) the appearance and exit animation should be part of the Sheet and not redefined every time we use it.

apps/dashboard/src/pages/subscribers.tsx Show resolved Hide resolved
</PopoverTrigger>
<PopoverContent className="w-[300px] p-0">
<Command>
<CommandInput placeholder="Search country..." />
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, this dropdown needs a bit of polishing around the paddings, borders on focus, and the search input; please talk to Naveen about how we can improve it.
Screenshot 2025-02-04 at 00 22 28

<SubscriberOverviewForm
subscriberId={subscriberId}
subscriber={isFetching ? undefined : data}
isFetching={isFetching}
Copy link
Contributor

Choose a reason for hiding this comment

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

why not isPending here?

Copy link
Member Author

Choose a reason for hiding this comment

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

isPending is always false on subsequent requests so isFetching is appropriate in our usecase

Copy link
Contributor

Choose a reason for hiding this comment

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

You want it to show the skeleton again after saving? This makes no sense. Save has finished, data will be the same as the data you typed, and you show a skeleton.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it is not for that scenario,
it is for showing skeleton when switching subscribers, with isPending only the first subscriber shows the skeleton, but when you switch to a different subscriber, isPending remains false, because it still has the old subscriber data

@BiswaViraj BiswaViraj merged commit 0dc9684 into next Feb 6, 2025
33 checks passed
@BiswaViraj BiswaViraj deleted the nv-5276-ui-overview-tab branch February 6, 2025 09: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.

5 participants