-
Notifications
You must be signed in to change notification settings - Fork 82
fixed report preview bug #164
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
base: master
Are you sure you want to change the base?
Conversation
Reviewer's GuideUpdates popup behavior to clear cached GitHub data and prompt manual report generation on organization change, adjusts input debounce timing, and adds popup-specific data writing logic in the scrum helper. Sequence diagram for report preview generation after organization changesequenceDiagram
actor User
participant Popup
participant Storage
participant ScrumHelper
User->>Popup: Change organization name
Popup->>Storage: Set orgName, clear githubCache
Popup->>Popup: Show message: "Click 'Generate Report' to fetch new data."
User->>Popup: Click "Generate Report"
Popup->>ScrumHelper: Call generateScrumReport()
ScrumHelper->>Storage: Fetch new data
ScrumHelper->>Popup: Update report preview
Class diagram for popup and scrumHelper changesclassDiagram
class Popup {
+handleOrgInput()
+generateScrumReport()
}
class Storage {
+set(orgName, githubCache)
+get()
}
class ScrumHelper {
+allIncluded(outputTarget)
+writeGithubIssuesPrs()
+writeGithubPrsReviews()
-issuesDataProcessed
-prsReviewDataProcessed
}
Popup --> Storage : uses
Popup --> ScrumHelper : calls generateScrumReport
ScrumHelper --> Storage : uses
ScrumHelper : +allIncluded(outputTarget) now resets and writes data if outputTarget == 'popup'
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Preeti9764 - I've reviewed your changes - here's some feedback:
- Consider extracting the hardcoded 2500ms debounce into a named constant so the timing is easier to adjust and understand.
- Move the inline HTML and style update for the βOrganisation changedβ message into a dedicated render function or CSS class rather than injecting raw markup.
- Refactor the manual reset of processed flags and subsequent calls in scrumHelper.js into a single reset method to reduce duplication and clarify the report regeneration flow.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extracting the hardcoded 2500ms debounce into a named constant so the timing is easier to adjust and understand.
- Move the inline HTML and style update for the βOrganisation changedβ message into a dedicated render function or CSS class rather than injecting raw markup.
- Refactor the manual reset of processed flags and subsequent calls in scrumHelper.js into a single reset method to reduce duplication and clarify the report regeneration flow.
Help me be more useful! Please click π or π on each comment and I'll use the feedback to improve your reviews.
Hello @Preeti9764, I have reviewed your work and would like to make a suggestion for a better approach to this issue. |
@hpdang Please share your views on this. Thanks. |
What @vedansh-5 suggested sounds good to me |
π Fixes
Fixes #163
π Summary of Changes
-The preview report will be generated when button get clicked after the organization name change.
πΈ Screenshots / Demo (if UI-related)
β Checklist
π Reviewer Notes
Add any special notes for the reviewer here
Summary by Sourcery
Fix report preview bug by clearing cache and updating UI placeholder on organization change, adjusting debounce timing, and forcing preview content to refresh
Bug Fixes:
Enhancements: