Conversation
…set-sh#3511) OPEN_IN_APP was registered both in OpenInMenuButton and in the v1 workspace page, so pressing Cmd+O ran two separate openInApp mutations (one per component's own useMutation instance) while clicking the button only ran one. Remove the page-level registration so the shortcut goes through the same handler as the click.
FORK NOTE: upstream superset-sh#3511 removed the page-level OPEN_IN_APP hotkey on the v1 workspace route to avoid firing Cmd+O twice with OpenInMenuButton. The fork renders no TopBar in tearoff windows (layout.tsx gates it on !isTearoff), so removing the page-level registration killed Cmd+O inside tearoff windows entirely. Guard the registration with isTearoffWindow() so the main window still gets the upstream double-fire fix while tearoff windows retain the shortcut.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 Walkthroughウォークスルー
変更
コード レビュー難易度の推定🎯 2 (Simple) | ⏱️ ~8 分 詩
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Upstream commits processed (cherry-picked, then adapted where needed): - 07c1ee0 fix(desktop): Cmd+O firing open-in twice on v1 workspace route (superset-sh#3511) → PR #302 (with fork tearoff-window adaptation for Cmd+O) - 4a1f41a chore(deps): upgrade tanstack/db + electric, drop durable-streams patch (superset-sh#3509) → PR #303 (fork keeps fstream patch) - a3df489 feat(desktop): v2 PR checkout via widened checkout procedure (superset-sh#3525) → PR #304 (clean) - c504a50 feat(desktop): v2 file editor — foundation, views, and stability pass (superset-sh#3526) → PR #310 (foundation: 58 files path-checkout) → PR #311 (adaptation: 20 files manual port with SpreadsheetViewer/memo/fork-hotkeys preserved) - 78b7dc8 feat(desktop): promote "Create Section Below" to top-level on workspace menu (superset-sh#3537) → PR #308 Record merge so upstream/main..main shows 0 behind.
概要
upstream
superset-sh/supersetから Cmd+O 二重発火 fix (superset-sh#3511) を取り込む PR です。behind 4 → 3。取り込み commit
07c1ee0eb背景
upstream は v1 workspace page.tsx から
useHotkey("OPEN_IN_APP", handleOpenInApp)を削除し、OpenInMenuButton 側の登録に一本化することで二重発火を解消しました。fork 適応修正
fork では tearoff window で
TopBar自体が描画されないため、page 側 registration を丸ごと削除すると tearoff 内で Cmd+O が死にます(Codex pre-review High 指摘)。対応:
useHotkey("OPEN_IN_APP", handler, { enabled: isActive && isTearoffWindow() })として tearoff 限定で page 側登録を残しました。Codex pre-review
テストチェックリスト
Summary by CodeRabbit
バグ修正