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: feature flags added to dev mode #133

Merged
merged 8 commits into from
Aug 10, 2022

Conversation

sumana2001
Copy link
Collaborator

Screen.Recording.2022-08-08.at.9.12.49.PM.mov

Closes #131

Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

I though about another way to manage page visibility, not sure it's better. As you prefer. We can merge without the changes

src/pages/settings/index.jsx Outdated Show resolved Hide resolved
src/components/ResponsiveAppBar.jsx Outdated Show resolved Hide resolved
src/pages/settings/index.jsx Outdated Show resolved Hide resolved
src/App.js Show resolved Hide resolved
src/localeStorageManager.js Outdated Show resolved Hide resolved
Comment on lines 27 to 30
Object.keys(visiblePages).forEach((pageUrl)=>{
visiblePages[pageUrl]=event.target.checked
localSettings.update(localSettingsKeys.visiblePages[pageUrl], event.target.checked);
})
Copy link
Member

Choose a reason for hiding this comment

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

Don't care about that, the pages will just appear as they was before. Not a problem

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this so that when devmode is switched on, regardless of the previous states, both nutrition and insights will be turned on

src/pages/settings/index.jsx Show resolved Hide resolved
src/pages/settings/index.jsx Show resolved Hide resolved
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@alexfauquette alexfauquette merged commit fc453a6 into openfoodfacts:master Aug 10, 2022
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 flags within the dev mode
2 participants