mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
feat(orbit): per-guest suggestion mute + global pending-cap setting
Two anti-spam knobs the host can dial during a live session: 1. Per-guest suggestion mute — Mic / MicOff toggle next to the kick/ban buttons in the participants popover. Symmetric (re-enable later). State lives in OrbitState.suggestionBlocked: string[]; the guest reads it and disables its own Suggest controls so the user sees a clear "muted" state instead of silent failures. Host-side sweep also drops their outbox entries as a safety net. 2. Max pending approvals cap — number input in the session-settings popover, default 0 (= unlimited so existing sessions are unaffected). When set, the host sweep stops folding new outbox entries into the approval list once the cap is reached. The OrbitQueueHead surfaces "X / Y pending" so guests can see when they're getting close. State changes are additive on the wire — both fields are optional, with parseOrbitState defaulting them, so older clients keep working. evaluateOrbitSuggestGate() centralises the guest-side allow/block check shared between useOrbitSongRowBehavior and the ContextMenu Add-to-Session items, plus suggestOrbitTrack as a defensive last line. i18n: en + de + fr + nl + zh + nb + ru + es. Also fixes an earlier dedupe-key collision: the (user, trackId) cache keys were missing their separator (NULL byte slipped in during the previous patch), so two tracks could share a key and one of them silently overwrite the other. Restored the space separator. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1641,6 +1641,10 @@ export const ruTranslation = {
|
||||
participantsRemoveAria: 'Удалить {{user}} из этой сессии',
|
||||
participantsBanTooltip: 'Забанить навсегда',
|
||||
participantsBanAria: 'Забанить {{user}} навсегда',
|
||||
participantsMuteTooltip: 'Запретить предлагать треки',
|
||||
participantsUnmuteTooltip: 'Разрешить предлагать треки',
|
||||
participantsMuteAria: 'Запретить {{user}} предлагать треки',
|
||||
participantsUnmuteAria: 'Снова разрешить {{user}} предлагать треки',
|
||||
confirmRemoveTitle: 'Удалить из сессии?',
|
||||
confirmRemoveBody: '{{user}} будет удалён из сессии, но может присоединиться снова по твоей ссылке-приглашению.',
|
||||
confirmRemoveConfirm: 'Удалить',
|
||||
@@ -1666,6 +1670,12 @@ export const ruTranslation = {
|
||||
settingAutoShuffleHint: 'Периодическое Fisher-Yates перемешивание предстоящей очереди. Выкл.: порядок меняется только при ручной перестановке.',
|
||||
settingShuffleInterval: 'Перемешивать каждые',
|
||||
settingShuffleIntervalHint: 'Как часто предстоящая очередь перемешивается во время сессии.',
|
||||
settingMaxPending: 'Макс. ожидающих заявок',
|
||||
settingMaxPendingHint: 'Сколько гостевых предложений могут одновременно ждать одобрения. 0 = без лимита.',
|
||||
pendingCounter: '{{count}} / {{max}} в ожидании',
|
||||
pendingCounterTooltip: 'Ожидающие гостевые заявки / лимит',
|
||||
suggestBlockedMuted: 'Хост отключил тебе предложение треков на этой сессии.',
|
||||
suggestBlockedCap: 'Очередь одобрений переполнена — подожди, пока хост её разгребёт.',
|
||||
settingShuffleIntervalValue_one: '{{count}} мин',
|
||||
settingShuffleIntervalValue_few: '{{count}} мин',
|
||||
settingShuffleIntervalValue_many: '{{count}} мин',
|
||||
|
||||
Reference in New Issue
Block a user