mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
✨ feat: workspace backend service slice (#15560)
Backend-only slice of the workspace feature (server routers/services, database models with workspaceId threading, openapi middleware, business/server stubs, const/types). Excludes all UI (features/routes/store/hooks). Deploys dark behind the workspace feature flag. Includes open-source stub fixes: workspaceCreds router stub, ChargeParams workspaceId, usage.ts null-coalesce, DBMessageItem.workspaceId. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,10 @@ const alias = {
|
||||
'@/utils/electron': resolve(__dirname, './src/utils/electron'),
|
||||
'@/utils/markdownToTxt': resolve(__dirname, './src/utils/markdownToTxt'),
|
||||
'@/utils/sanitizeFileName': resolve(__dirname, './src/utils/sanitizeFileName'),
|
||||
// Workspace store lives in the cloud repo; submodule-only tests get a stub
|
||||
// that reports no active workspace so workspace-aware nav helpers behave
|
||||
// like plain react-router.
|
||||
'@/store/workspace': resolve(__dirname, './tests/mocks/storeWorkspace.ts'),
|
||||
'~test-utils': resolve(__dirname, './tests/utils.tsx'),
|
||||
'lru_map': resolve(__dirname, './tests/mocks/lru_map'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user