Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add workspace apps#136

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

Merged
ethanndickson merged 8 commits intomainfromethan/workspace-apps
May 1, 2025
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedApr 22, 2025
edited
Loading

Closes#94.

Screenshot 2025-04-22 at 2 10 32 pm
workspaceappsdemo.mov

The cursor does not change to a pointing hand as it should when screen-recording, and the display name of the app is also shown on hover:
image

As per the linked issue, this only shows the first five apps. If there's less than 5 apps, they won't be centered (I think this looks a bit better):

image

Later designs will likely include a Workspace window where all the apps can be viewed, and potentially reordered to control what is shown on the tray.

EDIT: Web apps have been filtered out of the above examples, as we don't currently have a way to determine whether they will work properly via Coder Connect.

sachk reacted with hooray emoji
@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedApr 22, 2025
edited
Loading

@ethanndicksonethanndickson marked this pull request as ready for reviewApril 22, 2025 04:27
.padding(.top, 10)
}
}
.task { await loadApps() }
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

.task on a view ensures for each instance of the view, only one copy of the task is running at any given time, and if the view re-renders (such as a workspace going offline), the existing task will be cancelled, and a new one created, which is exactly what we want.

@@ -66,6 +68,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}

func applicationDidFinishLaunching(_: Notification) {
// Init SVG loader
SDImageCodersManager.shared.addCoder(SDImageSVGCoder.shared)
Copy link
MemberAuthor

@ethanndicksonethanndicksonApr 22, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

SwiftUI has a greatAsyncImage View, but it doesn't support svgs. FWICT there's not even a public macOS API for rendering them.

I also found thishttps://gist.github.com/erezhod/6e8e6af3c940d88a706a9d936c8838e6, but it doesn't have a license attached, and I didn't feel like reaching out to the two separate authors to ask.

@ethanndickson
Copy link
MemberAuthor

As discussed, I've filtered out the web apps:
image

matifali reacted with thumbs up emoji

@matifali
Copy link
Member

We should also filter out apps whereurl starts withhttp(s), i.e., internal wikies or links to internal developer portals. There is no point in adding external websites to Coder Desktop.

ethanndickson reacted with thumbs up emoji

@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedMay 1, 2025
edited
Loading

Merge activity

  • Apr 30, 10:18 PM EDT: A user started a stack merge that includes this pull request viaGraphite.
  • Apr 30, 10:18 PM EDT:@ethanndickson merged this pull request withGraphite.

@ethanndicksonethanndickson merged commit5f067b6 intomainMay 1, 2025
4 checks passed
@ethanndicksonethanndickson deleted the ethan/workspace-apps branchMay 1, 2025 02:18
@ethanndicksonethanndickson self-assigned thisMay 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@matifalimatifalimatifali left review comments

@deansheatherdeansheatherdeansheather approved these changes

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Button Auto-Population for External Apps
3 participants
@ethanndickson@matifali@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp