Skip to content

Conversation

@Harsh-Microsoft
Copy link
Contributor

@Harsh-Microsoft Harsh-Microsoft commented Mar 18, 2025

Purpose

This pull request includes several changes to improve the chat functionality and refactor how chat history is fetched in the application. Chat History is being fetched only when the user clicks on the history button and not on the web page load, which in turn doesn't block the chat interface.
AB#15563

Improvements to chat functionality:

Refactoring chat history fetching logic:

  • frontend/src/pages/layout/Layout.tsx: Updated handleHistoryClick to fetch chat history if not already loaded and added a new fetchChatHistory function to handle the fetching process.
  • frontend/src/state/AppProvider.tsx: Removed the fetchChatHistory function from the useEffect in AppStateProvider and refactored the logic to update the chat history loading state based on the response from historyEnsure.

Import updates:

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • I have built and tested the code locally and in a deployed app
  • For frontend changes, I have pulled the latest code from main, built the frontend, and committed all static files.
  • This is a change for all users of this app. No code or asset is specific to my use case or my organization.

Other Information

@Roopan-Microsoft Roopan-Microsoft merged commit c3e807e into dev Mar 19, 2025
4 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@Harsh-Microsoft Harsh-Microsoft deleted the fetch-history-US branch April 3, 2025 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants