feat(ticketing): add TypeScript types, Zod schemas, and file upload utilities for V2#110
Draft
TristanHourtoulle wants to merge 2 commits intodevfrom
Draft
feat(ticketing): add TypeScript types, Zod schemas, and file upload utilities for V2#110TristanHourtoulle wants to merge 2 commits intodevfrom
TristanHourtoulle wants to merge 2 commits intodevfrom
Conversation
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
…tilities for V2 Lay the frontend foundations for the ticketing V2 system: - Types and interfaces aligned with backend MongoDB schemas - Zod validation schemas for ticket and message creation forms - File utilities for validation, image compression, and Base64 conversion
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lay the frontend foundations for the ticketing V2 system with TypeScript types aligned to the backend MongoDB schemas, Zod validation schemas for forms, and file upload utilities.
Type of Change
Changes Overview
V2 Type System
lib/types/ticket.tswith types and interfaces matching backend MongoDB schemas (tickets, messages, attachments, status/priority/category enums)Validation Schemas
lib/schemas/ticket.ts— Zod schemas for ticket creation and message creation formsFile Upload Utilities
lib/utils/file-upload.ts— File type/size validation, image compression (canvas-based), and Base64 conversionTechnical Details
Files Changed: 3 files
Main Areas:
lib/types/ticket.ts: Type definitions for V2lib/schemas/ticket.ts: Zod validation schemaslib/utils/file-upload.ts: File processing utilitiesTesting
Breaking Changes
None
Deployment Notes
No special steps required. These are foundational types and utilities — no UI changes yet.