devpush 1.0.0-beta.4 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Deploy Docker Compose applications to your own servers with a git push. Run the dashboard on Cloudflare Workers or Node; the Linux agent builds and runs your applications.
4
4
 
5
- <a href="https://devpu.sh/videos/devpush-demo.mp4" target="_blank" rel="noopener noreferrer">
5
+ <a href="https://devpu.sh/videos/devpush-demo.mp4">
6
6
  <img src="https://devpu.sh/videos/readme-demo.png" alt="Watch the devpush demo" width="1200" />
7
7
  </a>
8
8
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "repository": "hunvreus/devpush",
4
- "version": "1.0.0-beta.4",
4
+ "version": "1.0.0-beta.5",
5
5
  "goVersion": "go1.27.3",
6
6
  "protocolVersion": 1,
7
7
  "capabilities": [
@@ -21,16 +21,16 @@
21
21
  "os": "linux",
22
22
  "arch": "amd64",
23
23
  "filename": "devpush-agent-linux-amd64",
24
- "url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.4/devpush-agent-linux-amd64",
25
- "sha256": "8d6bc7c502a8638976c4382da997ffcdd6256ad8b337687b96864d44da4e5188",
24
+ "url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.5/devpush-agent-linux-amd64",
25
+ "sha256": "de7b000f1ad14f2c55c3c4951b72247b0d180f9d5f488d140988e565e2498acb",
26
26
  "size": 8212604
27
27
  },
28
28
  {
29
29
  "os": "linux",
30
30
  "arch": "arm64",
31
31
  "filename": "devpush-agent-linux-arm64",
32
- "url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.4/devpush-agent-linux-arm64",
33
- "sha256": "a9541066f075da971967896370f8be100bcbf9de44240004481ac222d511bcc1",
32
+ "url": "https://github.com/hunvreus/devpush/releases/download/v1.0.0-beta.5/devpush-agent-linux-arm64",
33
+ "sha256": "39c9a95f521592412374a56cd43bcf9f941f37ba9a62f20292b8cfc0f9dc3dbb",
34
34
  "size": 7536764
35
35
  }
36
36
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devpush",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#devpush/*": {
@@ -36,7 +36,7 @@ export function SignOutMenuItem() {
36
36
  }
37
37
  }}
38
38
  >
39
- {pending ? 'Signing out…' : 'Sign out'}
39
+ Sign out
40
40
  </DropdownMenuItem>
41
41
  )
42
42
  }
@@ -184,7 +184,11 @@ function TeamHeader({
184
184
  currentProject && 'max-sm:hidden',
185
185
  )}
186
186
  >
187
- <Link to="/" aria-label="devpush">
187
+ <Link
188
+ to={activeUserContext ? '/$teamSlug' : '/'}
189
+ params={activeUserContext ? { teamSlug: activeUserContext.defaultTeam.slug } : undefined}
190
+ aria-label="devpush"
191
+ >
188
192
  <LogoMark className="size-4.5 shrink-0 transition-colors duration-200 group-hover:text-orange-600 group-focus-visible:text-orange-600" />
189
193
  </Link>
190
194
  </Button>
@@ -1,11 +1,13 @@
1
1
  import { pageHead } from '#devpush/lib/page-head'
2
2
  import { createFileRoute, redirect } from '@tanstack/react-router'
3
3
 
4
- import { getCurrentUserContext } from '#devpush/server/auth/context'
4
+ import { currentUserContextQueryOptions } from '#devpush/features/auth/current-user-context-query'
5
5
 
6
6
  export const Route = createFileRoute('/')({
7
- loader: async () => {
8
- const context = await getCurrentUserContext()
7
+ loader: async ({ context: routerContext }) => {
8
+ const context = await routerContext.queryClient.fetchQuery(
9
+ currentUserContextQueryOptions(),
10
+ )
9
11
 
10
12
  if (!context) {
11
13
  throw redirect({ to: '/auth/login' })