Skip to content

Commit bd3af62

Browse files
committed
Fix board drag clone, filters, and tokenize integration cards
1 parent 2ca37ca commit bd3af62

5 files changed

Lines changed: 136 additions & 106 deletions

File tree

‎src/assets/styles/index.scss‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,22 @@ body {
8080
opacity: 0;
8181
}
8282
}
83+
84+
.sortable-drag,
85+
.sortable-fallback {
86+
box-shadow: var(--shadow-lg) !important;
87+
cursor: grabbing !important;
88+
opacity: 0.95 !important;
89+
pointer-events: none !important;
90+
transition: none !important;
91+
}
92+
93+
.sortable-drag *,
94+
.sortable-fallback * {
95+
transition: none !important;
96+
animation: none !important;
97+
}
98+
99+
.sortable-chosen {
100+
cursor: grabbing !important;
101+
}

‎src/components/categories/CategoryCursorSettings.vue‎

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,124 @@
11
<template>
2-
<div v-if="!isCreate" class="mt-6 border-t border-gray-200 pt-6 dark:border-gray-700">
3-
<h3 class="mb-4 text-lg font-bold text-gray-800 dark:text-gray-200">
2+
<div v-if="!isCreate" class="mt-6 border-t border-line pt-6">
3+
<h3 class="mb-4 text-base font-semibold text-ink">
44
Cursor AI Integration
55
</h3>
66

77
<div v-if="loading" class="flex items-center justify-center py-8">
8-
<div class="h-8 w-8 animate-spin rounded-full border-4 border-violet-500 border-t-transparent"></div>
8+
<div class="h-8 w-8 animate-spin rounded-full border-4 border-brand border-t-transparent"></div>
99
</div>
1010

11-
<div v-else-if="!configured" class="rounded-lg border border-gray-300 bg-gray-50 p-6 dark:border-gray-600 dark:bg-gray-800">
12-
<div class="mb-4">
13-
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
14-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
15-
</svg>
11+
<div v-else-if="!configured" class="rounded-card border border-line bg-surface-sunken p-6 shadow-tmgr-xs">
12+
<div class="mb-4 flex justify-center">
13+
<div class="flex h-12 w-12 items-center justify-center rounded-pill bg-surface text-ink-subtle">
14+
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
15+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
16+
</svg>
17+
</div>
1618
</div>
17-
<h4 class="mb-2 text-center text-lg font-semibold text-gray-700 dark:text-gray-300">
19+
<h4 class="mb-2 text-center text-base font-semibold text-ink">
1820
Configure Cursor AI Agent
1921
</h4>
20-
<p class="mb-4 text-center text-sm text-gray-600 dark:text-gray-400">
22+
<p class="mx-auto mb-5 max-w-md text-center text-sm text-ink-muted">
2123
Add your Cursor API key to enable AI-powered code generation for this category
2224
</p>
2325

24-
<div class="mt-4 space-y-4">
26+
<div class="mt-4 space-y-3">
2527
<div>
26-
<label for="cursorApiKey" class="mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300">
28+
<label for="cursorApiKey" class="mb-1.5 block text-sm font-semibold text-ink">
2729
Cursor API Key
2830
</label>
2931
<input
3032
id="cursorApiKey"
3133
v-model="apiKey"
3234
type="password"
3335
placeholder="cur_xxxxxxxxxxxxxxxx"
34-
class="w-full rounded border border-gray-300 bg-white px-3 py-2 text-sm focus:border-violet-500 focus:outline-none focus:ring-1 focus:ring-violet-500 dark:border-gray-600 dark:bg-gray-900 dark:text-white"
36+
class="h-10 w-full rounded-card border border-line bg-surface px-3 font-mono text-sm text-ink outline-none placeholder:text-ink-faint focus:border-line-strong"
3537
/>
36-
<p class="mt-1 text-xs text-gray-500 dark:text-gray-400">
38+
<p class="mt-1.5 text-xs text-ink-muted">
3739
Get your API key from
38-
<a href="https://cursor.com/dashboard?tab=cloud-agents" target="_blank" class="text-violet-600 hover:underline dark:text-violet-400">
40+
<a href="https://cursor.com/dashboard?tab=cloud-agents" target="_blank" class="text-brand-fg hover:underline">
3941
Cursor Dashboard
4042
</a>
4143
</p>
4244
</div>
4345

44-
<div v-if="error" class="rounded border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400">
46+
<div v-if="error" class="rounded-card border border-status-fix/40 bg-status-fix-bg p-3 text-sm text-status-fix-fg">
4547
{{ error }}
4648
</div>
4749

4850
<button
4951
@click="saveKey"
5052
:disabled="!apiKey || saving"
51-
class="w-full rounded bg-violet-500 px-4 py-2 text-sm font-medium text-white transition hover:bg-violet-600 disabled:opacity-50"
53+
class="h-10 w-full rounded-pill bg-brand text-sm font-semibold text-white shadow-tmgr-xs transition-colors hover:bg-brand-hover disabled:opacity-50"
5254
>
53-
{{ saving ? 'Validating...' : 'Save API Key' }}
55+
{{ saving ? 'Validating…' : 'Save API Key' }}
5456
</button>
5557
</div>
5658
</div>
5759

5860
<div v-else class="space-y-4">
59-
<div class="rounded-lg border border-violet-200 bg-violet-50 p-4 dark:border-violet-800 dark:bg-violet-900/20">
60-
<div class="flex items-center justify-between">
61+
<div class="rounded-card border border-brand/30 bg-brand-bg p-4">
62+
<div class="flex items-center justify-between gap-3">
6163
<div>
62-
<p class="font-semibold text-violet-800 dark:text-violet-300">
64+
<p class="text-sm font-semibold text-brand-fg">
6365
Cursor AI Agent Configured
6466
</p>
65-
<p class="mt-1 text-xs text-violet-700 dark:text-violet-400">
67+
<p class="mt-1 text-xs text-brand-fg/80">
6668
Ready to assist with code generation for this category
6769
</p>
6870
</div>
69-
<svg class="h-6 w-6 text-violet-600 dark:text-violet-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
71+
<svg class="h-5 w-5 shrink-0 text-brand-fg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
7072
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
7173
</svg>
7274
</div>
7375
</div>
7476

75-
<div class="flex gap-2">
77+
<div class="flex flex-wrap gap-2">
7678
<button
7779
@click="editing = true"
78-
class="rounded bg-gray-500 px-4 py-2 text-sm font-medium text-white transition hover:bg-gray-600"
80+
class="inline-flex h-9 items-center justify-center rounded-pill border border-line bg-surface px-4 text-sm font-semibold text-ink transition-colors hover:bg-surface-hover"
7981
>
8082
Update Key
8183
</button>
8284
<button
8385
@click="removeKey"
8486
:disabled="removing"
85-
class="rounded bg-red-500 px-4 py-2 text-sm font-medium text-white transition hover:bg-red-600 disabled:opacity-50"
87+
class="inline-flex h-9 items-center justify-center rounded-pill border border-status-fix/40 bg-status-fix-bg px-4 text-sm font-semibold text-status-fix-fg transition-colors hover:opacity-90 disabled:opacity-50"
8688
>
87-
{{ removing ? 'Removing...' : 'Remove Key' }}
89+
{{ removing ? 'Removing…' : 'Remove Key' }}
8890
</button>
8991
</div>
9092

91-
<div v-if="editing" class="mt-4 space-y-4 rounded-lg border border-gray-300 bg-white p-4 dark:border-gray-600 dark:bg-gray-800">
93+
<div v-if="editing" class="mt-4 space-y-3 rounded-card border border-line bg-surface-sunken p-4">
9294
<div>
93-
<label for="cursorApiKeyEdit" class="mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300">
95+
<label for="cursorApiKeyEdit" class="mb-1.5 block text-sm font-semibold text-ink">
9496
New Cursor API Key
9597
</label>
9698
<input
9799
id="cursorApiKeyEdit"
98100
v-model="apiKey"
99101
type="password"
100102
placeholder="cur_xxxxxxxxxxxxxxxx"
101-
class="w-full rounded border border-gray-300 bg-white px-3 py-2 text-sm focus:border-violet-500 focus:outline-none focus:ring-1 focus:ring-violet-500 dark:border-gray-600 dark:bg-gray-900 dark:text-white"
103+
class="h-10 w-full rounded-card border border-line bg-surface px-3 font-mono text-sm text-ink outline-none placeholder:text-ink-faint focus:border-line-strong"
102104
/>
103105
</div>
104106

105-
<div v-if="error" class="rounded border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400">
107+
<div v-if="error" class="rounded-card border border-status-fix/40 bg-status-fix-bg p-3 text-sm text-status-fix-fg">
106108
{{ error }}
107109
</div>
108110

109111
<div class="flex gap-2">
110112
<button
111113
@click="saveKey"
112114
:disabled="!apiKey || saving"
113-
class="rounded bg-violet-500 px-4 py-2 text-sm font-medium text-white transition hover:bg-violet-600 disabled:opacity-50"
115+
class="inline-flex h-9 items-center justify-center rounded-pill bg-brand px-4 text-sm font-semibold text-white shadow-tmgr-xs transition-colors hover:bg-brand-hover disabled:opacity-50"
114116
>
115-
{{ saving ? 'Validating...' : 'Save' }}
117+
{{ saving ? 'Validating…' : 'Save' }}
116118
</button>
117119
<button
118120
@click="cancelEdit"
119-
class="rounded bg-gray-300 px-4 py-2 text-sm font-medium text-gray-700 transition hover:bg-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600"
121+
class="inline-flex h-9 items-center justify-center rounded-pill border border-line bg-surface px-4 text-sm font-semibold text-ink transition-colors hover:bg-surface-hover"
120122
>
121123
Cancel
122124
</button>

‎src/components/categories/CategoryGitHubSettings.vue‎

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
11
<template>
2-
<div v-if="!isCreate" class="mt-6 border-t border-gray-200 pt-6 dark:border-gray-700">
3-
<h3 class="mb-4 text-lg font-bold text-gray-800 dark:text-gray-200">
2+
<div v-if="!isCreate" class="mt-6 border-t border-line pt-6">
3+
<h3 class="mb-4 text-base font-semibold text-ink">
44
GitHub Integration
55
</h3>
66

77
<div v-if="loading" class="flex items-center justify-center py-8">
8-
<div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent"></div>
8+
<div class="h-8 w-8 animate-spin rounded-full border-4 border-brand border-t-transparent"></div>
99
</div>
1010

11-
<div v-else-if="!status.has_installation" class="rounded-lg border border-gray-300 bg-gray-50 p-6 dark:border-gray-600 dark:bg-gray-800">
12-
<div class="mb-4">
13-
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
14-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path>
15-
</svg>
11+
<div v-else-if="!status.has_installation" class="rounded-card border border-line bg-surface-sunken p-6 shadow-tmgr-xs">
12+
<div class="mb-4 flex justify-center">
13+
<div class="flex h-12 w-12 items-center justify-center rounded-pill bg-surface text-ink-subtle">
14+
<svg class="h-6 w-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
15+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path>
16+
</svg>
17+
</div>
1618
</div>
17-
<h4 class="mb-2 text-center text-lg font-semibold text-gray-700 dark:text-gray-300">
19+
<h4 class="mb-2 text-center text-base font-semibold text-ink">
1820
Connect GitHub Repository
1921
</h4>
20-
<p class="mb-4 text-center text-sm text-gray-600 dark:text-gray-400">
22+
<p class="mx-auto mb-5 max-w-md text-center text-sm text-ink-muted">
2123
Link your GitHub repository to automatically track commits, branches, and pull requests
2224
</p>
2325
<button
2426
@click="installGitHubApp"
2527
:disabled="installing"
26-
class="mx-auto block rounded bg-gray-800 px-6 py-2 font-semibold text-white transition hover:bg-gray-700 disabled:opacity-50 dark:bg-gray-700 dark:hover:bg-gray-600"
28+
class="mx-auto flex h-10 items-center justify-center rounded-pill bg-brand px-6 text-sm font-semibold text-white shadow-tmgr-xs transition-colors hover:bg-brand-hover disabled:opacity-50"
2729
>
28-
<span v-if="installing">Installing...</span>
30+
<span v-if="installing">Installing…</span>
2931
<span v-else>Install GitHub App</span>
3032
</button>
3133
</div>
3234

3335
<div v-else-if="!status.repository" class="space-y-4">
34-
<div class="rounded-lg border border-green-200 bg-green-50 p-4 dark:border-green-800 dark:bg-green-900/20">
35-
<p class="text-sm text-green-700 dark:text-green-400">
36+
<div class="rounded-card border border-status-done/40 bg-status-done-bg p-4">
37+
<p class="text-sm text-status-done-fg">
3638
✓ GitHub App is installed. Select a repository to connect:
3739
</p>
3840
</div>
3941

40-
<div v-if="status.available_repositories.length === 0" class="rounded-lg border border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800 dark:bg-yellow-900/20">
41-
<p class="text-sm text-yellow-700 dark:text-yellow-400">
42+
<div v-if="status.available_repositories.length === 0" class="rounded-card border border-status-fix/40 bg-status-fix-bg p-4">
43+
<p class="text-sm text-status-fix-fg">
4244
No repositories available. Make sure the GitHub App has access to your repositories.
4345
</p>
4446
</div>
4547

4648
<div v-else>
47-
<label class="mb-2 block text-sm font-bold text-gray-700 dark:text-gray-300">
49+
<label class="mb-2 block text-sm font-semibold text-ink">
4850
Select Repository
4951
</label>
5052
<select
5153
v-model="selectedRepo"
52-
class="w-full rounded border border-gray-300 bg-white px-3 py-2 text-gray-700 focus:border-blue-500 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300"
54+
class="h-10 w-full rounded-card border border-line bg-surface px-3 text-sm text-ink outline-none focus:border-line-strong"
5355
>
54-
<option :value="null">-- Select repository --</option>
56+
<option :value="null">— Select repository —</option>
5557
<option
5658
v-for="repo in status.available_repositories"
5759
:key="repo.id"
@@ -64,71 +66,71 @@
6466
<button
6567
@click="connectRepository"
6668
:disabled="!selectedRepo || connecting"
67-
class="mt-4 rounded bg-blue-500 px-6 py-2 font-semibold text-white transition hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-50"
69+
class="mt-4 inline-flex h-10 items-center justify-center rounded-pill bg-brand px-6 text-sm font-semibold text-white shadow-tmgr-xs transition-colors hover:bg-brand-hover disabled:cursor-not-allowed disabled:opacity-50"
6870
>
69-
<span v-if="connecting">Connecting...</span>
71+
<span v-if="connecting">Connecting…</span>
7072
<span v-else>Connect Repository</span>
7173
</button>
7274
</div>
7375
</div>
7476

7577
<div v-else class="space-y-4">
76-
<div class="rounded-lg border border-green-200 bg-green-50 p-4 dark:border-green-800 dark:bg-green-900/20">
77-
<div class="flex items-center justify-between">
78+
<div class="rounded-card border border-status-done/40 bg-status-done-bg p-4">
79+
<div class="flex items-center justify-between gap-3">
7880
<div>
79-
<p class="font-semibold text-green-800 dark:text-green-300">
81+
<p class="text-sm font-semibold text-status-done-fg">
8082
Connected to
8183
<a
8284
:href="`https://github.com/${status.repository.full_name}`"
8385
target="_blank"
84-
class="underline hover:text-green-900 dark:hover:text-green-200"
86+
class="underline hover:opacity-80"
8587
>
8688
{{ status.repository.full_name }}
8789
</a>
8890
</p>
89-
<p v-if="status.repository.last_synced_at" class="mt-1 text-xs text-green-700 dark:text-green-400">
91+
<p v-if="status.repository.last_synced_at" class="mt-1 text-xs text-status-done-fg/80">
9092
Last synced: {{ formatDate(status.repository.last_synced_at) }}
9193
</p>
9294
</div>
93-
<svg class="h-6 w-6 text-green-600 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
95+
<svg class="h-5 w-5 shrink-0 text-status-done-fg" fill="none" stroke="currentColor" viewBox="0 0 24 24">
9496
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
9597
</svg>
9698
</div>
9799
</div>
98100

99-
<div class="flex gap-2">
101+
<div class="flex flex-wrap gap-2">
100102
<button
101103
@click="syncRepository"
102104
:disabled="syncing"
103-
class="rounded bg-blue-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-blue-600 disabled:opacity-50"
105+
class="inline-flex h-9 items-center justify-center rounded-pill bg-brand px-4 text-sm font-semibold text-white shadow-tmgr-xs transition-colors hover:bg-brand-hover disabled:opacity-50"
104106
>
105-
<span v-if="syncing">Syncing...</span>
107+
<span v-if="syncing">Syncing…</span>
106108
<span v-else>Sync Now</span>
107109
</button>
108110

109111
<button
110112
@click="relinkRepository"
111113
:disabled="relinking"
112-
class="rounded bg-violet-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-violet-600 disabled:opacity-50"
114+
class="inline-flex h-9 items-center justify-center rounded-pill border border-line bg-surface px-4 text-sm font-semibold text-ink transition-colors hover:bg-surface-hover disabled:opacity-50"
113115
title="Relink existing commits/branches to tasks"
114116
>
115-
<span v-if="relinking">Relinking...</span>
117+
<span v-if="relinking">Relinking…</span>
116118
<span v-else>Relink Tasks</span>
117119
</button>
118120

119121
<button
120122
@click="disconnectRepository"
121123
:disabled="disconnecting"
122-
class="rounded bg-red-500 px-4 py-2 text-sm font-semibold text-white transition hover:bg-red-600 disabled:opacity-50"
124+
class="inline-flex h-9 items-center justify-center rounded-pill border border-status-fix/40 bg-status-fix-bg px-4 text-sm font-semibold text-status-fix-fg transition-colors hover:opacity-90 disabled:opacity-50"
123125
>
124-
<span v-if="disconnecting">Disconnecting...</span>
126+
<span v-if="disconnecting">Disconnecting…</span>
125127
<span v-else>Disconnect</span>
126128
</button>
127129
</div>
128130
</div>
129131

130-
<div v-if="error" class="mt-4 rounded-lg border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20">
131-
<p class="text-sm text-red-700 dark:text-red-400">{{ error }}</p>
132+
<div v-if="error" class="mt-4 rounded-card border border-status-fix/40 bg-status-fix-bg p-4">
133+
<p class="text-sm text-status-fix-fg">{{ error }}</p>
132134
</div>
133135
</div>
134136
</template>

0 commit comments

Comments
 (0)