Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MAPS-748 autocomplete sessions into javascript sdk #141

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

boonboonsiri
Copy link
Contributor

@boonboonsiri boonboonsiri commented Dec 12, 2023

@@ -511,6 +548,10 @@ class AutocompleteUI {
return this;
}

public generateUUID = (): string => {
return crypto.randomUUID();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to use crypto.randomUUID() but not sure if this is the case but maybe:

parcel-bundler/parcel#8820

src/ui/autocomplete.ts Dismissed Show dismissed Hide dismissed
@@ -442,6 +457,28 @@ class AutocompleteUI {
onSelection(result);
}

// Radar Autocomplete Session
if (this.session) {
const userId = Storage.getItem(Storage.USER_ID) || undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now I'm still including these even though right now we don't use them, but in case we wanted to store them in the future so we don't have to update the sdk twice

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant