Commit 1ff9a14
[MC-460-A] fix(frontend): scroll active concept into view in Compare/Tags too (#650)
The sidebar auto-scroll effect only depended on selectedRealizationKey.
Annotate navigates by realization (which sets that key), but Compare/Tags
navigate by concept via goToConceptOffset, which clears selectedRealizationKey
and only updates conceptId. The effect bailed on the null key, so the concept
menu never followed the selection outside Annotate.
Fall back to the active concept's parent row ([data-testid=concept-parent-button-N])
when no realization is selected, and add conceptId to the dependency array.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 08d9f27 commit 1ff9a14
2 files changed
Lines changed: 52 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4225 | 4225 | | |
4226 | 4226 | | |
4227 | 4227 | | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
| 4261 | + | |
| 4262 | + | |
| 4263 | + | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
4228 | 4269 | | |
4229 | 4270 | | |
4230 | 4271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1817 | 1822 | | |
1818 | | - | |
| 1823 | + | |
1819 | 1824 | | |
1820 | 1825 | | |
1821 | 1826 | | |
| |||
0 commit comments