Skip to content

[codex] Make public audio ducking automatic - #151

Merged
skyhong2002 merged 1 commit into
mainfrom
sky
Jun 16, 2026
Merged

skyhong2002 merged 1 commit into
mainfrom
sky

Conversation

@skyhong2002

Copy link
Copy Markdown
Member

Summary

  • Remove the remaining configurable publicAudioDuckingEnabled prop path from JitsiRoom.
  • Make public-channel ducking an always-on automatic rule: private mode plus local speaking ducks remote Jitsi audio; private listening stays at normal volume.
  • Update the Jitsi audio tests so there is no longer a disabled-ducking branch.

Closes #145

Verification

  • pnpm --dir frontend test
  • pnpm --dir frontend format:check
  • pnpm --dir frontend lint
  • pnpm --dir frontend build
  • rg -n "duckingEnabled|publicAudioDuckingEnabled|publicAudioDucking|降音按鈕|公開頻道已降音" frontend/src frontend/tests docs -S (only the staff checklist expectation remains)

@skyhong2002

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 11ced2aa8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@skyhong2002

Copy link
Copy Markdown
Member Author

UI/UX 驗證

已用 Chrome page screenshot 重新驗證,不是 macOS 全螢幕截圖。

  • Chrome page screenshot(participant footer,已 highlight):/tmp/omniobserve-pr151-chrome-page-footer-no-ducking-control-annotated.png
  • Chrome page screenshot(Dokploy frontend 11ced2aa Done):/tmp/omniobserve-pr151-chrome-page-dokploy-frontend-11ced2aa-done.jpg
flowchart TD
    A[開啟 sky.omni.elvismao.com 測試 room] --> B[確認底部 mic controls]
    B --> C[橘框:只保留公開發言與悄悄話]
    B --> D[藍框:footer 沒有公開頻道降音按鈕或 tag]
    C --> E[DOM 檢查:公開發言/悄悄話存在]
    D --> F[DOM 檢查:無 降音 / duck / public audio 文字]
    E --> G[通過]
    F --> G[通過]
Loading

驗證結果:

  • sky frontend Dokploy 第一筆 deployment 是 Done,commit 11ced2aa8e838ecb5dc30cb94f2e505f079de2e8。
  • Participant footer 只顯示「公開發言」與「悄悄話」。
  • 頁面 DOM 檢查:公開發言=true、悄悄話=true、降音/duck/public audio=false。
  • 畫面右側的「正在聽悄悄話」是 whisper transcript 狀態,不是公開頻道降音 tag。

@skyhong2002
skyhong2002 merged commit 3aebfd7 into main Jun 16, 2026
1 check passed
@skyhong2002

Copy link
Copy Markdown
Member Author

Post-merge 驗證

  • PR [codex] Make public audio ducking automatic #151 已 merge 到 main,merge commit:3aebfd74e31568897eb1a96552d0081a34969ae5。
  • sky branch 已 fast-forward 到同一個 merge commit 並推回。
  • Chrome page screenshot(post-merge Dokploy frontend 3aebfd74 Done):/tmp/omniobserve-pr151-chrome-page-dokploy-frontend-3aebfd74-done.jpg
  • Chrome page screenshot(post-merge participant footer):/tmp/omniobserve-pr151-chrome-page-postmerge-footer-no-ducking-control.jpg

Post-merge DOM 檢查:

{
  "hasPublicSpeak": true,
  "hasWhisper": true,
  "hasDuckText": false,
  "matchingLines": ["公開發言", "悄悄話"]
}

結果:sky.omni.elvismao.com 已部署 merge commit,participant footer 沒有公開頻道降音按鈕或 tag。

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.

[UX] Duck public audio only while actively whispering, with no UI control

1 participant