Files Involved:
frontend/src/screens/ChatbotScreen.tsx
Description:
- When the app is offline, sending a message in the chatbot prints a text message: "Unable to connect. Please check your internet connection and try again." However, the user has no quick way to retry sending the message once connection is restored. They have to type the prompt again manually.
Suggested Fix:
- Render a "Retry" button under failed messages.
- Implement a retry handler that pulls the originalPrompt stored in the failed message metadata and calls performSendMessage(prompt) once the network is connected.
Files Involved:
frontend/src/screens/ChatbotScreen.tsx
Description:
Suggested Fix: