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

"Main" branch clean-up #12

Merged
merged 14 commits into from
Jan 15, 2024
Merged
Changes from 4 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 .env
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ REACT_APP_DAPP_DEVELOPMENT_TESTNET_CONTRACTS=$DAPP_DEVELOPMENT_TESTNET_CONTRACTS
REACT_APP_FEATURE_FLAG_TBTC_V2=true
REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true
REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
REACT_APP_FEATURE_FLAG_POSTHOG=false
REACT_APP_FEATURE_FLAG_SENTRY=$SENTRY_SUPPORT
REACT_APP_FEATURE_FLAG_LEDGER_LIVE=true
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ REACT_APP_DAPP_DEVELOPMENT_TESTNET_CONTRACTS=$DAPP_DEVELOPMENT_TESTNET_CONTRACTS
REACT_APP_FEATURE_FLAG_TBTC_V2=true
REACT_APP_FEATURE_FLAG_TBTC_V2_REDEMPTION=true
REACT_APP_FEATURE_FLAG_MULTI_APP_STAKING=true
REACT_APP_FEATURE_FLAG_FEEDBACK_MODULE=false
REACT_APP_FEATURE_FLAG_POSTHOG=$POSTHOG_SUPPORT
REACT_APP_POSTHOG_API_KEY=$POSTHOG_API_KEY
REACT_APP_POSTHOG_HOSTNAME_HTTP=$POSTHOG_HOSTNAME_HTTP
3 changes: 0 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -32,8 +32,6 @@ import { isSameETHAddress } from "./web3/utils"
import { ThresholdProvider } from "./contexts/ThresholdContext"
import { useSaveConnectedAddressToStore } from "./hooks/useSaveConnectedAddressToStore"
import { usePosthog } from "./hooks/posthog"
import { featureFlags } from "./constants"
import FeedbackRoutesButton from "./components/FeedbackRoutesButton"
import { useSubscribeToDepositRevealedEvent } from "./hooks/tbtc/useSubsribeToDepositRevealedEvent"
import {
useSubscribeToOptimisticMintingFinalizedEvent,
@@ -120,7 +118,6 @@ const Layout = () => {
<Outlet />
</Box>
</Box>
{featureFlags.FEEDBACK_MODULE && <FeedbackRoutesButton />}
</Box>
)
}
70 changes: 0 additions & 70 deletions src/components/FeedbackAnalyticsInfo.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions src/components/FeedbackRoutesButton.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions src/components/Modal/AnalyticsModal/index.tsx

This file was deleted.

117 changes: 0 additions & 117 deletions src/components/Modal/FeedbackSubmissionModal/index.tsx

This file was deleted.

15 changes: 1 addition & 14 deletions src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { NavItemDetail } from "./NavItem"
import {
IoHomeSharp,
IoChatbubbleEllipsesOutline,
IoChatbubbleEllipsesSharp,
} from "react-icons/all"
import { IoHomeSharp } from "react-icons/all"
import { useLocation } from "react-router-dom"
import { useMemo } from "react"
import DesktopSidebar from "./DesktopSidebar"
@@ -34,15 +30,6 @@ const Sidebar = () => {
} as NavItemDetail)
}

if (featureFlags.FEEDBACK_MODULE) {
navItems.push({
text: "Feedback",
activeIcon: IoChatbubbleEllipsesSharp,
passiveIcon: IoChatbubbleEllipsesOutline,
href: "/feedback/usability-survey",
})
}

return navItems
}, [pathname])

3 changes: 0 additions & 3 deletions src/constants/featureFlags.ts
Original file line number Diff line number Diff line change
@@ -11,9 +11,6 @@ export const POSTHOG =
getEnvVariable(EnvVariable.FEATURE_FLAG_POSTHOG) === "true" &&
!window.location.href.includes("dashboard.test")

export const FEEDBACK_MODULE =
getEnvVariable(EnvVariable.FEATURE_FLAG_FEEDBACK_MODULE) === "true"

export const SENTRY = getEnvVariable(EnvVariable.FEATURE_FLAG_SENTRY) === "true"

export const TBTC_V2_REDEMPTION =
1 change: 0 additions & 1 deletion src/enums/env.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ const envVariables = [
"FEATURE_FLAG_TBTC_V2_REDEMPTION",
"FEATURE_FLAG_MULTI_APP_STAKING",
"FEATURE_FLAG_POSTHOG",
"FEATURE_FLAG_FEEDBACK_MODULE",
"FEATURE_FLAG_LEDGER_LIVE",
"POSTHOG_HOSTNAME_HTTP",
"POSTHOG_API_KEY",
2 changes: 0 additions & 2 deletions src/enums/modal.ts
Original file line number Diff line number Diff line change
@@ -5,9 +5,7 @@ export enum ModalType {
TransactionFailed = "TRANSACTION_FAILED",
TbtcRecoveryJson = "TBTC_RECOVERY_JSON",
TbtcMintingConfirmation = "TBTC_MINTING_CONFIRMATION",
Analytics = "ANALYTICS",
NewTBTCApp = "NEW_TBTC_APP",
FeedbackSubmission = "FEEDBACK_SUBMIT",
GenerateNewDepositAddress = "TBTC_GENERATE_NEW_DEPOSIT_ADDRESS",
InitiateUnminting = "INITIATE_UNMINTING",
}
23 changes: 0 additions & 23 deletions src/hooks/useAnalytics.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/pages/Feedback/BugReport/index.tsx

This file was deleted.

101 changes: 0 additions & 101 deletions src/pages/Feedback/Settings/index.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/pages/Feedback/Suggestions/index.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/pages/Feedback/UsabilitySurvey/index.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions src/pages/Feedback/index.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/pages/Overview/AnalyticsBanner.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/pages/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Overview from "./Overview"
import TBTC from "./tBTC"
import Feedback from "./Feedback"

export const pages = [Overview, TBTC, Feedback]
export const pages = [Overview, TBTC]
4 changes: 0 additions & 4 deletions src/types/modal.ts
Original file line number Diff line number Diff line change
@@ -8,13 +8,11 @@ import {
} from "../components/Modal/TransactionModal"
import TbtcRecoveryFileModalModal from "../components/Modal/TbtcRecoveryFileModal"
import TbtcMintingConfirmationModal from "../components/Modal/TbtcMintingConfirmationModal"
import AnalyticsModal from "../components/Modal/AnalyticsModal"
import {
GenerateNewDepositAddress,
InitiateUnminting,
NewTBTCApp,
} from "../components/Modal/tBTC"
import FeedbackSubmissionModal from "../components/Modal/FeedbackSubmissionModal"

export const MODAL_TYPES: Record<ModalType, ElementType> = {
[ModalType.SelectWallet]: SelectWalletModal,
@@ -24,9 +22,7 @@ export const MODAL_TYPES: Record<ModalType, ElementType> = {
[ModalType.TransactionFailed]: TransactionFailed,
[ModalType.TbtcRecoveryJson]: TbtcRecoveryFileModalModal,
[ModalType.TbtcMintingConfirmation]: TbtcMintingConfirmationModal,
[ModalType.Analytics]: AnalyticsModal,
[ModalType.NewTBTCApp]: NewTBTCApp,
[ModalType.FeedbackSubmission]: FeedbackSubmissionModal,
[ModalType.GenerateNewDepositAddress]: GenerateNewDepositAddress,
[ModalType.InitiateUnminting]: InitiateUnminting,
}