-
Notifications
You must be signed in to change notification settings - Fork 2
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
**WIP** method getSessionDetails() added #194
base: main
Are you sure you want to change the base?
Conversation
🌟 EkLine ReviewerHello! I’m here to help improve your docs. I’ve reviewed your pull request, and left in-line suggestions for quick fixes. For details, visit the Analytics Page. For questions or feedback, please email [email protected]. |
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.
Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`widget_alignment` |The PLuG widget can be positioned on either the left or right side of the launcher. You can also adjust the widget alignment through the PLuG settings at app.devrev.ai. If alignment settings are configured in both places, the value from app.devrev.ai will override the launcher setting. |left or right | |
Published docs preview URL: https://devrev-preview-f8dbb8ed-5802-4666-8e9d-446051557797.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-a71d8d13-bdfe-4b11-96e9-e94b165bbde1.docs.buildwithfern.com |
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.
Suggestions:
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
Once the `shutdown()` method is called, all other widget functionalities, such as session recording and Nudges, will also be stopped. You will need to reinitialize the widget to reactivate these features. |
Published docs preview URL: https://devrev-preview-755b88d4-e9d1-423c-a03e-0dbca4f1e7f0.docs.buildwithfern.com |
Published docs preview URL: https://devrev-preview-f406dd4e-30f2-4aa7-b5e6-b02f953b51ee.docs.buildwithfern.com |
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.
Approved with a couple suggestions.
@@ -165,9 +175,17 @@ window.plugSDK.addSessionProperties({ | |||
}); | |||
``` | |||
|
|||
## Get session details | |||
|
|||
You can use the `getSessionDetails` method to fetch the session id and tab id of currently ongoing session. These details can then be passed across different domains to maintain the journey as a single, continuous session. |
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.
You can use the `getSessionDetails` method to fetch the session id and tab id of currently ongoing session. These details can then be passed across different domains to maintain the journey as a single, continuous session. | |
You can use the `getSessionDetails` method to fetch the session ID and tab ID of currently ongoing session. These details can then be passed across different domains to maintain the journey as a single, continuous session. |
window.plugSDK.isSearchAgentOpen | ||
``` | ||
|
||
This returns true if the search agent is open and false if it is closed. |
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.
This returns true if the search agent is open and false if it is closed. | |
This returns `true` if the search agent is open and `false` if it is closed. |
set identifier without session token
You can also pass the identifiers in the `plugSDK.init` option without generating the session token. | ||
|
||
<Callout intent="note"> | ||
The frontend method, by its nature, is not secure as the data is transmitted through the client side. We recommend using the session token method to securely identify users. |
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.
📝 [EkLine] reported by reviewdog 🐶
Avoid using 'we' as it can come off as patronizing. For example, write 'The configuration is complete' rather than 'We are now done with the configuration.' (EK81039)
The frontend method, by its nature, is not secure as the data is transmitted through the client side. We recommend using the session token method to securely identify users. | |
The frontend method, by its nature, is not secure as the data is transmitted through the client side. The session token method is recommended to securely identify users. |
Published docs preview URL: https://devrev-preview-b0e7f95f-bb12-4f86-9ce0-0f5a0c11cc0c.docs.buildwithfern.com |
add bind hotkey example
|
||
## Bind hotkey to toggleSearchAgent | ||
|
||
You can bind the `toggleSearchAgent` method to a hotkey, such as `Cmd + K` (or `Ctrl + K` for Windows), to toggle the search agent quickly. Here's an example implementation: |
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.
📝 [EkLine] reported by reviewdog 🐶
Remove 'quickly' if it's not important to the meaning of the statement. (EK00006)
You can bind the `toggleSearchAgent` method to a hotkey, such as `Cmd + K` (or `Ctrl + K` for Windows), to toggle the search agent quickly. Here's an example implementation: | |
You can bind the `toggleSearchAgent` method to a hotkey, such as `Cmd + K` (or `Ctrl + K` for Windows), to toggle the search agent. Here's an example implementation: |
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.
Suggestions:
- Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`custom_launcher_selector` |A CSS selector string is used to match the element to which the widget will be attached. You can also set this selector from the PLuG settings on app.devrev.ai. If both sources are set, this value will be considered the definitive source. |Boolean (True or False) | |
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.
Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
|`spacing` |Padding from the launcher: This padding can also be set in the PLuG settings on app.devrev.ai. If a value is specified in both places, this value will be considered the definitive source. Bottom: Padding from the bottom of the launcher. Side: Spacing from the sides of the launcher |object `{bottom: string; side: string;}` | |
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.
Published docs preview URL: https://devrev-preview-0cda0e61-8def-4e2b-a4ac-b77910b2d32d.docs.buildwithfern.com |
WorkItem: https://app.devrev.ai/devrev/works/ISS-161669
Add PLuG web SDK methods