Skip to content

Proxy settings v2#253

Merged
gdlbo merged 5 commits intodevelopfrom
proxy-page-v2
Apr 14, 2026
Merged

Proxy settings v2#253
gdlbo merged 5 commits intodevelopfrom
proxy-page-v2

Conversation

@gdlbo
Copy link
Copy Markdown
Member

@gdlbo gdlbo commented Apr 14, 2026

  • DC Ping test
  • New design page
  • Fixed HTTP proxy support
  • Auto check interval
  • Random switch mode
  • Paste button
  • QR Code scanner

gdlbo added 5 commits April 14, 2026 03:24
- replace `ExternalProxyRepository` with `ProxyRepository` and `ProxyDiagnosticsRepository` to separate core management from diagnostic logic
- implement datacenter (DC) ping testing to measure reachability and latency across different Telegram regions via active proxy or direct connection
- introduce a new tabbed UI in `ProxyContent` for switching between Proxy management, DC Pings, and Connection Settings
- enhance proxy testing by adding `testProxyAtDc` and `testDirectDc` to provide more accurate end-to-end connectivity checks
- update `ProxyAddEditSheet` and `ProxyConfirmSheet` with real-time status indicators and improved input validation
- refine `LinkParser` to support a wider range of Telegram proxy link formats, including various `t.me` and `tg://` variations
- implement `ProxyConnectionSummaryCard` for a high-level overview of the current connection state and active proxy details
- optimize `ConnectionManager` with improved startup synchronization and automatic application of IPv6 preferences
- add detailed error reporting and specific failure reasons (timeout, DNS failure, auth failure) for proxy diagnostics
- modernize proxy list items with swipe-to-delete support, improved status pills, and favorite toggles
- ensure reliable proxy persistence by backing up user-added proxies to local preferences for restoration after clearing app data
- improve `LinkParser` with more robust URL normalization and manual proxy type detection for malformed or non-standard Telegram proxy links
- overhaul `ProxyContent` UI with a new tabbed layout (Proxy, DC Ping, Settings) and improved visual hierarchy
- update `ProxyPingIndicator` and `ProxyListItemComponents` with refined status styles, meta chips for port/type, and more compact action menus
- move proxy management actions (Clear Offline, Remove All) into a consolidated top-level dropdown menu
- enhance `ProxySummaryComponents` to accurately reflect connection states, including "Direct" and "Smart Switching" modes
- implement `ProxyPingIndicator` parameter to toggle text visibility for use in compact list views
- introduce comprehensive localized strings for connection tests and data center pinging across multiple languages
- add unit tests for `LinkParser` to verify support for various MTProto proxy link formats
- fix URL normalization in `MessageUtils` to correctly handle schemes beyond http/https
…xy settings

- introduce `ProxySmartSwitchMode` with "Lowest Ping" and "Random Available" selection strategies
- add configurable auto-check intervals for smart switching, ranging from 1 to 60 minutes
- update `ConnectionManager` to respect the selected smart switch mode and dynamic check intervals
- enhance Proxy settings UI with dropdown menus for mode selection and interval configuration
- update `AppPreferences` and `ProxyComponent` to persist and manage the new smart switch settings
- fix an issue in `ProxyListItemComponents` where swipe-to-delete might not trigger correctly by using a `LaunchedEffect` for state synchronization
- improve `SettingsTile` component to support an `enabled` state with visual alpha feedback
- add localized strings for the new smart switch features across multiple languages (TR, PT-BR, HY, RU, SK, ES, UK, ZH-CN)
@gdlbo gdlbo merged commit 36c625b into develop Apr 14, 2026
1 check passed
@gdlbo gdlbo deleted the proxy-page-v2 branch April 14, 2026 18:29
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.

1 participant