Skip to content

Commit 123708e

Browse files
authored
Merge branch 'dev' into nix-support
2 parents 94fa598 + f6b3ffa commit 123708e

33 files changed

Lines changed: 592 additions & 199 deletions

File tree

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- dev
7-
- windows
7+
- fix-build
88
- v0
99

1010
concurrency: ${{ github.workflow }}-${{ github.ref }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ scoop bucket add extras; scoop install extras/opencode # Windows
3030
choco install opencode # Windows
3131
brew install opencode # macOS and Linux
3232
paru -S opencode-bin # Arch Linux
33+
mise use --pin -g ubi:sst/opencode # Any OS
3334
```
3435

3536
> [!TIP]

bun.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/console/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev",
88
"build": "./script/generate-sitemap.ts && vinxi build && ../../opencode/script/schema.ts ./.output/public/config.json",
99
"start": "vinxi start",
10-
"version": "1.0.65"
10+
"version": "1.0.67"
1111
},
1212
"dependencies": {
1313
"@ibm/plex": "6.4.1",
Lines changed: 94 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,111 @@
1-
.root {
2-
[data-component="empty-state"] {
3-
padding: var(--space-20) var(--space-6);
4-
text-align: center;
5-
border: 1px dashed var(--color-border);
6-
border-radius: var(--border-radius-sm);
7-
display: flex;
8-
flex-direction: column;
9-
gap: var(--space-2);
10-
11-
p {
12-
line-height: 1.5;
13-
font-size: var(--font-size-sm);
14-
color: var(--color-text-muted);
1+
/* Empty state */
2+
[data-component="empty-state"] {
3+
padding: var(--space-20) var(--space-6);
4+
text-align: center;
5+
border: 1px dashed var(--color-border);
6+
border-radius: var(--border-radius-sm);
7+
8+
p {
9+
font-size: var(--font-size-sm);
10+
color: var(--color-text-muted);
11+
}
12+
}
13+
14+
/* Table container */
15+
[data-slot="usage-table"] {
16+
overflow-x: auto;
17+
}
18+
19+
/* Table element */
20+
[data-slot="usage-table-element"] {
21+
width: 100%;
22+
border-collapse: collapse;
23+
font-size: var(--font-size-sm);
24+
25+
thead {
26+
border-bottom: 1px solid var(--color-border);
27+
}
28+
29+
th {
30+
padding: var(--space-3) var(--space-4);
31+
text-align: left;
32+
font-weight: normal;
33+
color: var(--color-text-muted);
34+
text-transform: uppercase;
35+
}
36+
37+
td {
38+
padding: var(--space-3) var(--space-4);
39+
border-bottom: 1px solid var(--color-border-muted);
40+
color: var(--color-text-muted);
41+
font-family: var(--font-mono);
42+
43+
&[data-slot="usage-date"] {
44+
color: var(--color-text);
45+
}
46+
47+
&[data-slot="usage-model"] {
48+
font-family: var(--font-sans);
49+
color: var(--color-text-secondary);
50+
max-width: 200px;
51+
word-break: break-word;
52+
}
53+
54+
&[data-slot="usage-cost"] {
55+
color: var(--color-text);
56+
font-weight: 500;
1557
}
1658
}
1759

18-
[data-slot="usage-table"] {
19-
overflow-x: auto;
60+
tbody tr:last-child td {
61+
border-bottom: none;
2062
}
63+
}
2164

22-
[data-slot="usage-table-element"] {
23-
width: 100%;
24-
border-collapse: collapse;
65+
/* Pagination */
66+
[data-slot="pagination"] {
67+
display: flex;
68+
justify-content: flex-end;
69+
gap: var(--space-2);
70+
padding: var(--space-4) 0;
71+
border-top: 1px solid var(--color-border-muted);
72+
margin-top: var(--space-2);
73+
74+
button {
75+
padding: var(--space-2) var(--space-4);
76+
background: var(--color-bg-secondary);
77+
border: 1px solid var(--color-border);
78+
border-radius: var(--border-radius-sm);
79+
color: var(--color-text);
2580
font-size: var(--font-size-sm);
81+
cursor: pointer;
82+
transition: all 0.15s ease;
2683

27-
thead {
28-
border-bottom: 1px solid var(--color-border);
84+
&:hover:not(:disabled) {
85+
background: var(--color-bg-tertiary);
86+
border-color: var(--color-border-hover);
2987
}
3088

31-
th {
32-
padding: var(--space-3) var(--space-4);
33-
text-align: left;
34-
font-weight: normal;
35-
color: var(--color-text-muted);
36-
text-transform: uppercase;
89+
&:disabled {
90+
opacity: 0.5;
91+
cursor: not-allowed;
3792
}
93+
}
94+
}
3895

96+
/* Mobile responsive */
97+
@media (max-width: 40rem) {
98+
[data-slot="usage-table-element"] {
99+
th,
39100
td {
40-
padding: var(--space-3) var(--space-4);
41-
border-bottom: 1px solid var(--color-border-muted);
42-
color: var(--color-text-muted);
43-
font-family: var(--font-mono);
44-
45-
&[data-slot="usage-date"] {
46-
color: var(--color-text);
47-
}
48-
49-
&[data-slot="usage-model"] {
50-
font-family: var(--font-sans);
51-
font-weight: 400;
52-
color: var(--color-text-secondary);
53-
max-width: 200px;
54-
word-break: break-word;
55-
}
56-
57-
&[data-slot="usage-cost"] {
58-
color: var(--color-text);
59-
}
60-
}
61-
62-
tbody tr {
63-
&:last-child td {
64-
border-bottom: none;
65-
}
101+
padding: var(--space-2) var(--space-3);
102+
font-size: var(--font-size-xs);
66103
}
67104

68-
@media (max-width: 40rem) {
69-
th,
70-
td {
71-
padding: var(--space-2) var(--space-3);
72-
font-size: var(--font-size-xs);
73-
}
74-
75-
th {
76-
&:nth-child(2) /* Model */ {
77-
display: none;
78-
}
79-
}
80-
81-
td {
82-
&:nth-child(2) /* Model */ {
83-
display: none;
84-
}
85-
}
105+
/* Hide Model column on mobile */
106+
th:nth-child(2),
107+
td:nth-child(2) {
108+
display: none;
86109
}
87110
}
88111
}

0 commit comments

Comments
 (0)