Share-created toast leaks the backend path (/home/…) from the share dialog #192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out from #175 item 3 (items 1, 2, 4 shipped in v0.6.4–v0.6.6; this cosmetic one remained). Verified live on the dogfood via the browser against
web/static/index.html:quickLink(per-row copy-link):say(tf("shareCreated", { path: it.name }))— shows the leaf name. Fine.openShareDialog(the Share dialog):say(tf("shareCreated", { path: shareItem.path }))— showsshareItem.path, which is the backend path (/home/folder 1). The user lives in a virtual namespace where that item isPersonal/folder 1, so the toast contradicts the product's own path model.There is no backend→virtual path helper in the frontend (only the
navPersonali18n label), so the display path is built from nav context, not from.path.Fix
Make the share-created toast never show the backend
/home/…path. Simplest and consistent withquickLink: use the item name —(Optionally show the full virtual path
Personal/folder 1via a smalldisplayPath()helper that maps/home/…→Personal/…and/spaces/<s>/…→<s>/…, but the leaf name already resolves the leak and matches the quick-link toast.)Related (same class, out of scope here unless trivial)
The Shares-view revoke flow also interpolates the backend path:
revokeShareConfirmandrevokedShareuses.path. Those show a share's stored backend path in the Shares list — arguably acceptable there, but worth a consistency pass later.Batched into v0.6.8.