Remove unused drive auth page - #29
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request streamlines the application's Google Drive integration by eliminating the previously unused standalone Drive authentication page. All authentication and backup management responsibilities are now consolidated within the existing options page, simplifying the architecture and reducing code overhead. Accompanying this removal are comprehensive updates to documentation and test configurations. Additionally, minor refactorings were performed to internalize certain utility exports, and the E2E tests for tab restoration were made more resilient. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request primarily focuses on removing the standalone drive-auth entrypoint, consolidating all Google Drive authentication, backup, and restore user interface elements into the existing options page. This change is reflected across documentation files (README.md, TESTING.md, docs/DRIVE_BACKUP_PLAN.md, docs/DRIVE_BACKUP_SPEC.md, docs/architecture.md), the vitest.config.ts file, and by the complete deletion of all files within the entrypoints/drive-auth/ directory. Additionally, several types and functions in entrypoints/drive/drive_backup.ts, entrypoints/drive/types.ts, entrypoints/options/settings_page.ts, and entrypoints/ui/notifications.ts were refactored to be internal to their modules. The E2E tests in tests/e2e/extension.spec.ts were also updated to enhance the robustness of tab restoration checks by considering both tab.url and tab.pendingUrl and utilizing expect.poll for asynchronous waits. A review comment points out that the DriveBackupListPage type in entrypoints/drive/drive_backup.ts was made internal but is still used by an exported function, which could lead to TypeScript compilation errors, and suggests re-exporting it.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
=====================================
Coverage 94.8% 94.8%
=====================================
Files 18 18
Lines 2132 2132
Branches 556 556
=====================================
Hits 2023 2023
Misses 97 97
Partials 12 12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.