- Notifications
You must be signed in to change notification settings - Fork3
feat: add remote folder picker to file sync GUI#127
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
ethanndickson commentedApr 3, 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.
This stack of pull requests is managed byGraphite. Learn more aboutstacking. |
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 adds a remote folder picker to the file sync GUI by integrating new API endpoints and views to enable users to select remote directories.
- Adds Sendable conformance to the Client model and implements methods for listing agent directories in AgentLS.swift.
- Introduces a FilePicker view, its associated model, and test cases to validate file picking logic.
- Updates the FileSync session modal to include a remote folder picker button alongside an enhanced UI.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
Coder-Desktop/CoderSDK/Client.swift | Added Sendable conformance to improve thread-safety. |
Coder-Desktop/CoderSDK/AgentLS.swift | Introduced LS request/response models and a new directory listing function. |
Coder-Desktop/Coder-DesktopTests/Util.swift | Added the eventually helper function for async testing. |
Coder-Desktop/Coder-DesktopTests/FilePickerTests.swift | Added tests for error handling, file loading, and directory expansion in the file picker. |
Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift | Updated the file sync session modal UI to include remote folder picking capability. |
Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift | Implemented the FilePicker view, its model, and helper extensions to support file selection. |
Files not reviewed (1)
- Coder-Desktop/Coder-Desktop/Info.plist: Language not supported
Comments suppressed due to low confidence (3)
Coder-Desktop/CoderSDK/AgentLS.swift:31
- [nitpick] Consider renaming 'absolute_path' to 'absolutePath' to follow Swift naming conventions; if these property names are tied to API keys, consider using CodingKeys for mapping.
public let absolute_path: [String]
Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift:16
- [nitpick] Consider renaming 'pickingRemote' to 'isPickingRemote' to improve clarity and better align with SwiftUI naming conventions.
@State private var pickingRemote: Bool = false
Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift:203
- [nitpick] Consider renaming the parameter 'dir' to 'isDirectory' to enhance readability and clarity.
dir: Bool = false
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
968fa7b
toa553fb6
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ethanndickson commentedApr 9, 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.
de604d7
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closes#65.
pickerexample_small.mp4
pickerstresstest.mov