[Bug] Workspace remove confirmation shows `{name}` instead of the repo's name
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Describe the Bug
On the workspace overview, removing a repo opens a confirmation that shows the placeholder instead of the repo's name:
Remove {name} from .repowise-workspace.yaml?
The dialog never says which repo is about to be removed, which matters on a page that lists several of them.
Steps to Reproduce
- Run
repowise serveon a workspace with at least one repo, with the UI in English. - Open the workspace overview.
- Click Remove on any repo.
- Read the browser confirmation.
Expected Behavior
Remove 'my-repo' from .repowise-workspace.yaml?, with the repo's name (or its alias when it has no name).
Actual Behavior
Remove {name} from .repowise-workspace.yaml? for every repo. The quotes are gone and {name} is printed as text.
Cause
The English message wraps the argument in ASCII apostrophes, packages/web/messages/en.json:933:
"removeConfirm": "Remove '{name}' from .repowise-workspace.yaml?",
The catalog is formatted by next-intl as ICU MessageFormat, where an apostrophe directly before { starts a quoted literal. So '{name}' is read as the literal text {name}: the apostrophes are consumed and the argument is never substituted. That matches the output exactly, including the missing quotes.
The caller passes the value correctly, packages/web/src/app/workspace/sync-buttons.tsx:129:
!window.confirm(t("removeConfirm", { name: repoName || alias }))
zh-CN.json is not affected, because it uses 「{name}」. '{name}' on this line is the only place in packages/web/messages/*.json where an apostrophe sits directly against a placeholder.
The string has been this way since the i18n foundation landed in #3129.
Possible Fix
Either of these keeps the quotes and substitutes the name:
- typographic quotes:
"Remove “{name}” from .repowise-workspace.yaml?" - doubled apostrophes, the ICU escape:
"Remove ''{name}'' from .repowise-workspace.yaml?"
A catalog gate that rejects '{ in a message would stop the same mistake from coming back in a later string. I can open a PR for this if that is useful.
Environment
- OS: Windows 11
- Python version: 3.11.15
- Repowise version: 0.61.0 (the line is unchanged on
mainat 9fd8d9b8b, after v0.62.0) - Installation method: pipx
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day