fix(notifications): jump to the notified comment - #190
Conversation
🤖 Codex-Style Code Review by OpenCode (Vue Best Practice Enabled)
Now let me read the full files for context. PR Review:
|
🤖 Codex-Style Code Review by OpenCode (Vue Best Practice Enabled)
PR Review: fix(notifications): jump to the notified commentReviewed via SummaryThe approach (pass the anchored Findings1. (Medium)
|
🤖 Codex-Style Code Review by OpenCode (Vue Best Practice Enabled)
Reviewed the diff Code Review Report — Notification comment-jump featureSummaryThe change lets a notification open a comment route with 1. (Bug / UX)
|
🤖 Codex-Style Code Review by OpenCode (Vue Best Practice Enabled)
I'll start by inspecting the PR's commit history PR Review ReportPR #190 — Notification deep-link → comment jump (4 commits: The change routes High priority1. Scroll-to-target re-fires on every pagination load — let anchored = false
// ...
if (!anchored && targetCommentId && items.value.some((i) => i.ID === targetCommentId)) {
anchored = true
document.getElementById(`comment-${targetCommentId}`)?.scrollIntoView(...)
}The Medium priority2. Pagination mixes cursor ( 3. Anchor retention depends on undocumented server behavior — 4. Fragile implicit coupling via Low priority / minor
VerdictGood, focused fix with a clear feature intent and a nice router-watch refactor. The repeated-scroll bug (#1) should be fixed before merge; #2/#3 are worth confirming against the API contract. No blocking type or lint regressions detected (couldn't run local lint/typecheck — |
Closes #110
from,take, andskipthrough notification navigation.Validation: changed-file ESLint (two existing complexity warnings); filtered type-check;
git diff --check.