Added callout with link to config instructions and path to project config on hover

[ci skip]
This commit is contained in:
MischaPanch committed 2025-10-29 00:06:05 +01:00
1 parent 04910f866f
commit 88caf59033
2 files changed
+13 -1

No files matched your search

+1
View File
@@ -156,6 +156,7 @@ class SerenaDashboardAPI:
project_info = {
"name": active_project_name,
"language": project.project_config.language.value if project else None,
"path": str(project.project_root) if project else None,
}
# Get context info
+12 -1
View File
@@ -229,7 +229,12 @@ class Dashboard {
// Project info
html += '<div class="config-label">Active Project:</div>';
html += '<div class="config-value">' + (config.active_project.name || 'None') + '</div>';
if (config.active_project.name && config.active_project.path) {
const configPath = config.active_project.path + '/.serena/project.yml';
html += '<div class="config-value"><span title="Project configuration in ' + configPath + '">' + config.active_project.name + '</span></div>';
} else {
html += '<div class="config-value">' + (config.active_project.name || 'None') + '</div>';
}
html += '<div class="config-label">Language:</div>';
html += '<div class="config-value">' + (config.active_project.language || 'N/A') + '</div>';
@@ -253,6 +258,12 @@ class Dashboard {
html += '</div>';
// Configuration help link
html += '<div style="margin-top: 15px; padding: 10px; background: var(--bg-secondary); border-radius: 4px; font-size: 13px; border: 1px solid var(--border-color);">';
html += '<span style="color: var(--text-muted);">📖</span>';
html += '<a href="https://github.com/oraios/serena#configuration" target="_blank" rel="noopener noreferrer" style="color: var(--btn-primary); text-decoration: none; font-weight: 500;">View Configuration Guide</a>';
html += '</div>';
// Active tools - collapsible
html += '<div style="margin-top: 20px;">';
html += '<h3 class="collapsible-header" id="tools-header" style="font-size: 16px; margin: 0;">';