Repository navigation
fix(nvtx): share injection hook through dylib - #543
Conversation
318dfa3 to
ec754bb
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR changes NVTX injection linkage to use a private static-build entry symbol and preserves the runtime-loaded symbol. It also reformats JSX in two UI components without changing behavior. ChangesNVTX injection linkage
UI component formatting
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
ui/packages/@quent/components/src/lib/useTimelineWheelNavigation.ts-69-72 (1)
69-72: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winUse
clientXat the viewport edge.
clientX === 0is a valid pointer coordinate. Lines 70-72 replace it with the chart center. A Shift+wheel event at the left viewport edge then zooms around the center instead of the cursor.Calculate
localXdirectly fromevent.clientX. Add a regression test withclientX: 0and assert thatstartremains at the current start bound.Proposed fix
- const localX = - event.clientX > 0 - ? event.clientX - rect.left - TIMELINE_SPACING.left - : usableWidth / 2; + const localX = event.clientX - rect.left - TIMELINE_SPACING.left;As per path instructions, cover meaningful boundaries.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ui/packages/`@quent/components/src/lib/useTimelineWheelNavigation.ts around lines 69 - 72, Update the localX calculation in the timeline wheel navigation handler to use event.clientX directly, so a valid coordinate of 0 is converted relative to rect.left and TIMELINE_SPACING.left rather than replaced with usableWidth / 2. Add a regression test for Shift+wheel with clientX: 0 and assert that start remains at the current start bound.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@integrations/nvtx/injection/Cargo.toml`:
- Line 13: Update the crate-type configuration for the nvtx-injection package to
include both cdylib and rlib targets, preserving the existing rlib output while
restoring the runtime library required by NVTX_INJECTION64_PATH when
static-injection is disabled.
---
Other comments:
In `@ui/packages/`@quent/components/src/lib/useTimelineWheelNavigation.ts:
- Around line 69-72: Update the localX calculation in the timeline wheel
navigation handler to use event.clientX directly, so a valid coordinate of 0 is
converted relative to rect.left and TIMELINE_SPACING.left rather than replaced
with usableWidth / 2. Add a regression test for Shift+wheel with clientX: 0 and
assert that start remains at the current start bound.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: QUIET
Plan: Enterprise
Run ID: a6945b7d-b769-4e72-b056-9ddef6446bb7
📒 Files selected for processing (6)
integrations/nvtx/injection/Cargo.tomlintegrations/nvtx/injection/c/symbol.cintegrations/nvtx/injection/src/init.rsintegrations/nvtx/injection/src/lib.rsui/packages/@quent/components/src/lib/useTimelineWheelNavigation.test.tsui/packages/@quent/components/src/lib/useTimelineWheelNavigation.ts
4be3f46 to
0c5a4c1
Compare
|
/merge |
Summary
Testing