Skip to content
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

feat: check flag status snippet #8097

Merged
merged 2 commits into from
Sep 5, 2024
Merged

feat: check flag status snippet #8097

merged 2 commits into from
Sep 5, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 5, 2024

About the changes

Screenshot 2024-09-05 at 10 29 20

Important files

Discussion points

Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 5, 2024 9:07am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2024 9:07am

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@@ -181,3 +184,25 @@ final unleash = UnleashClient(
clientKey: '<YOUR_API_TOKEN>',
appName: 'unleash-onboarding-flutter');`,
};

// TODO: add idiomatic way of checking flag status that will populate metrics
export const checkFlagCodeSnippets: Record<SdkName, string> = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all other snippets will be added later

'implementation("io.getunleash:unleash-android:${unleash.sdk.version}")',
Android: `implementation("io.getunleash:unleash-android:\${unleash.sdk.version}")

// enabled required permissions
Copy link
Contributor Author

Choose a reason for hiding this comment

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

android has an extra step compared to all other SDKs. We can either make it separate in the UI or add to the install section

@@ -46,7 +46,7 @@ const SdkListSection = styled('div')(({ theme }) => ({

const SdkTile = styled('div')(({ theme }) => ({
fontSize: theme.typography.body2.fontSize,
backgroundColor: theme.palette.common.white,
backgroundColor: theme.palette.background.default,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix dark theme

@@ -179,6 +179,7 @@ export const NewInUnleash = ({
summary,
}) => (
<NewInUnleashItem
key={label}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix react warning from dev mode

@kwasniew kwasniew requested a review from sjaanus September 5, 2024 09:17
@kwasniew kwasniew merged commit 62d03d3 into main Sep 5, 2024
11 checks passed
@kwasniew kwasniew deleted the check-flag-status-snippet branch September 5, 2024 09:17
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