Skip to content

Removed unused components, and references.#15

Merged
KJHeartbreaker merged 1 commit into
mainfrom
removeThings
Jun 4, 2025
Merged

Removed unused components, and references.#15
KJHeartbreaker merged 1 commit into
mainfrom
removeThings

Conversation

@KJHeartbreaker

Copy link
Copy Markdown
Owner

No description provided.

@KJHeartbreaker
KJHeartbreaker requested a review from Copilot June 4, 2025 01:38
@vercel

vercel Bot commented Jun 4, 2025

Copy link
Copy Markdown

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

Name Status Preview Comments Updated (UTC)
dds-next-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 4, 2025 1:39am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes unused "post" functionality and related components, cleans up queries/types, and updates documentation accordingly.

  • Removed post-related GROQ queries, types, and components.
  • Updated link resolver and sitemap to only handle pages.
  • Cleaned up README to reflect the trimmed schema.

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
web/sanity/lib/utils.ts Removed post case in link resolver comment.
web/sanity/lib/queries.ts Deleted postFields, post queries, and updated sitemap query to pages only.
web/sanity.types.ts Stripped out post-related type definitions/comments.
web/app/sitemap.ts Renamed variable and logic to fetch only pages.
web/app/[slug]/page.tsx Replaced onboarding for missing pages with a simple header.
README.md Updated schema description to only mention Page/Settings.
Comments suppressed due to low confidence (1)

README.md:56

  • [nitpick] Update this line to accurately reflect the current schema (e.g., include Person if still present or remove any stale references).
The template comes pre-defined with a schema containing `Page`, and `Settings` document types.

Comment thread web/app/[slug]/page.tsx
Comment on lines 51 to 55
return (
<div className="py-40">
<PageOnboarding />
<h1>Page not found</h1>
</div>
);

Copilot AI Jun 4, 2025

Copy link

Choose a reason for hiding this comment

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

Consider using Next.js's notFound() from 'next/navigation' here to return a true 404 response instead of rendering a static header.

Copilot uses AI. Check for mistakes.
Comment thread web/app/sitemap.ts
@KJHeartbreaker
KJHeartbreaker merged commit 7f22c11 into main Jun 4, 2025
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