Before Fine Tune
This commit is contained in:
1844
FineTune/public/app.js
Normal file
1844
FineTune/public/app.js
Normal file
File diff suppressed because it is too large
Load Diff
250
FineTune/public/index.html
Normal file
250
FineTune/public/index.html
Normal file
@@ -0,0 +1,250 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BoostAI FineTune Helper</title>
|
||||
<link rel="stylesheet" href="/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="page-shell">
|
||||
<header class="hero">
|
||||
<div>
|
||||
<p class="eyebrow">Local helper app</p>
|
||||
<h1>BoostAI FineTune Data Helper</h1>
|
||||
<p class="hero-copy">
|
||||
Create full assignment-review examples that match the real app shape: one assignment, many question-level labels, and one assignment-level summary.
|
||||
</p>
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<button id="save-example" type="button">Save assignment example</button>
|
||||
<button id="load-sample" type="button">Load sample</button>
|
||||
<button id="clear-form" type="button" class="button-secondary">Clear</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="status-bar">
|
||||
<div>
|
||||
<strong>Hosted AI:</strong>
|
||||
<span id="ai-config-status">Checking…</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Assignment generator:</strong>
|
||||
<span id="question-generator-status">Checking…</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Shared workspace:</strong>
|
||||
<span id="collab-status">Connecting…</span>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Editors:</strong>
|
||||
<span id="presence-status">1 connected</span>
|
||||
</div>
|
||||
<div id="save-status">Autosave ready</div>
|
||||
</section>
|
||||
|
||||
<main class="layout-grid">
|
||||
<section class="editor-shell span-2">
|
||||
<aside class="card workspace-nav-card">
|
||||
<div class="workspace-toolbar">
|
||||
<div>
|
||||
<h2>Assignments</h2>
|
||||
<p class="section-copy">Search, sort, and switch between lots of in-progress assignment drafts without losing the shared editor.</p>
|
||||
</div>
|
||||
<button id="new-draft" type="button">New draft</button>
|
||||
</div>
|
||||
|
||||
<div class="workspace-controls">
|
||||
<label class="control-field workspace-search-field">
|
||||
<span>Find an assignment</span>
|
||||
<input id="draft-search" type="text" placeholder="Search by title, assignment ID, topic, or student" />
|
||||
</label>
|
||||
<label class="control-field control-field-compact">
|
||||
<span>Sort</span>
|
||||
<select id="draft-sort">
|
||||
<option value="updated">Recently updated</option>
|
||||
<option value="title">Title</option>
|
||||
<option value="topic">Topic</option>
|
||||
<option value="questions">Question count</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="workspace-meta-row">
|
||||
<div id="draft-status" class="summary-strip compact-strip">1 local draft</div>
|
||||
<div class="workspace-actions">
|
||||
<button id="duplicate-draft" type="button" class="button-secondary">Duplicate</button>
|
||||
<button id="rename-draft" type="button" class="button-secondary">Rename</button>
|
||||
<button id="delete-draft" type="button" class="button-danger">Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="draft-list" class="draft-list" role="listbox" aria-label="Assignment drafts"></div>
|
||||
</aside>
|
||||
|
||||
<section class="card editor-card">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Assignment builder</h2>
|
||||
<p class="section-copy">Generate a multi-question assignment from the real backend, then edit the assignment metadata or any question before saving.</p>
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<button id="generate-assignment" type="button">Generate assignment</button>
|
||||
<button id="add-question" type="button" class="button-secondary">Add blank question</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-grid three-up">
|
||||
<label>
|
||||
<span>Assignment ID</span>
|
||||
<input id="assignmentId" type="text" placeholder="assignment-fractions-01" />
|
||||
</label>
|
||||
<label>
|
||||
<span>Student ID</span>
|
||||
<input id="studentId" type="text" placeholder="student-17" />
|
||||
</label>
|
||||
<label>
|
||||
<span>Pass threshold</span>
|
||||
<input id="passThreshold" type="number" min="0" max="1" step="0.01" placeholder="0.70" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-grid two-up">
|
||||
<label>
|
||||
<span>Assignment title</span>
|
||||
<input id="assignmentTitle" type="text" placeholder="Fractions practice review" />
|
||||
</label>
|
||||
<label>
|
||||
<span>Instructions</span>
|
||||
<input id="instructions" type="text" placeholder="Show working for every question." />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-grid four-up">
|
||||
<label>
|
||||
<span>Topic</span>
|
||||
<select id="topic">
|
||||
<option value="">Select…</option>
|
||||
<option value="place_value">place_value</option>
|
||||
<option value="arithmetic">arithmetic</option>
|
||||
<option value="negative_numbers">negative_numbers</option>
|
||||
<option value="bidmas">bidmas</option>
|
||||
<option value="fractions">fractions</option>
|
||||
<option value="algebra">algebra</option>
|
||||
<option value="geometry">geometry</option>
|
||||
<option value="data">data</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>Difficulty</span>
|
||||
<select id="difficulty">
|
||||
<option value="">Select…</option>
|
||||
<option value="easy">easy</option>
|
||||
<option value="medium">medium</option>
|
||||
<option value="hard">hard</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>Question count</span>
|
||||
<input id="questionCount" type="number" min="1" max="25" step="1" placeholder="4" />
|
||||
</label>
|
||||
<label>
|
||||
<span>Generation seed (optional)</span>
|
||||
<input id="generatorSeed" type="text" placeholder="auto-filled after generation" readonly />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="question-toolbar">
|
||||
<div class="question-toolbar-group">
|
||||
<span class="question-toolbar-label">View</span>
|
||||
<button id="filter-all" type="button" class="button-secondary is-active">All questions</button>
|
||||
<button id="filter-attention" type="button" class="button-secondary">Needs attention</button>
|
||||
<button id="filter-unlabeled" type="button" class="button-secondary">Unlabeled</button>
|
||||
</div>
|
||||
<div class="question-toolbar-group">
|
||||
<span class="question-toolbar-label">Layout</span>
|
||||
<button id="expand-all-questions" type="button" class="button-secondary">Expand all</button>
|
||||
<button id="collapse-all-questions" type="button" class="button-secondary">Collapse all</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="question-summary" class="summary-strip">No questions yet.</div>
|
||||
<div id="questions-container" class="question-stack"></div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Student submission</h2>
|
||||
<p class="section-copy">Draft the whole student submission at once, then tweak any question manually.</p>
|
||||
</div>
|
||||
<button id="generate-students" type="button">AI draft student submission</button>
|
||||
</div>
|
||||
<div class="mini-note">
|
||||
One student voice should carry across the full assignment. Each question stores <code>answerText</code>, <code>workingSteps</code>, and <code>solveMode</code>.
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Teacher review package</h2>
|
||||
<p class="section-copy">Generate per-question review labels plus one assignment summary, matching the real production shape.</p>
|
||||
</div>
|
||||
<button id="generate-teacher" type="button">AI draft full teacher review</button>
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<span>Assignment summary</span>
|
||||
<textarea id="assignmentSummary" rows="5" placeholder="Short whole-assignment summary"></textarea>
|
||||
</label>
|
||||
<label>
|
||||
<span>Recommended next step</span>
|
||||
<textarea id="recommendedNextStep" rows="4" placeholder="What the teacher should do next"></textarea>
|
||||
</label>
|
||||
</section>
|
||||
|
||||
<section class="card preview-card">
|
||||
<div class="section-heading">
|
||||
<h2>Labeled record preview</h2>
|
||||
<button id="copy-record" type="button" class="button-secondary">Copy JSON</button>
|
||||
</div>
|
||||
<pre id="recordPreview"></pre>
|
||||
</section>
|
||||
|
||||
<section class="card preview-card">
|
||||
<div class="section-heading">
|
||||
<h2>Fine-tune example preview</h2>
|
||||
<button id="copy-training" type="button" class="button-secondary">Copy JSON</button>
|
||||
</div>
|
||||
<pre id="trainingPreview"></pre>
|
||||
</section>
|
||||
|
||||
<section class="card dataset-card span-2">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<h2>Saved dataset</h2>
|
||||
<p id="datasetStatus" class="section-copy">No saved examples yet.</p>
|
||||
</div>
|
||||
<div class="hero-actions dataset-actions">
|
||||
<button id="export-dataset" type="button" class="button-secondary">Export dataset.jsonl</button>
|
||||
<button id="export-split" type="button" class="button-secondary">Export train/val split</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="datasetEmpty" class="empty-state">
|
||||
Save full assignment-review examples here. Each saved item becomes one training row.
|
||||
</div>
|
||||
<div id="datasetList" class="dataset-list"></div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<section class="card footer-note">
|
||||
<strong>Shape target:</strong> one assignment-level review call, question-level labels for every question, and one assignment summary. Treat AI drafts as prefill only.
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="toast" class="toast hidden"></div>
|
||||
<script type="module" src="/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
679
FineTune/public/styles.css
Normal file
679
FineTune/public/styles.css
Normal file
@@ -0,0 +1,679 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f6f4fb;
|
||||
--panel: #ffffff;
|
||||
--panel-alt: #f9f7fd;
|
||||
--subpanel: #f3effc;
|
||||
--text: #211a2f;
|
||||
--muted: #6c6383;
|
||||
--accent: #7443da;
|
||||
--accent-soft: #ede6fb;
|
||||
--border: #ddd5ef;
|
||||
--success: #0d8f4f;
|
||||
--danger: #b63a59;
|
||||
--shadow: 0 18px 40px rgba(43, 29, 76, 0.08);
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: linear-gradient(180deg, #faf8ff 0%, var(--bg) 100%);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 1rem;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
filter: brightness(1.03);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.button-danger {
|
||||
background: #fbe7ed;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.button-compact {
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-radius: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.status-bar,
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 24px;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.hero {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem 1.75rem;
|
||||
align-items: end;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 0.5rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 4vw, 3rem);
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
margin: 0.75rem 0 0;
|
||||
max-width: 70ch;
|
||||
color: var(--muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.status-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.95rem 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.layout-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.editor-shell {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.span-2,
|
||||
.dataset-card {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.card h2,
|
||||
.card h3,
|
||||
.card h4 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.section-copy {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.two-up {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.three-up {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.four-up {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
label {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
label span {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
width: 100%;
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--panel-alt);
|
||||
padding: 0.9rem 1rem;
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
input:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
outline: 2px solid rgba(116, 67, 218, 0.18);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.summary-strip,
|
||||
.mini-note {
|
||||
padding: 0.9rem 1rem;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: #fcfbff;
|
||||
color: var(--muted);
|
||||
margin-bottom: 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.question-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.9rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 18px;
|
||||
background: #fcfbff;
|
||||
}
|
||||
|
||||
.question-toolbar-group {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.question-toolbar-label {
|
||||
font-size: 0.86rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.question-toolbar .button-secondary.is-active {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.question-stack {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.question-card {
|
||||
padding: 1rem;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--panel-alt);
|
||||
display: grid;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.question-card.is-collapsed {
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.question-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.question-card-header p {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.question-card-heading {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.question-heading-topline {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.question-card-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.question-status-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.question-card-body {
|
||||
display: grid;
|
||||
gap: 0.8rem;
|
||||
}
|
||||
|
||||
.question-card-body[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.subpanel {
|
||||
padding: 1rem;
|
||||
border-radius: 18px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--subpanel);
|
||||
}
|
||||
|
||||
.subpanel h4 {
|
||||
margin-bottom: 0.8rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.dataset-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 1rem 1.1rem;
|
||||
border: 1px dashed var(--border);
|
||||
border-radius: 16px;
|
||||
background: #fcfbff;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.dataset-list {
|
||||
display: grid;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.dataset-item {
|
||||
display: grid;
|
||||
gap: 0.8rem;
|
||||
padding: 1rem 1.1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 18px;
|
||||
background: var(--panel-alt);
|
||||
}
|
||||
|
||||
.dataset-item.active {
|
||||
border-color: var(--accent);
|
||||
box-shadow: inset 0 0 0 1px rgba(116, 67, 218, 0.15);
|
||||
}
|
||||
|
||||
.dataset-item-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.dataset-item-title {
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.dataset-item-meta {
|
||||
margin: 0.25rem 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.92rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.dataset-item-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.dataset-pill {
|
||||
padding: 0.35rem 0.6rem;
|
||||
border-radius: 999px;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.pill-success {
|
||||
background: #e3f6ec;
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.pill-warning {
|
||||
background: #fff1d9;
|
||||
color: #a46a00;
|
||||
}
|
||||
|
||||
.pill-muted {
|
||||
background: #efedf5;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.dataset-item-actions {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.workspace-nav-card {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
position: sticky;
|
||||
top: 1rem;
|
||||
max-height: calc(100vh - 2rem);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.workspace-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.workspace-controls {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 160px;
|
||||
gap: 0.85rem;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.control-field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.control-field-compact span {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.workspace-search-field input,
|
||||
.control-field select {
|
||||
padding-block: 0.8rem;
|
||||
}
|
||||
|
||||
.workspace-meta-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.compact-strip {
|
||||
margin-bottom: 0;
|
||||
padding: 0.75rem 0.9rem;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.workspace-actions {
|
||||
display: flex;
|
||||
gap: 0.55rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.draft-list {
|
||||
display: grid;
|
||||
gap: 0.65rem;
|
||||
overflow: auto;
|
||||
padding-right: 0.2rem;
|
||||
}
|
||||
|
||||
.draft-item {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 0.85rem;
|
||||
padding: 0.9rem 0.95rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
background: var(--panel-alt);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.draft-item.active {
|
||||
border-color: var(--accent);
|
||||
box-shadow: inset 0 0 0 1px rgba(116, 67, 218, 0.15);
|
||||
background: #f8f4ff;
|
||||
}
|
||||
|
||||
.draft-item-main {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
min-width: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.draft-item-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.draft-item-title {
|
||||
font-size: 0.98rem;
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.draft-item-meta {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.draft-item-updated {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.draft-item-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.draft-item-actions button {
|
||||
min-width: 82px;
|
||||
}
|
||||
|
||||
.draft-empty-state {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.editor-card {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.dataset-item-actions button {
|
||||
padding: 0.65rem 0.9rem;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: #171222;
|
||||
color: #f2ecff;
|
||||
overflow: auto;
|
||||
max-height: 520px;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
.footer-note {
|
||||
margin-top: 1rem;
|
||||
color: var(--muted);
|
||||
background: #fcfbff;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
right: 1.25rem;
|
||||
bottom: 1.25rem;
|
||||
padding: 0.9rem 1.1rem;
|
||||
border-radius: 12px;
|
||||
background: var(--text);
|
||||
color: white;
|
||||
box-shadow: var(--shadow);
|
||||
max-width: 360px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.toast.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toast.error {
|
||||
background: var(--danger);
|
||||
}
|
||||
|
||||
.toast.success {
|
||||
background: var(--success);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.layout-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.editor-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.span-2,
|
||||
.dataset-card {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.workspace-nav-card {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.four-up {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.page-shell {
|
||||
padding: 1rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.status-bar,
|
||||
.section-heading,
|
||||
.dataset-item-header,
|
||||
.workspace-meta-row,
|
||||
.workspace-toolbar,
|
||||
.draft-item-row,
|
||||
.question-card-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.workspace-controls,
|
||||
.draft-item {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.draft-item-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.question-toolbar,
|
||||
.question-toolbar-group,
|
||||
.question-heading-topline {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.two-up,
|
||||
.three-up,
|
||||
.four-up {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user