Skip to content
uifiles
Browse components
ChatComponent

Checkpoint

Inline checkpoint marker between chat messages: a bookmark icon, a small ghost button with an optional tooltip, and a separator rule that fills the rest of the row. Use it to let people restore a conversation or agent workspace to an earlier point. Composes shadcn button, tooltip and separator.

pnpm dlx shadcn@latest add @uifiles/checkpoint

Between turns

A checkpoint after each assistant turn. The button carries a tooltip and restores the workspace to that point.

Set up a Drizzle schema for users with a theme preference.

Added db/schema.ts with a users table and a theme enum column, plus the first migration.

Restore the workspace to this point

Now expose it through a settings route.

Created app/api/settings/route.ts with a PATCH handler that validates the theme value before writing.

Restore the workspace to this point