feat(ui): make process output text boxes collapsible and default to collapsed (v0.1.10) #55
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "iccery",
|
"name": "iccery",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.9",
|
"version": "0.1.10",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"tauri": "tauri"
|
"tauri": "tauri"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "iccery"
|
name = "iccery"
|
||||||
version = "0.1.9"
|
version = "0.1.10"
|
||||||
description = "A Tauri App"
|
description = "A Tauri App"
|
||||||
authors = ["you"]
|
authors = ["you"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "ICCery",
|
"productName": "ICCery",
|
||||||
"version": "0.1.9",
|
"version": "0.1.10",
|
||||||
"identifier": "com.gronod.iccery",
|
"identifier": "com.gronod.iccery",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../src"
|
"frontendDist": "../src"
|
||||||
|
|||||||
+15
-15
@@ -94,10 +94,10 @@
|
|||||||
|
|
||||||
<button class="primary" id="btnGenerate" disabled>Generate (.ti1)</button>
|
<button class="primary" id="btnGenerate" disabled>Generate (.ti1)</button>
|
||||||
|
|
||||||
<div class="log-container hidden" id="targenLogContainer">
|
<details class="log-container hidden" id="targenLogContainer">
|
||||||
<h4>Process Output</h4>
|
<summary>Process Output</summary>
|
||||||
<pre id="targenLog"></pre>
|
<pre id="targenLog"></pre>
|
||||||
</div>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Stage 2: printtarg -->
|
<!-- Stage 2: printtarg -->
|
||||||
@@ -166,10 +166,10 @@
|
|||||||
|
|
||||||
<button class="primary" id="btnCreateLayout">Create Layout (.ti2 + .tif)</button>
|
<button class="primary" id="btnCreateLayout">Create Layout (.ti2 + .tif)</button>
|
||||||
|
|
||||||
<div class="log-container hidden" id="printtargLogContainer">
|
<details class="log-container hidden" id="printtargLogContainer">
|
||||||
<h4>Process Output</h4>
|
<summary>Process Output</summary>
|
||||||
<pre id="printtargLog"></pre>
|
<pre id="printtargLog"></pre>
|
||||||
</div>
|
</details>
|
||||||
|
|
||||||
<!-- TIFF preview gallery (populated dynamically after generation) -->
|
<!-- TIFF preview gallery (populated dynamically after generation) -->
|
||||||
<div class="tiff-gallery hidden" id="tiffGallery">
|
<div class="tiff-gallery hidden" id="tiffGallery">
|
||||||
@@ -279,10 +279,10 @@
|
|||||||
<div class="swatch-grid" id="swatchGrid"></div>
|
<div class="swatch-grid" id="swatchGrid"></div>
|
||||||
|
|
||||||
<!-- Process Log -->
|
<!-- Process Log -->
|
||||||
<div class="log-container hidden" id="chartreadLogContainer">
|
<details class="log-container hidden" id="chartreadLogContainer">
|
||||||
<h4>Process Output</h4>
|
<summary>Process Output</summary>
|
||||||
<pre id="chartreadLog"></pre>
|
<pre id="chartreadLog"></pre>
|
||||||
</div>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Stage 4: colprof -->
|
<!-- Stage 4: colprof -->
|
||||||
@@ -338,10 +338,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Process Log -->
|
<!-- Process Log -->
|
||||||
<div class="log-container hidden" id="colprofLogContainer">
|
<details class="log-container hidden" id="colprofLogContainer">
|
||||||
<h4>Process Output</h4>
|
<summary>Process Output</summary>
|
||||||
<pre id="colprofLog"></pre>
|
<pre id="colprofLog"></pre>
|
||||||
</div>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Stage 5: profcheck -->
|
<!-- Stage 5: profcheck -->
|
||||||
@@ -385,10 +385,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Process Log -->
|
<!-- Process Log -->
|
||||||
<div class="log-container hidden" id="profcheckLogContainer">
|
<details class="log-container hidden" id="profcheckLogContainer">
|
||||||
<h4>Verification Output</h4>
|
<summary>Verification Output</summary>
|
||||||
<pre id="profcheckLog"></pre>
|
<pre id="profcheckLog"></pre>
|
||||||
</div>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export function initChartread() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logPre.textContent = "";
|
logPre.textContent = "";
|
||||||
|
logContainer.open = false;
|
||||||
logContainer.classList.remove("hidden");
|
logContainer.classList.remove("hidden");
|
||||||
setState(STATE.CALIBRATING);
|
setState(STATE.CALIBRATING);
|
||||||
setPrompt("Starting chartread... waiting for instrument calibration prompt.");
|
setPrompt("Starting chartread... waiting for instrument calibration prompt.");
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export function initColprof() {
|
|||||||
const description = descInput.value.trim() || basename;
|
const description = descInput.value.trim() || basename;
|
||||||
|
|
||||||
logPre.textContent = "";
|
logPre.textContent = "";
|
||||||
|
logContainer.open = false;
|
||||||
logContainer.classList.remove("hidden");
|
logContainer.classList.remove("hidden");
|
||||||
spinnerContainer.classList.remove("hidden");
|
spinnerContainer.classList.remove("hidden");
|
||||||
successCard.classList.add("hidden");
|
successCard.classList.add("hidden");
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ export function initPrinttarg() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logPre.textContent = "";
|
logPre.textContent = "";
|
||||||
|
logContainer.open = false;
|
||||||
logContainer.classList.remove("hidden");
|
logContainer.classList.remove("hidden");
|
||||||
tiffGallery.classList.add("hidden");
|
tiffGallery.classList.add("hidden");
|
||||||
if (rawPrintPanel) rawPrintPanel.classList.add("hidden");
|
if (rawPrintPanel) rawPrintPanel.classList.add("hidden");
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export function initProfcheck() {
|
|||||||
const iccPath = cwd ? `${cwd}${sep}${basename}.icc` : `${basename}.icc`;
|
const iccPath = cwd ? `${cwd}${sep}${basename}.icc` : `${basename}.icc`;
|
||||||
|
|
||||||
logPre.textContent = "";
|
logPre.textContent = "";
|
||||||
|
logContainer.open = false;
|
||||||
logContainer.classList.remove("hidden");
|
logContainer.classList.remove("hidden");
|
||||||
reportCard.classList.add("hidden");
|
reportCard.classList.add("hidden");
|
||||||
btnVerify.disabled = true;
|
btnVerify.disabled = true;
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ export function initTargen() {
|
|||||||
// Generate button clicks
|
// Generate button clicks
|
||||||
btnGenerate.addEventListener("click", async () => {
|
btnGenerate.addEventListener("click", async () => {
|
||||||
logPre.textContent = "";
|
logPre.textContent = "";
|
||||||
|
logContainer.open = false;
|
||||||
logContainer.classList.remove("hidden");
|
logContainer.classList.remove("hidden");
|
||||||
btnGenerate.disabled = true;
|
btnGenerate.disabled = true;
|
||||||
|
|
||||||
|
|||||||
+24
-6
@@ -270,23 +270,41 @@ button:disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.log-container {
|
.log-container {
|
||||||
margin-top: 20px;
|
margin-top: 16px;
|
||||||
background: #111;
|
background: #111;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 10px;
|
padding: 8px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-container h4 {
|
.log-container summary {
|
||||||
margin: 0 0 10px 0;
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.85rem;
|
||||||
color: #888;
|
color: #888;
|
||||||
font-size: 0.9em;
|
outline: none;
|
||||||
|
display: list-item;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-container summary:hover {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-container[open] {
|
||||||
|
padding-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-container[open] summary {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-container pre {
|
.log-container pre {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.85rem;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user