Skip to content

v0.3.0

Latest

Choose a tag to compare

@ddon ddon released this 18 May 21:39
· 12 commits to main since this release

AI module standardization release — see PR #9 plus post-merge review fixes.

Added

  • Manual sort mode on the endpoints list — picking "Manual" turns rows + cards into a drag-to-reorder SortableGrid target; reorder_endpoints/2 rewrites sort_order via the shared PhoenixKit.Utils.Reorder.reorder/4 two-phase primitive
  • Reorder mutations log a single endpoint.reordered / prompt.reordered activity row with count metadata
  • Optional Provider Settings (HTTP-Referer / X-Title) default from PhoenixKit.Settings (site_url / project_title) via get_setting_cached/1; per-endpoint fields act as pure overrides

Changed

  • Minimum phoenix_kit is now 1.7.112 — this release uses PhoenixKit.Utils.{Reorder,Values,Format} and the <.form_section> / :sort_bar core components
  • Endpoints + Prompts admin tables adopt <.table_default toggleable> (card + table views); sort UI moved to the core :sort_bar slot
  • Endpoint form, Prompt form, Playground migrated to <.form_section> / <.form_actions> / core inputs — drops ~500 lines of hand-rolled form boilerplate
  • Recent Requests table migrated to <.table_default>; columns tiered by importance against the admin sidebar breakpoint
  • AI pages expand to full width on large screens
  • parse_sort_* and actor-resolution helpers extracted to PhoenixKitAI.Web.{SortHelpers,AuthHelpers} (~75 lines of duplication removed)
  • reorder_prompts/2 migrated to the shared Reorder.reorder/4 primitive; takes [uuid] instead of [{uuid, sort_order}]
  • i18n: 14+ raw English strings wrapped in gettext/1

Fixed

  • Stable :uuid tiebreaker on every endpoint/prompt sort branch — tied sort-field values no longer reshuffle between pages/refreshes
  • Replaced the bogus {:id, "ID"} endpoint sort option with {:inserted_at, "Created"}
  • Endpoint "Enabled" toggle now submits a hidden false companion so unchecking actually persists
  • PromptForm gained a handle_info/2 catch-all
  • Quality sweep: all credo --strict findings closed; mix precommit green end to end

📦 hex.pm/packages/phoenix_kit_ai/0.3.0 · 📖 hexdocs.pm/phoenix_kit_ai/0.3.0