FormFooterChangeBadge() — supabase Function Reference
Architecture documentation for the FormFooterChangeBadge() function in FormFooterChangeBadge.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/DataWarehouse/FormFooterChangeBadge.tsx lines 8–42
export const FormFooterChangeBadge = ({ formState }: FormFooterChangeBadgeProps) => {
return (
<AnimatePresence mode="wait">
{Object.keys(formState.dirtyFields).length > 0 && (
<motion.div
initial={{ opacity: 0, scale: 0.9 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.9 }}
transition={{ duration: 0.2 }}
>
<motion.div
animate={{
scale: [1, 1.05, 1],
transition: { duration: 0.3 },
}}
>
<p className="text-sm text-foreground-lighter">
<motion.span
key={Object.keys(formState.dirtyFields).length}
initial={{ opacity: 0, scale: 0.9 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.9 }}
transition={{ duration: 0.1 }}
>
{Object.keys(formState.dirtyFields).length === 1
? '1 change to review'
: `${Object.keys(formState.dirtyFields).length} changes to review`}
</motion.span>
</p>
</motion.div>
</motion.div>
)}
</AnimatePresence>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free