Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance File Management with IndexedDB Storage and Improve Speech Detection #145

Conversation

fingerthief
Copy link
Owner

@fingerthief fingerthief commented Jun 3, 2024

PR Summary

This pull request introduces significant enhancements to the application's file handling and speech detection capabilities. The key features include the implementation of Browser IndexedDB storage for user-uploaded files and the integration of built-in events for speech detection.

Key Points

  1. IndexedDB Storage for User Files:

    • Implemented a base solution for saving user-uploaded files to the browser's IndexedDB storage.
    • Introduced a new StoredFilesList component accessible from the top left of the side panel.
    • The StoredFilesList component displays all currently stored user files in the database.
    • Users can click on a file to add its content to the conversation context.
    • Users can delete files from storage directly from the StoredFilesList component.
  2. Improved Speech Detection:

    • Updated the application to utilize built-in events for speech detection.
    • Replaced the previous manual polling method with more efficient built-in events.

These enhancements aim to improve the user experience by providing better file management and more reliable speech detection.

New StoredFilesList Component (WIP)

image

Auto Generated Notes (Do Not Change)


Contents (#145)

Uncategorised!

  • Updated to use the built in events for speech detection instead of rolling out own manual polling for speech.
  • Added base implementation of saving user uploaded files to the browsers IndexDB storage. Added a new StoredFilesList component that can be opened via the top left of the side panel
  • Updated size coloring of StoredFilesList Component
  • Update version

…rs IndexDB storage. Added a new StoredFilesList component that can be opened via the top left of the side panel

All currently stored userFiles in the database are listed. Clicking a file will add it's content to the conversation context.

You can also delete files from storage from this component.
@fingerthief fingerthief added the enhancement New feature or request label Jun 3, 2024
@fingerthief fingerthief added this to the 6.2.2 milestone Jun 3, 2024
@fingerthief fingerthief self-assigned this Jun 3, 2024
Copy link

github-actions bot commented Jun 3, 2024

Visit the preview URL for this PR (updated for commit a71cef3):

https://minimalgpt--pr145-dev-replaced-manual-i06soeu1.web.app

(expires Mon, 10 Jun 2024 01:57:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 95b9f8da4861f0258375bb9789bfa436b4ed7d98

Updated so that if the user clicks outside of the component it will hide itself.
@fingerthief fingerthief merged commit d2672fc into main Jun 3, 2024
6 checks passed
@fingerthief fingerthief deleted the dev/replaced-manual-speech-detection-with-supported-speech-detectrion-events branch June 3, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant