Skip to content

fixes the stash deleting error and stash id on modal - #10

Open
HermesSantos wants to merge 1 commit into
mainfrom
fix/stash-drop-ref
Open

fixes the stash deleting error and stash id on modal#10
HermesSantos wants to merge 1 commit into
mainfrom
fix/stash-drop-ref

Conversation

@HermesSantos

Copy link
Copy Markdown
Collaborator

What this changes
It fixes stash drop failing when the UI passes a commit OID, and the drop confirmation modal showing a literal stash@{index} instead of the real stash number.

Why
Dropping a stash ran git stash drop . Git only accepts stash@{n}, so the command failed with '…' is not a stash reference.

The confirm string used stash@{index} / stash@{{index}}. In vue-i18n, @{…} is linked-message syntax, so the index was never interpolated.

Closes #9

How it was tested
Linux: open Stashes, right-click a stash → Delete, confirm the modal shows stash@{0} (or the correct index), and the stash is removed without the “not a stash reference” error.
Checklist
npm --prefix app/ui run build passes (this runs vue-tsc, so it catches type errors too)
Ran the change in the app, not only in tests
New user-facing strings are in all three locales: en.json, pt-br.json, es.json
Colours, borders and surfaces come from the theme tokens (bg-surface, border-line, text-content), not from hardcoded Tailwind palette classes, so every theme keeps working
Hints use the Tooltip component rather than a title attribute
Commits follow the conventional style used in the history (feat(scope): ..., fix(scope): ...)
No emojis in code, documentation or commit messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete button on stash view doens't work

1 participant