mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 10:24:09 +02:00
fix: make keyboard shortcut enablement a personal preference (#14141)
Store keyboard shortcut enablement per user and expose it in Profile settings. Co-Authored-By: Codie <Codie@users.noreply.github.com>
This commit is contained in:
1 parent
d3e0f0a238
commit
01d9a12185
30 files changed
+1159
-68
No files matched your search
@@ -128,14 +128,18 @@ async function seedValidWorktreeSource(
|
||||
const issueId = randomUUID();
|
||||
const userId = options.userId ?? "user-existing";
|
||||
const now = new Date();
|
||||
await db.insert(authUsers).values({
|
||||
id: userId,
|
||||
email: userId === "local-board" ? "local@paperclip.local" : "existing@paperclip.ing",
|
||||
name: userId === "local-board" ? "Board" : "Existing User",
|
||||
emailVerified: true,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
});
|
||||
// This fixture also seeds a database before the latest migration. Use the
|
||||
// historical columns explicitly so current ORM defaults do not require new
|
||||
// columns that the worktree migration is supposed to add.
|
||||
await db.$client`
|
||||
INSERT INTO "user" (id, name, email, email_verified, created_at, updated_at)
|
||||
VALUES (
|
||||
${userId},
|
||||
${userId === "local-board" ? "Board" : "Existing User"},
|
||||
${userId === "local-board" ? "local@paperclip.local" : "existing@paperclip.ing"},
|
||||
true, ${now.toISOString()}, ${now.toISOString()}
|
||||
)
|
||||
`;
|
||||
if (options.includeCredentialAccount !== false) {
|
||||
await db.insert(authAccounts).values({
|
||||
id: "credential-existing",
|
||||
|
||||
Reference in new issue
Block a user