- Notifications
You must be signed in to change notification settings - Fork10
feat: add workspace app icons to tray window#86
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
- Adds AgentAppViewModel to handle each button- Adds collapsible control components to handle the collapsing section- Adds Uuid type to work around issues with the built-in Guid type- Adds ModelMerge utility for merging lists with minimal updates to work around constant flashing in the UI
spikecurtis left a comment
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.
I didn't finish looking at all the files, but it looks like you're still doing some stuff, so I'll get another look later anyway. It's the end of my day so sending the comments I have so you'll have them to look at in the morning.
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.
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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
| publicpartialclassCoderApiClient | ||
| { | ||
| publicTask<WorkspaceAgent>GetWorkspaceAgent(stringid,CancellationTokenct=default) |
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.
This would be safer if we accepted a UUID, rather than a string, which could totally change the endpoint we hit.
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.
I considered this but didn't want to add a dependency betweenCoderSdk andVpn.Proto, and adding a new project for just a UUID type seems overkill. The Go codersdk package accepts string IDs for some methods as well, so I think it's fine.
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.
I had (wrongly) assumed/remembered that we parsed theAgent protobufs into a model withGuid id types. But, we just leave it as a byte string. You're right, not worth introducing the dep.
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.
Could we move ourUuid implementation to CoderSdk? There will likely be plenty of times we want to interact with UUIDs outside of the protobuf protocols.
| publicpartialclassCoderApiClient | ||
| { | ||
| publicTask<WorkspaceAgent>GetWorkspaceAgent(stringid,CancellationTokenct=default) |
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.
Could we move ourUuid implementation to CoderSdk? There will likely be plenty of times we want to interact with UUIDs outside of the protobuf protocols.
| /// 4122 compliance, but it should provide enough coverage for Coder | ||
| /// Desktop. | ||
| /// </summary> | ||
| publicclassUuid |
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.
Can we move this to CoderSdk?
spikecurtis commentedMay 12, 2025
I suggested we move |
a6f7bb6 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
AgentAppViewModelto handle each buttonUuidtype to work around issues with the built-inGuidtypeModelMergeutility for merging lists with minimal updates to work around constant flashing in the UITODO:
ModelMergeAgentAppViewModelsince I don't think they do anything$SESSION_TOKENreplacementKnown issues:
/icon/cursor.svgseems to be an SVG with an embedded PNG, which I guess can't be rendered properly by WinUIbuttons.mp4
Closes#50