discourse-ai/assets/stylesheets/modules
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
..
ai-bot UX: put full page search discoveries in sidebar (#1289) 2025-04-30 12:01:21 -04:00
ai-bot-conversations FEATURE: add support for uploads when starting a convo (#1301) 2025-05-01 12:21:07 +10:00
ai-helper UX: increase composer action z-index above ai suggestion (#1296) 2025-04-29 10:42:51 -04:00
embeddings/common UX: put full page search discoveries in sidebar (#1289) 2025-04-30 12:01:21 -04:00
llms/common FEATURE: display more places where AI is used / Chat streamer (#1278) 2025-04-24 16:22:19 +10:00
sentiment/common UX: Convert sentiment analysis overview to horizontal bars (#1216) 2025-03-25 13:36:52 -07:00
summarization DEV: Update linting (#1191) 2025-03-13 13:25:38 +00:00