From cebddef01648d1ef34128ebf9b990c0e03a1cef8 Mon Sep 17 00:00:00 2001 From: JulioSergioFS Date: Wed, 3 Jun 2026 20:31:20 -0300 Subject: [PATCH 1/4] fix: change text --- .../_features/[workspace]/source-control/stash-section.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/components/_features/[workspace]/source-control/stash-section.tsx b/src/frontend/components/_features/[workspace]/source-control/stash-section.tsx index d9b6bd06f..d0b9bfe6d 100644 --- a/src/frontend/components/_features/[workspace]/source-control/stash-section.tsx +++ b/src/frontend/components/_features/[workspace]/source-control/stash-section.tsx @@ -91,7 +91,7 @@ export function StashSection({ projectId }: StashSectionProps) { else await versionControl.applyStash(projectId, stash.hash) await reloadProject() await fetchStashes() - toast({ title: pop ? 'Stash popped' : 'Stash applied', variant: 'default' }) + toast({ title: pop ? 'Stash applied & removed' : 'Stash applied', variant: 'default' }) } catch (error) { if (error instanceof StashConflictError) { toast({ @@ -100,7 +100,7 @@ export function StashSection({ projectId }: StashSectionProps) { variant: 'fail', }) } else { - toast({ title: pop ? 'Failed to pop stash' : 'Failed to apply stash', variant: 'fail' }) + toast({ title: pop ? 'Failed to apply & remove stash' : 'Failed to apply stash', variant: 'fail' }) } } finally { setBusyRef(null) @@ -184,7 +184,7 @@ export function StashSection({ projectId }: StashSectionProps) { className='flex cursor-pointer items-center gap-1 rounded-md bg-blue-500 px-2 py-1 text-[11px] font-medium text-white transition-colors hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-50' > - Pop + Apply & remove - - - e.preventDefault()} - className='z-[60] min-w-[140px] overflow-hidden rounded-md border border-neutral-200 bg-white py-1 shadow-lg dark:border-neutral-700 dark:bg-neutral-900' - > - { - e.preventDefault() - if (isActive) return - onMerge(branch) - handleClose() - }} - title={isActive ? 'Cannot merge a branch into itself' : undefined} - className={cn( - 'flex select-none items-center gap-2 px-3 py-1.5 text-xs outline-none', - isActive - ? 'cursor-not-allowed text-neutral-400 dark:text-neutral-600' - : 'cursor-pointer text-neutral-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800', - )} +
+ + + + + + e.preventDefault()} + className='z-[60] min-w-[140px] overflow-hidden rounded-md border border-neutral-200 bg-white py-1 shadow-lg dark:border-neutral-700 dark:bg-neutral-900' > - - - - Delete - - - - -
+ { + e.preventDefault() + if (isActive) return + onMerge(branch) + handleClose() + }} + title={isActive ? 'Cannot merge a branch into itself' : undefined} + className={cn( + 'flex select-none items-center gap-2 px-3 py-1.5 text-xs outline-none', + isActive + ? 'cursor-not-allowed text-neutral-400 dark:text-neutral-600' + : 'cursor-pointer text-neutral-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800', + )} + > + + + + + Merge {branch.name} into{' '} + {currentBranchName} + + + { + e.preventDefault() + if (branch.isDefault) return + onDelete(branch) + }} + title={branch.isDefault ? 'Cannot delete the default branch' : undefined} + className={cn( + 'flex select-none items-center gap-2 px-3 py-1.5 text-xs outline-none', + branch.isDefault + ? 'cursor-not-allowed text-neutral-400 dark:text-neutral-600' + : 'cursor-pointer text-red-600 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-950/40', + )} + > + + + + Delete + +
+
+ + )} ) diff --git a/src/frontend/components/_molecules/project-tree/index.tsx b/src/frontend/components/_molecules/project-tree/index.tsx index a151209c1..8f91d0329 100644 --- a/src/frontend/components/_molecules/project-tree/index.tsx +++ b/src/frontend/components/_molecules/project-tree/index.tsx @@ -395,51 +395,51 @@ const ProjectTreeExpandableLeaf = ({ {popoverOptions.length > 0 && ( - - e.stopPropagation()} - > - - - - + e.stopPropagation()} > - {popoverOptions.map((option, index) => ( -
{ - option.onClick() - setPopoverOpen(false) - }} - > - {option.icon} -

{option.name}

-
- ))} -
-
-
+ + + + e.stopPropagation()} + > + {popoverOptions.map((option, index) => ( +
{ + option.onClick() + setPopoverOpen(false) + }} + > + {option.icon} +

{option.name}

+
+ ))} +
+
+ )} diff --git a/src/frontend/components/_organisms/modals/read-only-project-modal.tsx b/src/frontend/components/_organisms/modals/read-only-project-modal.tsx index 2ed07f6ee..1390ce5e4 100644 --- a/src/frontend/components/_organisms/modals/read-only-project-modal.tsx +++ b/src/frontend/components/_organisms/modals/read-only-project-modal.tsx @@ -121,7 +121,7 @@ const ReadOnlyProjectModal = () => { empty modal. Switch this modal to translate-centering (`inset-auto` + left/top 1/2 + -translate-1/2) so the height hugs the content instead. */} - + {step === 'intro' ? ( <> This project is read-only