Skip to content

Palette: Add clear button to URL input & remove unused component

e2094eb
Select commit
Loading
Failed to load commit list.
Draft

UX: Add clear button to URL input #50

Palette: Add clear button to URL input & remove unused component
e2094eb
Select commit
Loading
Failed to load commit list.
Supabase / Supabase Preview failed Dec 15, 2025 in 5s

Supabase Preview

ERROR: cannot change return type of existing function (SQLSTATE 42P13)
Row type defined by OUT parameters is different.
At statement: 6
-- Aggregate usage in a window for faster API queries
CREATE OR REPLACE FUNCTION public.get_usage_breakdown(
  p_user_id uuid,
  p_start timestamptz,
  p_end timestamptz
)
RETURNS TABLE (
  subscription_tier text,
  counted integer,
  cached integer
)
LANGUAGE sql
SECURITY DEFINER
SET search_path = public
AS $$
  SELECT
    subscription_tier,
    COUNT(*) FILTER (WHERE counted_toward_limit) AS counted,
    COUNT(*) FILTER (WHERE NOT counted_toward_limit) AS cached
  FROM public.video_generations
  WHERE user_id = p_user_id
    AND created_at >= p_start
    AND created_at < p_end
  GROUP BY subscription_tier;
$$