[FEAT] UI: guida online, landing EN, mobile-conversion, ai-assistant, bug-reporter + help/i18n

- public/guida.html, index-en.html, service-continuity.html
- public/js/ai-assistant.js, bug-reporter.js (FAB supporto)
- public/mobile-conversion.css/js
- index.html, common.js, help.js, risks.html: aggiornamenti UI/help

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-05-29 15:42:00 +02:00
co-authored by Claude Opus 4.8
parent c0bf7b6c15
commit 1d934e4e63
11 changed files with 4227 additions and 19 deletions
+25
View File
@@ -904,6 +904,22 @@ const HelpSystem = (function () {
// ── Rendering del contenuto HTML di help ─────────────────────────
// Mapping pageId -> ancora capitolo nella Guida completa (guida.html)
var _guideAnchor = {
'dashboard': 'cap-4',
'assessment': 'cap-5',
'risks': 'cap-6',
'incidents': 'cap-7',
'policies': 'cap-8',
'supply-chain': 'cap-9',
'training': 'cap-10',
'assets': 'cap-11',
'reports': 'cap-12',
'feedback': 'cap-13',
'workflow': 'cap-4',
'settings': 'cap-3'
};
function _renderHelpContent(pageId) {
var data = _helpContent[pageId];
if (!data) return null;
@@ -936,6 +952,15 @@ const HelpSystem = (function () {
html += '</div>';
}
// Link alla guida completa (per utenti che vogliono approfondire)
var anchor = _guideAnchor[pageId] || '';
var guideHref = 'guida.html' + (anchor ? '#' + anchor : '');
html += '<div style="margin-top:20px;padding:14px 18px;background:#eff6ff;border-left:4px solid #1e40af;border-radius:6px;">';
html += '<strong style="color:#1e40af;">Sei nuovo?</strong> ';
html += 'Apri la <a href="' + guideHref + '" style="color:#1e40af;font-weight:600;">Guida all\'uso completa</a> ';
html += 'con spiegazioni in parole semplici, esempi pratici e cosa dice la norma.';
html += '</div>';
html += '</div>';
return { title: data.title, content: html };