fix: before admin stations removal

This commit is contained in:
Eric Gullickson
2025-12-24 17:20:11 -06:00
parent 96ee43ea94
commit 8ef6b3d853
32 changed files with 1258 additions and 176 deletions

View File

@@ -350,7 +350,7 @@ export const useImportApply = () => {
onSuccess: (result) => {
queryClient.invalidateQueries({ queryKey: ['catalogSearch'] });
toast.success(
`Import completed: ${result.created} created, ${result.updated} updated, ${result.deleted} deleted`
`Import completed: ${result.created} created, ${result.updated} updated`
);
},
onError: (error: ApiError) => {

View File

@@ -462,9 +462,6 @@ export const AdminCatalogMobileScreen: React.FC = () => {
<div className="bg-blue-100 text-blue-800 px-3 py-2 rounded-lg">
<strong>{importPreview.toUpdate.length}</strong> to update
</div>
<div className="bg-red-100 text-red-800 px-3 py-2 rounded-lg">
<strong>{importPreview.toDelete.length}</strong> to delete
</div>
</div>
{/* Errors */}

View File

@@ -181,7 +181,6 @@ export interface CatalogSearchResponse {
// Catalog import types
export interface ImportRow {
action: 'add' | 'update' | 'delete';
year: number;
make: string;
model: string;
@@ -199,7 +198,6 @@ export interface ImportPreviewResult {
previewId: string;
toCreate: ImportRow[];
toUpdate: ImportRow[];
toDelete: ImportRow[];
errors: ImportError[];
valid: boolean;
}
@@ -207,7 +205,6 @@ export interface ImportPreviewResult {
export interface ImportApplyResult {
created: number;
updated: number;
deleted: number;
errors: ImportError[];
}