Auto-open the next decision's detail pane after Approve/Reject (D-0060) #141
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/decisions-auto-open-detail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
UX improvement to the
/decisionsreview flow. After an operator clicks Approve or Reject, the page already advances to the next still-reviewable row (the review POST redirects to#decision-<id>viaBuildReviewReturnAnchors/ReviewReturnTo). This PR makes that next row's rationale/associated-events detail pane open automatically, so the operator has the full context needed to approve or reject without clicking the "+" toggle (D-0060).decision-rationale-toggle.jsnow reads the URL fragment on load (DOMContentLoadedandhashchange), and the per-row click handler and the new fragment handler share a singlesetExpanded(key, expanded)helper. The fragment match excludes the detail row's own#decision-rationale-<id>id and no-ops when the target row has no detail pane.Client-side presentation only: no endpoint contract, persisted state, or configuration value changes; the manual "+" toggle behaviour is unchanged.
Fixes #
How was this tested?
dotnet build- no server code changed (JS asset only); the file is served directly viaAssets[...], so there is no compile step for itdotnet test- not applicable (no automated JS test harness in the repo)Checklist