feat(ui): persist the chat conversation in localStorage — survives refresh and navigation, with a New chat reset

This commit is contained in:
2026-08-22 15:52:53 -04:00
parent 2485b50af0
commit 19df7df99d
5 changed files with 681 additions and 7 deletions
+5
View File
@@ -21,6 +21,11 @@
<a href="/" class="nav-link is-active" aria-current="page">Chat</a>
<a href="/sources.html" class="nav-link">Sources</a>
</nav>
<!-- Phase 14: reset the local (localStorage) conversation — chat page only. -->
<button type="button" class="new-chat-btn" id="new-chat-btn" aria-label="New chat">
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>
<span class="new-chat-label">New chat</span>
</button>
</div>
</header>