Skip to content

Commit

Permalink
🪄 [QA] Update stage environments (#847)
Browse files Browse the repository at this point in the history
This is a pull request that upon merging will update stage environments
with recent `main` changes.
The environments that will be updated:
* Stage live: https://stage-live--taho-development.netlify.app/
* Stage fork: https://stage-fork--taho-development.netlify.app/

Read more: [Deployment to Production
Flow](https://github.com/tahowallet/dapp/blob/main/docs/testing-env.md)
  • Loading branch information
michalinacienciala authored Dec 7, 2023
2 parents 0913f3a + 316886b commit bb97e00
Show file tree
Hide file tree
Showing 118 changed files with 255 additions and 189 deletions.
61 changes: 61 additions & 0 deletions src/shared/assets/icons/xp-boost.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import classNames from "classnames"
import React, { CSSProperties } from "react"
import { easings, useSpring, animated } from "@react-spring/web"

import Portal from "./Portal"
import { noop } from "../utils"
import ClickableModalOverlay from "./Modals/ClickableModalOverlay"
import Portal from "../Interface/Portal"
import { noop } from "../../utils"
import ClickableModalOverlay from "./ClickableModalOverlay"

function CloseBtn({ onClick, style }: React.SVGProps<SVGSVGElement>) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactNode, CSSProperties } from "react"
import classNames from "classnames"
import { animated } from "@react-spring/web"
import { useRealmPanelTransition } from "shared/hooks"
import Portal from "./Portal"
import Portal from "../Interface/Portal"

type PortalSectionProps = {
children: ReactNode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode } from "react"
import { animated } from "@react-spring/web"
import { useVisibilityTransition } from "shared/hooks"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import closeIcon from "shared/assets/icons/s/close.svg"

export type PopupProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { CSSProperties, ReactNode, useState } from "react"
import infoIcon from "shared/assets/icons/m/info.svg"
import { animated } from "@react-spring/web"
import { useVisibilityTransition } from "shared/hooks"
import Icon from "./Icon"
import Icon from "../Media/Icon"

type TooltipProps = {
children: ReactNode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from "classnames"
import React, { CSSProperties, useEffect, useState } from "react"
import arrowIcon from "../assets/icons/s/arrow-down.svg"
import Icon from "./Icon"
import arrowIcon from "shared/assets/icons/s/arrow-down.svg"
import Icon from "../Media/Icon"

type AccordionType = "default" | "frame" | "challenge" | "panel"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import classNames from "classnames"
import React from "react"
import { parseTahoAmount, separateThousandsByComma } from "../utils"
import Icon from "./Icon"
import lockIcon from "../assets/icons/s/lock.svg"
import coinIcon from "../assets/taho-coin.svg"
import lockIcon from "shared/assets/icons/s/lock.svg"
import coinIcon from "shared/assets/taho-coin.svg"
import { parseTahoAmount, separateThousandsByComma } from "../../utils"
import Icon from "../Media/Icon"

type TahoAmountProps = {
amount?: bigint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react"
import { useVisibilityTransition } from "shared/hooks"
import { animated } from "@react-spring/web"
import GoldenCircleSpinner from "./Loaders/GoldenCircleSpinner"
import LoadingText from "./Loaders/LoadingText"
import GoldenCircleSpinner from "./GoldenCircleSpinner"
import LoadingText from "./LoadingText"

export default function FullPageLoader({ loaded }: { loaded: boolean }) {
const transition = useVisibilityTransition(!loaded)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react"
import Popup from "shared/components/Popup"
import Popup from "shared/components/Dialogs/Popup"
import cookiesIcon from "shared/assets/icons/cookies.svg"
import newTabIcon from "shared/assets/icons/s/new-tab.svg"
import { LINKS, LOCAL_STORAGE_COOKIES } from "shared/constants"
import { useLocalStorageChange } from "shared/hooks"
import Icon from "./Icon"
import Button from "./Button"
import Icon from "../Media/Icon"
import Button from "../Interface/Button"

export default function PrivacyPolicy() {
const { value, updateStorage } = useLocalStorageChange<boolean>(
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import realmPin from "shared/assets/realm-pin.svg"
import Avatar from "../Avatar"
import Avatar from "../Media/Avatar"

export default function RealmPin() {
return (
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/shared/components/Transactions/TransactionProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import iconNotifWrong from "shared/assets/icons/m/notif-wrong.svg"
import { TransactionProgressStatus } from "shared/types"
import classNames from "classnames"
import { isTransactionPending } from "shared/utils"
import Button from "../Button"
import Button from "../Interface/Button"
import Ripple from "../Loaders/Ripple"
import Icon from "../Icon"
import Icon from "../Media/Icon"

export type TransactionProgressProps = {
title?: string
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/Transactions/TransactionsModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
// import { isTransactionPending } from "shared/utils"
import Modal from "../Modal"
import Modal from "../Dialogs/Modal"
import TransactionProgress, {
TransactionProgressProps,
} from "./TransactionProgress"
Expand Down
1 change: 1 addition & 0 deletions src/shared/constants/game.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const WEEKLY_XP_ALLOCATION = 1_000_000
export const WEEKLY_XP_BOOST = 1.2
export const MOBILE_BREAKPOINT = 854
export const TABLET_BREAKPOINT = 1152
export const XP_COMING_SOON_TEXT = "XP Drop coming soon"
12 changes: 6 additions & 6 deletions src/shared/constants/realms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
realm7,
realm8,
realm9,
realm15,
realm19,
realm22,
// realm15,
Expand Down Expand Up @@ -66,10 +67,10 @@ export const REALMS_WITH_CONTRACT_ADDRESS: {
// Arbitrum
address: "0x42a0b5cab976d7a2a0038138dd1279b96b73f029",
},
// "15": {
// // zkSync
// address: "0x26770639eB1262cfA47A4C3Aa27902fa8FCA3465",
// },
"15": {
// zkSync
address: "0x26770639eB1262cfA47A4C3Aa27902fa8FCA3465",
},
"19": {
// Galxe
address: "0x6a3d1d9a7eb615be82b5c50bba8c6ecc7606afe6",
Expand All @@ -89,8 +90,7 @@ export const BASE_REALMS_MAP_DATA: RealmMapData[] = [
realm22,
]

// export const NEW_REALMS_MAP_DATA: RealmMapData[] = [realm15]
export const NEW_REALMS_MAP_DATA: RealmMapData[] = []
export const NEW_REALMS_MAP_DATA: RealmMapData[] = [realm15]

export const REALMS_MAP_DATA = [
...BASE_REALMS_MAP_DATA,
Expand Down
3 changes: 1 addition & 2 deletions src/shared/services/storage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// const STORAGE_SERVICE_VERSION = 3 // Update to add zkSync realm
const STORAGE_SERVICE_VERSION = 2 // Update to add Base realm
const STORAGE_SERVICE_VERSION = 3 // Update to add zkSync realm
const STORAGE_SERVICE_KEY = "taho.storage"

type Storage = {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Assistant/AssistantContent/AssistantChallenges.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import starIcon from "shared/assets/icons/star-2.svg"
import { useAssistant } from "shared/hooks"
import AssistantContent from "."
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Assistant/AssistantContent/AssistantWelcome.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import realmPointer from "shared/assets/realm-pointer.png"
import { useAssistant } from "shared/hooks"
import { selectNumberOfRealms, useDappSelector } from "redux-state"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Assistant/AssistantContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { CSSProperties, ReactNode } from "react"
import Popup from "shared/components/Popup"
import Popup from "shared/components/Dialogs/Popup"

type AssistantContentProps = {
children: ReactNode
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Assistant/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from "react"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import assistantImage from "shared/assets/assistant.png"
import Portal from "shared/components/Portal"
import Portal from "shared/components/Interface/Portal"
import { useAssistant } from "shared/hooks"
import AssistantWelcome from "./AssistantContent/AssistantWelcome"
import AssistantChallenges from "./AssistantContent/AssistantChallenges"
Expand Down
6 changes: 3 additions & 3 deletions src/ui/Claim/ClaimAlreadyClaimed.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react"
import { useHistory } from "react-router-dom"
import Button from "shared/components/Button"
import Modal from "shared/components/Modal"
import TahoAmount from "shared/components/TahoAmount"
import Button from "shared/components/Interface/Button"
import Modal from "shared/components/Dialogs/Modal"
import TahoAmount from "shared/components/Interface/TahoAmount"
import { useDappSelector, selectEligibility } from "redux-state"
import { ROUTES } from "shared/constants"
import ClaimHeader from "./components/ClaimHeader"
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Claim/ClaimCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useEffect, useState } from "react"
import classNames from "classnames"
import { Redirect } from "react-router-dom"
import { useDebounce } from "shared/hooks/helpers"
import Button from "shared/components/Button"
import Modal from "shared/components/Modal"
import Button from "shared/components/Interface/Button"
import Modal from "shared/components/Dialogs/Modal"
import Spinner from "shared/components/Loaders/Spinner"
import { isProbablyEVMAddress, resolveNameToAddress } from "shared/utils"
import {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Claim/ClaimCheckFail.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { useHistory } from "react-router-dom"
import Button from "shared/components/Button"
import Modal from "shared/components/Modal"
import Button from "shared/components/Interface/Button"
import Modal from "shared/components/Dialogs/Modal"
import {
useDappDispatch,
useDappSelector,
Expand Down
6 changes: 3 additions & 3 deletions src/ui/Claim/ClaimCheckSuccess.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react"
import { useHistory } from "react-router-dom"
import Modal from "shared/components/Modal"
import TahoAmount from "shared/components/TahoAmount"
import Modal from "shared/components/Dialogs/Modal"
import TahoAmount from "shared/components/Interface/TahoAmount"
import iconConnected from "shared/assets/icons/s/connected.svg"
import Button from "shared/components/Button"
import Button from "shared/components/Interface/Button"
import { useConnect } from "shared/hooks"
import {
useDappSelector,
Expand Down
6 changes: 3 additions & 3 deletions src/ui/Claim/ClaimFinish.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react"
import { useHistory } from "react-router-dom"
import TahoAmount from "shared/components/TahoAmount"
import Button from "shared/components/Button"
import Modal from "shared/components/Modal"
import TahoAmount from "shared/components/Interface/TahoAmount"
import Button from "shared/components/Interface/Button"
import Modal from "shared/components/Dialogs/Modal"
import { useDappSelector, selectEligibility } from "redux-state"
import { ROUTES } from "shared/constants"
import ClaimHeader from "./components/ClaimHeader"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Claim/components/ClaimCheckRules.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import classNames from "classnames"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import iconNotifCorrect from "shared/assets/icons/s/notif-correct.svg"
import iconNorifWrong from "shared/assets/icons/s/notif-wrong.svg"
import { separateThousandsByComma } from "shared/utils"
Expand Down
6 changes: 3 additions & 3 deletions src/ui/Claim/modals/ClaimCongratulations.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react"
import { selectRealmById, useDappSelector } from "redux-state"
import Button from "shared/components/Button"
import CongratulationsModal from "shared/components/Modals/CongratulationsModal"
import RealmIcon from "shared/components/RealmIcon"
import Button from "shared/components/Interface/Button"
import CongratulationsModal from "ui/Island/Modals/CongratulationsModal"
import RealmIcon from "ui/Island/Realms/RealmIcon"

type ClaimCongratulationsProps = {
displayAmount: string
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Claim/subpages/ClaimingDelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import React, { useState } from "react"
import { useHistory } from "react-router-dom"
import classNames from "classnames"
import Button from "shared/components/Button"
import Icon from "shared/components/Icon"
import Button from "shared/components/Interface/Button"
import Icon from "shared/components/Media/Icon"
import iconNotifCorrect from "shared/assets/icons/s/notif-correct.svg"
import iconSearch from "shared/assets/icons/m/search.svg"
import { ROUTES } from "shared/constants"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Claim/subpages/ClaimingFlow.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import { Redirect, Route, Switch } from "react-router-dom"
import Modal from "shared/components/Modal"
import Modal from "shared/components/Dialogs/Modal"
import { ROUTES } from "shared/constants"
import ClaimingPledge from "./ClaimingPledge"
import ClaimingSignTx from "./ClaimingSignTx"
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Claim/subpages/ClaimingPledge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { useHistory } from "react-router-dom"
import Button from "shared/components/Button"
import Icon from "shared/components/Icon"
import Button from "shared/components/Interface/Button"
import Icon from "shared/components/Media/Icon"
import earthIcon from "shared/assets/icons/earth.svg"
import communityIcon from "shared/assets/icons/community.svg"
import rulerIcon from "shared/assets/icons/ruler.svg"
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Claim/subpages/ClaimingSignTx.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from "react"
import Icon from "shared/components/Icon"
import Button from "shared/components/Button"
import Icon from "shared/components/Media/Icon"
import Button from "shared/components/Interface/Button"
import lockIcon from "shared/assets/icons/s/lock.svg"
import ClaimingTransactions from "./ClaimingTransactions"

Expand Down
10 changes: 5 additions & 5 deletions src/ui/Claim/subpages/ClaimingStats.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react"
import TahoAmount from "shared/components/TahoAmount"
import Modal from "shared/components/Modal"
import Icon from "shared/components/Icon"
import TahoAmount from "shared/components/Interface/TahoAmount"
import Modal from "shared/components/Dialogs/Modal"
import Icon from "shared/components/Media/Icon"
import infoIcon from "shared/assets/icons/m/info.svg"
import Accordion from "shared/components/Accordion"
import Accordion from "shared/components/Interface/Accordion"
import { useDappSelector, selectEligibility } from "redux-state"
import { RealmCutout } from "shared/components/RealmCutout"
import { RealmCutout } from "shared/components/Realm"
import ClaimCheckRules from "../components/ClaimCheckRules"

const MOCK_REALM = {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Claim/subpages/ClaimingSteps.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import classNames from "classnames"
import Icon from "shared/components/Icon"
import Icon from "shared/components/Media/Icon"
import iconNotifCorrect from "shared/assets/icons/s/notif-correct.svg"
import iconStatusCurrent from "shared/assets/icons/s/status-current.svg"
import iconStatusUpcoming from "shared/assets/icons/s/status-upcoming.svg"
Expand Down
Loading

0 comments on commit bb97e00

Please sign in to comment.