You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Extracted the "Failed to fetch external service status" error message into a `ERROR_LOADING_EXTERNAL_SERVICES_MESSAGE` constant in `external-services.js` for easier maintenance and potential localization.
12
+
- Extracted the settings panel instruction text into a `SETTINGS_INSTRUCTION_TEXT` constant in `external-services.js` for easier updates and potential internationalization support.
13
+
- Refactored `pendingChanges` in `renderServiceSettings` from a local variable to an instance property (`this.pendingChanges`) to reduce deep parameter passing through nested function calls.
14
+
- Simplified the `console.error` message in `getServiceCardElement` to focus on actionable information: `Service card not found: ${name}. Status updates will be skipped.`
15
+
- Simplified the `console.warn` message in `getSheetRules` to: `Error accessing stylesheet rules:` followed by the error object.
16
+
17
+
## 2026-04-11
18
+
9
19
### 🔧 VHOST IMPORT BUG FIXES & IMPROVEMENTS
10
20
11
21
- Updated the single-zip database file detection in `scripts/functions/vhost/vhost-import.sh` to search for both `*.sql` and `*.sql.gz` patterns, so compressed database dumps are correctly found and imported instead of failing silently.
Copy file name to clipboardExpand all lines: config/var/www/admin/control-panel/external-services/external-services.js
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ const CATEGORY_ORDER = [
18
18
'Security'
19
19
];
20
20
21
+
constERROR_LOADING_EXTERNAL_SERVICES_MESSAGE="Failed to fetch external service status. Check your internet connection and refresh the page. If the problem continues, check the browser console for details or contact your administrator.";
22
+
23
+
constSETTINGS_INSTRUCTION_TEXT='Toggle services to show/hide on the dashboard. Drag service cards to reorder them, or use the keyboard: press Enter to activate reorder mode and use arrow keys to move cards. Click "Save Changes" to apply. Services are organized by category.';
24
+
21
25
constDND_MOVE_TOKEN='moving';
22
26
23
27
constDEFAULT_ICON_SUFFIX='question';
@@ -245,7 +249,7 @@ export class ExternalServicesManager {
245
249
h3.textContent="Error Loading External Services";
246
250
247
251
constp=document.createElement("p");
248
-
p.textContent="Failed to fetch external service status. Check your internet connection and refresh the page. If the problem continues, check the browser console for details or contact your administrator.";
headerP.textContent='Toggle services to show/hide on the dashboard. Drag service cards to reorder them, or use the keyboard: press Enter to activate reorder mode and use arrow keys to move cards. Click "Save Changes" to apply. Services are organized by category.';
496
+
headerP.textContent=SETTINGS_INSTRUCTION_TEXT;
493
497
settingsHeader.appendChild(headerP);
494
498
settingsContent.appendChild(settingsHeader);
495
499
@@ -1095,7 +1099,7 @@ export class ExternalServicesManager {
console.error(`Card not found for service: ${serviceKey} (${name}). This may occur if the service is disabled in preferences or the DOM has not finished rendering. Status updates for this service will be skipped.`);
1102
+
console.error(`Service card not found: ${name}. Status updates will be skipped.`);
1099
1103
returnnull;
1100
1104
}
1101
1105
returnserviceCard;
@@ -1715,7 +1719,7 @@ export class ExternalServicesManager {
1715
1719
if(e.name==='SecurityError'){
1716
1720
returnnull;
1717
1721
}
1718
-
console.warn('Unexpected error while accessing stylesheet rules (non-CORS related). Check for malformed stylesheets or browser compatibility issues:',e);
0 commit comments