diff --git a/README.md b/README.md index 587c65cf..227925a6 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,11 @@ The environment variables are as follows: * GH_API_ACCESS_TOKEN: Used to authenticate with GitHub when adding or getting information about Github Issues. Must correspond to the `access_token` provided by GitHub. * GH_ISSUE_REPO_NAME: Identifies the repository, in `/` format, where the issue will be created, and where information about issues will be retrieved. Can be customized for local development. * VALIDATE_EMAIL_SECRET_KEY: Used to sign and verify JWT tokens for the validate email feature. Used to identify that any JWT tokens for the validate email feature produced are recognizable by this version of the app and no other. +V2 Feature gating +* VITE_V2_FEATURE_ENHANCED_SEARCH: 'enabled' shows enhanced search features (like follow) in the client app, 'disabled' hides them +* VITE_V2_FEATURE_AUTHENTICATE: 'enabled' allows sign in and sign out of the web app, 'disabled' disallows. +* VITE_V2_FEATURE_CREATE_RECORDS: 'enabled' allows user to create data sources and requests from within the app, 'disabled' changes the links to lead to the current Airtable forms + #### .env Example diff --git a/client/src/components/SearchForm.vue b/client/src/components/SearchForm.vue index 2c90463a..ad6b4976 100644 --- a/client/src/components/SearchForm.vue +++ b/client/src/components/SearchForm.vue @@ -67,9 +67,22 @@

If you have a question to answer, we can help

- + Make a Request + + Make a request + @@ -91,6 +104,7 @@ import _debounce from 'lodash/debounce'; import _isEqual from 'lodash/isEqual'; import { useRouter, RouterLink, useRoute } from 'vue-router'; import { getTypeaheadLocations } from '@/api/typeahead'; +import { getIsV2FeatureEnabled } from '@/util/featureFlagV2'; const router = useRouter(); diff --git a/client/src/pages/data-request/[id].vue b/client/src/pages/data-request/[id].vue index baed4fba..f6e472c8 100644 --- a/client/src/pages/data-request/[id].vue +++ b/client/src/pages/data-request/[id].vue @@ -90,9 +90,6 @@ diff --git a/client/src/pages/search/results.vue b/client/src/pages/search/results.vue index 1a7bc4d5..364d7bd9 100644 --- a/client/src/pages/search/results.vue +++ b/client/src/pages/search/results.vue @@ -18,7 +18,7 @@