Skip to content

Remove unavailable server UI#8888

Open
atavism wants to merge 3 commits into
mainfrom
atavism/remove-unavailable-server
Open

Remove unavailable server UI#8888
atavism wants to merge 3 commits into
mainfrom
atavism/remove-unavailable-server

Conversation

@atavism

@atavism atavism commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes
    • Simplified VPN server location selection by removing reachability warning prompts and the related warning icon behavior.
    • Pro users now see all locations in a single unified list, and selecting a server proceeds directly after any required permission check.
    • Location settings UI was cleaned up: the subtitle no longer includes reachability warning text, and the location picker no longer shows per-item “may be unreachable” indicators.

Copilot AI review requested due to automatic review settings June 26, 2026 19:21
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4dade8e7-1061-4688-9b27-b0b888abc57a

📥 Commits

Reviewing files that changed from the base of the PR and between 53a066b and 696faa7.

📒 Files selected for processing (1)
  • lib/features/vpn/single_city_server_view.dart

📝 Walkthrough

Walkthrough

The PR removes reachability-warning strings, icons, and dialog flow from VPN location selection. Location settings now show only the protocol subtitle, and server selection proceeds directly to connecting after the existing macOS extension check.

Changes

VPN warning removal

Layer / File(s) Summary
Strings and export cleanup
assets/locales/en.po, lib/core/common/common.dart
English locale entries for currently_unavailable, the server reachability warning, and Smart Location actions are removed, the file tail after configuration_message is trimmed, and the shared export for ServerReachabilityWarningIcon is deleted.
Location setting warning removal
lib/features/vpn/location_setting.dart
LocationSetting drops the available-server notifier dependency, removes manual-selection warning derivation, and always renders the protocol subtitle with the auto-location action.
Server selection warning removal
lib/features/vpn/server_selection.dart, lib/features/vpn/single_city_server_view.dart
ServerLocationListView uses one Pro location section, removes the reachability-warning dialog and icons, and SingleCityServerView no longer accepts or renders the warning flag.

Sequence Diagram(s)

sequenceDiagram
  participant ServerLocationListView
  participant onServerSelected
  participant _connectToServer
  ServerLocationListView->>onServerSelected: submit selected server
  onServerSelected->>onServerSelected: check macOS extension permission
  onServerSelected->>_connectToServer: connect directly
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐇 I hopped past warnings, soft and light,
No unreachable icons in sight.
The server path now leaps ahead,
With protocol subtitles instead.
Thump! A tidy VPN night.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR’s main change: removing unavailable server UI and related reachability warnings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch atavism/remove-unavailable-server

Comment @coderabbitai help to get the list of available commands.

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 removes the “unavailable/may be unreachable” server reachability UI and associated flow from the VPN location selection experience, simplifying the server list presentation and related localization/assets.

Changes:

  • Removed reachability warning indicators (icons/tooltips) from server list tiles.
  • Removed the “currently unavailable” section split and the manual-selection warning dialog flow.
  • Deleted the reachability warning icon widget and removed related localization strings/exports.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/features/vpn/single_city_server_view.dart Removes reachability warning parameter and trailing warning icon from single-city server tiles.
lib/features/vpn/server_selection.dart Simplifies server list sections and removes unreachable-server warning UI/flow.
lib/features/vpn/location_setting.dart Removes “may be unreachable” subtitle/icon behavior from the location setting tile.
lib/core/widgets/server_reachability_warning_icon.dart Deletes the now-unused warning icon widget.
lib/core/common/common.dart Removes export for the deleted warning icon widget.
assets/locales/en.po Removes now-unused reachability/unavailable-related English strings.

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

Comment on lines 12 to 15
final bool isSelected;
final bool nested;

/// Whether to surface the "may be unreachable" warning icon. Disabled for
/// free users, who see every location without the reachability distinction.
final bool showReachabilityWarning;

const SingleCityServerView({
@atavism atavism requested review from jigar-f and myleshorton June 30, 2026 21:55
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.

2 participants