Skip to content

refactor(ticketing): delete existing ticketing system for V2 rebuild#109

Draft
TristanHourtoulle wants to merge 1 commit intodevfrom
feature/tri-85
Draft

refactor(ticketing): delete existing ticketing system for V2 rebuild#109
TristanHourtoulle wants to merge 1 commit intodevfrom
feature/tri-85

Conversation

@TristanHourtoulle
Copy link
Member

Summary

Remove the entire ticketing system (V1) to prepare for a clean V2 rebuild. This clears out all existing ticket-related pages, components, hooks, services, types, and documentation.

Type of Change

  • Feature
  • Bug Fix
  • Refactoring
  • Documentation
  • Performance
  • Other

Changes Overview

Removed Pages

  • app/(dashboard)/admin/tickets/page.tsx β€” Admin ticket management page
  • app/(dashboard)/support/page.tsx & layout.tsx β€” Support page
  • app/(dashboard)/tickets/[id]/page.tsx β€” Ticket detail page
  • app/(dashboard)/tickets/page.tsx β€” Tickets listing page
  • app/unauthorized/page.tsx β€” Minor cleanup

Removed Components

  • components/ticket/ β€” All ticket components (admin stats, ticket cards, create dialog, barrel export)
  • components/navigation-location.tsx β€” Navigation reference cleanup

Removed Hooks & Services

  • hooks/useTicket.ts β€” Ticket management hook
  • hooks/useRole.ts β€” Role permissions hook
  • hooks/use-links.ts & hooks/index.ts β€” Links and barrel export
  • services/ticket.ts & services/index.ts β€” Ticket API service

Removed Types, Utils & Docs

  • lib/types/ticket.ts β€” Ticket type definitions
  • lib/utils/file-upload.ts β€” File upload utilities
  • lib/toast.ts β€” Toast translation helpers
  • docs/backend_ticketing.md & backend_ticketing.md β€” Backend ticketing documentation
  • tests/unit/lib/role-permissions.test.ts β€” Role permissions tests

Technical Details

Files Changed: 23 files
Lines Removed: ~7,071

This is a full teardown of the V1 ticketing system. All ticket-related code has been removed to allow a clean architecture for V2.

Testing

  • Tested locally
  • No regression in existing features

Breaking Changes

All V1 ticketing functionality is removed. This is intentional as V2 will be built from scratch.

Deployment Notes

No special steps required. Ensure no other branches depend on removed ticketing code before merging.

Remove all frontend ticketing code (types, services, hooks, components,
pages, tests, docs) and clean up references in navigation, toasts, and
role permissions. This clears the way for the TICKETING-V2 rebuild.

Closes TRI-85
@TristanHourtoulle TristanHourtoulle added the Website All features in Website Part label Feb 28, 2026
@TristanHourtoulle TristanHourtoulle self-assigned this Feb 28, 2026
@github-actions
Copy link

Coverage Report

Status Category Percentage Covered / Total
πŸ”΅ Lines 77.66% 400 / 515
πŸ”΅ Statements 78.14% 422 / 540
πŸ”΅ Functions 58.73% 74 / 126
πŸ”΅ Branches 72.9% 191 / 262
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
lib/toast.ts 22.22% 10.86% 2.38% 22.22% 81, 87, 96, 107-142, 270-323, 329-338, 342-348, 352-357, 362-365, 370-373, 377-384
Generated in workflow #8 for commit 7f2ac81 by the Vitest Coverage Report Action

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

Labels

Website All features in Website Part

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant