Skip to content

[In Progress] Implement Google Drive integration to allow users to seamlessly access and manage their documents within OpenBookLM. #8

@cdirks4

Description

@cdirks4

Technical Requirements

  • OAuth 2.0 authentication flow
  • Google Drive API integration
  • File browser component
  • Document import/export functionality

Tasks

  • Set up Google Cloud Project

    • Create project in Google Cloud Console
    • Enable Google Drive API
    • Configure OAuth consent screen
    • Generate credentials
  • Implement OAuth Flow

// Required Environment Variables
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
GOOGLE_REDIRECT_URI=http://localhost:3000/api/auth/callback/google
  • Create Drive API Integration
// src/lib/google-drive.ts
export async function listFiles() {
  // List files implementation
}

export async function importFile(fileId: string) {
  // File import implementation
}
  • Add File Browser Component
  • Implement Error Handling
  • Add Progress Indicators
  • Write Integration Tests

Acceptance Criteria

  • Users can authenticate with Google Drive
  • Users can browse their Drive files
  • Users can import documents to notebooks
  • Error states are properly handled
  • Loading states are implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions