4 Commits

Author SHA1 Message Date
google-labs-jules[bot]
2dc118dc19 feat: Connect chat interface to conversation layer router
Integrates the chat UI with the conversation layer router.

Key changes:

- Added new environment variables (`CONVERSATION_LAYER_ROUTER_URL` for the API and `VITE_CONVERSATION_LAYER_ROUTER_URL` for the UI) to specify the router's URL. These have been configured in `docker-compose.yml`, `api/.env.example`, and `ui/runtime-env.sh`.

- Modified `ui/src/stores/useChat.js`:
    - Introduced a `sendMessage` action that constructs a message object (as per the specified format with `id`, `from`, `to`, `ts`, `type`, `text`, `meta`) and sends it to the conversation router.
    - Implemented optimistic local display of your message.
    - Handles the `Conversation` object returned by the router, iterating through its `messages` array and adding them to the chat display.
    - Determines message ownership ('user' for UI messages, 'bot' for Nucleo messages) for appropriate rendering.
    - Includes basic error handling for API requests, logging errors and showing system messages in the chat.

- Updated `ui/src/components/chat/CanvasChat.vue`:
    - Modified the message sending mechanism to use the new `chat.sendMessage()` action.
    - Adjusted message rendering to correctly differentiate between messages from 'user' and 'bot' based on the `owner` field from the chat store.

This allows the UI to send messages to the conversation router and display the resulting conversation, focusing on rendering messages from both the UI ('planilla-UI') and the bot ('Nucleo').
2025-06-12 01:23:09 +00:00
39be1a2d27 faltaba una coma para compilar correctamente las variables en el sh
All checks were successful
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 17:22:47 -06:00
de869de3a7 actualizando uso de secrets en UI
All checks were successful
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Successful in 10s
build-and-deploy / deploy (push) Successful in 26s
2025-06-09 16:55:31 -06:00
513c305971 agregada funcionalidad realtime postgress, api y ui. 2025-06-09 16:35:36 -06:00