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): page meta, gtm, and uptime #6974

Merged
merged 3 commits into from
Nov 12, 2024
Merged

Conversation

LetItRock
Copy link
Contributor

What changed? Why was the change needed?

Favicon, Page meta, GTM, Better Stack Uptime

Screenshots

Screen.Recording.2024-11-12.at.16.58.19.mov

Copy link

linear bot commented Nov 12, 2024

Comment on lines +9 to +11
<link rel="icon" href="/favicon-gradient.svg" />
<link rel="apple-touch-icon" href="/favicon-gradient.svg" />
<link rel="manifest" href="/manifest.json" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

favicons and manifest

Comment on lines +22 to +35
<% if (env.VITE_GTM) { %>
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', '<%= env.VITE_GTM %>');
</script>
<% } %>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

GTM

Comment on lines +47 to +54
<% } %> <% if (env.VITE_SELF_HOSTED === 'false' ) { %>
<script
src="https://uptime.betterstack.com/widgets/announcement.js"
data-id="144175"
async="async"
type="text/javascript"
></script>
<% } %>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uptime

@@ -106,6 +106,7 @@
"typescript": "5.6.2",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1",
"vite-plugin-ejs": "^1.7.0",
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 Vite EJS plugin that allows the use of conditionals in the HTML template; by default, it's not supported by Vite :/

content={field.value}
className="rounded-md rounded-s-none border-b-0 border-r-0 border-t-0 text-neutral-400"
<>
<PageMeta title={workflowName} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

page meta component

Copy link

netlify bot commented Nov 12, 2024

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

Name Link
🔨 Latest commit e5eccad
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673391e847b5730008a10aae
😎 Deploy Preview https://deploy-preview-6974--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.

Copy link

pkg-pr-new bot commented Nov 12, 2024

Open in Stackblitz

@novu/client

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

@novu/headless

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

@novu/framework

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

@novu/nest

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

@novu/js

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

@novu/nextjs

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

@novu/notification-center

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

@novu/node

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

novu

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

@novu/providers

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

@novu/react

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

@novu/react-native

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

@novu/shared

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

@novu/stateless

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

commit: e5eccad

@LetItRock LetItRock merged commit cf90466 into next Nov 12, 2024
40 checks passed
@LetItRock LetItRock deleted the nv-4626-page-meta branch November 12, 2024 21:57
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