Skip to content

Ux#7

Merged
soderlind merged 5 commits intomainfrom
ux
Feb 18, 2026
Merged

Ux#7
soderlind merged 5 commits intomainfrom
ux

Conversation

@soderlind
Copy link
Copy Markdown
Owner

This pull request introduces several enhancements to the Talking Head plugin, focusing on improving the settings UI, providing better feedback in the block editor, and adding useful counters and indicators for content limits. It also updates localization files and documentation to reflect these changes.

Editor UI and Feedback Improvements:

  • Added a character counter to the turn block, displaying current and maximum allowed characters, with a red warning when over the limit (blocks/turn/edit.js, blocks/turn/editor.scss) [1] [2] [3].
  • Added a segment counter to the episode block inspector, showing the current and maximum number of segments, with visual indication when over the limit (blocks/episode/edit.js, blocks/episode/editor.scss) [1] [2] [3].
  • Injected settings values (maxSegments, maxSegmentChars) into the block editor via an inline script, allowing dynamic enforcement and display of limits (blocks/episode/edit.js, blocks/turn/edit.js) [1] [2].

Settings and Admin Panel Enhancements:

  • Moved the settings page under the Admin → Talking Head → Settings submenu and introduced a 3-tab layout (Provider, Audio, Limits) with value preservation across tabs (CHANGELOG.md, README.md) [1] [2].
  • Added "Segments" and "Words" columns to the Episodes admin list table for better content overview (CHANGELOG.md).

Localization and Documentation Updates:

  • Updated translation files and localization strings to include new UI elements such as "Segments:" and to reflect changes in file line numbers and new settings locations (languages/talking-head-nb_NO.po, languages/talking-head-nb_NO.l10n.php, languages/talking-head-nb_NO-9058dcc10f361206af945467e6b72902.json) [1] [2] [3] [4] [5] [6].
  • Updated the changelog and README to document these improvements and the new settings navigation (CHANGELOG.md, README.md) [1] [2].

- Settings page moved under Admin → Talking Head → Settings submenu
- 3-tab settings layout (Provider, Audio, Limits)
- Character counter on turn blocks (red when over limit)
- Segment counter in episode block inspector panel
- Segments and Words columns on Episodes admin list
- Settings values injected into block editor for client-side validation
- Updated documentation to reflect new settings location
Comment thread blocks/turn/edit.js Fixed
soderlind and others added 3 commits February 18, 2026 12:52
…ality

- Implemented `enqueue_scripts` method in `SettingsPage.php` to load the new settings page script.
- Created `settings-page.js` to handle the visibility of provider sections based on the selected option.
- Added tests in `settings-page.test.js` to ensure correct behavior of the provider toggle functionality, including initial state checks and response to changes.
…er sanitization

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@soderlind soderlind merged commit 67ec7ff into main Feb 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants