refactor: scope rehearser cast

This commit is contained in:
mARTin-B78 2026-09-04 12:44:58 +02:00
parent df95ada578
commit ac55cd88a3
5 changed files with 19 additions and 12 deletions

View File

@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
## [Unreleased] ## [Unreleased]
### Changed ### Changed
- **Rehearser cast namespace migration.** Cast view rendering, filtering, sorting, and delegated controls now use a
private scope with explicit compatibility exports and the existing cast namespace.
- **Rehearser voice-design namespace migration.** Character development and backend-refresh controls now use a private - **Rehearser voice-design namespace migration.** Character development and backend-refresh controls now use a private
scope with explicit compatibility exports and the existing voice-design namespace. scope with explicit compatibility exports and the existing voice-design namespace.
- **Rehearser voice-picker namespace migration.** Local matching, preview state, Fish.audio search/import, and candidate - **Rehearser voice-picker namespace migration.** Local matching, preview state, Fish.audio search/import, and candidate

View File

@ -1 +1 @@
1.24.70 1.24.71

View File

@ -60,6 +60,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
- ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports. - ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports.
- ✅ Rehearser voice-picker uses a private scope with explicit preview, search, and assignment compatibility exports. - ✅ Rehearser voice-picker uses a private scope with explicit preview, search, and assignment compatibility exports.
- ✅ Rehearser voice-design uses a private scope with explicit development and backend-refresh compatibility exports. - ✅ Rehearser voice-design uses a private scope with explicit development and backend-refresh compatibility exports.
- ✅ Rehearser cast rendering uses a private scope with explicit view/filter/sort compatibility exports.
- ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles. - ✅ `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/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. - ✅ `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="format-detection" content="telephone=no">
<meta name="color-scheme" content="light dark"> <meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#2563EB"> <meta name="theme-color" content="#2563EB">
<meta name="app-version" content="1.24.70"> <meta name="app-version" content="1.24.71">
<link rel="manifest" href="/manifest.webmanifest"> <link rel="manifest" href="/manifest.webmanifest">
<link rel="icon" href="/static/icon.svg" type="image/svg+xml"> <link rel="icon" href="/static/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/static/icon.svg"> <link rel="apple-touch-icon" href="/static/icon.svg">
@ -27,12 +27,12 @@
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── --> <!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css"> <link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
<link rel="stylesheet" href="/static/style.css?v=1.24.70"> <link rel="stylesheet" href="/static/style.css?v=1.24.71">
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.70"> <link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.71">
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.70"> <link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.71">
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.70"> <link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.71">
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.70"> <link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.71">
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.70"> <link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.71">
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── --> <!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
</script> </script>
<!-- loader.js: fetches sections → loads JS modules → removes skeleton --> <!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
<script src="/static/loader.js?v=1.24.70"></script> <script src="/static/loader.js?v=1.24.71"></script>
</body> </body>
</html> </html>

View File

@ -2,6 +2,8 @@
// The cast renderer remains in rehearser.js; these handlers only resolve state // The cast renderer remains in rehearser.js; these handlers only resolve state
// when the cast panel is rendered, making them safe to load as a leaf module. // when the cast panel is rendered, making them safe to load as a leaf module.
(function (root) {
function applyCastView() { function applyCastView() {
const list = $('reh-cast-list'); if (!list) return; const list = $('reh-cast-list'); if (!list) return;
const view = rehState.castView === 'list' ? 'list' : 'card'; const view = rehState.castView === 'list' ? 'list' : 'card';
@ -297,6 +299,8 @@ function renderCastList() {
} }
window.TTVC = window.TTVC || {}; Object.assign(root, { applyCastView, _wireCastControls, _castSortFilter, renderCastList });
window.TTVC.rehearser = window.TTVC.rehearser || {}; root.TTVC = root.TTVC || {};
window.TTVC.rehearser.cast = { applyCastView, filterAndSort: _castSortFilter, renderCastList }; root.TTVC.rehearser = root.TTVC.rehearser || {};
root.TTVC.rehearser.cast = { applyCastView, filterAndSort: _castSortFilter, renderCastList };
})(window);