Skip to content

feat(flags): add gradual feature flag provider - #1364

Open
damilare0813 wants to merge 2 commits into
accesslayerorg:devfrom
damilare0813:fix/1329-feature-flags
Open

damilare0813 wants to merge 2 commits into
accesslayerorg:devfrom
damilare0813:fix/1329-feature-flags

Conversation

@damilare0813

Copy link
Copy Markdown

Summary

  • add a reusable feature flag provider and useFeatureFlag hook
  • support deterministic percentage rollouts per stable subject
  • parse Vite configuration safely and fail closed on malformed flags

Closes #1329

Validation

  • git diff --check
  • focused malware-marker inspection

@drips-wave

drips-wave Bot commented Nov 22, 2026

Copy link
Copy Markdown

@damilare0813 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@damilare0813

Copy link
Copy Markdown
Author

@Chucks1093 Fixed the Fast Refresh lint failure by moving useFeatureFlag into a separate module and isolating the context. Local validation passes: pnpm lint and pnpm exec vitest run src/providers/__tests__/FeatureFlagProvider.test.tsx (2 tests). Pushed commit b3d0811. Please review.

@Chucks1093

Copy link
Copy Markdown
Member

✅ PR Ready for Review

Due to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging.

This PR has passed all automated checks:

  • ✅ Security scan — no malicious code detected
  • ✅ No merge conflicts
  • ✅ CI checks passed

Next step: Please share this PR link in our Telegram group so a maintainer can review and merge it: https://t.me/c/accesslayerorg/8514

@damilare0813
damilare0813 force-pushed the fix/1329-feature-flags branch from b3d0811 to 1a10979 Compare November 23, 2026 22:05
@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Possible malicious code: please review before merging.

An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch.

Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file.

@damilare0813: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine and / or GitHub account may be compromised. Please review your machine for a possible malware infection, and rotate your GitHub credentials / SSH keys as needed.

Flagged files at commit 1a10979:

Only merge once you're confident these files are safe.

ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network.

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.

Add feature flag provider for gradual rollout of new trading features

2 participants