Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Automatically recalculate and reset inactive streaks to 0 after 2 or more days without activity (Fixes #24).
- Dispose previous Sidebar webview message listener on view reopen to prevent memory leaks (Fixes #30).
- Add configurable Weekend Streak Protection (codecritter.weekendStreakProtection) to protect streaks over Saturday and Sunday (Fixes #31).
- Clean up corrupted Unicode Mojibake artifacts in media/sidebar.html (Fixes #28).

---

Expand Down
2 changes: 1 addition & 1 deletion media/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h2 style="margin: 0; font-size: 1.2rem;">__PET_NAME__</h2>
<div style="margin-top: 5px; font-size: 0.75rem; opacity: 0.8;">__XP_PROGRESS__% to next level</div>
</div>

<button class="btn" onclick="openDashboard()">dY"S Full Dashboard</button>
<button class="btn" onclick="openDashboard()">📊 Full Dashboard</button>

<script>
const vscode = acquireVsCodeApi();
Expand Down
6 changes: 6 additions & 0 deletions tests/sidebar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,9 @@ test('Issue #30: SidebarProvider disposes previous message listener when view is
provider.dispose();
assert.equal(secondListenerDisposed, true, 'provider.dispose() must dispose active listener');
});

test('Issue #28: media/sidebar.html renders clean UTF-8 emojis without Mojibake artifacts', () => {
const sidebarHtml = fs.readFileSync(path.join(__dirname, '..', 'media', 'sidebar.html'), 'utf8');
assert.equal(sidebarHtml.includes('dY"S'), false, 'must not contain Mojibake dY"S');
assert.equal(sidebarHtml.includes('📊 Full Dashboard'), true, 'must render standard 📊 Full Dashboard button');
});
Loading