tools ai images - BevvyTech/BrewskiDocs GitHub Wiki

Tools – AI Images (/tools/ai-images)

Purpose

  • Provide a gallery of AI-generated beer badges for the active team so operators can review, reuse prompts, and download assets.
  • Surface metadata (prompt, revised prompt, style, author, created time) for audit and inspiration.

Data & Dependencies

  • Fetches paginated records from aiImagesService.list(teamId) (backs onto /ai/images API).
  • Requires an access token and active team membership; resets pagination when the team changes.

Key Interactions

  • Grid lists up to 12 cards per page with image preview, style details, prompts (with tooltips), usage stats, and download button linking to the image URL.
  • Pagination control updates the page state and triggers refetch.
  • Displays linear progress during loads, inline error alert on API failure, and an empty-state message when no images exist.
⚠️ **GitHub.com Fallback** ⚠️