From 9142a109fa6e0327304d50d77e1189d27b0cfe40 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:36:29 +0000 Subject: [PATCH 1/3] Initial plan From 1f1b57592f3d7ceaba6508ec293555d601deb116 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:43:20 +0000 Subject: [PATCH 2/3] Initial plan for fixing text selection issue when renaming clips and boards Co-authored-by: kurdin <6027060+kurdin@users.noreply.github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 81118ce0..ac75a203 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pastebar-app", - "version": "0.6.2", + "version": "0.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pastebar-app", - "version": "0.6.2", + "version": "0.7.0", "workspaces": [ "packages/pastebar-app-ui" ], @@ -17192,7 +17192,7 @@ } }, "packages/pastebar-app-ui": { - "version": "0.6.2", + "version": "0.7.0", "dependencies": { "@codastic/react-positioning-portal": "^0.7.0", "@dnd-kit/core": "^6.1.0", From 4e9b1df296a46fa27b5aa54f0024b3c717a8cac4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:44:42 +0000 Subject: [PATCH 3/3] Fix text selection issue when renaming clips and boards Co-authored-by: kurdin <6027060+kurdin@users.noreply.github.com> --- .../src/pages/components/Dashboard/components/BoardEdit.tsx | 4 +--- .../src/pages/components/Dashboard/components/ClipEdit.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/pastebar-app-ui/src/pages/components/Dashboard/components/BoardEdit.tsx b/packages/pastebar-app-ui/src/pages/components/Dashboard/components/BoardEdit.tsx index 305bcc3d..3f97cc14 100644 --- a/packages/pastebar-app-ui/src/pages/components/Dashboard/components/BoardEdit.tsx +++ b/packages/pastebar-app-ui/src/pages/components/Dashboard/components/BoardEdit.tsx @@ -203,9 +203,7 @@ export function BoardEdit({ }} defaultValue={boardName} onFocus={e => { - if (boardName === t('New Board', { ns: 'dashboard' })) { - e.target.select() - } + e.target.select() }} onChange={e => { if (showBoardNameNotSavedError.value) { diff --git a/packages/pastebar-app-ui/src/pages/components/Dashboard/components/ClipEdit.tsx b/packages/pastebar-app-ui/src/pages/components/Dashboard/components/ClipEdit.tsx index 92c5790e..e88f9e3f 100644 --- a/packages/pastebar-app-ui/src/pages/components/Dashboard/components/ClipEdit.tsx +++ b/packages/pastebar-app-ui/src/pages/components/Dashboard/components/ClipEdit.tsx @@ -395,9 +395,7 @@ export function ClipEditName({ }} defaultValue={name} onFocus={e => { - if (name === t('New Clip', { ns: 'dashboard' })) { - e.target.select() - } + e.target.select() }} onChange={e => { if (