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

Add a service setting to switch basic view on and off #2148

Merged
merged 4 commits into from
Jul 10, 2018
Merged

Conversation

quis
Copy link
Member

@quis quis commented Jul 10, 2018

image


image


The new row and page will only appear for services who already have the feature switched on. This is because we are not launching the feature yet, so it shouldn’t be accessible to just anyone.


N.B. a lot of the volume of changes in the PR are from ba39d00, which is just a refactoring commit. May be best reviewed commit-by-commit.

@quis quis force-pushed the add-basic-setting branch from 998882e to a5906f0 Compare July 10, 2018 09:58
quis added 4 commits July 10, 2018 11:44
Often we show/hide these rows based on what permissions a service has.
This commits refactors that check into a reusable macro, rather than
having to write the same `if` statements all the time.
This commit adds:
- a row to the settings page…
- …which links to a page explaining what basic view is

The new row (and link) will only appear for services who already have
the feature switched on. This is because we are not launching the
feature yet, so it shouldn’t be available to just anyone.
This commit adds radio buttons to the ‘basic view’ page. This will let
users choose whether basic view is on or off for their service.

As before, this page will only be linked to if a service already has
basic view, so this commit does not launch the new feature.
Since platform admins can use the new settings page, this commit:
- links to that page
- removes the platform-admin-only endpoint that switches basic view on
  and off
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