统一业务台账首屏设计(05-30-unified-page-design-review)
这个提交包含在:
@@ -515,11 +515,10 @@ function SummaryStrip({
|
||||
reminderCount: number;
|
||||
}) {
|
||||
const attentionCount = blockerCount + reminderCount;
|
||||
const summaryText = actionCount > 0
|
||||
? `今天有 ${actionCount} 件待处理${progressCount > 0 ? `,${progressCount} 个进度更新` : ""}${attentionCount > 0 ? `,${attentionCount} 个团队或管理提醒` : ""}。`
|
||||
: progressCount > 0 || attentionCount > 0
|
||||
? `今天没有必须处理的事项${progressCount > 0 ? `,有 ${progressCount} 个进度更新` : ""}${attentionCount > 0 ? `,${attentionCount} 个团队或管理提醒` : ""}。`
|
||||
: "今天没有需要你处理的事项。";
|
||||
const summaryParts = [`待处理 ${actionCount}`];
|
||||
if (progressCount > 0) summaryParts.push(`进度 ${progressCount}`);
|
||||
if (attentionCount > 0) summaryParts.push(`提醒 ${attentionCount}`);
|
||||
const summaryText = summaryParts.join(" · ");
|
||||
|
||||
return (
|
||||
<section className="portal-work-summary" data-testid="portal-work-summary">
|
||||
@@ -545,7 +544,6 @@ function WorkItemRow({ item }: { item: WorkItem }) {
|
||||
</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className="portal-task-row__title">{item.title}</span>
|
||||
<span className="portal-task-row__reason">{item.reason}</span>
|
||||
</span>
|
||||
<span className="portal-task-row__meta">{item.meta}</span>
|
||||
<span className="portal-task-row__action">{item.actionLabel}</span>
|
||||
@@ -578,7 +576,6 @@ function QuickEntryPanel({ entries }: { entries: QuickEntry[] }) {
|
||||
</span>
|
||||
<span className="min-w-0">
|
||||
<span className="portal-quick-entry__title">{entry.label}</span>
|
||||
<span className="portal-quick-entry__action">{entry.actionLabel}</span>
|
||||
</span>
|
||||
</Link>
|
||||
))}
|
||||
@@ -601,8 +598,7 @@ function TodayActionPanel({
|
||||
) : (
|
||||
<div className="portal-empty-start">
|
||||
<div>
|
||||
<div className="portal-empty-start__title">今天没有需要你处理的事项。</div>
|
||||
<div className="portal-empty-start__desc">需要发起新申请或回看进度时,从下面的常用动作进入。</div>
|
||||
<div className="portal-empty-start__title">暂无待处理</div>
|
||||
</div>
|
||||
{emptyActions.length ? (
|
||||
<div className="portal-inline-actions">
|
||||
|
||||
在新工单中引用
屏蔽一个用户