Skip to content

feat: Migrates the control-replacement sample.#1192

Merged
willum070 merged 6 commits into
mainfrom
migrate-control-replacement
Mar 17, 2026
Merged

feat: Migrates the control-replacement sample.#1192
willum070 merged 6 commits into
mainfrom
migrate-control-replacement

Conversation

@willum070
Copy link
Copy Markdown
Collaborator

@willum070 willum070 commented Mar 11, 2026

This PR does the following things:

  • Migrates the control-replacement sample to js-api-samples.
  • Updates the sample to use the gmp-map element and dynamic library loading.
  • Refactors the entire sample to use modern patterns.
  • Refactors for improved type safety.
  • Refactors the sample to use addEventListener instead of onclick.
  • Refactors the UI to use slotting instead of .push().

@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented Mar 11, 2026

Here is the summary of changes.

You are about to add 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@willum070 willum070 requested a review from jeantimex March 11, 2026 16:10
Comment thread samples/control-replacement/index.html Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts
@willum070 willum070 requested a review from jeantimex March 12, 2026 20:00
Copy link
Copy Markdown

@jeantimex jeantimex left a comment

Choose a reason for hiding this comment

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

Much cleaner code now, thank you!

Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
Comment thread samples/control-replacement/index.ts Outdated
@willum070 willum070 merged commit 70fbf11 into main Mar 17, 2026
8 checks passed
@willum070 willum070 deleted the migrate-control-replacement branch March 17, 2026 14:42
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.

2 participants