Skip to content

Commit 1503796

Browse files
committed
correct the organization
1 parent 4821275 commit 1503796

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/popup.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,19 @@ <h6 class="text-base font-semibold">Scrum Report</h6>
132132
<div id="settingsSection" class="tab-content hidden">
133133
<div class="">
134134
<div class="flex items-center mt-4">
135-
<h4>Organisation Name</h4>
135+
<h4>Organization Name</h4>
136136
<span class="tooltip-container ml-2">
137137
<i class="fa fa-question-circle question-icon"></i>
138138
<span class="tooltip-bubble">
139-
<b>Which organisation's GitHub activity?</b><br>
140-
Enter the GitHub organisation name to fetch activites for. Default is <b>fossasia</b>.
141-
Organisation name is not case-sensitive.
139+
<b>Which organiZation's GitHub activity?</b><br>
140+
Enter the GitHub organization name to fetch activites for. Default is <b>fossasia</b>.
141+
Organization name is not case-sensitive.
142142
</span>
143143
</span>
144144
</div>
145145
<input id="orgInput" type="text"
146146
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2"
147-
placeholder="Enter organisation name (default: fossasia)">
147+
placeholder="Enter organization name (default: fossasia)">
148148
</div>
149149
<div class="">
150150
<div class="flex items-center justify-between">

src/scripts/popup.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ document.addEventListener('DOMContentLoaded', function () {
369369
.then(res => {
370370
console.log('[Org Check] Response status for', org, ':', res.status);
371371
if (res.status === 404) {
372-
console.log('[Org Check] Organisation not found on GitHub:', org);
372+
console.log('[Org Check] Organization not found on GitHub:', org);
373373
// Remove any existing toast with the same id
374374
const oldToast = document.getElementById('invalid-org-toast');
375375
if (oldToast) oldToast.parentNode.removeChild(oldToast);
@@ -387,7 +387,7 @@ document.addEventListener('DOMContentLoaded', function () {
387387
toastDiv.style.left = '50%';
388388
toastDiv.style.transform = 'translateX(-50%)';
389389
toastDiv.style.zIndex = '9999';
390-
toastDiv.innerText = 'Organisation not found on GitHub.';
390+
toastDiv.innerText = 'Organization not found on GitHub.';
391391
document.body.appendChild(toastDiv);
392392
setTimeout(() => {
393393
if (toastDiv.parentNode) toastDiv.parentNode.removeChild(toastDiv);
@@ -398,14 +398,14 @@ document.addEventListener('DOMContentLoaded', function () {
398398
// Remove any existing toast with the same id (for valid orgs)
399399
const oldToast = document.getElementById('invalid-org-toast');
400400
if (oldToast) oldToast.parentNode.removeChild(oldToast);
401-
console.log('[Org Check] Organisation exists on GitHub:', org);
401+
console.log('[Org Check] Organization exists on GitHub:', org);
402402
// Valid org: update storage and fetch data
403403
chrome.storage.local.set({ orgName: org }, function () {
404404
if (window.generateScrumReport) window.generateScrumReport();
405405
});
406406
})
407407
.catch((err) => {
408-
console.log('[Org Check] Error validating organisation:', org, err);
408+
console.log('[Org Check] Error validating organization:', org, err);
409409
// Remove any existing toast with the same id
410410
const oldToast = document.getElementById('invalid-org-toast');
411411
if (oldToast) oldToast.parentNode.removeChild(oldToast);
@@ -423,7 +423,7 @@ document.addEventListener('DOMContentLoaded', function () {
423423
toastDiv.style.left = '50%';
424424
toastDiv.style.transform = 'translateX(-50%)';
425425
toastDiv.style.zIndex = '9999';
426-
toastDiv.innerText = 'Error validating organisation.';
426+
toastDiv.innerText = 'Error validating organization.';
427427
document.body.appendChild(toastDiv);
428428
setTimeout(() => {
429429
if (toastDiv.parentNode) toastDiv.parentNode.removeChild(toastDiv);

src/scripts/scrumHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ function allIncluded(outputTarget = 'email') {
381381

382382
if (issuesRes.status === 404 || prRes.status === 404) {
383383
if (outputTarget === 'popup') {
384-
Materialize.toast && Materialize.toast('Organisation not found on GitHub', 3000);
384+
Materialize.toast && Materialize.toast('Organization not found on GitHub', 3000);
385385
}
386-
throw new Error('Organisation not found');
386+
throw new Error('Organization not found');
387387
}
388388

389389
if (!issuesRes.ok) throw new Error(`Error fetching Github issues: ${issuesRes.status} ${issuesRes.statusText}`);

0 commit comments

Comments
 (0)