-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add InternalClientProvider for Toolbar flags and analytics #288
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
base: main
Are you sure you want to change the base?
Conversation
8563cfb to
e506011
Compare
- Introduced InternalClientProvider to manage the internal LaunchDarkly client for toolbar features and analytics.
- Added support for loading environment variables with the TOOLBAR_ prefix in the toolbar configuration files. - Introduced a new vite-env.d.ts file to define environment variable types for better TypeScript support.
…ternal client - Added support for TOOLBAR_INTERNAL_BASE_URL, TOOLBAR_INTERNAL_STREAM_URL, and TOOLBAR_INTERNAL_EVENTS_URL in the toolbar configuration.
8a25833 to
e3839a1
Compare
cspath1
left a comment
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 is great!! I do think we will want to add env variables (probably via terraform) for where the toolbar env variables will come from during the CI/CD process. Other than that, this is such an exciting update that opens the door for a whole lot of awesome features moving forward!
| @@ -0,0 +1,129 @@ | |||
| import { describe, test, expect, vi, beforeEach } from 'vitest'; | |||
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.
should we move this into the tests folder?
Description
This PR adds support for an internal LaunchDarkly client within the toolbar package, enabling toolbar-specific feature flags and analytics tracking. The internal client is separate from the user's application client and can be optionally configured via environment variables.
What does this PR do?
InternalClientProvidercomponent to manage the toolbar's internal LaunchDarkly clientcreateToolbarFlagFunctionfor type-safe access to toolbar feature flagsType of Change
Screenshots/Videos