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
|
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']
|
const RECURRENCE_TYPES: RecurrenceType[] = ['none', 'minutely', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'cron']
|
||||||
|
|
||||||
export function CreateTaskDialog({
|
export function CreateTaskDialog({
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ interface SchedulersHeaderProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const TASK_STATUSES: TaskStatus[] = ['pending', 'running', 'completed', 'failed', 'cancelled']
|
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({
|
export function SchedulersHeader({
|
||||||
searchQuery,
|
searchQuery,
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import { SOUND_EVENTS, soundEvents } from '@/lib/events'
|
|||||||
import { useSocket } from '@/contexts/SocketContext'
|
import { useSocket } from '@/contexts/SocketContext'
|
||||||
import {
|
import {
|
||||||
AlertCircle,
|
AlertCircle,
|
||||||
|
Filter,
|
||||||
Heart,
|
Heart,
|
||||||
RefreshCw,
|
RefreshCw,
|
||||||
Search,
|
Search,
|
||||||
@@ -374,7 +375,8 @@ export function SoundsPage() {
|
|||||||
value={typeFilter}
|
value={typeFilter}
|
||||||
onValueChange={value => setTypeFilter(value as 'all' | 'SDB' | 'TTS')}
|
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" />
|
<SelectValue placeholder="Type" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user