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(adapter-*): update page snippets with meta image #1526

Merged
merged 10 commits into from
Jan 7, 2025
Merged

Conversation

lihbr
Copy link
Member

@lihbr lihbr commented Jan 3, 2025

Resolves: nuxt-modules/prismic#222

Description

This pull request updates Nuxt pages snippets to use the modern equivalent of useHead: useSeoMeta, also taking into account meta image.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

N/A

How to QA 1

Try the new page snippet with:

yarn play --new --framework nuxt

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

@lihbr lihbr requested a review from a team as a code owner January 3, 2025 10:50
Copy link

vercel bot commented Jan 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
slice-machine ✅ Ready (Inspect) Visit Preview Jan 6, 2025 3:56pm

Copy link
Collaborator

@xrutayisire xrutayisire left a comment

Choose a reason for hiding this comment

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

I will do a quick QA for Next and Svelte and approve after

import { repositoryName } from \\"$lib/prismicio\\";
</script>

<svelte:head>
<title>{$page?.data.title}</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ No check that title is defined both title and meta?

Copy link
Member Author

@lihbr lihbr Jan 3, 2025

Choose a reason for hiding this comment

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

I think it's just page that might be undefined and title tag is mandatory-ish. Not sure if we want to do that check for the og:title meta 🤔

Copy link
Collaborator

@xrutayisire xrutayisire left a comment

Choose a reason for hiding this comment

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

QA done for Next, Nuxt and Sveltekit! All good with the latest commit! 🚀

@lihbr lihbr changed the title feat(adapter-nuxt): update page snippets to useSeoMeta() feat(adapter-#): update page snippets with meta image Jan 3, 2025
@lihbr lihbr changed the title feat(adapter-#): update page snippets with meta image feat(adapter-*): update page snippets with meta image Jan 7, 2025
@lihbr lihbr merged commit 14beaf1 into main Jan 7, 2025
33 checks passed
@lihbr lihbr deleted the lh/nuxt-page-snippet branch January 7, 2025 08:46
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