Skip to content

Commit 2bf4b75

Browse files
build: add qc (#2)
* build: add CI
1 parent 73b0d43 commit 2bf4b75

File tree

6 files changed

+122
-158
lines changed

6 files changed

+122
-158
lines changed

.github/workflows/code-check.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
name: Code check
2+
3+
on:
4+
pull_request:
5+
branches: ["*"]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
name: pnpm lint
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
23+
with:
24+
version: 9.0.6
25+
run_install: false
26+
27+
- name: Get pnpm store directory
28+
id: pnpm-cache
29+
run: |
30+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
31+
32+
- uses: actions/cache@v4
33+
name: Setup pnpm cache
34+
with:
35+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
39+
40+
- name: Install dependencies
41+
run: pnpm install
42+
43+
- run: pnpm lint
44+
45+
format:
46+
runs-on: ubuntu-latest
47+
name: pnpm format:check
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
53+
- name: Install Node.js
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: 20
57+
58+
- uses: pnpm/action-setup@v4
59+
name: Install pnpm
60+
with:
61+
version: 9.0.6
62+
run_install: false
63+
64+
- name: Get pnpm store directory
65+
id: pnpm-cache
66+
run: |
67+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
68+
69+
- uses: actions/cache@v4
70+
name: Setup pnpm cache
71+
with:
72+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
73+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
74+
restore-keys: |
75+
${{ runner.os }}-pnpm-store-
76+
77+
- name: Install dependencies
78+
run: pnpm install
79+
80+
- run: pnpm format:check
81+
82+
typecheck:
83+
runs-on: ubuntu-latest
84+
name: pnpm typecheck
85+
steps:
86+
- uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
89+
90+
- name: Install Node.js
91+
uses: actions/setup-node@v4
92+
with:
93+
node-version: 20
94+
95+
- uses: pnpm/action-setup@v4
96+
name: Install pnpm
97+
with:
98+
version: 9.0.6
99+
run_install: false
100+
101+
- name: Get pnpm store directory
102+
id: pnpm-cache
103+
run: |
104+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
105+
106+
- uses: actions/cache@v4
107+
name: Setup pnpm cache
108+
with:
109+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
110+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
111+
restore-keys: |
112+
${{ runner.os }}-pnpm-store-
113+
114+
- name: Install dependencies
115+
run: pnpm install
116+
117+
- run: pnpm typecheck

apps/www/components/color-format-selector.tsx

Lines changed: 0 additions & 71 deletions
This file was deleted.

apps/www/components/color.tsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

apps/www/hooks/use-colors.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

apps/www/registry/elevenlabs-ui/examples/conversation-demo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ const ConversationDemo = () => {
187187
const message = allMessages[currentMessageIndex]
188188
const part = message.parts[0]
189189

190-
if (message.role === "assistant" && part.tokens) {
191-
// Stream assistant messages using tokens
190+
if (message.role === "assistant" && "tokens" in part && part.tokens) {
192191
setStreamingMessageIndex(currentMessageIndex)
193192
setStreamingContent("")
194193

apps/www/registry/elevenlabs-ui/ui/conversation.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export const ConversationContent = ({
3131
<StickToBottom.Content className={cn("p-4", className)} {...props} />
3232
)
3333

34-
export type ConversationEmptyStateProps = ComponentProps<"div"> & {
34+
export type ConversationEmptyStateProps = Omit<
35+
ComponentProps<"div">,
36+
"title"
37+
> & {
3538
title?: React.ReactNode
3639
description?: React.ReactNode
3740
icon?: React.ReactNode

0 commit comments

Comments
 (0)