Skip to content

feat(seo): add meta tags manager#25

Merged
maitamdev merged 1 commit intomainfrom
pair/meta-tags
Mar 5, 2026
Merged

feat(seo): add meta tags manager#25
maitamdev merged 1 commit intomainfrom
pair/meta-tags

Conversation

@maitamdev
Copy link
Owner

@maitamdev maitamdev commented Mar 5, 2026

Dynamic meta tag management for SEO optimization.


Summary by cubic

Adds utilities to set document.title and dynamically create/update the description and Open Graph meta tags. Improves SEO and social link previews without duplicating tags.

Written for commit ca2acbe. Summary will update on new commits.

Co-authored-by: maitamgk <169973104+maitamgk@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dhv-guiding-light Ready Ready Preview, Comment Mar 5, 2026 4:15am

@maitamdev maitamdev merged commit a87ca15 into main Mar 5, 2026
1 of 3 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Mar 5, 2026

Warning

Rate limit exceeded

@maitamdev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 29 minutes and 36 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 62e7e2d9-5b0c-4ed7-a46b-09967fd4667c

📥 Commits

Reviewing files that changed from the base of the PR and between 74c040e and ca2acbe.

📒 Files selected for processing (1)
  • src/utils/metaTags.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pair/meta-tags

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/utils/metaTags.ts">

<violation number="1" location="src/utils/metaTags.ts:3">
P1: Building the CSS selector with `JSON.stringify(name)` is unsafe and can break `querySelector` for valid string inputs; use CSS escaping for attribute selectors.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@@ -0,0 +1,27 @@
// Meta tag management utilities
export function setMetaTag(name: string, content: string): void {
let el = document.querySelector('meta[name=' + JSON.stringify(name) + ']');
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 5, 2026

Choose a reason for hiding this comment

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

P1: Building the CSS selector with JSON.stringify(name) is unsafe and can break querySelector for valid string inputs; use CSS escaping for attribute selectors.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/utils/metaTags.ts, line 3:

<comment>Building the CSS selector with `JSON.stringify(name)` is unsafe and can break `querySelector` for valid string inputs; use CSS escaping for attribute selectors.</comment>

<file context>
@@ -0,0 +1,27 @@
+// Meta tag management utilities
+export function setMetaTag(name: string, content: string): void {
+  let el = document.querySelector('meta[name=' + JSON.stringify(name) + ']');
+  if (!el) {
+    el = document.createElement('meta');
</file context>
Fix with Cubic

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.

1 participant