Skip to content

Commit 941df3f

Browse files
committed
Merge branch 'support/anybase' of ssh://github.com/apecloud/ApeRAG into support/anybase
2 parents 14af891 + 1888ee0 commit 941df3f

File tree

5 files changed

+22
-92
lines changed

5 files changed

+22
-92
lines changed

web/src/app/workspace/bots/[botId]/bot-delete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const BotDelete = ({ children }: { children?: React.ReactNode }) => {
3232
botId: bot.id,
3333
});
3434
setDeleteVisible(false);
35-
router.push('/bots');
35+
router.push('/workspace/bots');
3636
}
3737
}, [bot?.id, router]);
3838

web/src/app/workspace/bots/[botId]/bot-sharing.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ export const BotSharing = ({ children }: { children?: React.ReactNode }) => {
130130
options={departments as TreeSelectItem[]}
131131
values={selectedDepartents.filter((d) => d !== '*')}
132132
onValuesChange={(v) => setSelectedDepartents(v)}
133-
className={cn('relative h-60 overflow-auto rounded-md border')}
133+
className={cn(
134+
'relative h-60 max-w-115 overflow-auto rounded-md border',
135+
)}
134136
/>
135137
{isSharedGlobal && (
136138
<div className="bg-accent/50 absolute top-0 left-0 h-full w-full" />

web/src/app/workspace/bots/bot-delete.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.

web/src/app/workspace/collections/[collectionId]/collection-sharing.tsx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,26 +129,27 @@ export const CollectionSharing = ({
129129
/>
130130
</Label>
131131

132-
<div>
133-
<div className="mb-2 flex h-4 flex-row items-center justify-between gap-2 text-sm">
134-
<div>
135-
{page_bot('shared_department')} (
136-
{selectedDepartents.filter((d) => d !== '*').length})
137-
</div>
132+
<div className="mb-2 flex h-4 flex-row items-center justify-between gap-2 text-sm">
133+
<div>
134+
{page_bot('shared_department')} (
135+
{selectedDepartents.filter((d) => d !== '*').length})
138136
</div>
137+
</div>
139138

140-
<div className="relative h-60">
141-
<TreeMultipleSelect
142-
options={departments as TreeSelectItem[]}
143-
values={selectedDepartents.filter((d) => d !== '*')}
144-
onValuesChange={(v) => setSelectedDepartents(v)}
145-
className={cn('relative h-60 overflow-auto rounded-md border')}
146-
/>
147-
{isSharedGlobal && (
148-
<div className="bg-accent/50 absolute top-0 left-0 h-full w-full" />
139+
<div className="relative h-60">
140+
<TreeMultipleSelect
141+
options={departments as TreeSelectItem[]}
142+
values={selectedDepartents.filter((d) => d !== '*')}
143+
onValuesChange={(v) => setSelectedDepartents(v)}
144+
className={cn(
145+
'relative h-60 max-w-115 overflow-auto rounded-md border',
149146
)}
150-
</div>
147+
/>
148+
{isSharedGlobal && (
149+
<div className="bg-accent/50 absolute top-0 left-0 h-full w-full" />
150+
)}
151151
</div>
152+
152153
<DialogFooter>
153154
<Button variant="outline" onClick={() => setSharingVisible(false)}>
154155
{common_action('cancel')}

web/src/app/workspace/collections/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default async function Page() {
3535
const res = await serverApi.defaultApi.collectionsGet({
3636
page: 1,
3737
pageSize: 100,
38-
includeSubscribed: true,
38+
includeSubscribed: false,
3939
});
4040
collections = res.data.items || [];
4141
} catch (err) {

0 commit comments

Comments
 (0)