React 18 + Vite + TypeScript + Tailwind v4 + TanStack Query v5. Dark glassmorphism design, table/grid views, color-coded route badges, filter bar, stats bar, add/edit modal, delete confirm, toast notifications. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
645 B
TypeScript
39 lines
645 B
TypeScript
export type Route = 'auto' | 'ask' | 'verify' | 'ignore'
|
|
|
|
export interface Store {
|
|
id: number
|
|
store: string
|
|
category: string
|
|
tags: string
|
|
route: Route
|
|
display_order: number
|
|
created_at: string
|
|
}
|
|
|
|
export interface Pagination {
|
|
total: number
|
|
page: number
|
|
limit: number
|
|
totalPages: number
|
|
}
|
|
|
|
export interface StoresResponse {
|
|
data: Store[]
|
|
pagination: Pagination
|
|
}
|
|
|
|
export interface FiltersResponse {
|
|
categories: string[]
|
|
routes: string[]
|
|
tags: string[]
|
|
}
|
|
|
|
export interface StoreFilters {
|
|
search: string
|
|
category: string
|
|
route: string
|
|
page: number
|
|
limit: number
|
|
sortBy: string
|
|
sortDir: 'asc' | 'desc'
|
|
}
|