Skip to content

Conversation

@Almoizs-1310
Copy link

This pull request introduces significant improvements to the Google Docs plugin, focusing on enhanced user experience, better error handling, analytics tracking, and modernization of the codebase. Key updates include improved loading states for dialogs, refactoring image insertion/update flows to use BroadcastChannel, the addition of a robust analytics module, and UI/UX enhancements.

User Experience Improvements:

  • Added loading spinners and improved error handling for the create, edit, and select diagram dialogs, providing users with visual feedback during asynchronous operations and clearer error messages. (src/client/create-diagram-dialog/components/create-diagram-dialog.tsx, src/client/create-diagram-dialog/index.html, src/client/edit-diagram-dialog/components/edit-diagram-dialog.tsx, src/client/edit-diagram-dialog/index.html, src/client/select-diagram-dialog/components/select-diagram-dialog.tsx) [1] [2] [3] [4] [5] [6] [7]

Image Handling Refactor:

  • Refactored the diagram image insertion and update flows to compress images and use BroadcastChannel for communication with the sidebar, improving performance and reliability. (src/client/create-diagram-dialog/components/create-diagram-dialog.tsx, src/client/edit-diagram-dialog/components/edit-diagram-dialog.tsx) [1] [2]

Analytics and Tracking:

  • Introduced a new analytics module to track key plugin events (login, logout, diagram actions), including robust error handling and unique user/session identification. (src/analytics/analytics.ts, src/analytics/httpClient.ts, src/client/hooks/useAuth.ts) [1] [2] [3] [4]

UI/UX Enhancements:

  • Updated button styles for a more modern and consistent look and feel. (src/client/components/button.module.css)
  • Added a reusable Toast component for displaying user notifications. (src/client/components/toast.tsx)

Build and Environment Updates:

  • Updated package.json to use npx for clasp commands and bumped the version to 1.2.0 for better developer experience. (package.json)
  • Updated .clasp.json with new script and parent IDs. (.clasp.json)

These changes collectively improve the plugin's reliability, maintainability, and user experience.

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
google-plugin Error Error Jan 21, 2026 7:04am

Request Review

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.

2 participants