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

chore(dashboard): bring the hrm alive #6703

Merged
merged 4 commits into from
Oct 16, 2024
Merged

chore(dashboard): bring the hrm alive #6703

merged 4 commits into from
Oct 16, 2024

Conversation

LetItRock
Copy link
Contributor

What changed? Why was the change needed?

Dashboard - bring the HMR alive.

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

@@ -20,7 +20,7 @@ export default tseslint.config(
rules: {
...reactHooks.configs.recommended.rules,
'@typescript-eslint/no-explicit-any': 'warn',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react-refresh/only-export-components': ['error', { allowConstantExport: 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.

react-refresh eslint rule to split the exported components should be an error

@@ -1,7 +1,7 @@
import { useRouteError } from 'react-router-dom';

export default function ErrorPage() {
const error = useRouteError() as any;
const error = useRouteError() as { statusText?: string; message: string };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed a bunch any types

@@ -11,6 +10,7 @@ import { Mail3Fill } from './mail-3-fill';
import { Notification5Fill } from './notification-5-fill';
import { Sms } from './sms';
import { IconType } from 'react-icons/lib';
import { StepTypeEnum } from '@/utils/enums';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

copied types from @novu/shared which was a problem for HMR

Copy link

pkg-pr-new bot commented Oct 16, 2024

Open in Stackblitz

novu

pnpm add https://pkg.pr.new/novuhq/novu@6703

@novu/client

pnpm add https://pkg.pr.new/novuhq/novu/@novu/client@6703

@novu/framework

pnpm add https://pkg.pr.new/novuhq/novu/@novu/framework@6703

@novu/headless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/headless@6703

@novu/js

pnpm add https://pkg.pr.new/novuhq/novu/@novu/js@6703

@novu/nextjs

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nextjs@6703

@novu/nest

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nest@6703

@novu/node

pnpm add https://pkg.pr.new/novuhq/novu/@novu/node@6703

@novu/notification-center

pnpm add https://pkg.pr.new/novuhq/novu/@novu/notification-center@6703

@novu/providers

pnpm add https://pkg.pr.new/novuhq/novu/@novu/providers@6703

@novu/react-native

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react-native@6703

@novu/react

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react@6703

@novu/shared

pnpm add https://pkg.pr.new/novuhq/novu/@novu/shared@6703

@novu/stateless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/stateless@6703

commit: 555da89

@LetItRock LetItRock merged commit f2bfd0a into next Oct 16, 2024
37 checks passed
@LetItRock LetItRock deleted the dashboard-fix-hmr branch October 16, 2024 11:49
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 555da89
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/670fa379eab7750008e386b2
😎 Deploy Preview https://deploy-preview-6703--novu-stg-vite-dashboard-poc.netlify.app
📱 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.

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