Skip to content

Commit 69c5b18

Browse files
author
PV
committed
Link AIM help docs to GitHub
1 parent a650bd0 commit 69c5b18

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

ui/aim-chat/src/components/HelpPanel.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ interface DocLink {
1111
description: string
1212
}
1313

14+
const REPO_DOCS_BASE = 'https://github.com/corpollc/qntm/blob/main/'
15+
1416
const agentReasons = [
1517
'Agents get a stable encrypted inbox instead of ad hoc webhooks, throwaway chats, or plain-text relay logs.',
1618
'Each message is tied to a persistent cryptographic identity, so an agent can prove who it is across sessions.',
@@ -157,16 +159,29 @@ export function HelpPanel() {
157159
<div className="help-docs-list">
158160
{docs.map((doc) => (
159161
<div key={doc.path} className="help-doc">
160-
<div className="help-doc-title">{doc.label}</div>
161-
<div className="help-doc-path"><code>{doc.path}</code></div>
162+
<a
163+
className="help-doc-link"
164+
href={`${REPO_DOCS_BASE}${doc.path}`}
165+
target="_blank"
166+
rel="noreferrer"
167+
>
168+
<div className="help-doc-title">{doc.label}</div>
169+
<div className="help-doc-path"><code>{doc.path}</code></div>
170+
</a>
162171
<div className="help-doc-description">{doc.description}</div>
163172
</div>
164173
))}
165174
</div>
166175
</section>
167176

168177
<footer className="help-footer">
169-
<p>qntm Messenger v{APP_VERSION} — See <code>docs/CHANGELOG.md</code> for release notes.</p>
178+
<p>
179+
qntm Messenger v{APP_VERSION} — See{' '}
180+
<a href={`${REPO_DOCS_BASE}docs/CHANGELOG.md`} target="_blank" rel="noreferrer">
181+
<code>docs/CHANGELOG.md</code>
182+
</a>{' '}
183+
for release notes.
184+
</p>
170185
</footer>
171186
</div>
172187
)

ui/aim-chat/src/styles/overlays.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,19 @@
520520
color: var(--text-primary);
521521
}
522522

523+
.help-doc-link {
524+
display: flex;
525+
flex-direction: column;
526+
gap: 4px;
527+
color: inherit;
528+
text-decoration: none;
529+
}
530+
531+
.help-doc-link:hover .help-doc-title,
532+
.help-footer a:hover {
533+
text-decoration: underline;
534+
}
535+
523536
.help-doc-path code,
524537
.help-footer code {
525538
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
@@ -546,6 +559,11 @@
546559
margin: 0;
547560
}
548561

562+
.help-footer a {
563+
color: inherit;
564+
text-decoration: none;
565+
}
566+
549567
@media (max-width: 820px) {
550568
.help-grid {
551569
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)