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

UI #68

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft

UI #68

wants to merge 18 commits into from

Conversation

vedansh-5
Copy link
Contributor

@vedansh-5 vedansh-5 commented Mar 30, 2025

Closes #67
stand alone popup UI,

Summary by Sourcery

Refactor and enhance the Scrum Helper extension with improved UI, email client support, and more flexible configuration options

New Features:

  • Added support for multiple email clients including Gmail, Outlook, and Yahoo
  • Introduced a new email client adapter for cross-platform compatibility
  • Added a toggle to enable/disable the extension
  • Implemented a new date selection mechanism with last week and yesterday options

Bug Fixes:

  • Fixed issues with date selection and contribution tracking
  • Improved error handling in GitHub data fetching
  • Resolved compatibility issues across different email clients

Enhancements:

  • Completely redesigned the popup UI with a modern, responsive layout
  • Improved state management for extension settings
  • Refactored content scripts to be more modular and flexible
  • Enhanced GitHub data fetching and processing logic

Documentation:

  • Updated manifest file to support new features
  • Added comprehensive comments explaining new functionality

Tests:

  • Improved content script injection mechanisms
  • Added more robust event handling for different email clients

Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Signed-off-by: Vedansh Saini <[email protected]>
Copy link

sourcery-ai bot commented Mar 30, 2025

Reviewer's Guide by Sourcery

This pull request introduces a standalone popup UI for the scrum helper extension. It includes support for multiple email clients, a new option to select the time frame for contributions, and a new option to select the program for contributions. The UI of the popup has also been improved.

Updated Class Diagram for EmailClientAdapter

classDiagram
    class EmailClientAdapter {
        -clientConfigs
        +detectClient()
        +getEditorElements()
        +injectContent(element, content, eventType)
        +retryInjection(element, content, eventType, maxRetries)
    }
    note for EmailClientAdapter "Handles different email clients (Gmail, Outlook, Yahoo, Google Groups) for injecting scrum reports."
Loading

File-Level Changes

Change Details Files
Refactored the codebase to improve readability and maintainability.
  • Replaced anonymous functions with named functions.
  • Improved code formatting and consistency.
  • Removed unused variables and functions.
  • Added comments to explain complex logic.
src/scripts/scrumHelper.js
src/scripts/main.js
Added support for multiple email clients.
  • Created an email client adapter to handle different email clients.
  • Implemented client-specific logic for Gmail, Outlook, and Yahoo Mail.
  • Added a function to detect the current email client.
  • Modified the content injection logic to work with different email clients.
src/scripts/scrumHelper.js
src/scripts/emailClientAdapter.js
Added a new option to select the time frame for contributions.
  • Added a new radio button to select the time frame for contributions.
  • Added a new option to select yesterday as the time frame.
  • Modified the logic to handle the new time frame option.
  • Updated the UI to reflect the new time frame option.
src/scripts/main.js
src/popup.html
Added a new option to select the program for contributions.
  • Added a new dropdown to select the program for contributions.
  • Added a new option to select GSoC as the program.
  • Modified the logic to handle the new program option.
  • Updated the UI to reflect the new program option.
src/scripts/main.js
src/popup.html
Improved the UI of the popup.
  • Used tailwind css for styling.
  • Added a toggle button to enable/disable the extension.
  • Improved the layout of the popup.
  • Added a copy button to copy the scrum report to the clipboard.
src/popup.html
src/index.css

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

[Feature] Implement a standalone pop-up UI.
1 participant