[PR #6823] [CLOSED] feat(panel): add server-wide toggle for sponsor content #6465

Closed
opened 2026-11-02 04:08:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6823
Author: @libmur-dev
Created: 10/14/2026
Status: ❌ Closed

Base: main ← Head: feat/persistent-sponsor-opt-out


📝 Commits (1)

  • cf4c9b6 feat(panel): add persistent opt-out for sponsor content

📊 Changes

39 files changed (+789 additions, -11 deletions)

View changed files

📝 frontend/public/openapi.json (+43 -1)
📝 frontend/src/api/queries/useAllSettings.ts (+7 -1)
➕ frontend/src/api/queries/useSponsorVisibility.ts (+22 -0)
📝 frontend/src/api/queries/useSponsorsQuery.ts (+11 -3)
📝 frontend/src/api/queryKeys.ts (+1 -0)
➕ frontend/src/components/command-palette/CommandPalette.stories.tsx (+92 -0)
📝 frontend/src/components/command-palette/CommandPalette.tsx (+4 -0)
📝 frontend/src/generated/examples.ts (+2 -0)
📝 frontend/src/generated/schemas.ts (+8 -0)
📝 frontend/src/generated/types.ts (+2 -0)
📝 frontend/src/generated/zod.ts (+2 -0)
📝 frontend/src/layouts/AppSidebar.tsx (+6 -2)
📝 frontend/src/models/setting.ts (+1 -0)
📝 frontend/src/pages/api-docs/endpoints.ts (+8 -1)
📝 frontend/src/pages/settings/GeneralTab.tsx (+17 -0)
📝 frontend/src/pages/sponsors/SponsorsPage.tsx (+5 -1)
📝 frontend/src/schemas/setting.ts (+1 -0)
➕ frontend/src/test/sponsor-opt-out.test.tsx (+179 -0)
📝 internal/web/controller/index.go (+14 -1)
📝 internal/web/controller/setting.go (+11 -0)

...and 19 more files

📄 Description

Summary

Add a persistent Show sponsor ads setting under Settings → General, enabled by default. Administrators can turn it off to remove sponsor content across the panel, including the login page, and stop the server from fetching or serving sponsor lists and logos. They can turn it back on in the same settings screen.

Why

Server owners should be able to decide whether their panel displays sponsor ads and whether their server requests advertising data. The current 24-hour dismissal is stored in the browser. It does not provide a persistent choice for the whole panel or stop advertising requests from the server.

The new setting applies to all browsers and survives restarts and normal updates. Sponsor ads remain enabled by default, preserving the current behavior for owners who leave the setting unchanged.

Closes #6818.

What changed

  • Store showSponsorAds in the existing database settings table, with a default of true. No schema migration is required.
  • Check the setting before accessing sponsor caches or fetching advertising data. When disabled, /sponsors returns an empty array without advertising contact details, and logo requests return 404. Previously cached content is not served, including when the upstream source is unavailable.
  • Wait for any active sponsor requests to finish before confirming that the setting has been saved. After disabling is complete, no new sponsor fetch can start. If the setting cannot be read, sponsor content is disabled.
  • Let the login page read a single public boolean through GET /sponsors/enabled, without exposing administrative settings. This endpoint and the sponsor list and logo responses use Cache-Control: no-store. The internal cache still reduces upstream requests when ads are enabled.
  • Hide sponsor cards on the dashboard and login page, the Sponsors menu item, its search command, and offers to place an ad. Redirect direct visits to the Sponsors page to the dashboard when ads are disabled.
  • Cancel pending frontend sponsor requests and clear their cached data after a successful settings save. Other open pages check the setting when they regain focus and once a minute.
  • Preserve the stored value when an older API client omits showSponsorAds. Update API documentation and generated schemas, and translate the setting label and description into all 13 supported languages, including English and Russian.

Type of change / areas affected

  • New feature
  • Frontend: panel pages, navigation and search
  • Backend: settings, public API, sponsor requests and cache handling
  • Database settings, without a schema change
  • API documentation and translations

How was this tested?

  • Backend regression tests cover empty and populated list and logo caches, no upstream advertising requests while disabled, re-enabling, an invalid stored value, and disabling during an active fetch. They also cover the public boolean response, clients that omit the new field, and persistence after reopening the database and running its migration code.
  • The new empty-cache and populated-cache tests were also run against unchanged main. Both fail there because sponsor content and advertising contact details are still returned.
  • Frontend tests cover cached content on the login page and dashboard, successful and failed saves, request cancellation and handling of late responses, re-enabling, direct navigation, and the Sponsors menu item and search command.
  • An isolated local panel passed 11 end-to-end checks in Chromium, using local test sponsor data and a separate unauthenticated browser context for login checks. While ads were disabled, 109 browser requests were recorded, with no requests for sponsor lists, logos or external advertising resources. Screenshots cover English and Russian settings and the login page.
  • go build ./..., targeted backend tests, TypeScript checks, lint, formatting, the production frontend build and the Storybook build passed. Tests also passed with go test -race -shuffle=on -count=1 -p 1 for internal/web/service/panel, internal/web/controller and internal/web/service.

Some local checks remain unsuccessful:

  • The frontend unit/component suite with a 20-second timeout passed 1,753 tests. One protocol iteration test exceeded its own 30-second timeout; it passed when rerun separately.
  • The default Go test run on Windows failed in the Discord test TestGatewayRequestedHeartbeatDoesNotRaceTicker because the socket connection was closed.
  • The Storybook browser test runner failed to start locally with ERR_CONNECTION_REFUSED. The same failure occurred with an unchanged SponsorCard story on main; the Storybook build and the separate Chromium checks against the running panel passed.

These failures were also reproduced on unchanged main. The full local test suite has not passed; CI should pass before merging.

Screenshots

Screenshots show the setting enabled in English and disabled in Russian, plus the login page with and without sponsor content. All screenshots are from an isolated local panel; the displayed sponsor uses test data.

Setting enabled (English)

Setting enabled in English

Setting disabled (Russian)

Setting disabled in Russian

Login with sponsor ads enabled

Login with sponsor ads enabled

Login with sponsor ads disabled

Login with sponsor ads disabled

Breaking changes

None. Sponsor ads are enabled by default. API clients that omit showSponsorAds leave the stored value unchanged.

Checklist

  • Tested the feature locally and added regression tests.
  • Frontend lint, type checks, formatting and builds pass.
  • Updated API documentation and regenerated schemas.
  • The full test suite passes locally with default settings. Failures reproduced on unchanged main are described above.
  • The commit message follows the project style; changes are limited to this feature.

Русская версия

Добавлена постоянная настройка «Показывать спонсорские объявления» в разделе «Настройки → Общие». По умолчанию она включена. Администратор может отключить её, чтобы убрать рекламу во всей панели, включая страницу входа, и прекратить загрузку и выдачу списка спонсоров и логотипов на сервере. Повторно включить рекламу можно в том же разделе настроек.

Обоснование

Владелец сервера должен сам решать, показывать ли спонсорскую рекламу в панели и загружать ли рекламные данные из внешних источников. Сейчас скрытие рекламы на 24 часа действует только в одном браузере. Такой способ не даёт отключить рекламу для всей панели и не прекращает рекламные запросы сервера.

Новая настройка действует для всех браузеров и сохраняется после перезапусков и штатных обновлений. По умолчанию реклама остаётся включённой: для владельцев, которые не меняют настройку, поведение панели сохраняется.

Изменение закрывает задачу #6818.

Что изменено

  • Настройка showSponsorAds хранится в существующей таблице настроек БД. Значение по умолчанию — true; миграция схемы не требуется.
  • Настройка проверяется до обращения к кэшу спонсоров или загрузки рекламных данных. При отключении /sponsors возвращает пустой массив без контактов для размещения рекламы, а запросы логотипов получают ответ 404. Ранее закэшированная реклама не выдаётся, в том числе при недоступности внешнего источника.
  • Если запросы рекламных данных уже выполняются, сохранение настройки дожидается их завершения. После подтверждения отключения новые загрузки не запускаются. Если прочитать настройку не удалось, реклама отключается.
  • Страница входа получает через GET /sponsors/enabled только признак того, включена ли реклама. Административные настройки при этом не раскрываются. Этот ответ, а также ответы со списком спонсоров и логотипами содержат Cache-Control: no-store. Когда реклама включена, внутренний кэш по-прежнему сокращает число запросов к внешнему источнику.
  • Скрываются рекламные блоки на главной странице и странице входа, пункт меню «Спонсоры», соответствующая команда поиска и предложения разместить рекламу. При отключённой рекламе прямой переход в раздел «Спонсоры» перенаправляет на главную страницу.
  • После успешного сохранения отменяются незавершённые рекламные запросы браузера и очищается их кэш. Другие открытые страницы проверяют настройку при возвращении фокуса и раз в минуту.
  • Если прежний API-клиент не передаёт showSponsorAds, значение в БД не меняется. Обновлены документация API и сгенерированные схемы. Название и описание настройки переведены на все 13 поддерживаемых языков, включая русский и английский.

Тип изменения и затронутые части

  • Новая возможность
  • Интерфейс: страницы панели, навигация и поиск
  • Сервер: настройки, публичный API, рекламные запросы и работа с кэшем
  • Настройки БД без изменения схемы
  • Документация API и переводы

Проверки

  • Серверные тесты проверяют пустой и заполненный кэш списка спонсоров и логотипов, отсутствие внешних рекламных запросов при отключении, повторное включение, некорректное значение в БД и отключение во время загрузки. Также проверены публичный ответ с признаком включения рекламы, клиенты без нового поля и сохранение выбора после повторного открытия БД и запуска миграций.
  • Новые тесты с пустым и заполненным кэшем также запущены на неизменённом main. Оба завершаются ошибкой: реклама и контакты для её размещения продолжают выдаваться.
  • Тесты интерфейса проверяют закэшированную рекламу на странице входа и главной странице, успешное и неуспешное сохранение, отмену запросов и обработку запоздавших ответов, повторное включение, прямой переход, пункт меню «Спонсоры» и команду поиска.
  • Изолированная локальная панель прошла 11 сквозных проверок в Chromium с локальными тестовыми данными спонсора. Для проверки страницы входа использован отдельный браузерный контекст без авторизации. При отключённой рекламе зафиксировано 109 браузерных запросов; среди них нет запросов списка спонсоров, логотипов или внешних рекламных ресурсов. Сделаны скриншоты настроек на русском и английском, а также страницы входа.
  • Успешно выполнены go build ./..., целевые серверные тесты, проверка типов TypeScript, lint, проверка форматирования, сборка интерфейса для production и сборка Storybook. Для internal/web/service/panel, internal/web/controller и internal/web/service также прошли тесты с go test -race -shuffle=on -count=1 -p 1.

Некоторые локальные проверки завершились ошибками:

  • В наборе модульных тестов и тестов компонентов интерфейса с лимитом 20 секунд прошли 1 753 теста. Один тест перебора протоколов превысил собственный лимит 30 секунд; при отдельном повторном запуске он прошёл.
  • Стандартный запуск Go-тестов на Windows завершился ошибкой в Discord-тесте TestGatewayRequestedHeartbeatDoesNotRaceTicker из-за закрытия соединения.
  • Браузерные тесты Storybook не удалось запустить локально: возникла ошибка ERR_CONNECTION_REFUSED. Та же ошибка возникла при проверке неизменённого примера SponsorCard на main. При этом сборка Storybook и отдельные проверки работающей панели в Chromium прошли.

Все перечисленные ошибки воспроизведены и на неизменённом main. Полный набор локальных тестов не прошёл; перед слиянием должны пройти проверки CI.

Скриншоты

Скриншоты показывают включённую настройку на английском, отключённую — на русском и страницу входа с рекламой и без неё. Все скриншоты сделаны в изолированной локальной панели; для показанного спонсора использованы тестовые данные.

Несовместимые изменения

Отсутствуют. По умолчанию спонсорская реклама включена. Если API-клиент не передаёт showSponsorAds, значение в БД остаётся прежним.

Контрольный список

  • Возможность проверена локально; добавлены регрессионные тесты.
  • Прошли lint, проверка типов, проверка форматирования и сборки интерфейса.
  • Обновлена документация API и заново сгенерированы схемы.
  • Полный набор тестов проходит локально с настройками по умолчанию. Ошибки, воспроизведённые на неизменённом main, описаны выше.
  • Сообщение коммита соответствует стилю проекта; изменения касаются только этой возможности.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6823 **Author:** [@libmur-dev](https://github.com/libmur-dev) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/persistent-sponsor-opt-out` --- ### 📝 Commits (1) - [`cf4c9b6`](https://github.com/MHSanaei/3x-ui/commit/cf4c9b681f641e5d2d0a8ad3f6a2d15811b3cb49) feat(panel): add persistent opt-out for sponsor content ### 📊 Changes **39 files changed** (+789 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `frontend/public/openapi.json` (+43 -1) 📝 `frontend/src/api/queries/useAllSettings.ts` (+7 -1) ➕ `frontend/src/api/queries/useSponsorVisibility.ts` (+22 -0) 📝 `frontend/src/api/queries/useSponsorsQuery.ts` (+11 -3) 📝 `frontend/src/api/queryKeys.ts` (+1 -0) ➕ `frontend/src/components/command-palette/CommandPalette.stories.tsx` (+92 -0) 📝 `frontend/src/components/command-palette/CommandPalette.tsx` (+4 -0) 📝 `frontend/src/generated/examples.ts` (+2 -0) 📝 `frontend/src/generated/schemas.ts` (+8 -0) 📝 `frontend/src/generated/types.ts` (+2 -0) 📝 `frontend/src/generated/zod.ts` (+2 -0) 📝 `frontend/src/layouts/AppSidebar.tsx` (+6 -2) 📝 `frontend/src/models/setting.ts` (+1 -0) 📝 `frontend/src/pages/api-docs/endpoints.ts` (+8 -1) 📝 `frontend/src/pages/settings/GeneralTab.tsx` (+17 -0) 📝 `frontend/src/pages/sponsors/SponsorsPage.tsx` (+5 -1) 📝 `frontend/src/schemas/setting.ts` (+1 -0) ➕ `frontend/src/test/sponsor-opt-out.test.tsx` (+179 -0) 📝 `internal/web/controller/index.go` (+14 -1) 📝 `internal/web/controller/setting.go` (+11 -0) _...and 19 more files_ </details> ### 📄 Description ## Summary Add a persistent **Show sponsor ads** setting under Settings → General, enabled by default. Administrators can turn it off to remove sponsor content across the panel, including the login page, and stop the server from fetching or serving sponsor lists and logos. They can turn it back on in the same settings screen. ## Why Server owners should be able to decide whether their panel displays sponsor ads and whether their server requests advertising data. The current 24-hour dismissal is stored in the browser. It does not provide a persistent choice for the whole panel or stop advertising requests from the server. The new setting applies to all browsers and survives restarts and normal updates. Sponsor ads remain enabled by default, preserving the current behavior for owners who leave the setting unchanged. Closes [#6818](https://github.com/MHSanaei/3x-ui/issues/6818). ## What changed - Store `showSponsorAds` in the existing database settings table, with a default of `true`. No schema migration is required. - Check the setting before accessing sponsor caches or fetching advertising data. When disabled, `/sponsors` returns an empty array without advertising contact details, and logo requests return 404. Previously cached content is not served, including when the upstream source is unavailable. - Wait for any active sponsor requests to finish before confirming that the setting has been saved. After disabling is complete, no new sponsor fetch can start. If the setting cannot be read, sponsor content is disabled. - Let the login page read a single public boolean through `GET /sponsors/enabled`, without exposing administrative settings. This endpoint and the sponsor list and logo responses use `Cache-Control: no-store`. The internal cache still reduces upstream requests when ads are enabled. - Hide sponsor cards on the dashboard and login page, the Sponsors menu item, its search command, and offers to place an ad. Redirect direct visits to the Sponsors page to the dashboard when ads are disabled. - Cancel pending frontend sponsor requests and clear their cached data after a successful settings save. Other open pages check the setting when they regain focus and once a minute. - Preserve the stored value when an older API client omits `showSponsorAds`. Update API documentation and generated schemas, and translate the setting label and description into all 13 supported languages, including English and Russian. ## Type of change / areas affected - [x] New feature - [x] Frontend: panel pages, navigation and search - [x] Backend: settings, public API, sponsor requests and cache handling - [x] Database settings, without a schema change - [x] API documentation and translations ## How was this tested? - Backend regression tests cover empty and populated list and logo caches, no upstream advertising requests while disabled, re-enabling, an invalid stored value, and disabling during an active fetch. They also cover the public boolean response, clients that omit the new field, and persistence after reopening the database and running its migration code. - The new empty-cache and populated-cache tests were also run against unchanged `main`. Both fail there because sponsor content and advertising contact details are still returned. - Frontend tests cover cached content on the login page and dashboard, successful and failed saves, request cancellation and handling of late responses, re-enabling, direct navigation, and the Sponsors menu item and search command. - An isolated local panel passed 11 end-to-end checks in Chromium, using local test sponsor data and a separate unauthenticated browser context for login checks. While ads were disabled, 109 browser requests were recorded, with no requests for sponsor lists, logos or external advertising resources. Screenshots cover English and Russian settings and the login page. - `go build ./...`, targeted backend tests, TypeScript checks, lint, formatting, the production frontend build and the Storybook build passed. Tests also passed with `go test -race -shuffle=on -count=1 -p 1` for `internal/web/service/panel`, `internal/web/controller` and `internal/web/service`. Some local checks remain unsuccessful: - The frontend unit/component suite with a 20-second timeout passed 1,753 tests. One protocol iteration test exceeded its own 30-second timeout; it passed when rerun separately. - The default Go test run on Windows failed in the Discord test `TestGatewayRequestedHeartbeatDoesNotRaceTicker` because the socket connection was closed. - The Storybook browser test runner failed to start locally with `ERR_CONNECTION_REFUSED`. The same failure occurred with an unchanged SponsorCard story on `main`; the Storybook build and the separate Chromium checks against the running panel passed. These failures were also reproduced on unchanged `main`. The full local test suite has not passed; CI should pass before merging. ## Screenshots Screenshots show the setting enabled in English and disabled in Russian, plus the login page with and without sponsor content. All screenshots are from an isolated local panel; the displayed sponsor uses test data. **Setting enabled (English)** ![Setting enabled in English](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/settings-enabled-en.png) **Setting disabled (Russian)** ![Setting disabled in Russian](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/settings-disabled-ru.png) **Login with sponsor ads enabled** ![Login with sponsor ads enabled](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/login-enabled.png) **Login with sponsor ads disabled** ![Login with sponsor ads disabled](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/login-disabled.png) ## Breaking changes None. Sponsor ads are enabled by default. API clients that omit `showSponsorAds` leave the stored value unchanged. ## Checklist - [x] Tested the feature locally and added regression tests. - [x] Frontend lint, type checks, formatting and builds pass. - [x] Updated API documentation and regenerated schemas. - [ ] The full test suite passes locally with default settings. Failures reproduced on unchanged `main` are described above. - [x] The commit message follows the project style; changes are limited to this feature. --- ## Русская версия Добавлена постоянная настройка **«Показывать спонсорские объявления»** в разделе «Настройки → Общие». По умолчанию она включена. Администратор может отключить её, чтобы убрать рекламу во всей панели, включая страницу входа, и прекратить загрузку и выдачу списка спонсоров и логотипов на сервере. Повторно включить рекламу можно в том же разделе настроек. ## Обоснование Владелец сервера должен сам решать, показывать ли спонсорскую рекламу в панели и загружать ли рекламные данные из внешних источников. Сейчас скрытие рекламы на 24 часа действует только в одном браузере. Такой способ не даёт отключить рекламу для всей панели и не прекращает рекламные запросы сервера. Новая настройка действует для всех браузеров и сохраняется после перезапусков и штатных обновлений. По умолчанию реклама остаётся включённой: для владельцев, которые не меняют настройку, поведение панели сохраняется. Изменение закрывает задачу [#6818](https://github.com/MHSanaei/3x-ui/issues/6818). ## Что изменено - Настройка `showSponsorAds` хранится в существующей таблице настроек БД. Значение по умолчанию — `true`; миграция схемы не требуется. - Настройка проверяется до обращения к кэшу спонсоров или загрузки рекламных данных. При отключении `/sponsors` возвращает пустой массив без контактов для размещения рекламы, а запросы логотипов получают ответ 404. Ранее закэшированная реклама не выдаётся, в том числе при недоступности внешнего источника. - Если запросы рекламных данных уже выполняются, сохранение настройки дожидается их завершения. После подтверждения отключения новые загрузки не запускаются. Если прочитать настройку не удалось, реклама отключается. - Страница входа получает через `GET /sponsors/enabled` только признак того, включена ли реклама. Административные настройки при этом не раскрываются. Этот ответ, а также ответы со списком спонсоров и логотипами содержат `Cache-Control: no-store`. Когда реклама включена, внутренний кэш по-прежнему сокращает число запросов к внешнему источнику. - Скрываются рекламные блоки на главной странице и странице входа, пункт меню «Спонсоры», соответствующая команда поиска и предложения разместить рекламу. При отключённой рекламе прямой переход в раздел «Спонсоры» перенаправляет на главную страницу. - После успешного сохранения отменяются незавершённые рекламные запросы браузера и очищается их кэш. Другие открытые страницы проверяют настройку при возвращении фокуса и раз в минуту. - Если прежний API-клиент не передаёт `showSponsorAds`, значение в БД не меняется. Обновлены документация API и сгенерированные схемы. Название и описание настройки переведены на все 13 поддерживаемых языков, включая русский и английский. ## Тип изменения и затронутые части - [x] Новая возможность - [x] Интерфейс: страницы панели, навигация и поиск - [x] Сервер: настройки, публичный API, рекламные запросы и работа с кэшем - [x] Настройки БД без изменения схемы - [x] Документация API и переводы ## Проверки - Серверные тесты проверяют пустой и заполненный кэш списка спонсоров и логотипов, отсутствие внешних рекламных запросов при отключении, повторное включение, некорректное значение в БД и отключение во время загрузки. Также проверены публичный ответ с признаком включения рекламы, клиенты без нового поля и сохранение выбора после повторного открытия БД и запуска миграций. - Новые тесты с пустым и заполненным кэшем также запущены на неизменённом `main`. Оба завершаются ошибкой: реклама и контакты для её размещения продолжают выдаваться. - Тесты интерфейса проверяют закэшированную рекламу на странице входа и главной странице, успешное и неуспешное сохранение, отмену запросов и обработку запоздавших ответов, повторное включение, прямой переход, пункт меню «Спонсоры» и команду поиска. - Изолированная локальная панель прошла 11 сквозных проверок в Chromium с локальными тестовыми данными спонсора. Для проверки страницы входа использован отдельный браузерный контекст без авторизации. При отключённой рекламе зафиксировано 109 браузерных запросов; среди них нет запросов списка спонсоров, логотипов или внешних рекламных ресурсов. Сделаны скриншоты настроек на русском и английском, а также страницы входа. - Успешно выполнены `go build ./...`, целевые серверные тесты, проверка типов TypeScript, lint, проверка форматирования, сборка интерфейса для production и сборка Storybook. Для `internal/web/service/panel`, `internal/web/controller` и `internal/web/service` также прошли тесты с `go test -race -shuffle=on -count=1 -p 1`. Некоторые локальные проверки завершились ошибками: - В наборе модульных тестов и тестов компонентов интерфейса с лимитом 20 секунд прошли 1 753 теста. Один тест перебора протоколов превысил собственный лимит 30 секунд; при отдельном повторном запуске он прошёл. - Стандартный запуск Go-тестов на Windows завершился ошибкой в Discord-тесте `TestGatewayRequestedHeartbeatDoesNotRaceTicker` из-за закрытия соединения. - Браузерные тесты Storybook не удалось запустить локально: возникла ошибка `ERR_CONNECTION_REFUSED`. Та же ошибка возникла при проверке неизменённого примера SponsorCard на `main`. При этом сборка Storybook и отдельные проверки работающей панели в Chromium прошли. Все перечисленные ошибки воспроизведены и на неизменённом `main`. Полный набор локальных тестов не прошёл; перед слиянием должны пройти проверки CI. ## Скриншоты Скриншоты показывают включённую настройку на английском, отключённую — на русском и страницу входа с рекламой и без неё. Все скриншоты сделаны в изолированной локальной панели; для показанного спонсора использованы тестовые данные. - [Настройка включена — английский интерфейс](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/settings-enabled-en.png). - [Настройка отключена — русский интерфейс](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/settings-disabled-ru.png). - [Страница входа с рекламой](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/login-enabled.png). - [Страница входа без рекламы](https://raw.githubusercontent.com/libmur-dev/3x-ui/9eba2f728643f895dd53bd4394da5d1c9fc350cb/login-disabled.png). ## Несовместимые изменения Отсутствуют. По умолчанию спонсорская реклама включена. Если API-клиент не передаёт `showSponsorAds`, значение в БД остаётся прежним. ## Контрольный список - [x] Возможность проверена локально; добавлены регрессионные тесты. - [x] Прошли lint, проверка типов, проверка форматирования и сборки интерфейса. - [x] Обновлена документация API и заново сгенерированы схемы. - [ ] Полный набор тестов проходит локально с настройками по умолчанию. Ошибки, воспроизведённые на неизменённом `main`, описаны выше. - [x] Сообщение коммита соответствует стилю проекта; изменения касаются только этой возможности. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:57 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6465
No description provided.