claude-exporter/chrome/options.html
tux tucker d76bd1042f Slim Contact & Diagnostics to inline links (v1.10.5)
Replaced the three Contact & Diagnostics buttons (Email developer,
Generate diagnostics, Clear log) with two inline anchors inside a
single sentence:

  Found a bug or have feedback? [Email the developer]. If reporting
  a bug, please [attach a diagnostics file] (extension/browser info,
  stored counts, recent errors -- all UUIDs redacted, no conversation
  content).

Reasoning: most users who actually file bug reports are technical
enough to recognize underlined links as actions, and a section with
three buttons + two paragraphs read as cluttered.

- Removed clearDiagnosticsBtn entirely and the clearDiagnosticsLog
  helper in utils.js (nothing calls it now).
- Added .section a link styling (--link-color / --primary-hover) so
  the new inline anchors look correct in both light and dark mode
  instead of using browser default link colors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 19:39:34 -04:00

297 lines
8.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Claude Exporter Settings</title>
<style>
:root {
--bg-body: #ffffff;
--text-primary: #333333;
--text-secondary: #666666;
--border-color: #dddddd;
--primary-color: #5436DA;
--primary-hover: #4329B8;
--section-bg: #f8f9fa;
--success-bg: #d4edda;
--success-text: #155724;
--error-bg: #f8d7da;
--error-text: #721c24;
--info-bg: #e8f4fd;
--code-bg: #ffffff;
--link-color: #5436DA;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-body: #1e1e1e;
--text-primary: #e0e0e0;
--text-secondary: #b0b0b0;
--border-color: #3a3a3a;
--primary-color: #6b52e8;
--primary-hover: #7d66f0;
--section-bg: #2a2a2a;
--success-bg: #1a4d2e;
--success-text: #90ee90;
--error-bg: #4d1a1a;
--error-text: #ff9999;
--info-bg: #1a3d4d;
--code-bg: #2a2a2a;
--link-color: #8b7aff;
}
}
body {
width: 810px;
margin: 40px auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background-color: var(--bg-body);
}
h1 {
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
}
.section {
background: var(--section-bg);
padding: 20px;
border-radius: 8px;
margin: 20px 0;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: var(--text-primary);
}
input[type="text"] {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 5px;
font-size: 14px;
box-sizing: border-box;
background-color: var(--bg-body);
color: var(--text-primary);
}
input[type="text"]:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(107, 82, 232, 0.15);
}
select {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 5px;
font-size: 14px;
box-sizing: border-box;
background-color: var(--bg-body);
color: var(--text-primary);
}
button {
background: var(--primary-color);
color: white;
border: none;
padding: 8px 10px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
margin-top: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
button:hover {
background: var(--primary-hover);
}
.button-row {
display: flex;
gap: 10px;
margin-top: 10px;
}
.button-row button {
margin-top: 0;
}
.date-time-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.date-time-grid label {
margin-bottom: 5px;
}
.radio-option {
display: block;
padding: 10px 12px;
border-radius: 5px;
margin-top: 8px;
cursor: pointer;
border: 1px solid var(--border-color);
background: var(--bg-body);
font-weight: normal;
}
.radio-option:hover {
border-color: var(--primary-color);
}
.radio-option input {
margin-right: 8px;
vertical-align: middle;
}
.radio-option strong {
font-weight: 600;
}
.radio-option .radio-desc {
display: block;
margin: 4px 0 0 22px;
font-size: 12px;
color: var(--text-secondary);
}
.status {
margin-top: 10px;
padding: 10px;
border-radius: 5px;
display: none;
}
.status.success {
display: block;
background: var(--success-bg);
color: var(--success-text);
}
.status.error {
display: block;
background: var(--error-bg);
color: var(--error-text);
}
.instructions {
background: var(--info-bg);
border-left: 4px solid var(--primary-color);
padding: 15px;
margin: 20px 0;
}
.instructions h3 {
margin-top: 0;
color: var(--primary-color);
}
.instructions ol {
margin-bottom: 0;
color: var(--text-primary);
}
.instructions a {
color: var(--link-color);
}
.instructions code {
background: var(--code-bg);
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-size: 13px;
border: 1px solid var(--border-color);
}
.example {
color: var(--text-secondary);
font-size: 12px;
margin-top: 5px;
font-style: italic;
}
.section h3 {
color: var(--text-primary);
margin-top: 0px;
margin-bottom: 0px;
}
.section p {
color: var(--text-primary);
}
.section a {
color: var(--link-color);
text-decoration: underline;
cursor: pointer;
}
.section a:hover {
color: var(--primary-hover);
}
</style>
</head>
<body>
<h1>Claude Conversation Exporter Settings</h1>
<div class="instructions">
<h3>How to find your Organization ID:</h3>
<ol>
<li>Go to <a href="https://claude.ai/settings/account" target="_blank">claude.ai/settings/account</a></li>
<li>Copy your Organization ID (e.g., <code>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</code>) </li>
<li>Paste it below and click Save</li>
</ol>
</div>
<div class="section">
<label for="orgId">Organization ID:</label>
<input type="text" id="orgId" placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
<div class="example">This is a UUID that looks like: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</div>
<div class="button-row">
<button id="saveBtn">Save Settings</button>
<button id="testBtn">Test Connection</button>
</div>
<div id="status" class="status"></div>
<div id="testStatus" class="status"></div>
</div>
<div class="section">
<h3>Backup &amp; Restore</h3>
<p>Save the extension's data — model snapshots, export history, and preferences — to a file you can restore later. Useful before uninstalling, or to move your data to another browser, device, or extension build.</p>
<button id="backupBtn" style="margin-right: 8px;">Export Backup</button>
<button id="restoreBtn">Import Backup</button>
<input type="file" id="restoreFile" accept="application/json,.json" style="display: none;">
<div id="backupStatus" class="status"></div>
</div>
<div class="section">
<h3>Date &amp; Time Format</h3>
<p>How dates and times are displayed in the browse view.</p>
<div class="date-time-grid">
<div>
<label for="dateFormatSelect">Date format</label>
<select id="dateFormatSelect">
<option value="mdy">M/D/Y</option>
<option value="dmy">D/M/Y</option>
</select>
</div>
<div>
<label for="timeFormatSelect">Time format</label>
<select id="timeFormatSelect">
<option value="12h">12-hour</option>
<option value="24h">24-hour</option>
</select>
</div>
</div>
<div id="dateTimeStatus" class="status"></div>
</div>
<div class="section">
<h3>Model Display</h3>
<p>Which model name to show in the browse view's Model column. Bounced chats (where the model has changed) get a small "*" marker either way — the tooltip shows the other model.</p>
<label class="radio-option">
<input type="radio" name="modelDisplay" value="original">
<strong>Original</strong>
<span class="radio-desc">The model that first ran the conversation (first-seen). Preserves the original even after the chat gets bounced to a newer model.</span>
</label>
<label class="radio-option">
<input type="radio" name="modelDisplay" value="current">
<strong>Current</strong>
<span class="radio-desc">The model the conversation uses right now. Reflects what will run if you reopen the chat.</span>
</label>
<div id="modelDisplayStatus" class="status"></div>
</div>
<div class="section">
<h3>Contact &amp; Diagnostics</h3>
<p>Found a bug or have feedback? <a href="#" id="emailDevLink">Email the developer</a>. If reporting a bug, please <a href="#" id="generateDiagnosticsLink">attach a diagnostics file</a> (extension/browser info, stored counts, recent errors — all UUIDs redacted, no conversation content).</p>
<div id="contactStatus" class="status"></div>
</div>
<script src="utils.js"></script>
<script src="options.js"></script>
</body>
</html>