收口个人中心提示与大鱼摘要标签

将个人中心邀请弹窗奖励说明迁移到共享状态提示组件
将大鱼吃小鱼结果页 hero 摘要标签迁移到共享胶囊标签组件
补充充值商品卡购买胶囊暂不抽共享组件的收口文档与团队决策
This commit is contained in:
2026-06-10 16:24:53 +08:00
parent f336352d37
commit cb01d33944
5 changed files with 42 additions and 8 deletions

View File

@@ -237,6 +237,18 @@ describe('BigFishResultView', () => {
expect(blockerStatus?.className).toContain(
'bg-[var(--platform-warm-bg)]',
);
for (const label of ['弱小逆袭', '深海谜境', '1 级']) {
const badge = screen
.getAllByText(label)
.find((element) => element.className.includes('inline-flex'));
if (!badge) {
throw new Error(`missing hero badge for ${label}`);
}
expect(badge.className).toContain('inline-flex');
expect(badge.className).toContain('rounded-full');
expect(badge.className).toContain('border-transparent');
}
});
test('uses platform pill badge for ready publish status', () => {

View File

@@ -454,15 +454,24 @@ export function BigFishResultView({
</div>
</div>
<div className="mt-4 flex flex-wrap gap-2 text-xs text-cyan-50/78">
<span className="rounded-full bg-white/10 px-3 py-1">
<PlatformPillBadge
tone="lightOverlay"
className="border-transparent bg-white/10"
>
{draft.coreFun}
</span>
<span className="rounded-full bg-white/10 px-3 py-1">
</PlatformPillBadge>
<PlatformPillBadge
tone="lightOverlay"
className="border-transparent bg-white/10"
>
{draft.ecologyTheme}
</span>
<span className="rounded-full bg-white/10 px-3 py-1">
</PlatformPillBadge>
<PlatformPillBadge
tone="lightOverlay"
className="border-transparent bg-white/10"
>
{draft.runtimeParams.levelCount}
</span>
</PlatformPillBadge>
</div>
</div>

View File

@@ -3999,12 +3999,17 @@ function ProfileReferralModal({
{center?.inviteCode ?? '--------'}
</div>
</PlatformSubpanel>
<div className="rounded-xl border border-amber-200 bg-amber-50 px-3.5 py-3 text-sm font-semibold leading-6 text-amber-900">
<PlatformStatusMessage
tone="warning"
surface="profile"
size="md"
className="space-y-0.5 px-3.5 font-semibold"
>
<div>
{`邀请一个用户注册,双方都可以获得${center?.rewardPoints ?? 30}泥点。`}
</div>
<div></div>
</div>
</PlatformStatusMessage>
<CopyFeedbackButton
state={copyInviteState}
onClick={onCopyInvite}