fix(workspace): hide 'Double-click to rename' tooltip on folders (closes #1710)#1711
Merged
1 commit merged intomasterfrom May 5, 2026
Merged
fix(workspace): hide 'Double-click to rename' tooltip on folders (closes #1710)#17111 commit merged intomasterfrom
1 commit merged intomasterfrom
Conversation
The file-tree row tooltip says 'Double-click to rename' on every entry, but folders don't actually rename on double-click — they navigate via loadDir(). The tooltip is therefore misleading on directory rows. Reported by @Deor in the WebUI Discord testers thread (May 5 2026): 'Ah that works yeah. May want to change the popup text as it also says double click at the moment.' Fix: gate the tooltip on item.type !== 'dir' so it only attaches to file rows, where double-click does what the hint advertises. Folder rename still reachable via the right-click context menu (unchanged). Companion to #1698/#1702/#1707 — completes the rename-affordance triage: - #1698 fixed: dblclick rename was unreachable on files (preview hijacked) - #1707 fixed: single-click on filename did nothing (over-aggressive guard) - #1710 (this PR): tooltip claimed dblclick-rename on folders too Closes #1710 Tests: 4 source-level regression tests in tests/test_1710_folder_tooltip.py guard the gate, the unchanged dir-dblclick navigate behaviour, the i18n key, and that files still receive the tooltip. All 13 file-tree handler tests (4 new + 9 from #1707) pass.
Collaborator
Author
|
Closed by the v0.51.5 release in PR #1713 (merged at 0ea3dfb, deployed to production). Thanks! Live on production: https://github.com/nesquena/hermes-webui/releases/tag/v0.51.5 🚀 |
githb-ac
pushed a commit
to githb-ac-org/hermes-webui
that referenced
this pull request
May 5, 2026
githb-ac
pushed a commit
to githb-ac-org/hermes-webui
that referenced
this pull request
May 5, 2026
4 PRs (1 surface addition, 3 fixes): - nesquena#1688 VPS resource health Insights panel (@Michaelyklam, closes nesquena#693) - nesquena#1709 preserve scroll on stream completion (@Michaelyklam, closes nesquena#1690) - nesquena#1711 hide rename tooltip on folders (@nesquena-hermes, closes nesquena#1710) - nesquena#1712 guard localStorage.setItem against QuotaExceededError (@24601) Tests: 4504 → 4527 (+23). Opus: SHIP, 6/6 verification clean. Held back: nesquena#1686 (Docker enhance) — Opus flagged sibling-repo dep that breaks standalone clones. Left open for follow-up. Co-authored-by: Michael Lam <[email protected]> Co-authored-by: 24601 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1710
Summary
The workspace file-tree row tooltip says "Double-click to rename" on every entry — including folders. But double-clicking a folder navigates into it (
loadDir()); rename for folders lives only in the right-click context menu. The tooltip is therefore misleading on directory rows.Reported by @Deor in the WebUI Discord testers thread (May 5 2026), responding to the #1698 fix:
Fix
static/ui.js_renderTreeItems— gate thenameEl.titleassignment onitem.type !== 'dir'. Files keep the existing hint that matches their dblclick behaviour. Folders get no tooltip (rename still reachable via the right-click → Rename context menu, which is unchanged). 4 lines of code change.Why not remove the tooltip entirely
@AvidFuturist asked whether to drop it on files too. Keeping it on files is reasonable — dblclick-to-rename is non-obvious on a chat app's workspace pane (vs. a native file manager), and the tooltip is the primary discoverability path. Removing it on folders alone fixes the misleading affordance without losing useful discoverability for files.
Companion to the rename-affordance triage
After this lands, the file-tree click affordances are consistent with what each click actually does.
Tests
4 new source-level regression tests in
tests/test_1710_folder_tooltip.py:test_tooltip_assignment_is_guarded_by_item_type— locks theif(item.type!=='dir')guard around thenameEl.titleassignment so a future refactor can't reintroduce the unconditional tooltip.test_dir_dblclick_still_navigates_not_renames— sanity: directory dblclick still callsloadDir(item.path), the navigate-not-rename contract this PR depends on.test_files_still_get_tooltip— locks that files retain the i18n-keyed tooltip.test_i18n_key_still_defined_in_all_locales— thedouble_click_renamekey must remain defined in ≥5 locale blocks ofstatic/i18n.js.Result: 4 new + 9 existing #1707 tests = 13 passing for the file-tree handler block. Targeted suite (
tests/test_1710*.py tests/test_1707*.py) passes locally; broader workspace/rename pattern (264 tests) also passes.Reporter
@Deor via WebUI Discord testers thread (May 5 2026 09:34 UTC).