fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -16,6 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatIdReference } from '../../helpers/safeDisplay';
|
||||
import { formatUserReference } from '../../helpers/safeDisplay';
|
||||
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
@@ -82,7 +84,7 @@ export const HopChain = ({ hops, outcome, t }) => {
|
||||
>
|
||||
<span className='font-medium truncate'>
|
||||
{t('第 {{n}} 跳', { n: i + 1 })} ·{' '}
|
||||
{hop.channel_name || `#${hop.channel_id}`}
|
||||
{hop.channel_name || formatIdReference(hop.channel_id)}
|
||||
</span>
|
||||
{failed ? (
|
||||
<span className='quality-mono'>
|
||||
@@ -199,7 +201,7 @@ const QualityDetail = ({ quality, t }) => {
|
||||
width: 130,
|
||||
render: (v, row) => (
|
||||
<span className='block truncate max-w-[130px]' title={v}>
|
||||
{v || `#${row.user_id}`}
|
||||
{v || formatUserReference('', row.user_id)}
|
||||
</span>
|
||||
),
|
||||
},
|
||||
@@ -212,7 +214,7 @@ const QualityDetail = ({ quality, t }) => {
|
||||
render: (v, row) =>
|
||||
row.organization_id ? (
|
||||
<span className='block truncate max-w-[130px]' title={v}>
|
||||
{v || `#${row.organization_id}`}
|
||||
{v || formatIdReference(row.organization_id)}
|
||||
</span>
|
||||
) : (
|
||||
<span className='text-[var(--text-secondary)]'>
|
||||
@@ -240,7 +242,7 @@ const QualityDetail = ({ quality, t }) => {
|
||||
width: 140,
|
||||
render: (v, row) => (
|
||||
<span className='block truncate max-w-[140px]' title={v}>
|
||||
{row.channel_id ? v || `#${row.channel_id}` : '-'}
|
||||
{row.channel_id ? v || formatIdReference(row.channel_id) : '-'}
|
||||
</span>
|
||||
),
|
||||
},
|
||||
@@ -452,7 +454,9 @@ const QualityDetail = ({ quality, t }) => {
|
||||
<OutcomeTag value={row.outcome} t={t} />
|
||||
<span className='text-xs'>
|
||||
{row.channel_name ||
|
||||
(row.channel_id ? `#${row.channel_id}` : '')}
|
||||
(row.channel_id
|
||||
? formatIdReference(row.channel_id)
|
||||
: '')}
|
||||
</span>
|
||||
{(row.status_code || row.error_code) && (
|
||||
<span className='quality-mono'>
|
||||
|
||||
Reference in New Issue
Block a user