feat(api): add timezone support for group fetching and increase page size
feat(attendance): refactor attendance summary logic and update tests feat(analytics): extend GroupRiskSummary schema with absence and attendance counts feat(groups): enhance group schema with attendee and waitlist counts chore(skills): add frontend design skill with guidelines and license feat(attendee-detail): implement AttendeePhoneLine component for phone display feat(groups): create AttendanceBadge and CapacityIndicator components for group cards feat(groups): add card utility functions for attendance alerts and capacity summaries test(groups): implement tests for attendance alert and capacity summary logic
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { forwardRef, type HTMLAttributes } from 'react'
|
||||
import { cn } from '../../lib/utils'
|
||||
|
||||
export type BadgeVariant = 'success' | 'warning' | 'danger' | 'neutral'
|
||||
export type BadgeVariant = 'success' | 'warning' | 'danger' | 'neutral' | 'info'
|
||||
|
||||
export type BadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
||||
variant?: BadgeVariant
|
||||
@@ -12,6 +12,11 @@ const variants: Record<BadgeVariant, string> = {
|
||||
warning: 'bg-warning-soft text-warning',
|
||||
danger: 'bg-danger-soft text-danger',
|
||||
neutral: 'bg-primary-soft text-primary',
|
||||
/* Estado informativo que no es alerta: lista de espera, cupos libres. Usa la
|
||||
tinta de acento legible (`accent-fg` es el azul claro en tema oscuro,
|
||||
7.1:1 sobre la tarjeta) y no el `accent` directo, que en oscuro da 2.2:1
|
||||
y no alcanza el mínimo de 3:1 para contenido no textual. */
|
||||
info: 'bg-accent-soft text-accent-fg',
|
||||
}
|
||||
|
||||
export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(
|
||||
|
||||
Reference in New Issue
Block a user