- Notifications
You must be signed in to change notification settings - Fork3
chore: minor ui/ux changes#186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
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 enhances UI/UX tooltips, improves error diagnostics for downloads, and standardizes sizing for file sync table controls.
- Adds hover tooltips on the copy DNS and open-in-browser tray menu buttons.
- Includes the download URL in
DownloadError.unexpectedStatusCode
messages. - Increases footer icon size from 24px to 30px via a new
FooterIcon
component andTheme.Size.tableFooterIconSize
.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
VPNLib/Download.swift | UpdatedDownloadError.unexpectedStatusCode to include URL and adjusted error resume call. |
Views/VPN/VPNMenuItem.swift | Added.help(...) modifiers to show tooltips on hover for copy and open buttons. |
Views/FileSync/FileSyncConfig.swift | Replaced fixed 24px frames withFooterIcon , increased size to 30px, and updated padding. |
Theme.swift | AddedTheme.Size.tableFooterIconSize to centralize the new footer icon dimension. |
Comments suppressed due to low confidence (4)
Coder-Desktop/VPNLib/Download.swift:149
- Consider adding a unit test that triggers an unexpected status code and asserts that the error description includes both the HTTP code and the download URL.
case unexpectedStatusCode(Int, url: String)
Coder-Desktop/VPNLib/Download.swift:149
- [nitpick] It may be safer to store the URL as a
URL
type instead ofString
in the error, preserving type information and avoiding downstream parsing issues.
case unexpectedStatusCode(Int, url: String)
Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncConfig.swift:149
- The play/pause toggle logic appears inverted: when
isResumable
is true (i.e., the session is paused), you should show a play icon with tooltip "Resume", and vice versa for pausing.
FooterIcon(systemName: "play")
Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncConfig.swift:206
- [nitpick] If
FooterIcon
is intended for reuse across multiple views, consider moving it into a shared UI components file or adding a doc comment to clarify its purpose.
struct FooterIcon: View {
ethanndickson commentedJun 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Merge activity
|
99d4e4d
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
These changes were in response to feedback: