-
Notifications
You must be signed in to change notification settings - Fork 11
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
External speaker links #441
Conversation
Pain. Also, added some spacing to the speaker names to make clicking easier.
Remove the '.only' part and close off some brackets.
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
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.
Looking good so far! See my comments in terms of potential improvements!
@@ -26,6 +26,9 @@ <h1 id="head" class="definition-title"> | |||
<ul class="recordings-list" data-cy="recordings-list"> | |||
<!-- dynamically inserted speaker lists go here --> | |||
</ul> | |||
<div class="speaker-link"> |
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 think speaker-link
is good here! It's a new semantic Block, and it could conceivably be moved elsewhere; it's not really an inseperable Element of definition
.
CreeDictionary/CreeDictionary/templates/CreeDictionary/base.html
Outdated
Show resolved
Hide resolved
Remove comment. Co-authored-by: Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Codecov Report
@@ Coverage Diff @@
## master #441 +/- ##
=========================================
Coverage ? 86.24%
=========================================
Files ? 71
Lines ? 2617
Branches ? 0
=========================================
Hits ? 2257
Misses ? 360
Partials ? 0
Continue to review full report at Codecov.
|
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.
LGTM!
Lots of improvement!
createdSpeakerButton.addEventListener('click', () => audio.play()) | ||
createdSpeakerButton.addEventListener('click', () => { | ||
audio.play() | ||
displaySpeakerBioLink(recordingData); |
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.
👍
// generate a new link and append it to the page if there isn't already one | ||
if (container.childElementCount < 1) { | ||
// set the speaker-link text with the name of the speaker | ||
createdTemplateNode.querySelector('slot[name="speaker-name"]').innerText = speakerName; |
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.
👍
Guten Tag 👋 back at it with a PR to tackle #259. I've marked this as a draft to get some feedback, so fire away!
The link to the speaker (under the buttons) 'works', but if some wordforms have a long list of speakers, I think it might be better to have it on the right hand side of the page.
But anyway. Have at it – if we need to go at it together, that's good too!