Skip to content

chore(types): remove unused deprecated Project interface #226

Closed

Description

@gkhngyk

What

The @deprecated Project interface in web/src/types/index.ts (lines ~39–48) is dead code — the migration to Brand + BrandDomain is complete and nothing imports or uses the Project type anymore. It can be deleted.

/** @deprecated Use Brand + BrandDomain instead */
export interface Project {
  id: string;
  organizationId: string;
  brandId?: string;
  name: string;
  domain: string;
  createdAt: string;
  updatedAt: string;
}

A repo-wide search finds zero usages: no import { Project }, no : Project, no <Project>. The only other match for "Project" in the app is an unrelated JSX section comment ({/* Project */}) in web/src/app/[locale]/(dashboard)/dashboard/settings/page.tsx — not a use of the type.

Fix

  • Delete the Project interface (and its @deprecated doc comment) from web/src/types/index.ts.
  • Optionally, tidy/relabel the stray {/* Project */} comment in dashboard/settings/page.tsx if it no longer reflects that section (cosmetic).

Acceptance

  • Project interface removed from web/src/types/index.ts
  • yarn typecheck, yarn lint, yarn build still pass (confirms nothing referenced it)
  • No behavior change

Notes

  • Pure dead-code cleanup; there is no half-finished migration to complete — usages are already on Brand / BrandDomain.

Activity

  1. BharadwajKanneveti commented on Jun 14, 2026

    @BharadwajKanneveti
    Contributor

    Hi @gkhngyk Can I work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions