feat: full project sync - CI fixes, frontend, workspace API, and all changes

This commit is contained in:
Tomas Dvorak
2026-04-27 09:08:07 +02:00
parent a07fca997e
commit 89b9390c14
109 changed files with 21120 additions and 545 deletions
+17
View File
@@ -0,0 +1,17 @@
package workspace
import "context"
type currentSession struct {
user *User
session *Session
}
func withUser(ctx context.Context, user *User, session *Session) context.Context {
return context.WithValue(ctx, currentUserKey, currentSession{user: user, session: session})
}
func currentUser(r interface{ Context() context.Context }) (*User, *Session) {
current, _ := r.Context().Value(currentUserKey).(currentSession)
return current.user, current.session
}