merge: 合入总仓库 weiyuan(bfdfb339) web/ 新功能,保留 ui-optimization 的 UI 重构
来源:luoguang/monkey-ai weiyuan@bfdfb339 的 web/(经 sync/main-weiyuan-web-bfdfb339 同步)
同步基准:总仓库 a2ca13cb = 本仓库初始导入 d8f3aee2
冲突处理原则:保留 ui-optimization 的 UI(样式/结构/组件),嫁接 weiyuan 的功能逻辑。
- i18n:按键三方合并;ours 的「令牌→密钥」改名键上移植 theirs 的术语修订
- task-logs / OrgLogs:ours 已手工移植同一功能(6ad95e2),保留 ours
- 删除:OrgCreate(theirs 下线 /org/create)、旧 image 组件与 VideoRegenerateModal(theirs 体验中心重写)、
OrgAvatarSection / PricingBentoPage / CommissionConsole(ours 重构中已移除)
- 测试:users-pagination 的 i18next mock 补 t();theirs 新增文件补 license header
This commit is contained in:
@@ -156,6 +156,7 @@ const Analytics = () => {
|
||||
const [riskRuleModalVisible, setRiskRuleModalVisible] = useState(false);
|
||||
const {
|
||||
loading,
|
||||
overviewLoading,
|
||||
overview,
|
||||
userTrend,
|
||||
financeTrend,
|
||||
@@ -194,6 +195,8 @@ const Analytics = () => {
|
||||
const curSetDateRange = isOrgTab ? org.setDateRange : setDateRange;
|
||||
const curRefresh = isOrgTab ? org.refreshAll : refreshAll;
|
||||
const curLoading = isOrgTab ? org.loading : loading;
|
||||
// 概览卡片自己带骨架屏,不进全页遮罩;但刷新按钮要等它一起转完才算刷新结束
|
||||
const curOverviewLoading = isOrgTab ? false : overviewLoading;
|
||||
|
||||
const handleTabChange = (key) => {
|
||||
setActiveTab(key);
|
||||
@@ -267,7 +270,7 @@ const Analytics = () => {
|
||||
<Button
|
||||
icon={<IconRefresh />}
|
||||
onClick={() => curRefresh(curPeriod, curDateRange, true)}
|
||||
loading={curLoading}
|
||||
loading={curLoading || curOverviewLoading}
|
||||
>
|
||||
{t('刷新')}
|
||||
</Button>
|
||||
@@ -358,7 +361,11 @@ const Analytics = () => {
|
||||
isAnalyticsTabVisible('operations') && (
|
||||
<>
|
||||
{/* Overview Cards */}
|
||||
<OverviewCards overview={overview} t={t} />
|
||||
<OverviewCards
|
||||
overview={overview}
|
||||
loading={overviewLoading}
|
||||
t={t}
|
||||
/>
|
||||
|
||||
{/* Trend Charts */}
|
||||
<div className='grid grid-cols-1 lg:grid-cols-2 gap-4'>
|
||||
|
||||
Reference in New Issue
Block a user