diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a63c6b..b545a9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi ## [Unreleased] ### 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 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 diff --git a/VERSION b/VERSION index dd89f4d..210789c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.24.70 +1.24.71 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 15ace87..ec7ca60 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -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 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 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/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. diff --git a/static/index.html b/static/index.html index 3a92cf5..e205f87 100644 --- a/static/index.html +++ b/static/index.html @@ -10,7 +10,7 @@ - + @@ -27,12 +27,12 @@ - - - - - - + + + + + + @@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) { - + diff --git a/static/js/rehearser-cast.js b/static/js/rehearser-cast.js index 2fca1e8..c27de66 100644 --- a/static/js/rehearser-cast.js +++ b/static/js/rehearser-cast.js @@ -2,6 +2,8 @@ // 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. +(function (root) { + function applyCastView() { const list = $('reh-cast-list'); if (!list) return; const view = rehState.castView === 'list' ? 'list' : 'card'; @@ -297,6 +299,8 @@ function renderCastList() { } -window.TTVC = window.TTVC || {}; -window.TTVC.rehearser = window.TTVC.rehearser || {}; -window.TTVC.rehearser.cast = { applyCastView, filterAndSort: _castSortFilter, renderCastList }; +Object.assign(root, { applyCastView, _wireCastControls, _castSortFilter, renderCastList }); +root.TTVC = root.TTVC || {}; +root.TTVC.rehearser = root.TTVC.rehearser || {}; +root.TTVC.rehearser.cast = { applyCastView, filterAndSort: _castSortFilter, renderCastList }; +})(window);