Repository navigation
10546 Revaluate focused track after undo redo - #10973
embarc-gabriel merged 1 commit into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR adds automatic focus revalidation to TrackNavigationController when the project's track list changes. A new private method, Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/trackedit/internal/undomanager.cpp (1)
81-86: ⚡ Quick winAdd a direct
<algorithm>include forstd::any_of.
std::any_ofis used at line 85, but this translation unit does not explicitly include<algorithm>. Relying on transitive includes is brittle.Proposed fix
`#include` "undomanager.h" `#include` "changedetection.h" +#include <algorithm>
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 26b3eddd-83ec-41db-b570-e7313a063bc0
📥 Commits
Reviewing files that changed from the base of the PR and between 4801978 and 2e2b31da6e4ff99f204c8d74dc9b373da0829362.
📒 Files selected for processing (2)
src/trackedit/internal/undomanager.cppsrc/trackedit/internal/undomanager.h
2e2b31d to
05dfdd8
Compare
luapmartin
left a comment
There was a problem hiding this comment.
maybe that revalidate shouldn't be part of undomanager
05dfdd8 to
61fc415
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/trackedit/internal/undomanager.cpp (1)
28-29: ⚡ Quick winAdd regression coverage for all new revalidation hooks.
Please add/extend tests to assert
revalidateFocusedTrack()is invoked on successfulundo(),redo(), andundoRedoToIndex(), and not invoked on early-return paths.Also applies to: 54-55, 80-81
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: caf80ae2-1060-4d69-bd7c-f60f81f346d2
📥 Commits
Reviewing files that changed from the base of the PR and between 05dfdd89bd2f75d8c0c3d4f53568c3aee55d6929 and 61fc4154071af1bbb42463431fcd817efe09b5bb.
📒 Files selected for processing (6)
src/trackedit/internal/itracknavigationcontroller.hsrc/trackedit/internal/tracknavigationcontroller.cppsrc/trackedit/internal/tracknavigationcontroller.hsrc/trackedit/internal/undomanager.cppsrc/trackedit/internal/undomanager.hsrc/trackedit/tests/mocks/tracknavigationcontrollermock.h
61fc415 to
d90af3f
Compare
d90af3f to
c456469
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: af9197f3-d125-44bd-907d-b013556bd9cd
📥 Commits
Reviewing files that changed from the base of the PR and between d90af3f4bc1663ed59cb69f7a5b2e86bcbbf0f85 and c45646986bcde30960a44de6826102bc12c141df.
📒 Files selected for processing (2)
src/trackedit/internal/tracknavigationcontroller.cppsrc/trackedit/internal/tracknavigationcontroller.h
c456469 to
75f21fb
Compare
Resolves: #10546
The focused track will emit the correct signal that will activate the correct navigation section.
This will allow the shortcuts to work again.
Recommended:
QA: