Skip to content

Add canonical URL and Open Graph metadata to the homepage #171

Description

@Jagadeeshftw

📌 Description

src/app/page.tsx exports no metadata at all (unlike dashboard/page.tsx, anchors/page.tsx, anchors/[id]/page.tsx, settlements/page.tsx, and settlements/[id]/page.tsx, which all define a Metadata object with title/description), so the homepage inherits only the generic root metadata from src/app/layout.tsx with no page-specific Open Graph tags for link previews when the URL is shared.

🧩 Requirements and context

  • Add a Metadata export to src/app/page.tsx with a page-specific title/description, consistent in style with the other route metadata exports.
  • Add basic Open Graph fields (openGraph.title, openGraph.description) using Next.js's Metadata type.
  • No visual/runtime change to the rendered page content.

🛠️ Suggested execution

  • Update src/app/page.tsx to export a Metadata object following the pattern already used in src/app/dashboard/page.tsx.

✅ Acceptance criteria

  • The homepage exports page-specific title/description metadata, consistent with other routes.
  • Open Graph title/description fields are present.
  • No change to the rendered page content.

🔒 Security notes

No new attack surface; a metadata/SEO documentation-style task.

📋 Guidelines

  • Minimum 95% test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26documentationImprovements or additions to documentationenhancementNew feature or improvement

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions