-
Notifications
You must be signed in to change notification settings - Fork 8
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
It should not be assumed that the Original Language resource is always first in ScriptureTable books array param. #174
Comments
thanks for creating the issue with proper details. I will work on this. |
Solved the issue: unfoldingWord/tc-create-app#1600 (comment) |
Test Instruction in RCL :
Note: In defaultResourceLinks the value |
Looks good to me. User can place the Original Language in any position they prefer in the array without breaking alignment. Tested with ScriptureResourcesRcl v5.5.5. |
Moving to QA Done as it is already merged and closed. |
Summary
ScriptureTable has a param called books, this is being passed in to it by ParallelScripture component after processing an array of resource URLs, this array is supposed to contain URLs for: an Original Language (Source), translations aligned to the previous original language. The problem is the Original Language is assumed to always be first in that array and ScriptureTable renders each resource in the same order they are set in that resources array, so when users want to move the original languages to a different position, some features like highlighting break.
Critical places where hardcoded position is breaking highlighting:
https://github.com/unfoldingWord/scripture-resources-rcl/blob/138664f1a2ae8a9c784f5dad9742722f36a29685/src/components/parallel-scripture/ScriptureTable.js#L148C26-L148C29
https://github.com/unfoldingWord/scripture-resources-rcl/blob/138664f1a2ae8a9c784f5dad9742722f36a29685/src/components/parallel-scripture/helpers.js#L92C11-L92C22
The Zero (0) in both places refers to the position of the Original Language resource.
Motivation
DoD
Changing the order of the resources array sent to the ParallelScripture component should not break alignment.
The text was updated successfully, but these errors were encountered: