Fix: Bug Fixes - Added disabled logic RAPTOR scope #10703 (#11207)

### What problem does this PR solve?

Fix: Bug Fixes #10703

- Fixed the menu order in the user center
- Added a disabled RAPTOR scope
- Fixed some style issues

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-12 14:36:30 +08:00
committed by GitHub
parent 8406a5ea47
commit a81f6d1b24
6 changed files with 13 additions and 13 deletions

View File

@ -149,13 +149,13 @@ export const SelectWithSearch = forwardRef<
<span className="leading-none truncate">{selectLabel}</span>
</span>
) : (
<span className="text-muted-foreground">{placeholder}</span>
<span className="text-text-disabled">{placeholder}</span>
)}
<div className="flex items-center justify-between">
{value && allowClear && (
<>
<XIcon
className="h-4 mx-2 cursor-pointer text-muted-foreground"
className="h-4 mx-2 cursor-pointer text-text-disabled"
onClick={handleClear}
/>
<Separator

View File

@ -127,7 +127,7 @@ const RaptorFormFields = ({
</FormLabel>
<div className="w-3/4">
<FormControl>
<Radio.Group {...field}>
<Radio.Group {...field} disabled={!!data?.finish_at}>
<div className={'flex gap-4 w-full text-text-secondary '}>
<Radio value="dataset">{t('scopeDataset')}</Radio>
<Radio value="file">{t('scopeSingleFile')}</Radio>

View File

@ -788,8 +788,8 @@ Example: general/v2/`,
'Please enter the API key (for locally deployed model,ignore this).',
apiKeyTip:
'The API key can be obtained by registering the corresponding LLM supplier.',
showMoreModels: 'View Models',
hideModels: 'Hide Models',
showMoreModels: 'View models',
hideModels: 'Hide models',
baseUrl: 'Base-Url',
baseUrlTip:
'If your API key is from OpenAI, just ignore it. Any other intermediate providers will give this base url with the API key.',
@ -814,7 +814,7 @@ Example: general/v2/`,
ttsModel: 'TTS',
ttsModelTip:
'The default text-to-speech model. If you cannot find a model from the dropdown, check https://ragflow.io/docs/dev/supported_models to see if your model provider supports this model.',
workspace: 'Workspace',
workspace: 'workspace',
upgrade: 'Upgrade',
addLlmTitle: 'Add LLM',
editLlmTitle: 'Edit {{name}} Model',
@ -922,7 +922,7 @@ Example: general/v2/`,
add: 'Add',
updateDate: 'Date',
role: 'State',
invite: 'Invite Member',
invite: 'Invite member',
agree: 'Accept',
refuse: 'Decline',
teamMembers: 'Team members',

View File

@ -126,7 +126,7 @@ function AdminLogin() {
color="rgb(128, 255, 248)"
/>
<BgSvg />
<BgSvg isPaused={true} />
<div className="absolute top-3 left-0 w-full">
<div className="absolute mt-12 ml-12 flex items-center">

View File

@ -17,9 +17,11 @@ import { useEffect } from 'react';
import { useHandleMenuClick } from './hooks';
const menuItems = [
{ icon: User, label: t('setting.profile'), key: Routes.Profile },
{ icon: Users, label: t('setting.team'), key: Routes.Team },
{ icon: Server, label: t('setting.dataSources'), key: Routes.DataSource },
{ icon: Box, label: t('setting.model'), key: Routes.Model },
{ icon: Banknote, label: 'MCP', key: Routes.Mcp },
{ icon: Users, label: t('setting.team'), key: Routes.Team },
{ icon: User, label: t('setting.profile'), key: Routes.Profile },
{ icon: Unplug, label: t('setting.api'), key: Routes.Api },
// {
// icon: MessageSquareQuote,
@ -27,10 +29,8 @@ const menuItems = [
// key: Routes.Profile,
// },
// { icon: TextSearch, label: 'Retrieval Templates', key: Routes.Profile },
{ icon: Server, label: t('setting.dataSources'), key: Routes.DataSource },
// { icon: Cog, label: t('setting.system'), key: Routes.System },
// { icon: Banknote, label: 'Plan', key: Routes.Plan },
{ icon: Banknote, label: 'MCP', key: Routes.Mcp },
];
export function SideBar() {

View File

@ -367,7 +367,7 @@ const routes = [
component: '@/pages/user-setting',
layout: false,
routes: [
{ path: '/user-setting', redirect: '/user-setting/profile' },
{ path: '/user-setting', redirect: `/user-setting${Routes.DataSource}` },
{
path: '/user-setting/profile',
// component: '@/pages/user-setting/setting-profile',