1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-12-04 18:56:44 +01:00

fix: move Export to Actions section, fix Export\u2026 text rendering

This commit is contained in:
TheGeneralist 2026-10-12 21:10:54 +02:00
parent 2115a70343
commit f7e9a0ef25
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
5 changed files with 51 additions and 97 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -6,8 +6,8 @@
<title>Archivr</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<script type="module" crossorigin src="/assets/index-CKGxin5o.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CQKWq7vB.css">
<script type="module" crossorigin src="/assets/index-B0u5xO9w.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-nzHmFByy.css">
</head>
<body>
<div id="root"></div>

View file

@ -697,15 +697,16 @@ export default function ContextRail({ archiveId, selectedEntry, selectedUids, se
)}
<div className="rail-section">
<p className="rail-section-heading">Export</p>
<div className="rail-section-heading">Actions</div>
<button
className="rail-rearchive-btn"
onClick={() => setExportOpen(true)}
>
{`Export ${selectedUids.size} entries\u2026`}
{`Export ${selectedUids.size} entr${selectedUids.size === 1 ? 'y' : 'ies'}\u2026`}
</button>
</div>
<div className="rail-delete-zone">
<button
className="rail-delete-btn"
@ -780,11 +781,6 @@ export default function ContextRail({ archiveId, selectedEntry, selectedUids, se
Preview
</button>
)}
{!isPublicSession && (
<button className="rail-preview-btn rail-export-btn" onClick={() => setExportOpen(true)}>
Export\u2026
</button>
)}
{(() => {
// Public sessions get read-only treatment: the completed text if the
@ -1047,43 +1043,52 @@ export default function ContextRail({ archiveId, selectedEntry, selectedUids, se
</div>
)}
{detail && (detail.summary.entity_kind === 'tweet' || detail.summary.entity_kind === 'tweet_thread') && (
<div className="rail-section">
<div className="rail-section-heading">Actions</div>
<button
className="rail-rearchive-btn"
onClick={handleRearchive}
disabled={rearchiveState === 'running'}
>
{rearchiveState === 'running' ? 'Re-archiving\u2026' : 'Re-archive'}
</button>
{rearchiveState === 'done' && (
<p className="form-msg form-msg--ok" style={{ marginTop: '6px' }}>Re-archived successfully.</p>
)}
{rearchiveState === 'error' && (
<p className="form-msg form-msg--err" style={{ marginTop: '6px' }}>{rearchiveError}</p>
)}
{detail.summary.entity_kind === 'tweet_thread' && (
<>
<button
className="rail-rearchive-btn"
style={{ marginTop: '8px' }}
onClick={handleGenerateThreadTitle}
disabled={titleGenState === 'running'}
title={`Names this thread with a small model via ${PROVIDER_LABEL[summaryProvider] || summaryProvider} (the Summary provider)`}
>
{titleGenState === 'running' ? 'Generating title\u2026' : 'Generate title'}
</button>
{titleGenState === 'done' && (
<p className="form-msg form-msg--ok" style={{ marginTop: '6px' }}>Title updated.</p>
)}
{titleGenState === 'error' && (
<p className="form-msg form-msg--err" style={{ marginTop: '6px' }}>{titleGenError}</p>
)}
</>
)}
</div>
)}
<div className="rail-section">
<div className="rail-section-heading">Actions</div>
{detail && (detail.summary.entity_kind === 'tweet' || detail.summary.entity_kind === 'tweet_thread') && (
<>
<button
className="rail-rearchive-btn"
onClick={handleRearchive}
disabled={rearchiveState === 'running'}
>
{rearchiveState === 'running' ? 'Re-archiving\u2026' : 'Re-archive'}
</button>
{rearchiveState === 'done' && (
<p className="form-msg form-msg--ok" style={{ marginTop: '6px' }}>Re-archived successfully.</p>
)}
{rearchiveState === 'error' && (
<p className="form-msg form-msg--err" style={{ marginTop: '6px' }}>{rearchiveError}</p>
)}
{detail.summary.entity_kind === 'tweet_thread' && (
<>
<button
className="rail-rearchive-btn"
style={{ marginTop: '8px' }}
onClick={handleGenerateThreadTitle}
disabled={titleGenState === 'running'}
title={`Names this thread with a small model via ${PROVIDER_LABEL[summaryProvider] || summaryProvider} (the Summary provider)`}
>
{titleGenState === 'running' ? 'Generating title\u2026' : 'Generate title'}
</button>
{titleGenState === 'done' && (
<p className="form-msg form-msg--ok" style={{ marginTop: '6px' }}>Title updated.</p>
)}
{titleGenState === 'error' && (
<p className="form-msg form-msg--err" style={{ marginTop: '6px' }}>{titleGenError}</p>
)}
</>
)}
</>
)}
<button
className="rail-rearchive-btn"
style={{ marginTop: detail && (detail.summary.entity_kind === 'tweet' || detail.summary.entity_kind === 'tweet_thread') ? '8px' : undefined }}
onClick={() => setExportOpen(true)}
>
{'Export\u2026'}
</button>
</div>
<div className="rail-delete-zone">
<button className="rail-delete-btn" onClick={handleDeleteEntry}>

View file

@ -3631,5 +3631,4 @@ body.has-audio-bar { padding-bottom: 56px; }
}
/* ── Export ───────────────────────────────────────────────────────────────── */
.rail-export-btn { margin-top: 6px; }
.export-dialog .export-format { width: 100%; margin: 4px 0 14px; }