File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -400,8 +400,11 @@ document.addEventListener('DOMContentLoaded', function () {
400
400
if ( oldToast ) oldToast . parentNode . removeChild ( oldToast ) ;
401
401
console . log ( '[Org Check] Organisation exists on GitHub:' , org ) ;
402
402
// Valid org: update storage and fetch data
403
- chrome . storage . local . set ( { orgName : org } , function ( ) {
404
- if ( window . generateScrumReport ) window . generateScrumReport ( ) ;
403
+ chrome . storage . local . set ( { orgName : org , githubCache : null } , function ( ) {
404
+ const scrumReport = document . getElementById ( 'scrumReport' ) ;
405
+ if ( scrumReport ) {
406
+ scrumReport . innerHTML = '<p style="text-align: center; color: #666; padding: 20px;">Organisation changed. Click "Generate Report" to fetch new data.</p>' ;
407
+ }
405
408
} ) ;
406
409
} )
407
410
. catch ( ( err ) => {
@@ -430,7 +433,7 @@ document.addEventListener('DOMContentLoaded', function () {
430
433
} , 3000 ) ;
431
434
// Do NOT update storage or fetch data for invalid org
432
435
} ) ;
433
- } , 3000 ) ;
436
+ } , 2500 ) ;
434
437
435
438
orgInput . addEventListener ( 'input' , handleOrgInput ) ;
436
439
Original file line number Diff line number Diff line change @@ -400,6 +400,13 @@ function allIncluded(outputTarget = 'email') {
400
400
401
401
await saveToStorage ( githubCache . data ) ;
402
402
processGithubData ( githubCache . data ) ;
403
+
404
+ if ( outputTarget === 'popup' ) {
405
+ issuesDataProcessed = false ;
406
+ prsReviewDataProcessed = false ;
407
+ writeGithubIssuesPrs ( ) ;
408
+ writeGithubPrsReviews ( ) ;
409
+ }
403
410
404
411
// Resolve queued calls
405
412
githubCache . queue . forEach ( ( { resolve } ) => resolve ( ) ) ;
You can’t perform that action at this time.
0 commit comments