Skip to content

Conversation

@Ziqian-Huang0607
Copy link
Member

Description

This PR integrates Google Drive file loading and saving functionality directly into the Notes app. Users who have authenticated with Google can now open plain text files from their Drive, edit the content, and save the changes back.

Key changes include:

  • New "File" Menu Options: "Open from Google Drive..." and "Save to Google Drive" have been added to the main dropdown menu in the Notes app.
  • "Open from Drive" Modal: A new modal appears that lists all editable plain text files from the user's Google Drive root, allowing them to select a file to load.
  • Smart Save Logic: The "Save to Google Drive" function is aware of the file's state. It will create a new file (prompting for a name) if the document is new, or it will update the content of the existing file if it was opened from Drive.
  • New Backend API Endpoints: Added dedicated API routes (/api/files/gdrive/create and /api/files/gdrive/[fileId]) to securely handle the creation, reading, and updating of files via the Google Drive API.

Related Issue

Fixes # (issue number)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual testing (Verified the full workflow: connecting to Drive, opening the modal, loading a file's content, editing, and saving both new and existing files).

Checklist

  • I have read the CONTRIBUTING guidelines
  • Tests added or updated
  • Documentation updated

Screenshots/Videos

Screen.Recording.2025-10-12.at.15.25.08.mp4

@efecan0
Copy link
Member

efecan0 commented Oct 12, 2025

Cool Feat

@dailker
Copy link
Member

dailker commented Oct 12, 2025

Thats amazing, couple adjustments needed. Such as moving it as main folder manager. Google Drive requirement for File Manager, and Save and Delete of CRUD operations.

@dailker dailker merged commit 58e1937 into codehubbers:main Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants