You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes given for the user/company/other context in the BucketClient constructor can be updated for use in feature targeting evaluation with the `updateUser()`, `updateCompany()` and `updateOtherContext()` methods.
> [!NOTE] > `user`/`company` attributes are also stored remotely on the Bucket servers and will automatically be used to evaluate feature targeting if the page is refreshed.
230
220
231
-
## Qualitative feedback
221
+
## Toolbar
222
+
223
+
The Bucket Toolbar is great for toggling features on/off for yourself to ensure that everything works both when a feature is on and when it's off.
The toolbar will automatically appear on `localhost`. However, it can also be incredibly useful in production.
228
+
You have full control over when it appears through the `toolbar` configuration option passed to the `BucketClient`.
229
+
230
+
You can pass a simple boolean to force the toolbar to appear/disappear:
231
+
232
+
```typescript
233
+
const client =newBucketClient({
234
+
// show the toolbar even in production if the user is an internal/admin user
235
+
toolbar: user?.isInternal,
236
+
...
237
+
});
238
+
```
239
+
240
+
You can also configure the position of the toolbar on the screen:
241
+
242
+
```typescript
243
+
const client =newBucketClient({
244
+
toolbar: {
245
+
show: true;
246
+
position: {
247
+
placement: "bottom-left",
248
+
offset: {x: "1rem", y: "1rem"}
249
+
}
250
+
}
251
+
...
252
+
})
253
+
```
254
+
255
+
See [the reference](https://docs.bucket.co/supported-languages/browser-sdk/globals#toolbaroptions) for details.
256
+
257
+
## Qualitative feedback on beta features
232
258
233
259
Bucket can collect qualitative feedback from your users in the form of a [Customer Satisfaction Score](https://en.wikipedia.org/wiki/Customer_satisfaction) and a comment.
234
260
@@ -248,8 +274,6 @@ You can find all the options to make changes to the default behavior in the [Buc
248
274
249
275
Bucket can assist you with collecting your user's feedback by offering a pre-built UI, allowing you to get started with minimal code and effort.
See [the reference](https://docs.bucket.co/supported-languages/browser-sdk/globals#toolbaroptions) for details.
308
-
309
307
## Event listeners
310
308
311
309
Event listeners allow for capturing various events occurring in the `BucketClient`. This is useful to build integrations with other system or for various debugging purposes. There are 5 kinds of events:
0 commit comments