feat: enhance RepresentationsPage with searchable city filter and form improvements

- Updated RepresentationsPage to use SearchableSelect for city filtering.
- Modified form handling to use Controller from react-hook-form for city selection.
- Improved city filter handling to support null values.
- Added city_id to Representation interface in types.
- Implemented uploadLogo endpoint in CategoryController for logo uploads.
- Added logo_url field to Category entity and updated related services.
- Created SearchableSelect component for better user experience in selecting options.
- Added migration to include logo_url in categories table.
This commit is contained in:
hamed
2026-06-10 13:02:47 +03:30
parent 942634c98e
commit 06ab875693
10 changed files with 931 additions and 158 deletions
+17
View File
@@ -105,6 +105,7 @@ export interface Settlement {
}
export interface Representation {
id: number;
uuid: string;
full_name: string;
domain?: string;
@@ -180,6 +181,22 @@ export interface Category {
bundle: CategoryBundle;
status: number;
weight: number;
parent_id?: number | null;
title?: string | null;
logo_id?: number | null;
// insurance-specific
logo_url?: string | null;
// city-specific
representation_id?: number | null;
contact_phone?: string | null;
email?: string | null;
description?: string | null;
slogan?: string | null;
domain?: string | null;
keywords?: string | null;
footer_description?: string | null;
footer_disclaimer?: string | null;
social_media?: Record<string, string> | null;
}
export interface Blog {