Skip to content

Add new Messaging format to Click to Load #546

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

Merged
merged 11 commits into from
Jun 15, 2023

Conversation

franfaccin
Copy link
Contributor

Remove sendMessage calls from click-to-load.js and replace it with new messaging layer wrapper

@franfaccin franfaccin force-pushed the ctl-add-new-msg-format branch from 2237327 to 77f1568 Compare May 31, 2023 14:09
@franfaccin franfaccin self-assigned this May 31, 2023
Copy link
Contributor

@kzar kzar left a comment

Choose a reason for hiding this comment

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

I took a pass of the click-to-load.js changes @franfaccin. Some suggestions but mostly they look pretty good 👍 . I will leave the sendMessageWrapper.js to Shane.

Copy link
Contributor

@shakyShane shakyShane left a comment

Choose a reason for hiding this comment

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

@franfaccin this is great! I've tried to reflect what we spoke about in our call - let me know if you think I missed anything.

Here's the branch I made in our call for reference: https://github.com/duckduckgo/content-scope-scripts/compare/shane/pr-review

…portConfig.

Move messagingContext creation to ContentFeature.
Rename lazy.messaging to ctl.messaging.
Clean up request() code to handle getYouTubeVideoDetails requests better.
Clean up the code.
…ickToLoadMessagingTransport to match sendMessage() messages format
Fix return type.
Move `displayClickToLoadPlaceholders` subscribe up to avoid race conditions.
Copy link
Contributor Author

@franfaccin franfaccin left a comment

Choose a reason for hiding this comment

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

I've replied to the comments and updated the PR accordingly. It's ready for another review :)

@franfaccin franfaccin requested a review from shakyShane June 2, 2023 11:24
@franfaccin franfaccin force-pushed the ctl-add-new-msg-format branch from 6519c27 to 8dc23c2 Compare June 2, 2023 11:26
@franfaccin franfaccin force-pushed the ctl-add-new-msg-format branch from 579b657 to 0caacb2 Compare June 2, 2023 16:03
shakyShane
shakyShane previously approved these changes Jun 10, 2023
@shakyShane shakyShane marked this pull request as ready for review June 10, 2023 13:42
@shakyShane shakyShane requested a review from ladamski as a code owner June 10, 2023 13:42
@shakyShane
Copy link
Contributor

@franfaccin - I've approved this now - thanks for working through everyone's feedback ❤️!

If you consider this complete, please merge when you are ready 💪🏻

Just a reminder too that we're attempting to keep main in an 'always ready to release' state, so if there was any last-minute testing, or small changes you wanted to make, please do them here before merging :)

@franfaccin franfaccin merged commit f41a73c into duckduckgo:main Jun 15, 2023
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.

4 participants