Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai/openai-assistants-quickstart Loading
base: main
Choose a base ref
...
head repository: Ghastly2001/openai-assistants-quickstart Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 11, 2024

  1. Here's a summary and description of the changes made to resolve the …

    …issue in the FileViewer component: Summary: Implemented pagination and improved error handling in the FileViewer component to ensure proper fetching and display of files from the /api/assistants/files endpoint.
    
    1.Pagination Implementation:
    Replaced interval-based fetching with pagination to handle large datasets.
    Introduced state variables hasMore and page to manage pagination.
    Modified fetchFiles function to utilize pagination parameters (page) and update state accordingly.
    Added a "Load More" button to fetch additional files when available.
    2. Error Handling Enhancement:
    Enhanced error handling in fetchFiles, handleFileDelete, and handleFileUpload functions to catch errors and log them to the console.
    Ensured that errors are properly handled to prevent unexpected behavior and improve user experience.
    3.Code Cleanup:
    Removed redundant code related to interval-based fetching.
    Simplified code structure and improved readability by removing unnecessary logic.
    Ghastly2001 committed May 11, 2024
    Configuration menu
    Copy the full SHA
    b174108 View commit details
    Browse the repository at this point in the history
Loading