mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 00:19:42 +02:00
fix: remove completion celebration animation
Remove the large "done" animation that appeared when Ralph loops completed. The completion state is now simply reflected in the tracker panel without the intrusive overlay. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -509,17 +509,12 @@ class ClaudemanApp {
|
||||
// Clear after 30 seconds to allow re-notification if loop restarts
|
||||
setTimeout(() => this._shownCompletions?.delete(completionKey), 30000);
|
||||
|
||||
this.showToast(`Loop completed: ${data.phrase}`, 'success');
|
||||
// Update inner state to mark loop as inactive
|
||||
const existing = this.innerStates.get(data.sessionId) || {};
|
||||
if (existing.loop) {
|
||||
existing.loop.active = false;
|
||||
this.updateInnerState(data.sessionId, existing);
|
||||
}
|
||||
// Show celebration animation if this is the active session
|
||||
if (data.sessionId === this.activeSessionId) {
|
||||
this.showRalphCelebration(data.phrase);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2293,23 +2288,6 @@ class ClaudemanApp {
|
||||
}
|
||||
}
|
||||
|
||||
showRalphCelebration(phrase) {
|
||||
const celebration = this.$('ralphCelebration');
|
||||
const text = this.$('ralphCelebrationText');
|
||||
if (!celebration) return;
|
||||
|
||||
if (text) {
|
||||
text.textContent = phrase ? `${phrase}` : 'Complete!';
|
||||
}
|
||||
|
||||
celebration.classList.add('show');
|
||||
|
||||
// Auto-hide after 3 seconds
|
||||
setTimeout(() => {
|
||||
celebration.classList.remove('show');
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
// Legacy method for backwards compatibility
|
||||
getTodoIcon(status) {
|
||||
return this.getRalphTaskIcon(status);
|
||||
|
||||
Reference in New Issue
Block a user