refactor: update TASK_TYPES to comment out 'credit_recharge' in CreateTaskDialog and SchedulersHeader
feat: add filter icon to SelectTrigger in SoundsPage for improved UI
This commit is contained in:
@@ -38,7 +38,7 @@ interface CreateTaskDialogProps {
|
||||
onCancel: () => void
|
||||
}
|
||||
|
||||
const TASK_TYPES: TaskType[] = ['play_sound', 'play_playlist']
|
||||
const TASK_TYPES: TaskType[] = [/*'credit_recharge',*/ 'play_sound', 'play_playlist']
|
||||
const RECURRENCE_TYPES: RecurrenceType[] = ['none', 'minutely', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'cron']
|
||||
|
||||
export function CreateTaskDialog({
|
||||
|
||||
@@ -35,7 +35,7 @@ interface SchedulersHeaderProps {
|
||||
}
|
||||
|
||||
const TASK_STATUSES: TaskStatus[] = ['pending', 'running', 'completed', 'failed', 'cancelled']
|
||||
const TASK_TYPES: TaskType[] = ['credit_recharge', 'play_sound', 'play_playlist']
|
||||
const TASK_TYPES: TaskType[] = [/*'credit_recharge',*/ 'play_sound', 'play_playlist']
|
||||
|
||||
export function SchedulersHeader({
|
||||
searchQuery,
|
||||
|
||||
@@ -22,6 +22,7 @@ import { SOUND_EVENTS, soundEvents } from '@/lib/events'
|
||||
import { useSocket } from '@/contexts/SocketContext'
|
||||
import {
|
||||
AlertCircle,
|
||||
Filter,
|
||||
Heart,
|
||||
RefreshCw,
|
||||
Search,
|
||||
@@ -374,7 +375,8 @@ export function SoundsPage() {
|
||||
value={typeFilter}
|
||||
onValueChange={value => setTypeFilter(value as 'all' | 'SDB' | 'TTS')}
|
||||
>
|
||||
<SelectTrigger className="w-[120px]">
|
||||
<SelectTrigger className="w-[160px]">
|
||||
<Filter className="h-4 w-4 mr-2" />
|
||||
<SelectValue placeholder="Type" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
|
||||
Reference in New Issue
Block a user