Skip to content

IAV-978/feat: add file attachment support, audio waveform visualization, and extract...

abdellatif elkerbani a demandé de fusionner feature/IAV-978 vers develop

Chat types & DTOs:

  • Update FileAttachmentInfo: rename fileName to displayName, add type field, remove fileUrl
  • Add attachments support to Message type with FileAttachmentInfo
  • Update convertMessageDTOtoMessage to map attachments from backend
  • Remove deprecated fileMetadataUids from AgentMessageResponseDTO

File management:

  • Add file-manager-service endpoints (download, presignedUrl)
  • Add file helper utilities: isImageFile, formatFileSize, getFileExtension, getFileIconByContentType

Audio recording:

  • Add Web Audio API AnalyserNode to useAudioRecorder for real-time waveform visualization
  • Properly clean up AudioContext on stop/cancel recording

Reusable chat components (new):

  • AudioWaveform: canvas-based real-time audio frequency visualization
  • AudioPlayer: inline voice message player with microphone icon
  • ImageAttachment: clickable image thumbnail with presigned URL caching
  • PdfAttachment: styled PDF card with icon and file info
  • ImageLightbox: full-screen image overlay with download button
  • PdfViewer: full-screen PDF viewer portal with iframe

Chat interface updates:

  • Refactor unified-chat-interface to use extracted reusable components
  • Update shared and legal ChatMessage to use AudioPlayer component
  • Add file attachment chips with download support to ChatMessage components
  • Right-align user file attachments in message bubbles
  • Add chat-dashboard file-helpers import
Modification effectuée par abdellatif elkerbani

Rapports de requête de fusion