mxyhi/ok-skills / ai-elements
ai-elements
VerifiedBuild AI chat interfaces using ai-elements components — conversations, messages, tool displays, prompt inputs, and more. Use when the user wants to build a chatbot, AI assistant UI, or any AI-powered chat interface.
scripts/test-results-errors.tsx
View on GitHub"use client";
import {
Test,
TestError,
TestErrorMessage,
TestErrorStack,
TestResults,
TestResultsContent,
TestResultsHeader,
TestResultsSummary,
TestSuite,
TestSuiteContent,
TestSuiteName,
} from "@/components/ai-elements/test-results";
const stackTrace = ` at Object.<anonymous> (/app/src/api.test.ts:45:12)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)`;
const Example = () => (
<TestResults
summary={{
duration: 130,
failed: 1,
passed: 1,
skipped: 0,
total: 2,
}}
>
<TestResultsHeader>
<TestResultsSummary />
</TestResultsHeader>
<TestResultsContent>
<TestSuite defaultOpen name="API" status="failed">
<TestSuiteName />
<TestSuiteContent>
<Test duration={45} name="should fetch data" status="passed" />
<Test duration={85} name="should update" status="failed">
<TestError>
<TestErrorMessage>Expected 200, got 500</TestErrorMessage>
<TestErrorStack>{stackTrace}</TestErrorStack>
</TestError>
</Test>
</TestSuiteContent>
</TestSuite>
</TestResultsContent>
</TestResults>
);
export default Example;
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |