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

External speaker links #441

Merged
merged 42 commits into from
Jun 15, 2020
Merged

External speaker links #441

merged 42 commits into from
Jun 15, 2020

Conversation

kobexamoh
Copy link
Contributor

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!

@cypress
Copy link

cypress bot commented Jun 10, 2020



Test summary

71 0 6 0


Run details

Project cree-intelligent-dictionary
Status Passed
Commit 735b965 ℹ️
Started Jun 13, 2020 11:41 AM
Ended Jun 13, 2020 11:45 AM
Duration 03:40 💡
OS Linux Ubuntu Linux - 16.04
Browser Electron 80

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

Copy link
Member

@eddieantonio eddieantonio left a 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">
Copy link
Member

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.

cypress/integration/recordings.spec.js Outdated Show resolved Hide resolved
cypress/integration/recordings.spec.js Show resolved Hide resolved
src/recordings.js Outdated Show resolved Hide resolved
src/recordings.js Outdated Show resolved Hide resolved
Remove comment.

Co-authored-by: Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>
@cypress
Copy link

cypress bot commented Jun 10, 2020



Test summary

70 0 6 0


Run details

Project cree-intelligent-dictionary
Status Passed
Commit dd543d9
Started Jun 13, 2020 11:41 AM
Ended Jun 13, 2020 11:43 AM
Duration 02:17 💡
OS Linux Ubuntu Linux - 16.04
Browser Electron 73

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

@eddieantonio eddieantonio added feature Improvement Expansion or improvement of a current functionality that does already work and meets previous specs requires-frontend-work Work needs to be done on HTML, CSS, and/or JavaScript labels Jun 10, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@32187b4). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #441   +/-   ##
=========================================
  Coverage          ?   86.24%           
=========================================
  Files             ?       71           
  Lines             ?     2617           
  Branches          ?        0           
=========================================
  Hits              ?     2257           
  Misses            ?      360           
  Partials          ?        0           
Impacted Files Coverage Δ
CreeDictionary/CreeDictionary/urls.py 90.00% <0.00%> (ø)
CreeDictionary/utils/cree_lev_dist.py 100.00% <0.00%> (ø)
...ctionary/tests/CreeDictionary_tests/test_hfstol.py 100.00% <0.00%> (ø)
CreeDictionary/API/affix_search.py 100.00% <0.00%> (ø)
CreeDictionary/utils/crkeng_xml_utils.py 82.22% <0.00%> (ø)
...eeDictionary/API/migrations/0007_merge_preverbs.py 34.21% <0.00%> (ø)
CreeDictionary/DatabaseManager/xml_importer.py 93.36% <0.00%> (ø)
CreeDictionary/DatabaseManager/test_db_builder.py 23.52% <0.00%> (ø)
CreeDictionary/DatabaseManager/log.py 100.00% <0.00%> (ø)
CreeDictionary/utils/profiling.py 100.00% <0.00%> (ø)
... and 61 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 32187b4...dd543d9. Read the comment docs.

@eddieantonio eddieantonio mentioned this pull request Jun 12, 2020
@kobexamoh kobexamoh marked this pull request as ready for review June 13, 2020 11:52
@kobexamoh kobexamoh requested a review from eddieantonio June 13, 2020 11:53
Copy link
Member

@eddieantonio eddieantonio left a 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);
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Improvement Expansion or improvement of a current functionality that does already work and meets previous specs requires-frontend-work Work needs to be done on HTML, CSS, and/or JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants