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

ui: Adds easily accessible env for user settable 'debug' settings #5668

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

johncowen
Copy link
Contributor

This is a synchronous only 'debug' setting accessor, uses localStorage
first and falls back to ember config.

Essentially this is 'feature flags' for the UI, but as we can't/don't use a third party '...as a service' we use localStorage instead. This is just a slight expansion on what we had previously to make it easier to use. Future work may involve an injectable Service exposing this for usage in JS classes, plus a helper for usage in templates.

Lastly, please note these are largely temporary settings/forking, and the settings themselves are extremely likely to be removed in future. They are purely to give us options if we need to debug new features with users, hence 'debug' settings, which is why we don't want a proper interface allow users to change them easily (right now at least).

'Proper' user settings will continue to be available in the Settings area of the UI.

This is a synchronous only 'debug' setting accessor, uses localStorage
first and falls back to ember config.
@johncowen johncowen added the theme/ui Anything related to the UI label Apr 16, 2019
@johncowen johncowen requested a review from a team April 16, 2019 09:46
Copy link
Collaborator

@meirish meirish left a comment

Choose a reason for hiding this comment

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

Nice little improvement!

@johncowen johncowen merged commit 4cc119e into ui-staging Apr 17, 2019
@johncowen johncowen deleted the feature/ui-env branch April 17, 2019 08:25
johncowen added a commit that referenced this pull request Apr 29, 2019
…5668)

This is a synchronous only 'debug' setting accessor, uses localStorage
first and falls back to ember config.
johncowen added a commit that referenced this pull request May 1, 2019
…5668)

This is a synchronous only 'debug' setting accessor, uses localStorage
first and falls back to ember config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants