Skip to content

Conversation

@jezweb
Copy link
Contributor

@jezweb jezweb commented Nov 5, 2025

Summary

Adds three new AI-powered visualization components:

  • Steps: Step-by-step instructions with numbered indicators
  • ImageGallery: Responsive grid layouts with modal lightbox
  • Carousel: Horizontal scrolling with markdown support

Features

Steps Component

  • Auto-numbered sequences with Framer Motion animations
  • Clean vertical layout for tutorials, recipes, workflows
steps-01

ImageGallery Component

  • Responsive grids (1-9+ images)
  • Click-to-expand modal with keyboard navigation
  • Thumbnail carousel with scroll indicators
make-gallery-01

Carousel Component

  • Markdown parsing (images, links, formatting)
  • Dynamic prev/next button visibility
  • ResizeObserver for responsive updates
carousel-01

Tool Integration

  • Added Zod schemas in /lib/ai/tools/visualization/
  • Display labels: "steps", "image-gallery", "carousel"
  • Lucide icons: ListChecks, Images, GalleryHorizontalEnd
  • Dynamic imports for code splitting

Notes

This branch includes Timeline commits (also in PR #307). The Timeline tool can be reviewed separately. Once Timeline merges, this can be rebased. It was just fixing the name to be kebab case so it was the same format as existing tools.

🤖 Generated with Claude Code

Jez and others added 4 commits November 5, 2025 22:54
Implements new Timeline tool for displaying chronological events with status indicators.

Features:
- Vertical timeline with connecting line
- Status indicators: Complete (green), In Progress (blue), Pending (gray)
- Relative timestamp formatting with date-fns
- Optional Lucide icon support
- Framer Motion stagger animations
- Dark/light theme support
- Responsive design

Files Added:
- src/lib/ai/tools/visualization/create-timeline.ts - Tool definition
- src/components/tool-invocation/timeline.tsx - React component
- screenshots/ - Example screenshots

Files Modified:
- src/lib/ai/tools/index.ts - Added CreateTimeline enum
- src/lib/ai/tools/tool-kit.ts - Registered tool
- src/components/message-parts.tsx - Added Timeline rendering

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Added LayoutList icon from Lucide React
- Styled with text-blue-500 to match other visualization tools
- Timeline displays with structured list icon in App Tools menu

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added three new AI-powered visualization components for Better Chatbot:

- **Steps**: Step-by-step instructions with numbered indicators
- **ImageGallery**: Responsive grid layouts with modal lightbox
- **Carousel**: Horizontal scrolling with markdown support

- Steps: Auto-numbered, animated sequence with Framer Motion
- Gallery: Responsive grids (1-9+ images), click-to-expand modal with keyboard navigation
- Carousel: Markdown parsing for images/links, smooth scrolling, dynamic button visibility

- Added tool definitions with Zod schemas in `/lib/ai/tools/visualization/`
- Registered in `DefaultToolName` enum and `APP_DEFAULT_TOOL_KIT`
- Added display labels: "steps", "image-gallery", "carousel"
- Added Lucide icons: ListChecks, Images, GalleryHorizontalEnd
- Dynamic imports in `message-parts.tsx` for code splitting

- Fixed carousel markdown rendering (now parses images, links, formatting)
- Simplified ImageGallery to always show all images (removed Show All button)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@vercel
Copy link

vercel bot commented Nov 5, 2025

Someone is attempting to deploy a commit to the cgoinglove's projects Team on Vercel.

A member of the Team first needs to authorize it.

These components were accidentally omitted from the previous commit but are
required by message-parts.tsx for the Steps and ImageGallery tools to work.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant