Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/sc 26322/click on commentary in search version name #2190

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

stevekaplan123
Copy link
Contributor

@stevekaplan123 stevekaplan123 commented Dec 18, 2024

Description

From search results, commentaries would not open properly. First, the version of the commentary would show as the version of the base text in the URL. Second, the version of the commentary would not get applied in the connections panel. Both issues are now fixed.

Code Changes

The solution is to create a new panel prop currCommVersions which is a object whose properties are titles of texts and the corresponding values are the versions we want for each of those texts. If the Connections Panel has a field for the current book in the Connections Panel, it passes down the version information to TextList which in turn passes currVersions down to TextRange and OpenConnectionTabButton so that (1) TextRange now loads the right text with currVersions and (2) if the user clicks to open the connection, it opens in a panel with currVersions set properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant