Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Client-side specimen ID matching #585
Client-side specimen ID matching #585
Changes from 16 commits
be1233f
e00fcd0
b69f649
f7fce69
129e30b
0421acb
1920405
1f38eb4
00b4abd
28e979c
08226b5
d81253d
967297e
cf36c66
948dd19
0f3d2da
9a5eefc
c5de9aa
77cb5a6
ed55343
2c37399
26f82db
bea54e0
ea536f3
b8e433b
f70a0ba
75e0978
10ef1ef
4014bad
1b558b4
289fcd4
1037e17
4b9752a
cf3a841
f7b6d06
661c8cc
f313223
ad932ee
fb58786
5e68a0d
7e4db61
3fab6ed
827ac67
97f020d
9403705
c0db25b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, what is going on here with this hidden section? I vaguely get the concept of "we have to put something here to push the row contents left", but does it actually need to contain exactly the same text as in the section above it? If it does not, we should put something else here ("lorem ipsum dolor"? ;) because otherwise we have to keep updating the exact same text in two different places.
One thing we definitely must NOT do is make multiple divs with the same ids (e.g., there are two
id='plate-map-legend-indeterminate-box'
divs and twoid='plate-map-legend-indeterminate-text
divs.) Bad DOM juju. @fedarko , I know this issue wasn't introduced in this PR, but could you correct it here anyway?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't noticed the duplicate IDs, but I agree that that is egregious. Just pushed a commit that should fix that particular wart, at least.
It looks like duplicating the text is needed (at least with the way the HTML/CSS is written currently) because truncating the hidden text messes with the layout of the next section ("Well Comments")—
For comparison, here's a screenshot with the duplicated text solution in use—
I changed the hidden divs to be visible for these screenshots, but the effects shown here persist regardless of visibility.
Anyway! Yeah, entirely agreed that the need for this hidden section at all is a hack (and I hereby take responsibility for that, since I approved this code when it was merged in :). Removing the duplicate IDs makes it more tolerable, but it'd definitely be a good idea to adjust this to make the bottom row expand without needing a hidden section. I just created #590 to address this (can try to fix that in this PR if you'd like, but I don't think it's super urgent).