diff --git a/.env b/.env index 853666f44c..c53893e9cb 100644 --- a/.env +++ b/.env @@ -56,4 +56,4 @@ VITE_APP_SITE_URL="https://app.dev.decentdao.org" VITE_APP_WALLET_CONNECT_PROJECT_ID="" # FEATURE FLAGS (Must equal "ON") -VITE_APP_FLAG_STREAMS="" +VITE_APP_FLAG_DEVELOPMENT_MODE="" diff --git a/package-lock.json b/package-lock.json index 024276595c..7d72498b8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "decent-interface", - "version": "0.3.5", + "version": "0.3.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "decent-interface", - "version": "0.3.5", + "version": "0.3.6", "hasInstallScript": true, "dependencies": { "@amplitude/analytics-browser": "^2.11.1", diff --git a/package.json b/package.json index fb4b9ff7e0..a45dedf1ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "decent-interface", - "version": "0.3.5", + "version": "0.3.6", "private": true, "dependencies": { "@amplitude/analytics-browser": "^2.11.1", diff --git a/src/components/DaoCreator/formComponents/GuardDetails.tsx b/src/components/DaoCreator/formComponents/GuardDetails.tsx index 03eabbbced..14432540d2 100644 --- a/src/components/DaoCreator/formComponents/GuardDetails.tsx +++ b/src/components/DaoCreator/formComponents/GuardDetails.tsx @@ -161,7 +161,7 @@ function GuardDetails(props: ICreationStepProps) { { setFieldValue('freeze.freezeVotesThreshold', valuePair); }} diff --git a/src/components/pages/Roles/RoleCard.tsx b/src/components/pages/Roles/RoleCard.tsx index 1cb9fb5dd8..88c52ed552 100644 --- a/src/components/pages/Roles/RoleCard.tsx +++ b/src/components/pages/Roles/RoleCard.tsx @@ -3,7 +3,6 @@ import { CaretCircleRight, CaretRight } from '@phosphor-icons/react'; import { formatDuration, intervalToDuration } from 'date-fns'; import { useTranslation } from 'react-i18next'; import { getAddress, zeroAddress } from 'viem'; -import { isFeatureEnabled } from '../../../constants/common'; import { useGetDAOName } from '../../../hooks/DAO/useGetDAOName'; import useAvatar from '../../../hooks/utils/useAvatar'; import { useNetworkConfig } from '../../../providers/NetworkConfig/NetworkConfigProvider'; @@ -62,7 +61,7 @@ export function AvatarAndRoleName({ > {wearerAddress ? accountDisplayName : t('unassigned')} - {isFeatureEnabled('STREAMS') && paymentsCount !== undefined && ( + {paymentsCount !== undefined && ( - {isFeatureEnabled('STREAMS') && - payments && + {payments && payments.map((payment, index) => ( - {isFeatureEnabled('STREAMS') && roleHat.payments && ( + {roleHat.payments && ( <> - {isFeatureEnabled('STREAMS') && roleHat.payments && ( + {roleHat.payments && ( <> {t('member')} - {isFeatureEnabled('STREAMS') && ( - - {t('activePayments')} - - )} + + {t('activePayments')} + ); @@ -195,7 +192,7 @@ export function RolesRow({ {name} - {isFeatureEnabled('STREAMS') && } + ); } @@ -227,11 +224,7 @@ export function RolesRowEdit({ editStatus={editStatus} /> - {isFeatureEnabled('STREAMS') && ( - p.isStreaming()).length || undefined} - /> - )} + p.isStreaming()).length || undefined} /> ); } diff --git a/src/components/pages/Roles/forms/RoleFormAssetSelector.tsx b/src/components/pages/Roles/forms/RoleFormAssetSelector.tsx index 5c9e262922..6d5663ab45 100644 --- a/src/components/pages/Roles/forms/RoleFormAssetSelector.tsx +++ b/src/components/pages/Roles/forms/RoleFormAssetSelector.tsx @@ -304,6 +304,7 @@ export function AssetSelector({ formIndex, disabled }: { formIndex: number; disa { setFieldValue(field.name, valuePair, true); }} diff --git a/src/components/pages/Roles/forms/RoleFormPaymentStream.tsx b/src/components/pages/Roles/forms/RoleFormPaymentStream.tsx index cb1b5c85eb..2dedd91b98 100644 --- a/src/components/pages/Roles/forms/RoleFormPaymentStream.tsx +++ b/src/components/pages/Roles/forms/RoleFormPaymentStream.tsx @@ -1,11 +1,12 @@ import { Alert, Box, Button, Flex, FormControl, Icon, Show, Text } from '@chakra-ui/react'; import { ArrowRight, Info, Trash } from '@phosphor-icons/react'; -import { addDays } from 'date-fns'; +import { addDays, addMinutes } from 'date-fns'; import { FormikErrors, useFormikContext } from 'formik'; import { useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { CARD_SHADOW } from '../../../../constants/common'; +import { CARD_SHADOW, isDevMode } from '../../../../constants/common'; import { useRolesStore } from '../../../../store/roles'; +import { BigIntValuePair } from '../../../../types'; import { ModalType } from '../../../ui/modals/ModalProvider'; import { useDecentModal } from '../../../ui/modals/useDecentModal'; import { DecentDatePicker } from '../../../ui/utils/DecentDatePicker'; @@ -201,6 +202,25 @@ export default function RoleFormPaymentStream({ formIndex }: { formIndex: number {t('save')} )} + {isDevMode() && ( + + )} {canBeCancelled && (