收口反馈页次级动作按钮

将反馈页查看记录动作迁移到 PlatformActionButton ghost pill

补充反馈页测试断言公共按钮样式与暂未开放提示

更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 13:16:34 +08:00
parent 25a30a1111
commit d5b3133c8d
4 changed files with 17 additions and 7 deletions

View File

@@ -31,9 +31,14 @@ test('PlatformFeedbackView renders reference feedback fields', () => {
expect(screen.getByText('上传凭证')).toBeTruthy();
expect(screen.getByLabelText('联系电话')).toBeTruthy();
expect(screen.getByRole('button', { name: '提交' })).toBeTruthy();
expect(
screen.getByRole('button', { name: '查看反馈与投诉记录' }),
).toBeTruthy();
const feedbackHistoryButton = screen.getByRole('button', {
name: '查看反馈与投诉记录',
});
expect(feedbackHistoryButton).toBeTruthy();
expect(feedbackHistoryButton.className).toContain('platform-button--ghost');
expect(feedbackHistoryButton.className).toContain('rounded-full');
fireEvent.click(feedbackHistoryButton);
expect(screen.getByText('反馈记录暂未开放')).toBeTruthy();
const descriptionPanel = screen.getByLabelText('问题描述').closest('section');
const evidencePanel = screen

View File

@@ -338,13 +338,15 @@ export function PlatformFeedbackView({
{isSubmitting ? '提交中' : '提交'}
</PlatformActionButton>
<button
type="button"
<PlatformActionButton
tone="ghost"
shape="pill"
size="xs"
onClick={() => showTemporaryNotice('反馈记录暂未开放')}
className="self-center px-3 py-2 text-sm font-semibold text-[var(--platform-cool-text)]"
className="self-center"
>
</button>
</PlatformActionButton>
</main>
</div>
</div>