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

stage url update #2056

Merged
merged 7 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/test-files-on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_API_URL: ${{ secrets.GH_REACT_APP_API_URL }}
REACT_APP_BLOCKNATIVE_ID: ${{ secrets.GH_REACT_APP_BLOCKNATIVE_ID }}
REACT_APP_FILES_VERIFIER_NAME: ${{ secrets.GH_REACT_APP_FILES_VERIFIER_NAME }}
REACT_APP_FILES_UUID_VERIFIER_NAME: 'chainsafe-uuid-testnet'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_API_URL: ${{ secrets.GH_REACT_APP_API_URL }}
REACT_APP_BLOCKNATIVE_ID: ${{ secrets.GH_REACT_APP_BLOCKNATIVE_ID }}
REACT_APP_FILES_VERIFIER_NAME: ${{ secrets.GH_REACT_APP_FILES_VERIFIER_NAME }}
REACT_APP_FILES_UUID_VERIFIER_NAME: 'chainsafe-uuid-testnet'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_API_URL: ${{ secrets.GH_REACT_APP_API_URL }}
REACT_APP_BLOCKNATIVE_ID: ${{ secrets.GH_REACT_APP_BLOCKNATIVE_ID }}
REACT_APP_FILES_VERIFIER_NAME: ${{ secrets.GH_REACT_APP_FILES_VERIFIER_NAME }}
REACT_APP_FILES_UUID_VERIFIER_NAME: 'chainsafe-uuid-testnet'
Expand Down
2 changes: 1 addition & 1 deletion packages/files-ui/.env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORT=3000
HTTPS=false

REACT_APP_API_URL=https://stage.imploy.site/api/v1
REACT_APP_API_URL=https://stage-api.chainsafe.io/api/v1

REACT_APP_STRIPE_PK=
REACT_APP_SENTRY_DSN_URL=
Expand Down
2 changes: 1 addition & 1 deletion packages/files-ui/cypress/support/utils/apiTestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BucketType } from "@chainsafe/files-api-client"
import { navigationMenu } from "../page-objects/navigationMenu"
import { homePage } from "../page-objects/homePage"

const API_BASE_URL = "https://stage.imploy.site/api/v1"
const API_BASE_URL = "https://stage-api.chainsafe.io/api/v1"
const REFRESH_TOKEN_KEY = "csf.refreshToken"
const FREE_PLAN_ID = "prod_JwRu6Ph25b1f2O"

Expand Down
6 changes: 6 additions & 0 deletions packages/files-ui/cypress/tests/survey-banner-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ describe("Survey Banner", () => {
})

it("User should see banner if account age is greater than 7 days and api response is empty", () => {
cy.intercept("GET", "**/user/profile", (req) => {
req.on("response", (res) => {
res.body.created_at = profileCreatedDate
})
})

cy.intercept("GET", "**/user/store", {
body: {}
})
Expand Down
2 changes: 1 addition & 1 deletion packages/files-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const onboardConfig = {
const App = () => {
const { canUseLocalStorage } = useLocalStorage()

const apiUrl = process.env.REACT_APP_API_URL || "https://stage.imploy.site/api/v1"
const apiUrl = process.env.REACT_APP_API_URL || "https://stage-api.chainsafe.io/api/v1"
// This will default to testnet unless mainnet is specifically set in the ENV
const directAuthNetwork = (process.env.REACT_APP_DIRECT_AUTH_NETWORK === "mainnet") ? "mainnet" : "testnet"

Expand Down
2 changes: 1 addition & 1 deletion packages/storage-ui/.env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORT=3000
HTTPS=false

REACT_APP_API_URL=https://stage.imploy.site/api/v1
REACT_APP_API_URL=https://stage-api.chainsafe.io/api/v1
REACT_APP_IPFS_GATEWAY=https://ipfs.chainsafe.io/ipfs

REACT_APP_STRIPE_PK=
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-ui/cypress/support/utils/apiTestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FilesApiClient } from "@chainsafe/files-api-client"
import { BucketType } from "@chainsafe/files-api-client"

const REFRESH_TOKEN_KEY = "css.refreshToken"
const API_BASE_URL = "https://stage.imploy.site/api/v1"
const API_BASE_URL = "https://stage-api.chainsafe.io/api/v1"

const getApiClient = () => {
// Disable the internal Axios JSON deserialization as this is handled by the client
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const App = () => {
const { initHotjar } = useHotjar()
const { canUseLocalStorage } = useLocalStorage()
const hotjarId = process.env.REACT_APP_HOTJAR_ID
const apiUrl = process.env.REACT_APP_API_URL || "https://stage.imploy.site/api/v1"
const apiUrl = process.env.REACT_APP_API_URL || "https://stage-api.chainsafe.io/api/v1"
// This will default to testnet unless mainnet is specifically set in the ENV

useEffect(() => {
Expand Down