feat(spaces): добавить изолированные пространства и multi-user
Docker / build (push) Failing after 20s

Полная изоляция данных по space, Share (ACL) и Assign, switcher и участники в UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
DenozordecandCursor committed 2026-07-18 15:42:54 +07:00
1 parent f26b2c8777
commit e360efb885
47 files changed
+2675 -237

No files matched your search

+14 -1
View File
@@ -1,16 +1,29 @@
import { queryClient } from '../lib/queryClient'
import { api } from '../lib/api-client'
import { getStoredSpaceId } from '../lib/space'
export const snapshotKeys = {
all: ['snapshot'] as const,
space: (spaceId: string | null) => ['snapshot', spaceId ?? 'default'] as const,
}
export const snapshotQueryOptions = () => ({
queryKey: snapshotKeys.all,
queryKey: snapshotKeys.space(getStoredSpaceId()),
queryFn: () => api.fetchData(),
staleTime: 30_000,
})
export const spacesKeys = {
all: ['spaces'] as const,
members: (spaceId: string) => ['spaces', spaceId, 'members'] as const,
}
export const spacesQueryOptions = () => ({
queryKey: spacesKeys.all,
queryFn: () => api.fetchSpaces(),
staleTime: 60_000,
})
export const ratesKeys = {
all: ['rates'] as const,
}