Skip to content

small pack of fixes - #232

Merged
itdoginfo merged 3 commits into
mainfrom
fix/change_json_outbound_validation
Oct 26, 2025
Merged

itdoginfo merged 3 commits into
mainfrom
fix/change_json_outbound_validation

Conversation

@divocat

@divocat divocat commented Oct 26, 2025

Copy link
Copy Markdown
Collaborator
  • валидация json outbound упрощена и теперь настройка может быть более гибкой
  • потенциальный фикс для старых браузеров с ошибкой structuredClone
  • чуть правок по вордингу в переводах
  • потенциальный фикс outdated когда actual version приходит некорректно

Copilot AI review requested due to automatic review settings October 26, 2025 13:01
@divocat
divocat requested a review from itdoginfo as a code owner October 26, 2025 13:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR includes several improvements and fixes: simplified JSON outbound validation for more flexible configuration, a polyfill for structuredClone to support older browsers, translation wording improvements, and a fix for incorrect outdated version detection when the actual version is unknown.

  • Simplified outbound JSON validation by removing required field checks
  • Added structuredClone polyfill for older browser compatibility
  • Fixed version comparison logic to handle "unknown" actual version
  • Updated translation files to reflect changes

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
fe-app-podkop/src/validators/validateOutboundJson.ts Removed specific field validation, now only validates JSON syntax
fe-app-podkop/src/podkop/tabs/diagnostic/initController.ts Added check to exclude "unknown" string when determining if actual version exists
fe-app-podkop/src/main.ts Added polyfill for structuredClone function for older browsers
luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js Compiled JavaScript with the TypeScript changes applied
luci-app-podkop/htdocs/luci-static/resources/view/podkop/settings.js Updated translation key reference
luci-app-podkop/po/templates/podkop.pot Updated translation template with removed entries and updated line references
luci-app-podkop/po/ru/podkop.po Updated Russian translations with removed entries
fe-app-podkop/locales/podkop.pot Updated translation template with removed entries and updated line references
fe-app-podkop/locales/podkop.ru.po Updated Russian translations with removed entries
fe-app-podkop/locales/calls.json Updated translation call references and line numbers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fe-app-podkop/src/main.ts
Comment thread fe-app-podkop/src/podkop/tabs/diagnostic/initController.ts
@itdoginfo
itdoginfo merged commit 8a29e17 into main Oct 26, 2025
1 check passed
@itdoginfo
itdoginfo deleted the fix/change_json_outbound_validation branch October 26, 2025 13:21
Dushnilin referenced this pull request in Dushnilin/tachyon Jul 17, 2026
Screamshow pushed a commit to Screamshow/forkop-x that referenced this pull request Sep 3, 2026
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.

3 participants