Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
🤖[deprecated] Generated by Copilot at 7e3381b
This pull request removes the
FeatureFlagsProvider
component and the/feature/getFeatureFlags
endpoint, as they are no longer needed. It also improves the integration of feature flags, pro status, and other preferences between the API and the web app, and allows the staff to view and manage these settings for the users. Additionally, it formats some code for readability and consistency.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
🤖[deprecated] Generated by Copilot at 7e3381b
/feature/getFeatureFlags
to/preference/getPreferences
in theStaffMode.tsx
andGardenerMode.tsx
components, as the former endpoint is deprecated and the latter endpoint returns the updated feature flags along with other preferences (link, link)/feature/getFeatureFlags
API endpoint as it is no longer used (link)ProfileStaffTool.tsx
component, which returns the preference object that includes the pro status and the feature flags (link)/preference/getPreferences
API endpoint, and add the features to the response object as an array of feature keys (link)/internal/cloudflare/purge.ts
API endpoint to improve readability and consistency (link)Emoji
📝🚀🔧