Skip to content

fix(trash): ? opens the keymap sheet from the Trash view - #228

Closed
bcosta19 wants to merge 1 commit into
thisisgm:mainfrom
bcosta19:fix/trash-keymap-sheet
Closed

bcosta19 wants to merge 1 commit into
thisisgm:mainfrom
bcosta19:fix/trash-keymap-sheet

Conversation

@bcosta19

@bcosta19 bcosta19 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #227.

ui/TrashView.qml forwards keymapSheet through actionRequested, and ui/TrashHost.qml passed it to pane.act, which has no keymapSheet case (Focus.handleKey opens the sheet before act is reached). So ? inside Trash answered keymapSheet is not built yet.

TrashHost now opens the sheet itself for that one action; every other forwarded action still goes to pane.act unchanged.

A case "keymapSheet" in Focus.act would also cover it, for any caller that reaches act, but ui/js/Focus.js sits at its recorded file-budget ceiling, so the fix stays in the one caller that forwards it. Happy to move it if you prefer that shape.

Verified

  • Manually: the installed 0.3.1 with the same one-line patch applied to a copy of its UI (FLEA_UI=<copy> flea), Trash open, ? opens the sheet; qs log clean.
  • tools/flea-file-budget, qmllint ui/TrashHost.qml (no new findings) and tests/js.sh pass.
  • Not added: a tests/ui.sh case; none drives keys inside the Trash view today.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • The keymap sheet now opens directly when selected from Trash. Other Trash actions continue to work as before.

TrashView forwards keymapSheet through actionRequested, and TrashHost
handed it to pane.act, which has no keymapSheet case: Focus.handleKey
opens the sheet before act is reached. So ? inside Trash answered
"keymapSheet is not built yet." TrashHost now opens the sheet itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8f9fb832-3cea-4401-b349-0c851ab70e68

📥 Commits

Reviewing files that changed from the base of the PR and between 98404bc and e7cb4e2.

📒 Files selected for processing (1)
  • ui/TrashHost.qml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The Trash host now opens the keymap sheet directly when it receives the keymapSheet action. It continues to pass other actions to pane.act.

Changes

Trash keymap sheet

Layer / File(s) Summary
Route keymap sheet action
ui/TrashHost.qml
The action handler opens the keymap sheet for keymapSheet. Other actions still go through pane.act.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: thisisgm

Merge Risk: ⚪ Minimal · up to e7cb4

In Trash, the keymap action now opens the shared sheet while settings and quit retain their existing dispatch. No concrete code defect is established; the repository QML gate remains unverified because qmllint was unavailable in this environment.

Architecture Summary

Architecture risk: 🔵 Low · up to e7cb4

The change affects 1 system.

Changed systems: ui

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — ui (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in ui/TrashHost.qml: onActionRequested now routes keymapSheet to pane.keymapSheet.open(pane) instead of pane.act; all other actions still use pane.act.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: pressing ? in the Trash view opens the keymap sheet.
Linked Issues check ✅ Passed Issue #227 requires ? in the Trash view to open the keymap sheet. The PR summary reports that TrashHost handles the forwarded keymapSheet action directly and preserves pane.act for other actio…
Out of Scope Changes check ✅ Passed The reported change is limited to ui/TrashHost.qml and directly supports issue #227. Routing other forwarded actions through pane.act remains unchanged. The reported validation checks support the …
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thisisgm

thisisgm commented Oct 6, 2026

Copy link
Copy Markdown
Owner

the same route landed, reimplemented with credit to this PR (c0762a1, v0.3.8). Thanks @bcosta19! https://github.com/thisisgm/flea/releases/tag/v0.3.8

@thisisgm thisisgm closed this Oct 6, 2026
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.

? in the Trash view answers "keymapSheet is not built yet."

2 participants