Skip to content

Commit 5aa8d37

Browse files
author
catlog22
committed
fix(dashboard): ensure Lucide icons are initialized after all dynamic content renders
- Add lucide.createIcons() calls in renderSessions, renderProjectOverview, renderMcpManager, renderHookManager, renderLiteTasks, showSessionDetailPage - Fixes issue where icons would not appear after page render
1 parent a7b8ffc commit 5aa8d37

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

ccw/src/templates/dashboard-js/views/home.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ function renderSessions() {
8383
}
8484

8585
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderSessionCard(session)).join('')}</div>`;
86+
87+
// Initialize Lucide icons after rendering
88+
if (typeof lucide !== 'undefined') lucide.createIcons();
8689
}
8790

8891
function renderSessionCard(session) {

ccw/src/templates/dashboard-js/views/hook-manager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ async function renderHookManager() {
133133

134134
// Attach event listeners
135135
attachHookEventListeners();
136+
137+
// Initialize Lucide icons
138+
if (typeof lucide !== 'undefined') lucide.createIcons();
136139
}
137140

138141
function countHooks(hooks) {

ccw/src/templates/dashboard-js/views/lite-tasks.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ function renderLiteTasks() {
2424
}
2525

2626
container.innerHTML = `<div class="sessions-grid">${sessions.map(session => renderLiteTaskCard(session)).join('')}</div>`;
27+
28+
// Initialize Lucide icons
29+
if (typeof lucide !== 'undefined') lucide.createIcons();
2730

2831
// Initialize collapsible sections
2932
document.querySelectorAll('.collapsible-header').forEach(header => {

ccw/src/templates/dashboard-js/views/mcp-manager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ async function renderMcpManager() {
197197

198198
// Attach event listeners for toggle switches
199199
attachMcpEventListeners();
200+
201+
// Initialize Lucide icons
202+
if (typeof lucide !== 'undefined') lucide.createIcons();
200203
}
201204

202205
function renderMcpServerCard(serverName, serverConfig, isEnabled, isInCurrentProject) {

0 commit comments

Comments
 (0)