Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

The codebase contains an unused custom toast implementation from shadcn/ui while exclusively using the sonner library for toast notifications.

Changes

Removed 4 unused files:

  • src/hooks/use-toast.ts - Custom toast hook
  • src/ui/shadcn/components/ui/toast.tsx - Toast UI components (Radix primitives)
  • src/ui/shadcn/components/ui/toaster.tsx - Toaster component wrapper
  • src/ui/shadcn/components/ui/use-toast.ts - Duplicate toast hook

These files only referenced each other and had no imports elsewhere in the codebase. All toast functionality uses:

import { toast } from "sonner";
import { Toaster } from "sonner";
Original prompt

This section details on the original issue you should resolve

<issue_title>Remove outdated code from project</issue_title>
<issue_description>src/ui/shadcn/components/ui/toaster.tsx
src/hooks/use-toast.ts</issue_description>

<agent_instructions>Cross check for usage across project.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Jan 6, 2026

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

Project Deployment Review Updated (UTC)
sdk Ready Ready Preview, Comment Jan 6, 2026 7:53am

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 6, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
sdk 1997d86 Jan 06 2026, 07:54 AM

Copilot AI changed the title [WIP] Remove outdated code from project chore: remove unused shadcn/ui toast implementation Jan 6, 2026
Copilot AI requested a review from surajair January 6, 2026 07:35
@surajair surajair marked this pull request as ready for review January 6, 2026 07:50
@surajair surajair changed the base branch from main to next January 6, 2026 07:50
@surajair surajair force-pushed the copilot/remove-outdated-code branch from 4bd3e22 to 1997d86 Compare January 6, 2026 07:53
@surajair surajair merged commit 62898f0 into next Jan 6, 2026
2 of 3 checks passed
@surajair surajair deleted the copilot/remove-outdated-code branch January 6, 2026 07:54
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.

Remove outdated code from project

2 participants