Skip to content

Commit 345c7e6

Browse files
ndbroadbentclaude
andcommitted
Add open source trust signal in footer
Show that the app is open source with links to GitHub repos: - Desktop App: github.com/DocSpring/chat_to_map_desktop - Core Engine: github.com/DocSpring/chat_to_map Links open in system browser via Tauri shell plugin. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 499c46a commit 345c7e6

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ <h2>Something went wrong</h2>
192192

193193
<footer>
194194
<p>Only text is uploaded — no images or videos. Processing happens securely in the cloud.</p>
195+
<p class="open-source-notice">
196+
This app is open source. View the code:
197+
<a href="https://github.com/DocSpring/chat_to_map_desktop" target="_blank" rel="noopener">Desktop App</a>
198+
·
199+
<a href="https://github.com/DocSpring/chat_to_map" target="_blank" rel="noopener">Core Engine</a>
200+
</p>
195201
</footer>
196202
</div>
197203

src/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,17 @@ function setupEventListeners(): void {
211211

212212
// Setup debug panel
213213
setupDebugPanel(elements)
214+
215+
// Handle external links (open in system browser)
216+
document.querySelectorAll('a[target="_blank"]').forEach((link) => {
217+
link.addEventListener('click', (e) => {
218+
e.preventDefault()
219+
const href = (e.currentTarget as HTMLAnchorElement).href
220+
if (href) {
221+
openShell(href)
222+
}
223+
})
224+
})
214225
}
215226

216227
async function handleSelectCustomDb(): Promise<void> {

src/styles.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,19 @@ footer {
546546
color: var(--color-text-secondary);
547547
}
548548

549+
footer .open-source-notice {
550+
margin-top: 8px;
551+
}
552+
553+
footer .open-source-notice a {
554+
color: var(--color-primary);
555+
text-decoration: none;
556+
}
557+
558+
footer .open-source-notice a:hover {
559+
text-decoration: underline;
560+
}
561+
549562
/* Scrollbar styling */
550563
.chat-list::-webkit-scrollbar {
551564
width: 8px;

0 commit comments

Comments
 (0)