Skip to content

Commit 9429f41

Browse files
authored
Component Library Beta configurable via env (#1425)
## Description <!-- Please provide a brief description of the changes made in this pull request. Include any relevant context or reasoning for the changes. --> Moves component library beta to a env variable so we can custom configure it for shopify internal vs open source builds ## Related Issue and Pull requests <!-- Link to any related issues using the format #<issue-number> --> ## Type of Change <!-- Please delete options that are not relevant --> - [x] Breaking change ## Checklist <!-- Please ensure the following are completed before submitting the PR --> - [ ] I have tested this does not break current pipelines / runs functionality - [ ] I have tested the changes on staging ## Screenshots (if applicable) <!-- Include any screenshots that might help explain the changes or provide visual context --> ## Test Instructions <!-- Detail steps and prerequisites for testing the changes in this PR --> ## Additional Comments <!-- Add any additional context or information that reviewers might need to know regarding this PR -->
1 parent 5a9bfbe commit 9429f41

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.env.example

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# When cloning this repo, create a copy of this file named ".env" and populate the values accordingly (or leave blank us fallback values)
22

3-
# Pipeline Studio App
3+
# Tangle
44
VITE_BACKEND_API_URL=<api_endpoint>
55
VITE_ABOUT_URL=<about_url>
66
VITE_PRIVACY_POLICY_URL=<privacy_policy_url>
@@ -15,6 +15,18 @@ VITE_ENABLE_ROUTER_DEVTOOLS=<boolean>
1515
# Submitters
1616
VITE_ENABLE_GOOGLE_CLOUD_SUBMITTER=<boolean>
1717

18-
# Github
18+
# Auth
1919
VITE_REQUIRE_AUTHORIZATION=<boolean>
20-
VITE_GITHUB_CLIENT_ID=<string>
20+
21+
# Github
22+
VITE_GITHUB_CLIENT_ID=<string>
23+
VITE_GITHUB_PAGES=<boolean>
24+
25+
# Hugging Face
26+
VITE_HUGGING_FACE_AUTHORIZATION=<boolean>
27+
28+
# Betas
29+
VITE_DEFAULT_REMOTE_COMPONENT_LIBRARY_BETA=<boolean>
30+
31+
# Dev Tools
32+
VITE_ENABLE_DEBUG_MODE=<boolean>

src/betaFlags.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { BetaFlag } from "@/types/betaFlags";
22

3+
const isRemoteComponentLibraryEnabled =
4+
import.meta.env.VITE_DEFAULT_REMOTE_COMPONENT_LIBRARY_BETA === "true";
5+
36
export const ExistingBetaFlags = {
47
["highlight-node-on-component-hover"]: {
58
name: "Highlight tasks on component hover",
@@ -11,7 +14,7 @@ export const ExistingBetaFlags = {
1114
["remote-component-library-search"]: {
1215
name: "Published Components Library",
1316
description: "Enable the Published Components Library feature.",
14-
default: true,
17+
default: isRemoteComponentLibraryEnabled,
1518
} as BetaFlag,
1619

1720
["github-component-library"]: {

0 commit comments

Comments
 (0)