✨ refactor(ui): Improve usage log filter responsiveness and mobile UX
Refactor the usage log filter toolbar into a shared reusable component for common, drawing, and task logs. Optimize desktop filters with a responsive grid, move secondary filters into a mobile drawer, standardize filter typography, remove redundant filter icons, and add the missing i18n translations for the new drawer description.
This commit is contained in:
+1
-4
@@ -36,7 +36,7 @@ export const REDEMPTION_STATUS_VALUES = Object.values(REDEMPTION_STATUS).map(
|
||||
// labelKey values are i18n keys; use t(config.labelKey) in components
|
||||
export const REDEMPTION_STATUSES: Record<
|
||||
number,
|
||||
Pick<StatusBadgeProps, 'variant' | 'showDot'> & {
|
||||
Pick<StatusBadgeProps, 'variant'> & {
|
||||
labelKey: string
|
||||
value: number
|
||||
}
|
||||
@@ -45,19 +45,16 @@ export const REDEMPTION_STATUSES: Record<
|
||||
labelKey: 'Unused',
|
||||
variant: 'success',
|
||||
value: REDEMPTION_STATUS.ENABLED,
|
||||
showDot: true,
|
||||
},
|
||||
[REDEMPTION_STATUS.DISABLED]: {
|
||||
labelKey: 'Disabled',
|
||||
variant: 'neutral',
|
||||
value: REDEMPTION_STATUS.DISABLED,
|
||||
showDot: true,
|
||||
},
|
||||
[REDEMPTION_STATUS.USED]: {
|
||||
labelKey: 'Used',
|
||||
variant: 'neutral',
|
||||
value: REDEMPTION_STATUS.USED,
|
||||
showDot: true,
|
||||
},
|
||||
} as const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user