Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AIBanner should render AI banner after data loaded 1`] = `
<body>
<div>
<div
class="css-1su4mhq"
>
<div
class="ant-card ant-card-bordered ai-banner-card"
>
<div
class="ant-card-body"
>
<div
class="banner-content"
>
<div
class="left-section"
>
<div
class="insight-header"
>
<div
class="insight-icon"
>
<svg
fill="none"
height="16"
stroke="#7C3AED"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.937A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.582a.5.5 0 0 1 0 .962L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0z"
/>
<path
d="M20 3v4m2-2h-4M4 17v2m1-1H3"
stroke-width="1.5"
/>
</svg>
</div>
<div
class="insight-title"
>
AI治理效能洞察
</div>
</div>
<div
class="insight-description"
>
基于大模型实时监控规范与性能, AI驱动全链路质量闭环。
</div>
<a
class="ant-typography view-report-link"
>
查看完整报告

<span
aria-label="right"
class="anticon anticon-right"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
</a>
</div>
<div
class="middle-section"
>
<div
class="metric-item"
>
<div
class="metric-header"
>
<span
aria-label="clock-circle"
class="anticon anticon-clock-circle metric-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="clock-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
/>
</svg>
</span>
<span
class="metric-label"
>
风险拦截
</span>
</div>
<div
class="metric-value"
>
18
<span
class="metric-unit"
>
</span>
</div>
<span
class="ant-tag ant-tag-green metric-tag basic-tag-wrapper basic-default-tag-wrapper css-6zycqe"
>
</span>
</div>
<div
class="metric-item"
>
<div
class="metric-header"
>
<span
aria-label="thunderbolt"
class="anticon anticon-thunderbolt metric-icon"
role="img"
>
<svg
aria-hidden="true"
data-icon="thunderbolt"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"
/>
</svg>
</span>
<span
class="metric-label"
>
性能优化
</span>
</div>
<div
class="metric-value"
>
12
<span
class="metric-unit"
>
</span>
</div>
<span
class="ant-tag ant-tag-cyan metric-tag basic-tag-wrapper basic-default-tag-wrapper css-vcjtbd"
>
</span>
</div>
</div>
<div
class="right-section"
>
<button
class="ant-btn ant-btn-primary ant-btn-lg action-button primary-button basic-button-wrapper css-10ae2zl"
type="button"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
AI 性能引擎
</div>
<div
class="ant-space-item"
>
<span
aria-label="right"
class="anticon anticon-right"
role="img"
>
<svg
aria-hidden="true"
data-icon="right"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
/>
</svg>
</span>
</div>
</div>
</button>
<button
class="ant-btn ant-btn-default ant-btn-lg action-button secondary-button basic-button-wrapper css-10ae2zl"
type="button"
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
>
AI 智能修正
</div>
<div
class="ant-space-item"
>
<span
aria-label="check-circle"
class="anticon anticon-check-circle"
role="img"
>
<svg
aria-hidden="true"
data-icon="check-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"
/>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
</svg>
</span>
</div>
</div>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
`;

exports[`AIBanner should render loading state on initial render 1`] = `
<body>
<div>
<div
class="css-1su4mhq"
>
<div
class="ant-card ant-card-loading ant-card-bordered ai-banner-card"
>
<div
class="ant-card-body"
>
<div
class="ant-skeleton ant-skeleton-active"
>
<div
class="ant-skeleton-content"
>
<ul
class="ant-skeleton-paragraph"
>
<li />
<li />
<li />
<li
style="width: 61%;"
/>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
`;
Loading
Loading