refactor: scope seed finder

This commit is contained in:
mARTin-B78 2026-09-04 13:36:55 +02:00
parent 10f618c179
commit 542f44fbb8
5 changed files with 19 additions and 9 deletions

View File

@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
## [Unreleased]
### Changed
- **Seed-finder namespace migration.** Seed sample generation, caching, and batch controls now use a private scope with
compatibility exports and a `window.TTVC.seedFinder` API.
- **Character-column namespace migration.** Character-table metadata, persisted column visibility, and completeness
helpers now use a private scope with compatibility exports and a `window.TTVC.characterColumns` API.
- **Constrained character pagination.** Character-library pages now stop at 25 rendered characters on every device,

View File

@ -1 +1 @@
1.24.93
1.24.94

View File

@ -80,6 +80,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
- ✅ Voice-inspector selection state uses a private scope with a compatibility export and namespace API.
- ✅ Shared utility helpers use a private scope with explicit compatibility exports and a `window.TTVC.utils` API.
- ✅ Character-table metadata and column/completeness helpers use a private scope with a namespace API.
- ✅ Seed-finder generation and caching helpers use a private scope with compatibility exports and a namespace API.
- ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles.
- ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles.
- ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles.

View File

@ -10,7 +10,7 @@
<meta name="format-detection" content="telephone=no">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#2563EB">
<meta name="app-version" content="1.24.93">
<meta name="app-version" content="1.24.94">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/static/icon.svg">
@ -27,12 +27,12 @@
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
<link rel="stylesheet" href="/static/style.css?v=1.24.93">
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.93">
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.93">
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.93">
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.93">
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.93">
<link rel="stylesheet" href="/static/style.css?v=1.24.94">
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.94">
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.94">
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.94">
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.94">
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.94">
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
</script>
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
<script src="/static/loader.js?v=1.24.93"></script>
<script src="/static/loader.js?v=1.24.94"></script>
</body>
</html>

View File

@ -1,4 +1,5 @@
// ── Seed Finder — find the best RNG seed for a voice ─────────────────────────
(function (root) {
//
// Appended to the voice inspector body by voice-inspector.js.
// Generates audio samples for a voice across a range of seeds so the user
@ -579,3 +580,9 @@ async function _seedBatchRun(ids, from, to, box, ov) {
}
if (typeof $ === 'function') $('seed-batch-all-btn')?.addEventListener('click', seedFinderBatchAll);
Object.assign(root, { attachSeedFinder, seedFinderBatchAll });
root.TTVC = root.TTVC || {};
root.TTVC.seedFinder = root.TTVC.seedFinder || {};
Object.assign(root.TTVC.seedFinder, { attach: attachSeedFinder, batchAll: seedFinderBatchAll });
})(window);