feat(editor): put current user in first on database user select (#13320)

This commit is contained in:
EYHN
2025-07-27 15:53:17 +08:00
committed by GitHub
parent be55442f38
commit 9899fad000
4 changed files with 46 additions and 9 deletions
@@ -5,6 +5,7 @@ import type { Signal } from '@preact/signals-core';
import type { AffineUserInfo } from './types';
export interface UserService {
currentUserInfo$: Signal<AffineUserInfo | null>;
userInfo$(id: string): Signal<AffineUserInfo | null>;
isLoading$(id: string): Signal<boolean>;
error$(id: string): Signal<string | null>; // user friendly error string