fix: Bug Fixes

- Fixed the menu order in the user center
- Added a disabled RAPTOR scope
- Fixed some style issues
This commit is contained in:
chanx 2025-11-12 14:07:29 +08:00
parent 79de01ae8d
commit 363e79c53c
5 changed files with 12 additions and 12 deletions

View file

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

View file

@ -127,7 +127,7 @@ const RaptorFormFields = ({
</FormLabel> </FormLabel>
<div className="w-3/4"> <div className="w-3/4">
<FormControl> <FormControl>
<Radio.Group {...field}> <Radio.Group {...field} disabled={!!data?.finish_at}>
<div className={'flex gap-4 w-full text-text-secondary '}> <div className={'flex gap-4 w-full text-text-secondary '}>
<Radio value="dataset">{t('scopeDataset')}</Radio> <Radio value="dataset">{t('scopeDataset')}</Radio>
<Radio value="file">{t('scopeSingleFile')}</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).', 'Please enter the API key (for locally deployed model,ignore this).',
apiKeyTip: apiKeyTip:
'The API key can be obtained by registering the corresponding LLM supplier.', 'The API key can be obtained by registering the corresponding LLM supplier.',
showMoreModels: 'View Models', showMoreModels: 'View models',
hideModels: 'Hide Models', hideModels: 'Hide models',
baseUrl: 'Base-Url', baseUrl: 'Base-Url',
baseUrlTip: baseUrlTip:
'If your API key is from OpenAI, just ignore it. Any other intermediate providers will give this base url with the API key.', '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', ttsModel: 'TTS',
ttsModelTip: 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.', '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', upgrade: 'Upgrade',
addLlmTitle: 'Add LLM', addLlmTitle: 'Add LLM',
editLlmTitle: 'Edit {{name}} Model', editLlmTitle: 'Edit {{name}} Model',
@ -922,7 +922,7 @@ Example: general/v2/`,
add: 'Add', add: 'Add',
updateDate: 'Date', updateDate: 'Date',
role: 'State', role: 'State',
invite: 'Invite Member', invite: 'Invite member',
agree: 'Accept', agree: 'Accept',
refuse: 'Decline', refuse: 'Decline',
teamMembers: 'Team members', teamMembers: 'Team members',

View file

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

View file

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