discourse-ai/spec
Sam 8b1b6811f4
FEATURE: add support for uploads when starting a convo (#1301)
This commit introduces file upload capabilities to the AI Bot conversations interface and improves the overall dedicated UX experience. It also changes the experimental setting to a more permanent one.

## Key changes:

- **File upload support**:
  - Integrates UppyUpload for handling file uploads in conversations
  - Adds UI for uploading, displaying, and managing attachments
  - Supports drag & drop, clipboard paste, and manual file selection
  - Shows upload progress indicators for in-progress uploads
  - Appends uploaded file markdown to message content

- **Renamed setting**:
  - Changed `ai_enable_experimental_bot_ux` to `ai_bot_enable_dedicated_ux`
  - Updated setting description to be clearer
  - Changed default value to `true` as this is now a stable feature
  - Added migration to handle the setting name change in database

- **UI improvements**:
  - Enhanced input area with better focus states
  - Improved layout and styling for conversations page
  - Added visual feedback for upload states
  - Better error handling for uploads in progress

- **Code organization**:
  - Refactored message submission logic to handle attachments
  - Updated DOM element IDs for consistency
  - Fixed focus management after submission

- **Added tests**:
  - Tests for file upload functionality
  - Tests for removing uploads before submission
  - Updated existing tests to work with the renamed setting


---------

Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
2025-05-01 12:21:07 +10:00
..
configuration FEATURE: display more places where AI is used / Chat streamer (#1278) 2025-04-24 16:22:19 +10:00
db/migrate FIX: Open AI embeddings config migration & Seeded indexes cleanup & (#1092) 2025-01-27 15:24:43 -03:00
fabricators FEATURE: Add spending metrics to AI usage (#1268) 2025-04-17 15:09:48 -07:00
fixtures FIX: failing image caption spec (#1195) 2025-03-14 10:19:04 -07:00
jobs FEATURE: Add streaming to composer helper (#1256) 2025-04-14 08:18:50 -07:00
lib FEATURE: correctly decorate AI bots (#1300) 2025-04-30 16:36:38 +10:00
models FEATURE: add OpenAI image generation and editing capabilities (#1293) 2025-04-29 17:38:54 +10:00
reports FEATURE: New sentiment analysis visualization report (#1109) 2025-02-20 09:14:10 -08:00
requests FEATURE: correctly decorate AI bots (#1300) 2025-04-30 16:36:38 +10:00
serializers FEATURE: Configure persona backed features in admin panel (#1245) 2025-04-10 08:16:31 -07:00
services DEV: Use full URL for problem check message (#1165) 2025-03-05 11:31:23 +08:00
shared FEATURE: Gemini Tokenizer (#1088) 2025-01-23 18:20:35 -03:00
support FEATURE: configurable embeddings (#1049) 2025-01-21 12:23:19 -03:00
system FEATURE: add support for uploads when starting a convo (#1301) 2025-05-01 12:21:07 +10:00
tasks DEV: Add rake task to send topics or posts to spam scanner (#1059) 2025-01-15 11:48:57 +08:00
plugin_helper.rb FEATURE: Personas powered summaries. (#1232) 2025-04-02 12:54:47 -03:00
plugin_spec.rb FEATURE: smart date support for AI helper (#1044) 2024-12-31 08:04:25 +11:00