diff --git a/src/App.module.css b/protocol-dashboard/src/App.module.css similarity index 100% rename from src/App.module.css rename to protocol-dashboard/src/App.module.css diff --git a/src/App.tsx b/protocol-dashboard/src/App.tsx similarity index 100% rename from src/App.tsx rename to protocol-dashboard/src/App.tsx diff --git a/src/AppMobile.module.css b/protocol-dashboard/src/AppMobile.module.css similarity index 100% rename from src/AppMobile.module.css rename to protocol-dashboard/src/AppMobile.module.css diff --git a/src/assets/animations/loadingSpinningGlyph.json b/protocol-dashboard/src/assets/animations/loadingSpinningGlyph.json similarity index 100% rename from src/assets/animations/loadingSpinningGlyph.json rename to protocol-dashboard/src/assets/animations/loadingSpinningGlyph.json diff --git a/src/assets/img/WhatIsAudiusBackground@2x.jpg b/protocol-dashboard/src/assets/img/WhatIsAudiusBackground@2x.jpg similarity index 100% rename from src/assets/img/WhatIsAudiusBackground@2x.jpg rename to protocol-dashboard/src/assets/img/WhatIsAudiusBackground@2x.jpg diff --git a/src/assets/img/apiBanner@2x.png b/protocol-dashboard/src/assets/img/apiBanner@2x.png similarity index 100% rename from src/assets/img/apiBanner@2x.png rename to protocol-dashboard/src/assets/img/apiBanner@2x.png diff --git a/src/assets/img/apiLogo.png b/protocol-dashboard/src/assets/img/apiLogo.png similarity index 100% rename from src/assets/img/apiLogo.png rename to protocol-dashboard/src/assets/img/apiLogo.png diff --git a/src/assets/img/audiusLogoHorizontal.svg b/protocol-dashboard/src/assets/img/audiusLogoHorizontal.svg similarity index 100% rename from src/assets/img/audiusLogoHorizontal.svg rename to protocol-dashboard/src/assets/img/audiusLogoHorizontal.svg diff --git a/src/assets/img/headerImg@2x.jpg b/protocol-dashboard/src/assets/img/headerImg@2x.jpg similarity index 100% rename from src/assets/img/headerImg@2x.jpg rename to protocol-dashboard/src/assets/img/headerImg@2x.jpg diff --git a/src/assets/img/iconAllServices.svg b/protocol-dashboard/src/assets/img/iconAllServices.svg similarity index 100% rename from src/assets/img/iconAllServices.svg rename to protocol-dashboard/src/assets/img/iconAllServices.svg diff --git a/src/assets/img/iconContentNode.svg b/protocol-dashboard/src/assets/img/iconContentNode.svg similarity index 100% rename from src/assets/img/iconContentNode.svg rename to protocol-dashboard/src/assets/img/iconContentNode.svg diff --git a/src/assets/img/iconCopy.svg b/protocol-dashboard/src/assets/img/iconCopy.svg similarity index 100% rename from src/assets/img/iconCopy.svg rename to protocol-dashboard/src/assets/img/iconCopy.svg diff --git a/src/assets/img/iconDeregister.svg b/protocol-dashboard/src/assets/img/iconDeregister.svg similarity index 100% rename from src/assets/img/iconDeregister.svg rename to protocol-dashboard/src/assets/img/iconDeregister.svg diff --git a/src/assets/img/iconDiscoveryProvider.svg b/protocol-dashboard/src/assets/img/iconDiscoveryProvider.svg similarity index 100% rename from src/assets/img/iconDiscoveryProvider.svg rename to protocol-dashboard/src/assets/img/iconDiscoveryProvider.svg diff --git a/src/assets/img/iconPencil.svg b/protocol-dashboard/src/assets/img/iconPencil.svg similarity index 100% rename from src/assets/img/iconPencil.svg rename to protocol-dashboard/src/assets/img/iconPencil.svg diff --git a/src/assets/img/iconRegisterService.svg b/protocol-dashboard/src/assets/img/iconRegisterService.svg similarity index 100% rename from src/assets/img/iconRegisterService.svg rename to protocol-dashboard/src/assets/img/iconRegisterService.svg diff --git a/src/assets/img/iconRemove.svg b/protocol-dashboard/src/assets/img/iconRemove.svg similarity index 100% rename from src/assets/img/iconRemove.svg rename to protocol-dashboard/src/assets/img/iconRemove.svg diff --git a/src/assets/img/iconThumbDown.svg b/protocol-dashboard/src/assets/img/iconThumbDown.svg similarity index 100% rename from src/assets/img/iconThumbDown.svg rename to protocol-dashboard/src/assets/img/iconThumbDown.svg diff --git a/src/assets/img/iconThumbUp.svg b/protocol-dashboard/src/assets/img/iconThumbUp.svg similarity index 100% rename from src/assets/img/iconThumbUp.svg rename to protocol-dashboard/src/assets/img/iconThumbUp.svg diff --git a/src/assets/img/iconTrash.svg b/protocol-dashboard/src/assets/img/iconTrash.svg similarity index 100% rename from src/assets/img/iconTrash.svg rename to protocol-dashboard/src/assets/img/iconTrash.svg diff --git a/src/assets/img/iconValidationCheck.svg b/protocol-dashboard/src/assets/img/iconValidationCheck.svg similarity index 100% rename from src/assets/img/iconValidationCheck.svg rename to protocol-dashboard/src/assets/img/iconValidationCheck.svg diff --git a/src/assets/img/iconValidationX.svg b/protocol-dashboard/src/assets/img/iconValidationX.svg similarity index 100% rename from src/assets/img/iconValidationX.svg rename to protocol-dashboard/src/assets/img/iconValidationX.svg diff --git a/src/assets/img/iconView.svg b/protocol-dashboard/src/assets/img/iconView.svg similarity index 100% rename from src/assets/img/iconView.svg rename to protocol-dashboard/src/assets/img/iconView.svg diff --git a/src/assets/img/iconWarning.svg b/protocol-dashboard/src/assets/img/iconWarning.svg similarity index 100% rename from src/assets/img/iconWarning.svg rename to protocol-dashboard/src/assets/img/iconWarning.svg diff --git a/src/assets/img/iconYourServices.svg b/protocol-dashboard/src/assets/img/iconYourServices.svg similarity index 100% rename from src/assets/img/iconYourServices.svg rename to protocol-dashboard/src/assets/img/iconYourServices.svg diff --git a/src/assets/img/imageBlank2x.png b/protocol-dashboard/src/assets/img/imageBlank2x.png similarity index 100% rename from src/assets/img/imageBlank2x.png rename to protocol-dashboard/src/assets/img/imageBlank2x.png diff --git a/src/assets/img/uhOh.svg b/protocol-dashboard/src/assets/img/uhOh.svg similarity index 100% rename from src/assets/img/uhOh.svg rename to protocol-dashboard/src/assets/img/uhOh.svg diff --git a/src/assets/styles/colors.css b/protocol-dashboard/src/assets/styles/colors.css similarity index 100% rename from src/assets/styles/colors.css rename to protocol-dashboard/src/assets/styles/colors.css diff --git a/src/assets/styles/index.css b/protocol-dashboard/src/assets/styles/index.css similarity index 100% rename from src/assets/styles/index.css rename to protocol-dashboard/src/assets/styles/index.css diff --git a/src/components/ApiCallsStat/ApiCallsStat.tsx b/protocol-dashboard/src/components/ApiCallsStat/ApiCallsStat.tsx similarity index 100% rename from src/components/ApiCallsStat/ApiCallsStat.tsx rename to protocol-dashboard/src/components/ApiCallsStat/ApiCallsStat.tsx diff --git a/src/components/ApiCallsStat/index.tsx b/protocol-dashboard/src/components/ApiCallsStat/index.tsx similarity index 100% rename from src/components/ApiCallsStat/index.tsx rename to protocol-dashboard/src/components/ApiCallsStat/index.tsx diff --git a/src/components/AppBar/AppBar.module.css b/protocol-dashboard/src/components/AppBar/AppBar.module.css similarity index 100% rename from src/components/AppBar/AppBar.module.css rename to protocol-dashboard/src/components/AppBar/AppBar.module.css diff --git a/src/components/AppBar/AppBar.tsx b/protocol-dashboard/src/components/AppBar/AppBar.tsx similarity index 100% rename from src/components/AppBar/AppBar.tsx rename to protocol-dashboard/src/components/AppBar/AppBar.tsx diff --git a/src/components/AppBar/AppBarMobile.module.css b/protocol-dashboard/src/components/AppBar/AppBarMobile.module.css similarity index 100% rename from src/components/AppBar/AppBarMobile.module.css rename to protocol-dashboard/src/components/AppBar/AppBarMobile.module.css diff --git a/src/components/AppBar/index.tsx b/protocol-dashboard/src/components/AppBar/index.tsx similarity index 100% rename from src/components/AppBar/index.tsx rename to protocol-dashboard/src/components/AppBar/index.tsx diff --git a/src/components/AudioRewardsModal/AudioRewardsModal.module.css b/protocol-dashboard/src/components/AudioRewardsModal/AudioRewardsModal.module.css similarity index 100% rename from src/components/AudioRewardsModal/AudioRewardsModal.module.css rename to protocol-dashboard/src/components/AudioRewardsModal/AudioRewardsModal.module.css diff --git a/src/components/AudioRewardsModal/AudioRewardsModal.tsx b/protocol-dashboard/src/components/AudioRewardsModal/AudioRewardsModal.tsx similarity index 100% rename from src/components/AudioRewardsModal/AudioRewardsModal.tsx rename to protocol-dashboard/src/components/AudioRewardsModal/AudioRewardsModal.tsx diff --git a/src/components/AudioRewardsModal/index.tsx b/protocol-dashboard/src/components/AudioRewardsModal/index.tsx similarity index 100% rename from src/components/AudioRewardsModal/index.tsx rename to protocol-dashboard/src/components/AudioRewardsModal/index.tsx diff --git a/src/components/BarChart/BarChart.module.css b/protocol-dashboard/src/components/BarChart/BarChart.module.css similarity index 100% rename from src/components/BarChart/BarChart.module.css rename to protocol-dashboard/src/components/BarChart/BarChart.module.css diff --git a/src/components/BarChart/BarChart.tsx b/protocol-dashboard/src/components/BarChart/BarChart.tsx similarity index 100% rename from src/components/BarChart/BarChart.tsx rename to protocol-dashboard/src/components/BarChart/BarChart.tsx diff --git a/src/components/BarChart/BarChartMobile.module.css b/protocol-dashboard/src/components/BarChart/BarChartMobile.module.css similarity index 100% rename from src/components/BarChart/BarChartMobile.module.css rename to protocol-dashboard/src/components/BarChart/BarChartMobile.module.css diff --git a/src/components/BarChart/draw.tsx b/protocol-dashboard/src/components/BarChart/draw.tsx similarity index 100% rename from src/components/BarChart/draw.tsx rename to protocol-dashboard/src/components/BarChart/draw.tsx diff --git a/src/components/BarChart/index.tsx b/protocol-dashboard/src/components/BarChart/index.tsx similarity index 100% rename from src/components/BarChart/index.tsx rename to protocol-dashboard/src/components/BarChart/index.tsx diff --git a/src/components/Bounds/Bounds.module.css b/protocol-dashboard/src/components/Bounds/Bounds.module.css similarity index 100% rename from src/components/Bounds/Bounds.module.css rename to protocol-dashboard/src/components/Bounds/Bounds.module.css diff --git a/src/components/Bounds/Bounds.tsx b/protocol-dashboard/src/components/Bounds/Bounds.tsx similarity index 100% rename from src/components/Bounds/Bounds.tsx rename to protocol-dashboard/src/components/Bounds/Bounds.tsx diff --git a/src/components/Bounds/index.tsx b/protocol-dashboard/src/components/Bounds/index.tsx similarity index 100% rename from src/components/Bounds/index.tsx rename to protocol-dashboard/src/components/Bounds/index.tsx diff --git a/src/components/Button/Button.module.css b/protocol-dashboard/src/components/Button/Button.module.css similarity index 100% rename from src/components/Button/Button.module.css rename to protocol-dashboard/src/components/Button/Button.module.css diff --git a/src/components/Button/Button.tsx b/protocol-dashboard/src/components/Button/Button.tsx similarity index 100% rename from src/components/Button/Button.tsx rename to protocol-dashboard/src/components/Button/Button.tsx diff --git a/src/components/Button/index.tsx b/protocol-dashboard/src/components/Button/index.tsx similarity index 100% rename from src/components/Button/index.tsx rename to protocol-dashboard/src/components/Button/index.tsx diff --git a/src/components/ConfirmTransactionModal/ConfirmTransactionModal.module.css b/protocol-dashboard/src/components/ConfirmTransactionModal/ConfirmTransactionModal.module.css similarity index 100% rename from src/components/ConfirmTransactionModal/ConfirmTransactionModal.module.css rename to protocol-dashboard/src/components/ConfirmTransactionModal/ConfirmTransactionModal.module.css diff --git a/src/components/ConfirmTransactionModal/ConfirmTransactionModal.tsx b/protocol-dashboard/src/components/ConfirmTransactionModal/ConfirmTransactionModal.tsx similarity index 100% rename from src/components/ConfirmTransactionModal/ConfirmTransactionModal.tsx rename to protocol-dashboard/src/components/ConfirmTransactionModal/ConfirmTransactionModal.tsx diff --git a/src/components/ConfirmTransactionModal/index.tsx b/protocol-dashboard/src/components/ConfirmTransactionModal/index.tsx similarity index 100% rename from src/components/ConfirmTransactionModal/index.tsx rename to protocol-dashboard/src/components/ConfirmTransactionModal/index.tsx diff --git a/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.module.css b/protocol-dashboard/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.module.css similarity index 100% rename from src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.module.css rename to protocol-dashboard/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.module.css diff --git a/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.tsx b/protocol-dashboard/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.tsx similarity index 100% rename from src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.tsx rename to protocol-dashboard/src/components/ConnectMetaMaskModal/ConnectMetaMaskModal.tsx diff --git a/src/components/ConnectMetaMaskModal/index.tsx b/protocol-dashboard/src/components/ConnectMetaMaskModal/index.tsx similarity index 100% rename from src/components/ConnectMetaMaskModal/index.tsx rename to protocol-dashboard/src/components/ConnectMetaMaskModal/index.tsx diff --git a/src/components/ContentTable/ContentTable.module.css b/protocol-dashboard/src/components/ContentTable/ContentTable.module.css similarity index 100% rename from src/components/ContentTable/ContentTable.module.css rename to protocol-dashboard/src/components/ContentTable/ContentTable.module.css diff --git a/src/components/ContentTable/ContentTable.tsx b/protocol-dashboard/src/components/ContentTable/ContentTable.tsx similarity index 100% rename from src/components/ContentTable/ContentTable.tsx rename to protocol-dashboard/src/components/ContentTable/ContentTable.tsx diff --git a/src/components/ContentTable/index.tsx b/protocol-dashboard/src/components/ContentTable/index.tsx similarity index 100% rename from src/components/ContentTable/index.tsx rename to protocol-dashboard/src/components/ContentTable/index.tsx diff --git a/src/components/DecreaseStakeModal/DecreaseStakeModal.module.css b/protocol-dashboard/src/components/DecreaseStakeModal/DecreaseStakeModal.module.css similarity index 100% rename from src/components/DecreaseStakeModal/DecreaseStakeModal.module.css rename to protocol-dashboard/src/components/DecreaseStakeModal/DecreaseStakeModal.module.css diff --git a/src/components/DecreaseStakeModal/DecreaseStakeModal.tsx b/protocol-dashboard/src/components/DecreaseStakeModal/DecreaseStakeModal.tsx similarity index 100% rename from src/components/DecreaseStakeModal/DecreaseStakeModal.tsx rename to protocol-dashboard/src/components/DecreaseStakeModal/DecreaseStakeModal.tsx diff --git a/src/components/DecreaseStakeModal/index.tsx b/protocol-dashboard/src/components/DecreaseStakeModal/index.tsx similarity index 100% rename from src/components/DecreaseStakeModal/index.tsx rename to protocol-dashboard/src/components/DecreaseStakeModal/index.tsx diff --git a/src/components/Delegate/Delegate.module.css b/protocol-dashboard/src/components/Delegate/Delegate.module.css similarity index 100% rename from src/components/Delegate/Delegate.module.css rename to protocol-dashboard/src/components/Delegate/Delegate.module.css diff --git a/src/components/Delegate/Delegate.tsx b/protocol-dashboard/src/components/Delegate/Delegate.tsx similarity index 100% rename from src/components/Delegate/Delegate.tsx rename to protocol-dashboard/src/components/Delegate/Delegate.tsx diff --git a/src/components/Delegate/index.tsx b/protocol-dashboard/src/components/Delegate/index.tsx similarity index 100% rename from src/components/Delegate/index.tsx rename to protocol-dashboard/src/components/Delegate/index.tsx diff --git a/src/components/DelegateStakeModal/DelegateStakeModal.module.css b/protocol-dashboard/src/components/DelegateStakeModal/DelegateStakeModal.module.css similarity index 100% rename from src/components/DelegateStakeModal/DelegateStakeModal.module.css rename to protocol-dashboard/src/components/DelegateStakeModal/DelegateStakeModal.module.css diff --git a/src/components/DelegateStakeModal/DelegateStakeModal.tsx b/protocol-dashboard/src/components/DelegateStakeModal/DelegateStakeModal.tsx similarity index 100% rename from src/components/DelegateStakeModal/DelegateStakeModal.tsx rename to protocol-dashboard/src/components/DelegateStakeModal/DelegateStakeModal.tsx diff --git a/src/components/DelegateStakeModal/index.tsx b/protocol-dashboard/src/components/DelegateStakeModal/index.tsx similarity index 100% rename from src/components/DelegateStakeModal/index.tsx rename to protocol-dashboard/src/components/DelegateStakeModal/index.tsx diff --git a/src/components/DelegatesModal/DelegatesModal.module.css b/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.module.css similarity index 100% rename from src/components/DelegatesModal/DelegatesModal.module.css rename to protocol-dashboard/src/components/DelegatesModal/DelegatesModal.module.css diff --git a/src/components/DelegatesModal/DelegatesModal.tsx b/protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx similarity index 100% rename from src/components/DelegatesModal/DelegatesModal.tsx rename to protocol-dashboard/src/components/DelegatesModal/DelegatesModal.tsx diff --git a/src/components/DelegatesModal/index.tsx b/protocol-dashboard/src/components/DelegatesModal/index.tsx similarity index 100% rename from src/components/DelegatesModal/index.tsx rename to protocol-dashboard/src/components/DelegatesModal/index.tsx diff --git a/src/components/DelegatesTable/DelegatesTable.module.css b/protocol-dashboard/src/components/DelegatesTable/DelegatesTable.module.css similarity index 100% rename from src/components/DelegatesTable/DelegatesTable.module.css rename to protocol-dashboard/src/components/DelegatesTable/DelegatesTable.module.css diff --git a/src/components/DelegatesTable/DelegatesTable.tsx b/protocol-dashboard/src/components/DelegatesTable/DelegatesTable.tsx similarity index 100% rename from src/components/DelegatesTable/DelegatesTable.tsx rename to protocol-dashboard/src/components/DelegatesTable/DelegatesTable.tsx diff --git a/src/components/DelegatesTable/index.tsx b/protocol-dashboard/src/components/DelegatesTable/index.tsx similarity index 100% rename from src/components/DelegatesTable/index.tsx rename to protocol-dashboard/src/components/DelegatesTable/index.tsx diff --git a/src/components/DelegationStatsChip/DelegationStatsChip.module.css b/protocol-dashboard/src/components/DelegationStatsChip/DelegationStatsChip.module.css similarity index 100% rename from src/components/DelegationStatsChip/DelegationStatsChip.module.css rename to protocol-dashboard/src/components/DelegationStatsChip/DelegationStatsChip.module.css diff --git a/src/components/DelegationStatsChip/DelegationStatsChip.tsx b/protocol-dashboard/src/components/DelegationStatsChip/DelegationStatsChip.tsx similarity index 100% rename from src/components/DelegationStatsChip/DelegationStatsChip.tsx rename to protocol-dashboard/src/components/DelegationStatsChip/DelegationStatsChip.tsx diff --git a/src/components/DelegatorsModal/DelegatorsModal.module.css b/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.module.css similarity index 100% rename from src/components/DelegatorsModal/DelegatorsModal.module.css rename to protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.module.css diff --git a/src/components/DelegatorsModal/DelegatorsModal.tsx b/protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx similarity index 100% rename from src/components/DelegatorsModal/DelegatorsModal.tsx rename to protocol-dashboard/src/components/DelegatorsModal/DelegatorsModal.tsx diff --git a/src/components/DelegatorsModal/index.tsx b/protocol-dashboard/src/components/DelegatorsModal/index.tsx similarity index 100% rename from src/components/DelegatorsModal/index.tsx rename to protocol-dashboard/src/components/DelegatorsModal/index.tsx diff --git a/src/components/DelegatorsTable/DelegatorsTable.module.css b/protocol-dashboard/src/components/DelegatorsTable/DelegatorsTable.module.css similarity index 100% rename from src/components/DelegatorsTable/DelegatorsTable.module.css rename to protocol-dashboard/src/components/DelegatorsTable/DelegatorsTable.module.css diff --git a/src/components/DelegatorsTable/DelegatorsTable.tsx b/protocol-dashboard/src/components/DelegatorsTable/DelegatorsTable.tsx similarity index 100% rename from src/components/DelegatorsTable/DelegatorsTable.tsx rename to protocol-dashboard/src/components/DelegatorsTable/DelegatorsTable.tsx diff --git a/src/components/DelegatorsTable/index.tsx b/protocol-dashboard/src/components/DelegatorsTable/index.tsx similarity index 100% rename from src/components/DelegatorsTable/index.tsx rename to protocol-dashboard/src/components/DelegatorsTable/index.tsx diff --git a/src/components/DeregisterServiceModal/DeregisterServiceModal.module.css b/protocol-dashboard/src/components/DeregisterServiceModal/DeregisterServiceModal.module.css similarity index 100% rename from src/components/DeregisterServiceModal/DeregisterServiceModal.module.css rename to protocol-dashboard/src/components/DeregisterServiceModal/DeregisterServiceModal.module.css diff --git a/src/components/DeregisterServiceModal/DeregisterServiceModal.tsx b/protocol-dashboard/src/components/DeregisterServiceModal/DeregisterServiceModal.tsx similarity index 100% rename from src/components/DeregisterServiceModal/DeregisterServiceModal.tsx rename to protocol-dashboard/src/components/DeregisterServiceModal/DeregisterServiceModal.tsx diff --git a/src/components/DeregisterServiceModal/index.tsx b/protocol-dashboard/src/components/DeregisterServiceModal/index.tsx similarity index 100% rename from src/components/DeregisterServiceModal/index.tsx rename to protocol-dashboard/src/components/DeregisterServiceModal/index.tsx diff --git a/src/components/DiscoveryTable/DiscoveryTable.module.css b/protocol-dashboard/src/components/DiscoveryTable/DiscoveryTable.module.css similarity index 100% rename from src/components/DiscoveryTable/DiscoveryTable.module.css rename to protocol-dashboard/src/components/DiscoveryTable/DiscoveryTable.module.css diff --git a/src/components/DiscoveryTable/DiscoveryTable.tsx b/protocol-dashboard/src/components/DiscoveryTable/DiscoveryTable.tsx similarity index 100% rename from src/components/DiscoveryTable/DiscoveryTable.tsx rename to protocol-dashboard/src/components/DiscoveryTable/DiscoveryTable.tsx diff --git a/src/components/DiscoveryTable/index.tsx b/protocol-dashboard/src/components/DiscoveryTable/index.tsx similarity index 100% rename from src/components/DiscoveryTable/index.tsx rename to protocol-dashboard/src/components/DiscoveryTable/index.tsx diff --git a/src/components/DisplayAudio/DisplayAudio.module.css b/protocol-dashboard/src/components/DisplayAudio/DisplayAudio.module.css similarity index 100% rename from src/components/DisplayAudio/DisplayAudio.module.css rename to protocol-dashboard/src/components/DisplayAudio/DisplayAudio.module.css diff --git a/src/components/DisplayAudio/DisplayAudio.tsx b/protocol-dashboard/src/components/DisplayAudio/DisplayAudio.tsx similarity index 100% rename from src/components/DisplayAudio/DisplayAudio.tsx rename to protocol-dashboard/src/components/DisplayAudio/DisplayAudio.tsx diff --git a/src/components/DisplayAudio/index.tsx b/protocol-dashboard/src/components/DisplayAudio/index.tsx similarity index 100% rename from src/components/DisplayAudio/index.tsx rename to protocol-dashboard/src/components/DisplayAudio/index.tsx diff --git a/src/components/Dropdown/Dropdown.module.css b/protocol-dashboard/src/components/Dropdown/Dropdown.module.css similarity index 100% rename from src/components/Dropdown/Dropdown.module.css rename to protocol-dashboard/src/components/Dropdown/Dropdown.module.css diff --git a/src/components/Dropdown/Dropdown.tsx b/protocol-dashboard/src/components/Dropdown/Dropdown.tsx similarity index 100% rename from src/components/Dropdown/Dropdown.tsx rename to protocol-dashboard/src/components/Dropdown/Dropdown.tsx diff --git a/src/components/Dropdown/index.tsx b/protocol-dashboard/src/components/Dropdown/index.tsx similarity index 100% rename from src/components/Dropdown/index.tsx rename to protocol-dashboard/src/components/Dropdown/index.tsx diff --git a/src/components/Error/Error.module.css b/protocol-dashboard/src/components/Error/Error.module.css similarity index 100% rename from src/components/Error/Error.module.css rename to protocol-dashboard/src/components/Error/Error.module.css diff --git a/src/components/Error/Error.tsx b/protocol-dashboard/src/components/Error/Error.tsx similarity index 100% rename from src/components/Error/Error.tsx rename to protocol-dashboard/src/components/Error/Error.tsx diff --git a/src/components/Error/index.tsx b/protocol-dashboard/src/components/Error/index.tsx similarity index 100% rename from src/components/Error/index.tsx rename to protocol-dashboard/src/components/Error/index.tsx diff --git a/src/components/ErrorModal/ErrorModal.module.css b/protocol-dashboard/src/components/ErrorModal/ErrorModal.module.css similarity index 100% rename from src/components/ErrorModal/ErrorModal.module.css rename to protocol-dashboard/src/components/ErrorModal/ErrorModal.module.css diff --git a/src/components/ErrorModal/ErrorModal.tsx b/protocol-dashboard/src/components/ErrorModal/ErrorModal.tsx similarity index 100% rename from src/components/ErrorModal/ErrorModal.tsx rename to protocol-dashboard/src/components/ErrorModal/ErrorModal.tsx diff --git a/src/components/ErrorModal/index.tsx b/protocol-dashboard/src/components/ErrorModal/index.tsx similarity index 100% rename from src/components/ErrorModal/index.tsx rename to protocol-dashboard/src/components/ErrorModal/index.tsx diff --git a/src/components/EstimatedAnnualStat/EstimatedAnnualStat.module.css b/protocol-dashboard/src/components/EstimatedAnnualStat/EstimatedAnnualStat.module.css similarity index 100% rename from src/components/EstimatedAnnualStat/EstimatedAnnualStat.module.css rename to protocol-dashboard/src/components/EstimatedAnnualStat/EstimatedAnnualStat.module.css diff --git a/src/components/EstimatedAnnualStat/EstimatedAnnualStat.tsx b/protocol-dashboard/src/components/EstimatedAnnualStat/EstimatedAnnualStat.tsx similarity index 100% rename from src/components/EstimatedAnnualStat/EstimatedAnnualStat.tsx rename to protocol-dashboard/src/components/EstimatedAnnualStat/EstimatedAnnualStat.tsx diff --git a/src/components/EstimatedAnnualStat/index.tsx b/protocol-dashboard/src/components/EstimatedAnnualStat/index.tsx similarity index 100% rename from src/components/EstimatedAnnualStat/index.tsx rename to protocol-dashboard/src/components/EstimatedAnnualStat/index.tsx diff --git a/src/components/EstimatedWeeklyStat/EstimatedWeeklyStat.tsx b/protocol-dashboard/src/components/EstimatedWeeklyStat/EstimatedWeeklyStat.tsx similarity index 100% rename from src/components/EstimatedWeeklyStat/EstimatedWeeklyStat.tsx rename to protocol-dashboard/src/components/EstimatedWeeklyStat/EstimatedWeeklyStat.tsx diff --git a/src/components/EstimatedWeeklyStat/index.tsx b/protocol-dashboard/src/components/EstimatedWeeklyStat/index.tsx similarity index 100% rename from src/components/EstimatedWeeklyStat/index.tsx rename to protocol-dashboard/src/components/EstimatedWeeklyStat/index.tsx diff --git a/src/components/Header/Header.module.css b/protocol-dashboard/src/components/Header/Header.module.css similarity index 100% rename from src/components/Header/Header.module.css rename to protocol-dashboard/src/components/Header/Header.module.css diff --git a/src/components/Header/Header.tsx b/protocol-dashboard/src/components/Header/Header.tsx similarity index 100% rename from src/components/Header/Header.tsx rename to protocol-dashboard/src/components/Header/Header.tsx diff --git a/src/components/Header/HeaderMobile.module.css b/protocol-dashboard/src/components/Header/HeaderMobile.module.css similarity index 100% rename from src/components/Header/HeaderMobile.module.css rename to protocol-dashboard/src/components/Header/HeaderMobile.module.css diff --git a/src/components/Header/index.tsx b/protocol-dashboard/src/components/Header/index.tsx similarity index 100% rename from src/components/Header/index.tsx rename to protocol-dashboard/src/components/Header/index.tsx diff --git a/protocol-dashboard/src/components/IndividualServiceApiCallsChart/IndividualServiceApiCallsChart.tsx b/protocol-dashboard/src/components/IndividualServiceApiCallsChart/IndividualServiceApiCallsChart.tsx new file mode 100644 index 0000000..2c33fb8 --- /dev/null +++ b/protocol-dashboard/src/components/IndividualServiceApiCallsChart/IndividualServiceApiCallsChart.tsx @@ -0,0 +1,45 @@ +import LineChart from 'components/LineChart' +import React, { useState } from 'react' +import { useIndividualServiceApiCalls } from 'store/cache/analytics/hooks' +import { Bucket, MetricError } from 'store/cache/analytics/slice' + +type OwnProps = { + node: string +} + +type IndividualServiceApiCallsChartProps = OwnProps + +const IndividualServiceApiCallsChart: React.FC = ({ + node +}) => { + const [bucket, setBucket] = useState(Bucket.MONTH) + + const { apiCalls } = useIndividualServiceApiCalls(node, bucket) + let error, labels, data + if (apiCalls === MetricError.ERROR) { + error = true + labels = [] + data = [] + } else { + labels = + apiCalls?.map( + a => new Date(parseInt(a.timestamp, 10) * 1000).getTime() / 1000 + ) ?? null + data = apiCalls?.map(a => a.count) ?? null + } + return ( + setBucket(option as Bucket)} + showLeadingDay + /> + ) +} + +export default IndividualServiceApiCallsChart diff --git a/protocol-dashboard/src/components/IndividualServiceApiCallsChart/index.tsx b/protocol-dashboard/src/components/IndividualServiceApiCallsChart/index.tsx new file mode 100644 index 0000000..e36da82 --- /dev/null +++ b/protocol-dashboard/src/components/IndividualServiceApiCallsChart/index.tsx @@ -0,0 +1 @@ +export { default } from './IndividualServiceApiCallsChart' diff --git a/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/IndividualServiceUniqueUsersChart.tsx b/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/IndividualServiceUniqueUsersChart.tsx new file mode 100644 index 0000000..b25dd7b --- /dev/null +++ b/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/IndividualServiceUniqueUsersChart.tsx @@ -0,0 +1,45 @@ +import LineChart from 'components/LineChart' +import React, { useState } from 'react' +import { useIndividualServiceApiCalls } from 'store/cache/analytics/hooks' +import { Bucket, MetricError } from 'store/cache/analytics/slice' + +type OwnProps = { + node: string +} + +type IndividualServiceUniqueUsersChartProps = OwnProps + +const IndividualServiceUniqueUsersChart: React.FC = ({ + node +}) => { + const [bucket, setBucket] = useState(Bucket.MONTH) + + const { apiCalls } = useIndividualServiceApiCalls(node, bucket) + let error, labels, data + if (apiCalls === MetricError.ERROR) { + error = true + labels = [] + data = [] + } else { + labels = + apiCalls?.map( + a => new Date(parseInt(a.timestamp, 10) * 1000).getTime() / 1000 + ) ?? null + data = apiCalls?.map(a => a.unique_count) ?? null + } + return ( + setBucket(option as Bucket)} + showLeadingDay + /> + ) +} + +export default IndividualServiceUniqueUsersChart diff --git a/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/index.tsx b/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/index.tsx new file mode 100644 index 0000000..cf51d38 --- /dev/null +++ b/protocol-dashboard/src/components/IndividualServiceUniqueUsersChart/index.tsx @@ -0,0 +1 @@ +export { default } from './IndividualServiceUniqueUsersChart' diff --git a/src/components/InlineStat/InlineStat.module.css b/protocol-dashboard/src/components/InlineStat/InlineStat.module.css similarity index 100% rename from src/components/InlineStat/InlineStat.module.css rename to protocol-dashboard/src/components/InlineStat/InlineStat.module.css diff --git a/src/components/InlineStat/InlineStat.tsx b/protocol-dashboard/src/components/InlineStat/InlineStat.tsx similarity index 100% rename from src/components/InlineStat/InlineStat.tsx rename to protocol-dashboard/src/components/InlineStat/InlineStat.tsx diff --git a/src/components/LineChart/LineChart.module.css b/protocol-dashboard/src/components/LineChart/LineChart.module.css similarity index 100% rename from src/components/LineChart/LineChart.module.css rename to protocol-dashboard/src/components/LineChart/LineChart.module.css diff --git a/src/components/LineChart/LineChart.tsx b/protocol-dashboard/src/components/LineChart/LineChart.tsx similarity index 100% rename from src/components/LineChart/LineChart.tsx rename to protocol-dashboard/src/components/LineChart/LineChart.tsx diff --git a/src/components/LineChart/LineChartMobile.module.css b/protocol-dashboard/src/components/LineChart/LineChartMobile.module.css similarity index 100% rename from src/components/LineChart/LineChartMobile.module.css rename to protocol-dashboard/src/components/LineChart/LineChartMobile.module.css diff --git a/src/components/LineChart/index.tsx b/protocol-dashboard/src/components/LineChart/index.tsx similarity index 100% rename from src/components/LineChart/index.tsx rename to protocol-dashboard/src/components/LineChart/index.tsx diff --git a/src/components/Loading/Loading.module.css b/protocol-dashboard/src/components/Loading/Loading.module.css similarity index 100% rename from src/components/Loading/Loading.module.css rename to protocol-dashboard/src/components/Loading/Loading.module.css diff --git a/src/components/Loading/Loading.tsx b/protocol-dashboard/src/components/Loading/Loading.tsx similarity index 100% rename from src/components/Loading/Loading.tsx rename to protocol-dashboard/src/components/Loading/Loading.tsx diff --git a/src/components/Loading/index.tsx b/protocol-dashboard/src/components/Loading/index.tsx similarity index 100% rename from src/components/Loading/index.tsx rename to protocol-dashboard/src/components/Loading/index.tsx diff --git a/src/components/ManageService/ManageService.module.css b/protocol-dashboard/src/components/ManageService/ManageService.module.css similarity index 100% rename from src/components/ManageService/ManageService.module.css rename to protocol-dashboard/src/components/ManageService/ManageService.module.css diff --git a/src/components/ManageService/ManageService.tsx b/protocol-dashboard/src/components/ManageService/ManageService.tsx similarity index 100% rename from src/components/ManageService/ManageService.tsx rename to protocol-dashboard/src/components/ManageService/ManageService.tsx diff --git a/src/components/ManageService/index.tsx b/protocol-dashboard/src/components/ManageService/index.tsx similarity index 100% rename from src/components/ManageService/index.tsx rename to protocol-dashboard/src/components/ManageService/index.tsx diff --git a/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.module.css b/protocol-dashboard/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.module.css similarity index 100% rename from src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.module.css rename to protocol-dashboard/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.module.css diff --git a/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.tsx b/protocol-dashboard/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.tsx similarity index 100% rename from src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.tsx rename to protocol-dashboard/src/components/MinimumDelegationAmountModal/MinimumDelegationAmountModal.tsx diff --git a/src/components/MinimumDelegationAmountModal/index.tsx b/protocol-dashboard/src/components/MinimumDelegationAmountModal/index.tsx similarity index 100% rename from src/components/MinimumDelegationAmountModal/index.tsx rename to protocol-dashboard/src/components/MinimumDelegationAmountModal/index.tsx diff --git a/src/components/MobileNav/MobileNav.module.css b/protocol-dashboard/src/components/MobileNav/MobileNav.module.css similarity index 100% rename from src/components/MobileNav/MobileNav.module.css rename to protocol-dashboard/src/components/MobileNav/MobileNav.module.css diff --git a/src/components/MobileNav/MobileNav.tsx b/protocol-dashboard/src/components/MobileNav/MobileNav.tsx similarity index 100% rename from src/components/MobileNav/MobileNav.tsx rename to protocol-dashboard/src/components/MobileNav/MobileNav.tsx diff --git a/src/components/MobileNav/index.tsx b/protocol-dashboard/src/components/MobileNav/index.tsx similarity index 100% rename from src/components/MobileNav/index.tsx rename to protocol-dashboard/src/components/MobileNav/index.tsx diff --git a/src/components/Modal/Modal.module.css b/protocol-dashboard/src/components/Modal/Modal.module.css similarity index 100% rename from src/components/Modal/Modal.module.css rename to protocol-dashboard/src/components/Modal/Modal.module.css diff --git a/src/components/Modal/Modal.tsx b/protocol-dashboard/src/components/Modal/Modal.tsx similarity index 100% rename from src/components/Modal/Modal.tsx rename to protocol-dashboard/src/components/Modal/Modal.tsx diff --git a/src/components/Modal/index.tsx b/protocol-dashboard/src/components/Modal/index.tsx similarity index 100% rename from src/components/Modal/index.tsx rename to protocol-dashboard/src/components/Modal/index.tsx diff --git a/src/components/ModalTable/ModalTable.module.css b/protocol-dashboard/src/components/ModalTable/ModalTable.module.css similarity index 100% rename from src/components/ModalTable/ModalTable.module.css rename to protocol-dashboard/src/components/ModalTable/ModalTable.module.css diff --git a/src/components/ModalTable/ModalTable.tsx b/protocol-dashboard/src/components/ModalTable/ModalTable.tsx similarity index 100% rename from src/components/ModalTable/ModalTable.tsx rename to protocol-dashboard/src/components/ModalTable/ModalTable.tsx diff --git a/src/components/ModalTable/index.tsx b/protocol-dashboard/src/components/ModalTable/index.tsx similarity index 100% rename from src/components/ModalTable/index.tsx rename to protocol-dashboard/src/components/ModalTable/index.tsx diff --git a/src/components/ModifyServiceModal/ModifyServiceModal.module.css b/protocol-dashboard/src/components/ModifyServiceModal/ModifyServiceModal.module.css similarity index 100% rename from src/components/ModifyServiceModal/ModifyServiceModal.module.css rename to protocol-dashboard/src/components/ModifyServiceModal/ModifyServiceModal.module.css diff --git a/src/components/ModifyServiceModal/ModifyServiceModal.tsx b/protocol-dashboard/src/components/ModifyServiceModal/ModifyServiceModal.tsx similarity index 100% rename from src/components/ModifyServiceModal/ModifyServiceModal.tsx rename to protocol-dashboard/src/components/ModifyServiceModal/ModifyServiceModal.tsx diff --git a/src/components/ModifyServiceModal/index.tsx b/protocol-dashboard/src/components/ModifyServiceModal/index.tsx similarity index 100% rename from src/components/ModifyServiceModal/index.tsx rename to protocol-dashboard/src/components/ModifyServiceModal/index.tsx diff --git a/src/components/MyEstimatedRewards/MyEstimatedRewards.module.css b/protocol-dashboard/src/components/MyEstimatedRewards/MyEstimatedRewards.module.css similarity index 100% rename from src/components/MyEstimatedRewards/MyEstimatedRewards.module.css rename to protocol-dashboard/src/components/MyEstimatedRewards/MyEstimatedRewards.module.css diff --git a/src/components/MyEstimatedRewards/MyEstimatedRewards.tsx b/protocol-dashboard/src/components/MyEstimatedRewards/MyEstimatedRewards.tsx similarity index 100% rename from src/components/MyEstimatedRewards/MyEstimatedRewards.tsx rename to protocol-dashboard/src/components/MyEstimatedRewards/MyEstimatedRewards.tsx diff --git a/src/components/MyEstimatedRewards/index.tsx b/protocol-dashboard/src/components/MyEstimatedRewards/index.tsx similarity index 100% rename from src/components/MyEstimatedRewards/index.tsx rename to protocol-dashboard/src/components/MyEstimatedRewards/index.tsx diff --git a/src/components/Nav/Nav.module.css b/protocol-dashboard/src/components/Nav/Nav.module.css similarity index 100% rename from src/components/Nav/Nav.module.css rename to protocol-dashboard/src/components/Nav/Nav.module.css diff --git a/src/components/Nav/Nav.tsx b/protocol-dashboard/src/components/Nav/Nav.tsx similarity index 100% rename from src/components/Nav/Nav.tsx rename to protocol-dashboard/src/components/Nav/Nav.tsx diff --git a/src/components/Nav/index.tsx b/protocol-dashboard/src/components/Nav/index.tsx similarity index 100% rename from src/components/Nav/index.tsx rename to protocol-dashboard/src/components/Nav/index.tsx diff --git a/src/components/NewProposalModal/NewProposalModal.module.css b/protocol-dashboard/src/components/NewProposalModal/NewProposalModal.module.css similarity index 100% rename from src/components/NewProposalModal/NewProposalModal.module.css rename to protocol-dashboard/src/components/NewProposalModal/NewProposalModal.module.css diff --git a/src/components/NewProposalModal/NewProposalModal.tsx b/protocol-dashboard/src/components/NewProposalModal/NewProposalModal.tsx similarity index 100% rename from src/components/NewProposalModal/NewProposalModal.tsx rename to protocol-dashboard/src/components/NewProposalModal/NewProposalModal.tsx diff --git a/src/components/NewProposalModal/index.tsx b/protocol-dashboard/src/components/NewProposalModal/index.tsx similarity index 100% rename from src/components/NewProposalModal/index.tsx rename to protocol-dashboard/src/components/NewProposalModal/index.tsx diff --git a/src/components/NodeOverview/NodeOverview.module.css b/protocol-dashboard/src/components/NodeOverview/NodeOverview.module.css similarity index 92% rename from src/components/NodeOverview/NodeOverview.module.css rename to protocol-dashboard/src/components/NodeOverview/NodeOverview.module.css index afd6e64..ea08f49 100644 --- a/src/components/NodeOverview/NodeOverview.module.css +++ b/protocol-dashboard/src/components/NodeOverview/NodeOverview.module.css @@ -5,6 +5,13 @@ display: inline-flex; flex-direction: column; box-sizing: border-box; + min-height: 240px; +} + +.loading { + margin: 42px auto 0; + justify-content: center; + align-items: center; } .header { diff --git a/protocol-dashboard/src/components/NodeOverview/NodeOverview.tsx b/protocol-dashboard/src/components/NodeOverview/NodeOverview.tsx new file mode 100644 index 0000000..c3cd68f --- /dev/null +++ b/protocol-dashboard/src/components/NodeOverview/NodeOverview.tsx @@ -0,0 +1,127 @@ +import React from 'react' +import clsx from 'clsx' + +import Paper from 'components/Paper' +import Button from 'components/Button' +import ModifyServiceModal from 'components/ModifyServiceModal' +import { ButtonType, IconPencil } from '@audius/stems' +import { ServiceType, Address } from 'types' +import { useModalControls } from 'utils/hooks' + +import desktopStyles from './NodeOverview.module.css' +import mobileStyles from './NodeOverviewMobile.module.css' +import { createStyles } from 'utils/mobile' +import Loading from 'components/Loading' + +const styles = createStyles({ desktopStyles, mobileStyles }) + +const messages = { + dp: 'Discovery Node', + cn: 'Content Node', + title: 'SERVICE', + version: 'VER.', + deregistered: 'DEREGISTERED', + endpoint: 'SERVICE ENDPOINT', + operator: 'OPERATOR', + delegate: 'DELEGATE OWNER WALLET', + modify: 'Modify Service' +} + +const ServiceDetail = ({ label, value }: { label: string; value: string }) => { + return ( +
+
{label}
+
{value}
+
+ ) +} + +type NodeOverviewProps = { + spID?: number + serviceType?: ServiceType + version?: string + endpoint?: string + operatorWallet?: Address + delegateOwnerWallet?: Address + isOwner?: boolean + isDeregistered?: boolean + isLoading: boolean +} + +const NodeOverview = ({ + spID, + serviceType, + version, + endpoint, + operatorWallet, + delegateOwnerWallet, + isOwner, + isDeregistered, + isLoading +}: NodeOverviewProps) => { + const { isOpen, onClick, onClose } = useModalControls() + + return ( + + {isLoading ? ( + + ) : ( + <> +
+
+ {serviceType === ServiceType.DiscoveryProvider + ? messages.dp + : messages.cn} +
+ {isDeregistered ? ( +
{messages.deregistered}
+ ) : ( +
+ {`${messages.version} ${version || ''}`} +
+ )} + {isOwner && + !isDeregistered && + spID && + endpoint && + serviceType && + delegateOwnerWallet && ( + <> +
+ {endpoint ? ( + + ) : null} + {operatorWallet ? ( + + ) : null} + {delegateOwnerWallet ? ( + + ) : null} + + )} +
+ ) +} + +export default NodeOverview diff --git a/src/components/NodeOverview/NodeOverviewMobile.module.css b/protocol-dashboard/src/components/NodeOverview/NodeOverviewMobile.module.css similarity index 100% rename from src/components/NodeOverview/NodeOverviewMobile.module.css rename to protocol-dashboard/src/components/NodeOverview/NodeOverviewMobile.module.css diff --git a/src/components/NodeOverview/index.tsx b/protocol-dashboard/src/components/NodeOverview/index.tsx similarity index 100% rename from src/components/NodeOverview/index.tsx rename to protocol-dashboard/src/components/NodeOverview/index.tsx diff --git a/src/components/OperatorCutModal/OperatorCutModal.module.css b/protocol-dashboard/src/components/OperatorCutModal/OperatorCutModal.module.css similarity index 100% rename from src/components/OperatorCutModal/OperatorCutModal.module.css rename to protocol-dashboard/src/components/OperatorCutModal/OperatorCutModal.module.css diff --git a/src/components/OperatorCutModal/OperatorCutModal.tsx b/protocol-dashboard/src/components/OperatorCutModal/OperatorCutModal.tsx similarity index 100% rename from src/components/OperatorCutModal/OperatorCutModal.tsx rename to protocol-dashboard/src/components/OperatorCutModal/OperatorCutModal.tsx diff --git a/src/components/OperatorCutModal/index.tsx b/protocol-dashboard/src/components/OperatorCutModal/index.tsx similarity index 100% rename from src/components/OperatorCutModal/index.tsx rename to protocol-dashboard/src/components/OperatorCutModal/index.tsx diff --git a/src/components/Page/Page.module.css b/protocol-dashboard/src/components/Page/Page.module.css similarity index 100% rename from src/components/Page/Page.module.css rename to protocol-dashboard/src/components/Page/Page.module.css diff --git a/src/components/Page/Page.tsx b/protocol-dashboard/src/components/Page/Page.tsx similarity index 100% rename from src/components/Page/Page.tsx rename to protocol-dashboard/src/components/Page/Page.tsx diff --git a/src/components/Page/PageMobile.module.css b/protocol-dashboard/src/components/Page/PageMobile.module.css similarity index 100% rename from src/components/Page/PageMobile.module.css rename to protocol-dashboard/src/components/Page/PageMobile.module.css diff --git a/src/components/Page/index.tsx b/protocol-dashboard/src/components/Page/index.tsx similarity index 100% rename from src/components/Page/index.tsx rename to protocol-dashboard/src/components/Page/index.tsx diff --git a/src/components/Paper/Paper.module.css b/protocol-dashboard/src/components/Paper/Paper.module.css similarity index 100% rename from src/components/Paper/Paper.module.css rename to protocol-dashboard/src/components/Paper/Paper.module.css diff --git a/src/components/Paper/Paper.tsx b/protocol-dashboard/src/components/Paper/Paper.tsx similarity index 100% rename from src/components/Paper/Paper.tsx rename to protocol-dashboard/src/components/Paper/Paper.tsx diff --git a/src/components/Paper/index.tsx b/protocol-dashboard/src/components/Paper/index.tsx similarity index 100% rename from src/components/Paper/index.tsx rename to protocol-dashboard/src/components/Paper/index.tsx diff --git a/src/components/PlaysChart/PlaysChart.tsx b/protocol-dashboard/src/components/PlaysChart/PlaysChart.tsx similarity index 100% rename from src/components/PlaysChart/PlaysChart.tsx rename to protocol-dashboard/src/components/PlaysChart/PlaysChart.tsx diff --git a/src/components/PlaysChart/index.tsx b/protocol-dashboard/src/components/PlaysChart/index.tsx similarity index 100% rename from src/components/PlaysChart/index.tsx rename to protocol-dashboard/src/components/PlaysChart/index.tsx diff --git a/src/components/Proposal/Proposal.module.css b/protocol-dashboard/src/components/Proposal/Proposal.module.css similarity index 100% rename from src/components/Proposal/Proposal.module.css rename to protocol-dashboard/src/components/Proposal/Proposal.module.css diff --git a/src/components/Proposal/Proposal.tsx b/protocol-dashboard/src/components/Proposal/Proposal.tsx similarity index 100% rename from src/components/Proposal/Proposal.tsx rename to protocol-dashboard/src/components/Proposal/Proposal.tsx diff --git a/src/components/Proposal/ProposalMobile.module.css b/protocol-dashboard/src/components/Proposal/ProposalMobile.module.css similarity index 100% rename from src/components/Proposal/ProposalMobile.module.css rename to protocol-dashboard/src/components/Proposal/ProposalMobile.module.css diff --git a/src/components/Proposal/index.tsx b/protocol-dashboard/src/components/Proposal/index.tsx similarity index 100% rename from src/components/Proposal/index.tsx rename to protocol-dashboard/src/components/Proposal/index.tsx diff --git a/src/components/ProposalHero/ProposalHero.module.css b/protocol-dashboard/src/components/ProposalHero/ProposalHero.module.css similarity index 100% rename from src/components/ProposalHero/ProposalHero.module.css rename to protocol-dashboard/src/components/ProposalHero/ProposalHero.module.css diff --git a/src/components/ProposalHero/ProposalHero.tsx b/protocol-dashboard/src/components/ProposalHero/ProposalHero.tsx similarity index 100% rename from src/components/ProposalHero/ProposalHero.tsx rename to protocol-dashboard/src/components/ProposalHero/ProposalHero.tsx diff --git a/src/components/ProposalHero/ProposalHeroMobile.module.css b/protocol-dashboard/src/components/ProposalHero/ProposalHeroMobile.module.css similarity index 100% rename from src/components/ProposalHero/ProposalHeroMobile.module.css rename to protocol-dashboard/src/components/ProposalHero/ProposalHeroMobile.module.css diff --git a/src/components/ProposalHero/index.tsx b/protocol-dashboard/src/components/ProposalHero/index.tsx similarity index 100% rename from src/components/ProposalHero/index.tsx rename to protocol-dashboard/src/components/ProposalHero/index.tsx diff --git a/src/components/ProposalStatusBadge/ProposalStatusBadge.module.css b/protocol-dashboard/src/components/ProposalStatusBadge/ProposalStatusBadge.module.css similarity index 100% rename from src/components/ProposalStatusBadge/ProposalStatusBadge.module.css rename to protocol-dashboard/src/components/ProposalStatusBadge/ProposalStatusBadge.module.css diff --git a/src/components/ProposalStatusBadge/ProposalStatusBadge.tsx b/protocol-dashboard/src/components/ProposalStatusBadge/ProposalStatusBadge.tsx similarity index 100% rename from src/components/ProposalStatusBadge/ProposalStatusBadge.tsx rename to protocol-dashboard/src/components/ProposalStatusBadge/ProposalStatusBadge.tsx diff --git a/src/components/ProposalStatusBadge/index.tsx b/protocol-dashboard/src/components/ProposalStatusBadge/index.tsx similarity index 100% rename from src/components/ProposalStatusBadge/index.tsx rename to protocol-dashboard/src/components/ProposalStatusBadge/index.tsx diff --git a/src/components/ProposalStatusChip/ProposalStatusChip.module.css b/protocol-dashboard/src/components/ProposalStatusChip/ProposalStatusChip.module.css similarity index 100% rename from src/components/ProposalStatusChip/ProposalStatusChip.module.css rename to protocol-dashboard/src/components/ProposalStatusChip/ProposalStatusChip.module.css diff --git a/src/components/ProposalStatusChip/ProposalStatusChip.tsx b/protocol-dashboard/src/components/ProposalStatusChip/ProposalStatusChip.tsx similarity index 100% rename from src/components/ProposalStatusChip/ProposalStatusChip.tsx rename to protocol-dashboard/src/components/ProposalStatusChip/ProposalStatusChip.tsx diff --git a/src/components/ProposalStatusChip/index.tsx b/protocol-dashboard/src/components/ProposalStatusChip/index.tsx similarity index 100% rename from src/components/ProposalStatusChip/index.tsx rename to protocol-dashboard/src/components/ProposalStatusChip/index.tsx diff --git a/src/components/Proposals/Proposals.module.css b/protocol-dashboard/src/components/Proposals/Proposals.module.css similarity index 100% rename from src/components/Proposals/Proposals.module.css rename to protocol-dashboard/src/components/Proposals/Proposals.module.css diff --git a/src/components/Proposals/Proposals.tsx b/protocol-dashboard/src/components/Proposals/Proposals.tsx similarity index 100% rename from src/components/Proposals/Proposals.tsx rename to protocol-dashboard/src/components/Proposals/Proposals.tsx diff --git a/src/components/Proposals/index.tsx b/protocol-dashboard/src/components/Proposals/index.tsx similarity index 100% rename from src/components/Proposals/index.tsx rename to protocol-dashboard/src/components/Proposals/index.tsx diff --git a/src/components/RadarChart/RadarChart.module.css b/protocol-dashboard/src/components/RadarChart/RadarChart.module.css similarity index 100% rename from src/components/RadarChart/RadarChart.module.css rename to protocol-dashboard/src/components/RadarChart/RadarChart.module.css diff --git a/src/components/RadarChart/RadarChart.tsx b/protocol-dashboard/src/components/RadarChart/RadarChart.tsx similarity index 100% rename from src/components/RadarChart/RadarChart.tsx rename to protocol-dashboard/src/components/RadarChart/RadarChart.tsx diff --git a/src/components/RadarChart/RadarChartMobile.module.css b/protocol-dashboard/src/components/RadarChart/RadarChartMobile.module.css similarity index 100% rename from src/components/RadarChart/RadarChartMobile.module.css rename to protocol-dashboard/src/components/RadarChart/RadarChartMobile.module.css diff --git a/src/components/RadarChart/index.tsx b/protocol-dashboard/src/components/RadarChart/index.tsx similarity index 100% rename from src/components/RadarChart/index.tsx rename to protocol-dashboard/src/components/RadarChart/index.tsx diff --git a/src/components/RegisterServiceModal/RegisterServiceModal.module.css b/protocol-dashboard/src/components/RegisterServiceModal/RegisterServiceModal.module.css similarity index 100% rename from src/components/RegisterServiceModal/RegisterServiceModal.module.css rename to protocol-dashboard/src/components/RegisterServiceModal/RegisterServiceModal.module.css diff --git a/src/components/RegisterServiceModal/RegisterServiceModal.tsx b/protocol-dashboard/src/components/RegisterServiceModal/RegisterServiceModal.tsx similarity index 100% rename from src/components/RegisterServiceModal/RegisterServiceModal.tsx rename to protocol-dashboard/src/components/RegisterServiceModal/RegisterServiceModal.tsx diff --git a/src/components/RegisterServiceModal/index.tsx b/protocol-dashboard/src/components/RegisterServiceModal/index.tsx similarity index 100% rename from src/components/RegisterServiceModal/index.tsx rename to protocol-dashboard/src/components/RegisterServiceModal/index.tsx diff --git a/src/components/RewardStat/RewardStat.module.css b/protocol-dashboard/src/components/RewardStat/RewardStat.module.css similarity index 100% rename from src/components/RewardStat/RewardStat.module.css rename to protocol-dashboard/src/components/RewardStat/RewardStat.module.css diff --git a/src/components/RewardStat/RewardStat.tsx b/protocol-dashboard/src/components/RewardStat/RewardStat.tsx similarity index 100% rename from src/components/RewardStat/RewardStat.tsx rename to protocol-dashboard/src/components/RewardStat/RewardStat.tsx diff --git a/src/components/RewardStat/index.tsx b/protocol-dashboard/src/components/RewardStat/index.tsx similarity index 100% rename from src/components/RewardStat/index.tsx rename to protocol-dashboard/src/components/RewardStat/index.tsx diff --git a/src/components/RewardsCTABanner/RewardsCTABanner.module.css b/protocol-dashboard/src/components/RewardsCTABanner/RewardsCTABanner.module.css similarity index 100% rename from src/components/RewardsCTABanner/RewardsCTABanner.module.css rename to protocol-dashboard/src/components/RewardsCTABanner/RewardsCTABanner.module.css diff --git a/src/components/RewardsCTABanner/RewardsCTABanner.tsx b/protocol-dashboard/src/components/RewardsCTABanner/RewardsCTABanner.tsx similarity index 100% rename from src/components/RewardsCTABanner/RewardsCTABanner.tsx rename to protocol-dashboard/src/components/RewardsCTABanner/RewardsCTABanner.tsx diff --git a/src/components/RewardsCTABanner/index.tsx b/protocol-dashboard/src/components/RewardsCTABanner/index.tsx similarity index 100% rename from src/components/RewardsCTABanner/index.tsx rename to protocol-dashboard/src/components/RewardsCTABanner/index.tsx diff --git a/src/components/ServiceTable/ServiceTable.module.css b/protocol-dashboard/src/components/ServiceTable/ServiceTable.module.css similarity index 100% rename from src/components/ServiceTable/ServiceTable.module.css rename to protocol-dashboard/src/components/ServiceTable/ServiceTable.module.css diff --git a/src/components/ServiceTable/ServiceTable.tsx b/protocol-dashboard/src/components/ServiceTable/ServiceTable.tsx similarity index 100% rename from src/components/ServiceTable/ServiceTable.tsx rename to protocol-dashboard/src/components/ServiceTable/ServiceTable.tsx diff --git a/src/components/ServiceTable/index.tsx b/protocol-dashboard/src/components/ServiceTable/index.tsx similarity index 100% rename from src/components/ServiceTable/index.tsx rename to protocol-dashboard/src/components/ServiceTable/index.tsx diff --git a/src/components/StakingStat/StakingStat.module.css b/protocol-dashboard/src/components/StakingStat/StakingStat.module.css similarity index 100% rename from src/components/StakingStat/StakingStat.module.css rename to protocol-dashboard/src/components/StakingStat/StakingStat.module.css diff --git a/src/components/StakingStat/StakingStat.tsx b/protocol-dashboard/src/components/StakingStat/StakingStat.tsx similarity index 100% rename from src/components/StakingStat/StakingStat.tsx rename to protocol-dashboard/src/components/StakingStat/StakingStat.tsx diff --git a/src/components/StakingStat/index.tsx b/protocol-dashboard/src/components/StakingStat/index.tsx similarity index 100% rename from src/components/StakingStat/index.tsx rename to protocol-dashboard/src/components/StakingStat/index.tsx diff --git a/src/components/Stat/Stat.module.css b/protocol-dashboard/src/components/Stat/Stat.module.css similarity index 100% rename from src/components/Stat/Stat.module.css rename to protocol-dashboard/src/components/Stat/Stat.module.css diff --git a/src/components/Stat/Stat.tsx b/protocol-dashboard/src/components/Stat/Stat.tsx similarity index 100% rename from src/components/Stat/Stat.tsx rename to protocol-dashboard/src/components/Stat/Stat.tsx diff --git a/src/components/Stat/index.tsx b/protocol-dashboard/src/components/Stat/index.tsx similarity index 100% rename from src/components/Stat/index.tsx rename to protocol-dashboard/src/components/Stat/index.tsx diff --git a/src/components/StatsChip/StatsChip.module.css b/protocol-dashboard/src/components/StatsChip/StatsChip.module.css similarity index 100% rename from src/components/StatsChip/StatsChip.module.css rename to protocol-dashboard/src/components/StatsChip/StatsChip.module.css diff --git a/src/components/StatsChip/StatsChip.tsx b/protocol-dashboard/src/components/StatsChip/StatsChip.tsx similarity index 100% rename from src/components/StatsChip/StatsChip.tsx rename to protocol-dashboard/src/components/StatsChip/StatsChip.tsx diff --git a/src/components/Table/Table.module.css b/protocol-dashboard/src/components/Table/Table.module.css similarity index 100% rename from src/components/Table/Table.module.css rename to protocol-dashboard/src/components/Table/Table.module.css diff --git a/src/components/Table/Table.tsx b/protocol-dashboard/src/components/Table/Table.tsx similarity index 100% rename from src/components/Table/Table.tsx rename to protocol-dashboard/src/components/Table/Table.tsx diff --git a/src/components/Table/index.tsx b/protocol-dashboard/src/components/Table/index.tsx similarity index 100% rename from src/components/Table/index.tsx rename to protocol-dashboard/src/components/Table/index.tsx diff --git a/src/components/TextField/TextField.module.css b/protocol-dashboard/src/components/TextField/TextField.module.css similarity index 100% rename from src/components/TextField/TextField.module.css rename to protocol-dashboard/src/components/TextField/TextField.module.css diff --git a/src/components/TextField/TextField.tsx b/protocol-dashboard/src/components/TextField/TextField.tsx similarity index 100% rename from src/components/TextField/TextField.tsx rename to protocol-dashboard/src/components/TextField/TextField.tsx diff --git a/src/components/TextField/index.tsx b/protocol-dashboard/src/components/TextField/index.tsx similarity index 100% rename from src/components/TextField/index.tsx rename to protocol-dashboard/src/components/TextField/index.tsx diff --git a/src/components/Timeline/Timeline.module.css b/protocol-dashboard/src/components/Timeline/Timeline.module.css similarity index 100% rename from src/components/Timeline/Timeline.module.css rename to protocol-dashboard/src/components/Timeline/Timeline.module.css diff --git a/src/components/Timeline/Timeline.tsx b/protocol-dashboard/src/components/Timeline/Timeline.tsx similarity index 100% rename from src/components/Timeline/Timeline.tsx rename to protocol-dashboard/src/components/Timeline/Timeline.tsx diff --git a/src/components/Timeline/TimelineEvent.module.css b/protocol-dashboard/src/components/Timeline/TimelineEvent.module.css similarity index 100% rename from src/components/Timeline/TimelineEvent.module.css rename to protocol-dashboard/src/components/Timeline/TimelineEvent.module.css diff --git a/src/components/Timeline/TimelineEvent.tsx b/protocol-dashboard/src/components/Timeline/TimelineEvent.tsx similarity index 100% rename from src/components/Timeline/TimelineEvent.tsx rename to protocol-dashboard/src/components/Timeline/TimelineEvent.tsx diff --git a/src/components/Timeline/TimelineEventMobile.module.css b/protocol-dashboard/src/components/Timeline/TimelineEventMobile.module.css similarity index 100% rename from src/components/Timeline/TimelineEventMobile.module.css rename to protocol-dashboard/src/components/Timeline/TimelineEventMobile.module.css diff --git a/src/components/Timeline/TimelineModal.module.css b/protocol-dashboard/src/components/Timeline/TimelineModal.module.css similarity index 100% rename from src/components/Timeline/TimelineModal.module.css rename to protocol-dashboard/src/components/Timeline/TimelineModal.module.css diff --git a/src/components/Timeline/TimelineModal.tsx b/protocol-dashboard/src/components/Timeline/TimelineModal.tsx similarity index 100% rename from src/components/Timeline/TimelineModal.tsx rename to protocol-dashboard/src/components/Timeline/TimelineModal.tsx diff --git a/src/components/Timeline/index.tsx b/protocol-dashboard/src/components/Timeline/index.tsx similarity index 100% rename from src/components/Timeline/index.tsx rename to protocol-dashboard/src/components/Timeline/index.tsx diff --git a/src/components/Tooltip/Tooltip.module.css b/protocol-dashboard/src/components/Tooltip/Tooltip.module.css similarity index 100% rename from src/components/Tooltip/Tooltip.module.css rename to protocol-dashboard/src/components/Tooltip/Tooltip.module.css diff --git a/src/components/Tooltip/Tooltip.tsx b/protocol-dashboard/src/components/Tooltip/Tooltip.tsx similarity index 100% rename from src/components/Tooltip/Tooltip.tsx rename to protocol-dashboard/src/components/Tooltip/Tooltip.tsx diff --git a/src/components/Tooltip/index.tsx b/protocol-dashboard/src/components/Tooltip/index.tsx similarity index 100% rename from src/components/Tooltip/index.tsx rename to protocol-dashboard/src/components/Tooltip/index.tsx diff --git a/src/components/TopAPIAppsChart/TopAPIAppsChart.module.css b/protocol-dashboard/src/components/TopAPIAppsChart/TopAPIAppsChart.module.css similarity index 100% rename from src/components/TopAPIAppsChart/TopAPIAppsChart.module.css rename to protocol-dashboard/src/components/TopAPIAppsChart/TopAPIAppsChart.module.css diff --git a/src/components/TopAPIAppsChart/TopAPIAppsChart.tsx b/protocol-dashboard/src/components/TopAPIAppsChart/TopAPIAppsChart.tsx similarity index 100% rename from src/components/TopAPIAppsChart/TopAPIAppsChart.tsx rename to protocol-dashboard/src/components/TopAPIAppsChart/TopAPIAppsChart.tsx diff --git a/src/components/TopAPIAppsChart/index.tsx b/protocol-dashboard/src/components/TopAPIAppsChart/index.tsx similarity index 100% rename from src/components/TopAPIAppsChart/index.tsx rename to protocol-dashboard/src/components/TopAPIAppsChart/index.tsx diff --git a/src/components/TopAPITable/TopAPITable.module.css b/protocol-dashboard/src/components/TopAPITable/TopAPITable.module.css similarity index 100% rename from src/components/TopAPITable/TopAPITable.module.css rename to protocol-dashboard/src/components/TopAPITable/TopAPITable.module.css diff --git a/src/components/TopAPITable/TopAPITable.tsx b/protocol-dashboard/src/components/TopAPITable/TopAPITable.tsx similarity index 100% rename from src/components/TopAPITable/TopAPITable.tsx rename to protocol-dashboard/src/components/TopAPITable/TopAPITable.tsx diff --git a/src/components/TopAPITable/index.tsx b/protocol-dashboard/src/components/TopAPITable/index.tsx similarity index 100% rename from src/components/TopAPITable/index.tsx rename to protocol-dashboard/src/components/TopAPITable/index.tsx diff --git a/src/components/TopAddressesTable/TopAddressesTable.module.css b/protocol-dashboard/src/components/TopAddressesTable/TopAddressesTable.module.css similarity index 100% rename from src/components/TopAddressesTable/TopAddressesTable.module.css rename to protocol-dashboard/src/components/TopAddressesTable/TopAddressesTable.module.css diff --git a/src/components/TopAddressesTable/TopAddressesTable.tsx b/protocol-dashboard/src/components/TopAddressesTable/TopAddressesTable.tsx similarity index 100% rename from src/components/TopAddressesTable/TopAddressesTable.tsx rename to protocol-dashboard/src/components/TopAddressesTable/TopAddressesTable.tsx diff --git a/src/components/TopAddressesTable/index.tsx b/protocol-dashboard/src/components/TopAddressesTable/index.tsx similarity index 100% rename from src/components/TopAddressesTable/index.tsx rename to protocol-dashboard/src/components/TopAddressesTable/index.tsx diff --git a/src/components/TopAlbums/TopAlbums.module.css b/protocol-dashboard/src/components/TopAlbums/TopAlbums.module.css similarity index 100% rename from src/components/TopAlbums/TopAlbums.module.css rename to protocol-dashboard/src/components/TopAlbums/TopAlbums.module.css diff --git a/src/components/TopAlbums/TopAlbums.tsx b/protocol-dashboard/src/components/TopAlbums/TopAlbums.tsx similarity index 100% rename from src/components/TopAlbums/TopAlbums.tsx rename to protocol-dashboard/src/components/TopAlbums/TopAlbums.tsx diff --git a/src/components/TopAlbums/index.tsx b/protocol-dashboard/src/components/TopAlbums/index.tsx similarity index 100% rename from src/components/TopAlbums/index.tsx rename to protocol-dashboard/src/components/TopAlbums/index.tsx diff --git a/src/components/TopAppsChart/TopAppsChart.tsx b/protocol-dashboard/src/components/TopAppsChart/TopAppsChart.tsx similarity index 100% rename from src/components/TopAppsChart/TopAppsChart.tsx rename to protocol-dashboard/src/components/TopAppsChart/TopAppsChart.tsx diff --git a/src/components/TopAppsChart/index.tsx b/protocol-dashboard/src/components/TopAppsChart/index.tsx similarity index 100% rename from src/components/TopAppsChart/index.tsx rename to protocol-dashboard/src/components/TopAppsChart/index.tsx diff --git a/src/components/TopGenresChart/TopGenresChart.tsx b/protocol-dashboard/src/components/TopGenresChart/TopGenresChart.tsx similarity index 100% rename from src/components/TopGenresChart/TopGenresChart.tsx rename to protocol-dashboard/src/components/TopGenresChart/TopGenresChart.tsx diff --git a/src/components/TopGenresChart/index.tsx b/protocol-dashboard/src/components/TopGenresChart/index.tsx similarity index 100% rename from src/components/TopGenresChart/index.tsx rename to protocol-dashboard/src/components/TopGenresChart/index.tsx diff --git a/src/components/TopOperatorsTable/TopOperatorsTable.module.css b/protocol-dashboard/src/components/TopOperatorsTable/TopOperatorsTable.module.css similarity index 100% rename from src/components/TopOperatorsTable/TopOperatorsTable.module.css rename to protocol-dashboard/src/components/TopOperatorsTable/TopOperatorsTable.module.css diff --git a/src/components/TopOperatorsTable/TopOperatorsTable.tsx b/protocol-dashboard/src/components/TopOperatorsTable/TopOperatorsTable.tsx similarity index 100% rename from src/components/TopOperatorsTable/TopOperatorsTable.tsx rename to protocol-dashboard/src/components/TopOperatorsTable/TopOperatorsTable.tsx diff --git a/src/components/TopOperatorsTable/index.tsx b/protocol-dashboard/src/components/TopOperatorsTable/index.tsx similarity index 100% rename from src/components/TopOperatorsTable/index.tsx rename to protocol-dashboard/src/components/TopOperatorsTable/index.tsx diff --git a/src/components/TopPlaylists/TopPlaylists.module.css b/protocol-dashboard/src/components/TopPlaylists/TopPlaylists.module.css similarity index 100% rename from src/components/TopPlaylists/TopPlaylists.module.css rename to protocol-dashboard/src/components/TopPlaylists/TopPlaylists.module.css diff --git a/src/components/TopPlaylists/TopPlaylists.tsx b/protocol-dashboard/src/components/TopPlaylists/TopPlaylists.tsx similarity index 100% rename from src/components/TopPlaylists/TopPlaylists.tsx rename to protocol-dashboard/src/components/TopPlaylists/TopPlaylists.tsx diff --git a/src/components/TopPlaylists/index.tsx b/protocol-dashboard/src/components/TopPlaylists/index.tsx similarity index 100% rename from src/components/TopPlaylists/index.tsx rename to protocol-dashboard/src/components/TopPlaylists/index.tsx diff --git a/src/components/TopTracks/TopTracks.module.css b/protocol-dashboard/src/components/TopTracks/TopTracks.module.css similarity index 100% rename from src/components/TopTracks/TopTracks.module.css rename to protocol-dashboard/src/components/TopTracks/TopTracks.module.css diff --git a/src/components/TopTracks/TopTracks.tsx b/protocol-dashboard/src/components/TopTracks/TopTracks.tsx similarity index 100% rename from src/components/TopTracks/TopTracks.tsx rename to protocol-dashboard/src/components/TopTracks/TopTracks.tsx diff --git a/src/components/TopTracks/TopTracksMobile.module.css b/protocol-dashboard/src/components/TopTracks/TopTracksMobile.module.css similarity index 100% rename from src/components/TopTracks/TopTracksMobile.module.css rename to protocol-dashboard/src/components/TopTracks/TopTracksMobile.module.css diff --git a/src/components/TopTracks/index.tsx b/protocol-dashboard/src/components/TopTracks/index.tsx similarity index 100% rename from src/components/TopTracks/index.tsx rename to protocol-dashboard/src/components/TopTracks/index.tsx diff --git a/src/components/TotalApiCallsChart/TotalApiCallsChart.tsx b/protocol-dashboard/src/components/TotalApiCallsChart/TotalApiCallsChart.tsx similarity index 100% rename from src/components/TotalApiCallsChart/TotalApiCallsChart.tsx rename to protocol-dashboard/src/components/TotalApiCallsChart/TotalApiCallsChart.tsx diff --git a/src/components/TotalApiCallsChart/index.tsx b/protocol-dashboard/src/components/TotalApiCallsChart/index.tsx similarity index 100% rename from src/components/TotalApiCallsChart/index.tsx rename to protocol-dashboard/src/components/TotalApiCallsChart/index.tsx diff --git a/src/components/TotalStakedChart/TotalStakedChart.tsx b/protocol-dashboard/src/components/TotalStakedChart/TotalStakedChart.tsx similarity index 100% rename from src/components/TotalStakedChart/TotalStakedChart.tsx rename to protocol-dashboard/src/components/TotalStakedChart/TotalStakedChart.tsx diff --git a/src/components/TotalStakedChart/index.tsx b/protocol-dashboard/src/components/TotalStakedChart/index.tsx similarity index 100% rename from src/components/TotalStakedChart/index.tsx rename to protocol-dashboard/src/components/TotalStakedChart/index.tsx diff --git a/src/components/TotalStakedStat/TotalStakedStat.module.css b/protocol-dashboard/src/components/TotalStakedStat/TotalStakedStat.module.css similarity index 100% rename from src/components/TotalStakedStat/TotalStakedStat.module.css rename to protocol-dashboard/src/components/TotalStakedStat/TotalStakedStat.module.css diff --git a/src/components/TotalStakedStat/TotalStakedStat.tsx b/protocol-dashboard/src/components/TotalStakedStat/TotalStakedStat.tsx similarity index 100% rename from src/components/TotalStakedStat/TotalStakedStat.tsx rename to protocol-dashboard/src/components/TotalStakedStat/TotalStakedStat.tsx diff --git a/src/components/TotalStakedStat/index.tsx b/protocol-dashboard/src/components/TotalStakedStat/index.tsx similarity index 100% rename from src/components/TotalStakedStat/index.tsx rename to protocol-dashboard/src/components/TotalStakedStat/index.tsx diff --git a/src/components/TransactionStatus/TransactionStatus.module.css b/protocol-dashboard/src/components/TransactionStatus/TransactionStatus.module.css similarity index 100% rename from src/components/TransactionStatus/TransactionStatus.module.css rename to protocol-dashboard/src/components/TransactionStatus/TransactionStatus.module.css diff --git a/src/components/TransactionStatus/TransactionStatus.tsx b/protocol-dashboard/src/components/TransactionStatus/TransactionStatus.tsx similarity index 100% rename from src/components/TransactionStatus/TransactionStatus.tsx rename to protocol-dashboard/src/components/TransactionStatus/TransactionStatus.tsx diff --git a/src/components/TransactionStatus/index.tsx b/protocol-dashboard/src/components/TransactionStatus/index.tsx similarity index 100% rename from src/components/TransactionStatus/index.tsx rename to protocol-dashboard/src/components/TransactionStatus/index.tsx diff --git a/src/components/UniqueUsersChart/UniqueUsersChart.tsx b/protocol-dashboard/src/components/UniqueUsersChart/UniqueUsersChart.tsx similarity index 100% rename from src/components/UniqueUsersChart/UniqueUsersChart.tsx rename to protocol-dashboard/src/components/UniqueUsersChart/UniqueUsersChart.tsx diff --git a/src/components/UniqueUsersChart/index.tsx b/protocol-dashboard/src/components/UniqueUsersChart/index.tsx similarity index 100% rename from src/components/UniqueUsersChart/index.tsx rename to protocol-dashboard/src/components/UniqueUsersChart/index.tsx diff --git a/src/components/UniqueUsersStat/UniqueUsersStat.tsx b/protocol-dashboard/src/components/UniqueUsersStat/UniqueUsersStat.tsx similarity index 100% rename from src/components/UniqueUsersStat/UniqueUsersStat.tsx rename to protocol-dashboard/src/components/UniqueUsersStat/UniqueUsersStat.tsx diff --git a/src/components/UniqueUsersStat/index.tsx b/protocol-dashboard/src/components/UniqueUsersStat/index.tsx similarity index 100% rename from src/components/UniqueUsersStat/index.tsx rename to protocol-dashboard/src/components/UniqueUsersStat/index.tsx diff --git a/src/components/UpdateDelegationModal/UpdateDelegationModal.module.css b/protocol-dashboard/src/components/UpdateDelegationModal/UpdateDelegationModal.module.css similarity index 100% rename from src/components/UpdateDelegationModal/UpdateDelegationModal.module.css rename to protocol-dashboard/src/components/UpdateDelegationModal/UpdateDelegationModal.module.css diff --git a/src/components/UpdateDelegationModal/UpdateDelegationModal.tsx b/protocol-dashboard/src/components/UpdateDelegationModal/UpdateDelegationModal.tsx similarity index 100% rename from src/components/UpdateDelegationModal/UpdateDelegationModal.tsx rename to protocol-dashboard/src/components/UpdateDelegationModal/UpdateDelegationModal.tsx diff --git a/src/components/UpdateDelegationModal/index.tsx b/protocol-dashboard/src/components/UpdateDelegationModal/index.tsx similarity index 100% rename from src/components/UpdateDelegationModal/index.tsx rename to protocol-dashboard/src/components/UpdateDelegationModal/index.tsx diff --git a/src/components/UpdateStakeModal/UpdateStakeModal.module.css b/protocol-dashboard/src/components/UpdateStakeModal/UpdateStakeModal.module.css similarity index 100% rename from src/components/UpdateStakeModal/UpdateStakeModal.module.css rename to protocol-dashboard/src/components/UpdateStakeModal/UpdateStakeModal.module.css diff --git a/src/components/UpdateStakeModal/UpdateStakeModal.tsx b/protocol-dashboard/src/components/UpdateStakeModal/UpdateStakeModal.tsx similarity index 100% rename from src/components/UpdateStakeModal/UpdateStakeModal.tsx rename to protocol-dashboard/src/components/UpdateStakeModal/UpdateStakeModal.tsx diff --git a/src/components/UpdateStakeModal/index.tsx b/protocol-dashboard/src/components/UpdateStakeModal/index.tsx similarity index 100% rename from src/components/UpdateStakeModal/index.tsx rename to protocol-dashboard/src/components/UpdateStakeModal/index.tsx diff --git a/src/components/UserImage/UserImage.module.css b/protocol-dashboard/src/components/UserImage/UserImage.module.css similarity index 100% rename from src/components/UserImage/UserImage.module.css rename to protocol-dashboard/src/components/UserImage/UserImage.module.css diff --git a/src/components/UserImage/UserImage.tsx b/protocol-dashboard/src/components/UserImage/UserImage.tsx similarity index 100% rename from src/components/UserImage/UserImage.tsx rename to protocol-dashboard/src/components/UserImage/UserImage.tsx diff --git a/src/components/UserImage/index.tsx b/protocol-dashboard/src/components/UserImage/index.tsx similarity index 100% rename from src/components/UserImage/index.tsx rename to protocol-dashboard/src/components/UserImage/index.tsx diff --git a/src/components/UserInfo/UserInfo.module.css b/protocol-dashboard/src/components/UserInfo/UserInfo.module.css similarity index 100% rename from src/components/UserInfo/UserInfo.module.css rename to protocol-dashboard/src/components/UserInfo/UserInfo.module.css diff --git a/src/components/UserInfo/UserInfo.tsx b/protocol-dashboard/src/components/UserInfo/UserInfo.tsx similarity index 100% rename from src/components/UserInfo/UserInfo.tsx rename to protocol-dashboard/src/components/UserInfo/UserInfo.tsx diff --git a/src/components/UserInfo/UserInfoMobile.module.css b/protocol-dashboard/src/components/UserInfo/UserInfoMobile.module.css similarity index 100% rename from src/components/UserInfo/UserInfoMobile.module.css rename to protocol-dashboard/src/components/UserInfo/UserInfoMobile.module.css diff --git a/src/components/UserInfo/index.tsx b/protocol-dashboard/src/components/UserInfo/index.tsx similarity index 100% rename from src/components/UserInfo/index.tsx rename to protocol-dashboard/src/components/UserInfo/index.tsx diff --git a/src/components/UserName/UserName.module.css b/protocol-dashboard/src/components/UserName/UserName.module.css similarity index 100% rename from src/components/UserName/UserName.module.css rename to protocol-dashboard/src/components/UserName/UserName.module.css diff --git a/src/components/UserName/UserName.tsx b/protocol-dashboard/src/components/UserName/UserName.tsx similarity index 100% rename from src/components/UserName/UserName.tsx rename to protocol-dashboard/src/components/UserName/UserName.tsx diff --git a/src/components/UserName/index.tsx b/protocol-dashboard/src/components/UserName/index.tsx similarity index 100% rename from src/components/UserName/index.tsx rename to protocol-dashboard/src/components/UserName/index.tsx diff --git a/src/components/UserStakedStat/UserStakedStat.module.css b/protocol-dashboard/src/components/UserStakedStat/UserStakedStat.module.css similarity index 100% rename from src/components/UserStakedStat/UserStakedStat.module.css rename to protocol-dashboard/src/components/UserStakedStat/UserStakedStat.module.css diff --git a/src/components/UserStakedStat/UserStakedStat.tsx b/protocol-dashboard/src/components/UserStakedStat/UserStakedStat.tsx similarity index 100% rename from src/components/UserStakedStat/UserStakedStat.tsx rename to protocol-dashboard/src/components/UserStakedStat/UserStakedStat.tsx diff --git a/src/components/UserStakedStat/index.tsx b/protocol-dashboard/src/components/UserStakedStat/index.tsx similarity index 100% rename from src/components/UserStakedStat/index.tsx rename to protocol-dashboard/src/components/UserStakedStat/index.tsx diff --git a/src/components/ValueSlider/ValueSlider.module.css b/protocol-dashboard/src/components/ValueSlider/ValueSlider.module.css similarity index 100% rename from src/components/ValueSlider/ValueSlider.module.css rename to protocol-dashboard/src/components/ValueSlider/ValueSlider.module.css diff --git a/src/components/ValueSlider/ValueSlider.tsx b/protocol-dashboard/src/components/ValueSlider/ValueSlider.tsx similarity index 100% rename from src/components/ValueSlider/ValueSlider.tsx rename to protocol-dashboard/src/components/ValueSlider/ValueSlider.tsx diff --git a/src/components/ValueSlider/index.tsx b/protocol-dashboard/src/components/ValueSlider/index.tsx similarity index 100% rename from src/components/ValueSlider/index.tsx rename to protocol-dashboard/src/components/ValueSlider/index.tsx diff --git a/src/components/VerticalBarChart/VerticalBarChart.module.css b/protocol-dashboard/src/components/VerticalBarChart/VerticalBarChart.module.css similarity index 100% rename from src/components/VerticalBarChart/VerticalBarChart.module.css rename to protocol-dashboard/src/components/VerticalBarChart/VerticalBarChart.module.css diff --git a/src/components/VerticalBarChart/VerticalBarChart.tsx b/protocol-dashboard/src/components/VerticalBarChart/VerticalBarChart.tsx similarity index 100% rename from src/components/VerticalBarChart/VerticalBarChart.tsx rename to protocol-dashboard/src/components/VerticalBarChart/VerticalBarChart.tsx diff --git a/src/components/VerticalBarChart/VerticalBarChartMobile.module.css b/protocol-dashboard/src/components/VerticalBarChart/VerticalBarChartMobile.module.css similarity index 100% rename from src/components/VerticalBarChart/VerticalBarChartMobile.module.css rename to protocol-dashboard/src/components/VerticalBarChart/VerticalBarChartMobile.module.css diff --git a/src/components/VerticalBarChart/index.tsx b/protocol-dashboard/src/components/VerticalBarChart/index.tsx similarity index 100% rename from src/components/VerticalBarChart/index.tsx rename to protocol-dashboard/src/components/VerticalBarChart/index.tsx diff --git a/src/components/VoteMeter/VoteMeter.module.css b/protocol-dashboard/src/components/VoteMeter/VoteMeter.module.css similarity index 100% rename from src/components/VoteMeter/VoteMeter.module.css rename to protocol-dashboard/src/components/VoteMeter/VoteMeter.module.css diff --git a/src/components/VoteMeter/VoteMeter.tsx b/protocol-dashboard/src/components/VoteMeter/VoteMeter.tsx similarity index 100% rename from src/components/VoteMeter/VoteMeter.tsx rename to protocol-dashboard/src/components/VoteMeter/VoteMeter.tsx diff --git a/src/components/VoteMeter/VoteMeterMobile.module.css b/protocol-dashboard/src/components/VoteMeter/VoteMeterMobile.module.css similarity index 100% rename from src/components/VoteMeter/VoteMeterMobile.module.css rename to protocol-dashboard/src/components/VoteMeter/VoteMeterMobile.module.css diff --git a/src/components/VoteMeter/index.tsx b/protocol-dashboard/src/components/VoteMeter/index.tsx similarity index 100% rename from src/components/VoteMeter/index.tsx rename to protocol-dashboard/src/components/VoteMeter/index.tsx diff --git a/src/components/Voted/Voted.module.css b/protocol-dashboard/src/components/Voted/Voted.module.css similarity index 100% rename from src/components/Voted/Voted.module.css rename to protocol-dashboard/src/components/Voted/Voted.module.css diff --git a/src/components/Voted/Voted.tsx b/protocol-dashboard/src/components/Voted/Voted.tsx similarity index 100% rename from src/components/Voted/Voted.tsx rename to protocol-dashboard/src/components/Voted/Voted.tsx diff --git a/src/components/Voted/index.tsx b/protocol-dashboard/src/components/Voted/index.tsx similarity index 100% rename from src/components/Voted/index.tsx rename to protocol-dashboard/src/components/Voted/index.tsx diff --git a/src/components/VotesTable/VotesTable.module.css b/protocol-dashboard/src/components/VotesTable/VotesTable.module.css similarity index 100% rename from src/components/VotesTable/VotesTable.module.css rename to protocol-dashboard/src/components/VotesTable/VotesTable.module.css diff --git a/src/components/VotesTable/VotesTable.tsx b/protocol-dashboard/src/components/VotesTable/VotesTable.tsx similarity index 100% rename from src/components/VotesTable/VotesTable.tsx rename to protocol-dashboard/src/components/VotesTable/VotesTable.tsx diff --git a/src/components/VotesTable/index.tsx b/protocol-dashboard/src/components/VotesTable/index.tsx similarity index 100% rename from src/components/VotesTable/index.tsx rename to protocol-dashboard/src/components/VotesTable/index.tsx diff --git a/src/containers/API/API.module.css b/protocol-dashboard/src/containers/API/API.module.css similarity index 100% rename from src/containers/API/API.module.css rename to protocol-dashboard/src/containers/API/API.module.css diff --git a/src/containers/API/API.tsx b/protocol-dashboard/src/containers/API/API.tsx similarity index 100% rename from src/containers/API/API.tsx rename to protocol-dashboard/src/containers/API/API.tsx diff --git a/src/containers/API/APIMobile.module.css b/protocol-dashboard/src/containers/API/APIMobile.module.css similarity index 100% rename from src/containers/API/APIMobile.module.css rename to protocol-dashboard/src/containers/API/APIMobile.module.css diff --git a/src/containers/API/index.tsx b/protocol-dashboard/src/containers/API/index.tsx similarity index 100% rename from src/containers/API/index.tsx rename to protocol-dashboard/src/containers/API/index.tsx diff --git a/src/containers/APILeaderboard/APILeaderboard.module.css b/protocol-dashboard/src/containers/APILeaderboard/APILeaderboard.module.css similarity index 100% rename from src/containers/APILeaderboard/APILeaderboard.module.css rename to protocol-dashboard/src/containers/APILeaderboard/APILeaderboard.module.css diff --git a/src/containers/APILeaderboard/APILeaderboard.tsx b/protocol-dashboard/src/containers/APILeaderboard/APILeaderboard.tsx similarity index 100% rename from src/containers/APILeaderboard/APILeaderboard.tsx rename to protocol-dashboard/src/containers/APILeaderboard/APILeaderboard.tsx diff --git a/src/containers/APILeaderboard/index.tsx b/protocol-dashboard/src/containers/APILeaderboard/index.tsx similarity index 100% rename from src/containers/APILeaderboard/index.tsx rename to protocol-dashboard/src/containers/APILeaderboard/index.tsx diff --git a/src/containers/Analytics/Analytics.module.css b/protocol-dashboard/src/containers/Analytics/Analytics.module.css similarity index 100% rename from src/containers/Analytics/Analytics.module.css rename to protocol-dashboard/src/containers/Analytics/Analytics.module.css diff --git a/src/containers/Analytics/Analytics.tsx b/protocol-dashboard/src/containers/Analytics/Analytics.tsx similarity index 100% rename from src/containers/Analytics/Analytics.tsx rename to protocol-dashboard/src/containers/Analytics/Analytics.tsx diff --git a/src/containers/Analytics/AnalyticsMobile.module.css b/protocol-dashboard/src/containers/Analytics/AnalyticsMobile.module.css similarity index 100% rename from src/containers/Analytics/AnalyticsMobile.module.css rename to protocol-dashboard/src/containers/Analytics/AnalyticsMobile.module.css diff --git a/src/containers/Analytics/index.tsx b/protocol-dashboard/src/containers/Analytics/index.tsx similarity index 100% rename from src/containers/Analytics/index.tsx rename to protocol-dashboard/src/containers/Analytics/index.tsx diff --git a/src/containers/ContentNodes/ContentNodes.module.css b/protocol-dashboard/src/containers/ContentNodes/ContentNodes.module.css similarity index 100% rename from src/containers/ContentNodes/ContentNodes.module.css rename to protocol-dashboard/src/containers/ContentNodes/ContentNodes.module.css diff --git a/src/containers/ContentNodes/ContentNodes.tsx b/protocol-dashboard/src/containers/ContentNodes/ContentNodes.tsx similarity index 100% rename from src/containers/ContentNodes/ContentNodes.tsx rename to protocol-dashboard/src/containers/ContentNodes/ContentNodes.tsx diff --git a/src/containers/ContentNodes/index.tsx b/protocol-dashboard/src/containers/ContentNodes/index.tsx similarity index 100% rename from src/containers/ContentNodes/index.tsx rename to protocol-dashboard/src/containers/ContentNodes/index.tsx diff --git a/src/containers/DiscoveryProviders/DiscoveryProviders.module.css b/protocol-dashboard/src/containers/DiscoveryProviders/DiscoveryProviders.module.css similarity index 100% rename from src/containers/DiscoveryProviders/DiscoveryProviders.module.css rename to protocol-dashboard/src/containers/DiscoveryProviders/DiscoveryProviders.module.css diff --git a/src/containers/DiscoveryProviders/DiscoveryProviders.tsx b/protocol-dashboard/src/containers/DiscoveryProviders/DiscoveryProviders.tsx similarity index 100% rename from src/containers/DiscoveryProviders/DiscoveryProviders.tsx rename to protocol-dashboard/src/containers/DiscoveryProviders/DiscoveryProviders.tsx diff --git a/src/containers/DiscoveryProviders/index.tsx b/protocol-dashboard/src/containers/DiscoveryProviders/index.tsx similarity index 100% rename from src/containers/DiscoveryProviders/index.tsx rename to protocol-dashboard/src/containers/DiscoveryProviders/index.tsx diff --git a/src/containers/Governance/Governance.module.css b/protocol-dashboard/src/containers/Governance/Governance.module.css similarity index 100% rename from src/containers/Governance/Governance.module.css rename to protocol-dashboard/src/containers/Governance/Governance.module.css diff --git a/src/containers/Governance/Governance.tsx b/protocol-dashboard/src/containers/Governance/Governance.tsx similarity index 100% rename from src/containers/Governance/Governance.tsx rename to protocol-dashboard/src/containers/Governance/Governance.tsx diff --git a/src/containers/Governance/index.tsx b/protocol-dashboard/src/containers/Governance/index.tsx similarity index 100% rename from src/containers/Governance/index.tsx rename to protocol-dashboard/src/containers/Governance/index.tsx diff --git a/src/containers/Home/Home.module.css b/protocol-dashboard/src/containers/Home/Home.module.css similarity index 100% rename from src/containers/Home/Home.module.css rename to protocol-dashboard/src/containers/Home/Home.module.css diff --git a/src/containers/Home/Home.tsx b/protocol-dashboard/src/containers/Home/Home.tsx similarity index 100% rename from src/containers/Home/Home.tsx rename to protocol-dashboard/src/containers/Home/Home.tsx diff --git a/src/containers/Home/HomeMobile.module.css b/protocol-dashboard/src/containers/Home/HomeMobile.module.css similarity index 100% rename from src/containers/Home/HomeMobile.module.css rename to protocol-dashboard/src/containers/Home/HomeMobile.module.css diff --git a/src/containers/Home/index.tsx b/protocol-dashboard/src/containers/Home/index.tsx similarity index 100% rename from src/containers/Home/index.tsx rename to protocol-dashboard/src/containers/Home/index.tsx diff --git a/protocol-dashboard/src/containers/Node/Node.module.css b/protocol-dashboard/src/containers/Node/Node.module.css new file mode 100644 index 0000000..c97247a --- /dev/null +++ b/protocol-dashboard/src/containers/Node/Node.module.css @@ -0,0 +1,19 @@ +.container { + width: 100%; +} + +.section { + margin-bottom: 16px; + display: flex; + margin-left: -8px; + margin-right: -8px; +} + +.section > * { + width: 100%; + margin: 0 8px; +} + +.chart { + min-height: 340px; +} \ No newline at end of file diff --git a/src/containers/Node/Node.tsx b/protocol-dashboard/src/containers/Node/Node.tsx similarity index 55% rename from src/containers/Node/Node.tsx rename to protocol-dashboard/src/containers/Node/Node.tsx index 029fb6b..b2925e7 100644 --- a/src/containers/Node/Node.tsx +++ b/protocol-dashboard/src/containers/Node/Node.tsx @@ -16,6 +16,9 @@ import { SERVICES, NOT_FOUND } from 'utils/routes' +import IndividualServiceApiCallsChart from 'components/IndividualServiceApiCallsChart' +import clsx from 'clsx' +import IndividualServiceUniqueUsersChart from 'components/IndividualServiceUniqueUsersChart' const messages = { title: 'SERVICE', @@ -32,57 +35,64 @@ const ContentNode: React.FC = ({ if (status === Status.Failure) { return null - } else if (status === Status.Loading) { - return null } - // TODO: compare owner with the current user - const isOwner = accountWallet === contentNode!.owner + const isOwner = accountWallet === contentNode?.owner ?? false return ( ) } -type DiscoveryProviderProps = { +type DiscoveryNodeProps = { spID: number accountWallet: Address | undefined } -const DiscoveryProvider: React.FC = ({ +const DiscoveryNode: React.FC = ({ spID, accountWallet -}: DiscoveryProviderProps) => { - const { node: discoveryProvider, status } = useDiscoveryProvider({ spID }) +}: DiscoveryNodeProps) => { + const { node: discoveryNode, status } = useDiscoveryProvider({ spID }) const pushRoute = usePushRoute() if (status === Status.Failure) { pushRoute(NOT_FOUND) return null - } else if (status === Status.Loading) { - return null } - const isOwner = accountWallet === discoveryProvider!.owner + const isOwner = accountWallet === discoveryNode?.owner ?? false return ( - + <> +
+ +
+ {discoveryNode ? ( +
+ + +
+ ) : null} + ) } @@ -107,7 +117,7 @@ const Node: React.FC = (props: NodeProps) => { defaultPreviousPageRoute={SERVICES} > {isDiscovery ? ( - + ) : ( )} diff --git a/src/containers/Node/index.tsx b/protocol-dashboard/src/containers/Node/index.tsx similarity index 100% rename from src/containers/Node/index.tsx rename to protocol-dashboard/src/containers/Node/index.tsx diff --git a/src/containers/NotFound/NotFound.module.css b/protocol-dashboard/src/containers/NotFound/NotFound.module.css similarity index 100% rename from src/containers/NotFound/NotFound.module.css rename to protocol-dashboard/src/containers/NotFound/NotFound.module.css diff --git a/src/containers/NotFound/NotFound.tsx b/protocol-dashboard/src/containers/NotFound/NotFound.tsx similarity index 100% rename from src/containers/NotFound/NotFound.tsx rename to protocol-dashboard/src/containers/NotFound/NotFound.tsx diff --git a/src/containers/NotFound/index.tsx b/protocol-dashboard/src/containers/NotFound/index.tsx similarity index 100% rename from src/containers/NotFound/index.tsx rename to protocol-dashboard/src/containers/NotFound/index.tsx diff --git a/src/containers/Proposal/Proposal.module.css b/protocol-dashboard/src/containers/Proposal/Proposal.module.css similarity index 100% rename from src/containers/Proposal/Proposal.module.css rename to protocol-dashboard/src/containers/Proposal/Proposal.module.css diff --git a/src/containers/Proposal/Proposal.tsx b/protocol-dashboard/src/containers/Proposal/Proposal.tsx similarity index 100% rename from src/containers/Proposal/Proposal.tsx rename to protocol-dashboard/src/containers/Proposal/Proposal.tsx diff --git a/src/containers/Proposal/ProposalMobile.module.css b/protocol-dashboard/src/containers/Proposal/ProposalMobile.module.css similarity index 100% rename from src/containers/Proposal/ProposalMobile.module.css rename to protocol-dashboard/src/containers/Proposal/ProposalMobile.module.css diff --git a/src/containers/Proposal/index.tsx b/protocol-dashboard/src/containers/Proposal/index.tsx similarity index 100% rename from src/containers/Proposal/index.tsx rename to protocol-dashboard/src/containers/Proposal/index.tsx diff --git a/src/containers/ServiceOperators/ServiceOperators.module.css b/protocol-dashboard/src/containers/ServiceOperators/ServiceOperators.module.css similarity index 100% rename from src/containers/ServiceOperators/ServiceOperators.module.css rename to protocol-dashboard/src/containers/ServiceOperators/ServiceOperators.module.css diff --git a/src/containers/ServiceOperators/ServiceOperators.tsx b/protocol-dashboard/src/containers/ServiceOperators/ServiceOperators.tsx similarity index 100% rename from src/containers/ServiceOperators/ServiceOperators.tsx rename to protocol-dashboard/src/containers/ServiceOperators/ServiceOperators.tsx diff --git a/src/containers/ServiceOperators/index.tsx b/protocol-dashboard/src/containers/ServiceOperators/index.tsx similarity index 100% rename from src/containers/ServiceOperators/index.tsx rename to protocol-dashboard/src/containers/ServiceOperators/index.tsx diff --git a/src/containers/ServiceUsers/ServiceUsers.module.css b/protocol-dashboard/src/containers/ServiceUsers/ServiceUsers.module.css similarity index 100% rename from src/containers/ServiceUsers/ServiceUsers.module.css rename to protocol-dashboard/src/containers/ServiceUsers/ServiceUsers.module.css diff --git a/src/containers/ServiceUsers/ServiceUsers.tsx b/protocol-dashboard/src/containers/ServiceUsers/ServiceUsers.tsx similarity index 100% rename from src/containers/ServiceUsers/ServiceUsers.tsx rename to protocol-dashboard/src/containers/ServiceUsers/ServiceUsers.tsx diff --git a/src/containers/ServiceUsers/index.tsx b/protocol-dashboard/src/containers/ServiceUsers/index.tsx similarity index 100% rename from src/containers/ServiceUsers/index.tsx rename to protocol-dashboard/src/containers/ServiceUsers/index.tsx diff --git a/src/containers/Services/Services.module.css b/protocol-dashboard/src/containers/Services/Services.module.css similarity index 100% rename from src/containers/Services/Services.module.css rename to protocol-dashboard/src/containers/Services/Services.module.css diff --git a/src/containers/Services/Services.tsx b/protocol-dashboard/src/containers/Services/Services.tsx similarity index 100% rename from src/containers/Services/Services.tsx rename to protocol-dashboard/src/containers/Services/Services.tsx diff --git a/src/containers/Services/ServicesMobile.module.css b/protocol-dashboard/src/containers/Services/ServicesMobile.module.css similarity index 100% rename from src/containers/Services/ServicesMobile.module.css rename to protocol-dashboard/src/containers/Services/ServicesMobile.module.css diff --git a/src/containers/Services/index.tsx b/protocol-dashboard/src/containers/Services/index.tsx similarity index 100% rename from src/containers/Services/index.tsx rename to protocol-dashboard/src/containers/Services/index.tsx diff --git a/src/containers/User/User.module.css b/protocol-dashboard/src/containers/User/User.module.css similarity index 100% rename from src/containers/User/User.module.css rename to protocol-dashboard/src/containers/User/User.module.css diff --git a/src/containers/User/User.tsx b/protocol-dashboard/src/containers/User/User.tsx similarity index 100% rename from src/containers/User/User.tsx rename to protocol-dashboard/src/containers/User/User.tsx diff --git a/src/containers/User/UserMobile.module.css b/protocol-dashboard/src/containers/User/UserMobile.module.css similarity index 100% rename from src/containers/User/UserMobile.module.css rename to protocol-dashboard/src/containers/User/UserMobile.module.css diff --git a/src/containers/User/index.tsx b/protocol-dashboard/src/containers/User/index.tsx similarity index 100% rename from src/containers/User/index.tsx rename to protocol-dashboard/src/containers/User/index.tsx diff --git a/src/hooks/useOpenLink.ts b/protocol-dashboard/src/hooks/useOpenLink.ts similarity index 100% rename from src/hooks/useOpenLink.ts rename to protocol-dashboard/src/hooks/useOpenLink.ts diff --git a/src/hooks/useRerouteLegacy.ts b/protocol-dashboard/src/hooks/useRerouteLegacy.ts similarity index 100% rename from src/hooks/useRerouteLegacy.ts rename to protocol-dashboard/src/hooks/useRerouteLegacy.ts diff --git a/src/hooks/useRewardRate.ts b/protocol-dashboard/src/hooks/useRewardRate.ts similarity index 100% rename from src/hooks/useRewardRate.ts rename to protocol-dashboard/src/hooks/useRewardRate.ts diff --git a/src/hooks/useTotalStaked.ts b/protocol-dashboard/src/hooks/useTotalStaked.ts similarity index 100% rename from src/hooks/useTotalStaked.ts rename to protocol-dashboard/src/hooks/useTotalStaked.ts diff --git a/src/index.css b/protocol-dashboard/src/index.css similarity index 100% rename from src/index.css rename to protocol-dashboard/src/index.css diff --git a/src/index.tsx b/protocol-dashboard/src/index.tsx similarity index 100% rename from src/index.tsx rename to protocol-dashboard/src/index.tsx diff --git a/src/models/TimelineEvents.ts b/protocol-dashboard/src/models/TimelineEvents.ts similarity index 100% rename from src/models/TimelineEvents.ts rename to protocol-dashboard/src/models/TimelineEvents.ts diff --git a/src/serviceWorker.ts b/protocol-dashboard/src/serviceWorker.ts similarity index 100% rename from src/serviceWorker.ts rename to protocol-dashboard/src/serviceWorker.ts diff --git a/src/services/Audius/AudiusClient.ts b/protocol-dashboard/src/services/Audius/AudiusClient.ts similarity index 100% rename from src/services/Audius/AudiusClient.ts rename to protocol-dashboard/src/services/Audius/AudiusClient.ts diff --git a/src/services/Audius/claim/claim.ts b/protocol-dashboard/src/services/Audius/claim/claim.ts similarity index 100% rename from src/services/Audius/claim/claim.ts rename to protocol-dashboard/src/services/Audius/claim/claim.ts diff --git a/src/services/Audius/claim/types.ts b/protocol-dashboard/src/services/Audius/claim/types.ts similarity index 100% rename from src/services/Audius/claim/types.ts rename to protocol-dashboard/src/services/Audius/claim/types.ts diff --git a/src/services/Audius/delegate/delegate.ts b/protocol-dashboard/src/services/Audius/delegate/delegate.ts similarity index 100% rename from src/services/Audius/delegate/delegate.ts rename to protocol-dashboard/src/services/Audius/delegate/delegate.ts diff --git a/src/services/Audius/delegate/types.ts b/protocol-dashboard/src/services/Audius/delegate/types.ts similarity index 100% rename from src/services/Audius/delegate/types.ts rename to protocol-dashboard/src/services/Audius/delegate/types.ts diff --git a/src/services/Audius/governance/governance.ts b/protocol-dashboard/src/services/Audius/governance/governance.ts similarity index 100% rename from src/services/Audius/governance/governance.ts rename to protocol-dashboard/src/services/Audius/governance/governance.ts diff --git a/src/services/Audius/governance/types.ts b/protocol-dashboard/src/services/Audius/governance/types.ts similarity index 100% rename from src/services/Audius/governance/types.ts rename to protocol-dashboard/src/services/Audius/governance/types.ts diff --git a/src/services/Audius/helpers.ts b/protocol-dashboard/src/services/Audius/helpers.ts similarity index 100% rename from src/services/Audius/helpers.ts rename to protocol-dashboard/src/services/Audius/helpers.ts diff --git a/src/services/Audius/identity/index.ts b/protocol-dashboard/src/services/Audius/identity/index.ts similarity index 100% rename from src/services/Audius/identity/index.ts rename to protocol-dashboard/src/services/Audius/identity/index.ts diff --git a/src/services/Audius/index.ts b/protocol-dashboard/src/services/Audius/index.ts similarity index 100% rename from src/services/Audius/index.ts rename to protocol-dashboard/src/services/Audius/index.ts diff --git a/src/services/Audius/nodeType.ts b/protocol-dashboard/src/services/Audius/nodeType.ts similarity index 100% rename from src/services/Audius/nodeType.ts rename to protocol-dashboard/src/services/Audius/nodeType.ts diff --git a/src/services/Audius/service-provider/serviceProviderClient.ts b/protocol-dashboard/src/services/Audius/service-provider/serviceProviderClient.ts similarity index 100% rename from src/services/Audius/service-provider/serviceProviderClient.ts rename to protocol-dashboard/src/services/Audius/service-provider/serviceProviderClient.ts diff --git a/src/services/Audius/service-provider/types.ts b/protocol-dashboard/src/services/Audius/service-provider/types.ts similarity index 100% rename from src/services/Audius/service-provider/types.ts rename to protocol-dashboard/src/services/Audius/service-provider/types.ts diff --git a/src/services/Audius/setup.ts b/protocol-dashboard/src/services/Audius/setup.ts similarity index 100% rename from src/services/Audius/setup.ts rename to protocol-dashboard/src/services/Audius/setup.ts diff --git a/src/services/Audius/staking/staking.ts b/protocol-dashboard/src/services/Audius/staking/staking.ts similarity index 100% rename from src/services/Audius/staking/staking.ts rename to protocol-dashboard/src/services/Audius/staking/staking.ts diff --git a/src/services/Audius/token/audiusToken.ts b/protocol-dashboard/src/services/Audius/token/audiusToken.ts similarity index 100% rename from src/services/Audius/token/audiusToken.ts rename to protocol-dashboard/src/services/Audius/token/audiusToken.ts diff --git a/src/services/Audius/wrappers.ts b/protocol-dashboard/src/services/Audius/wrappers.ts similarity index 100% rename from src/services/Audius/wrappers.ts rename to protocol-dashboard/src/services/Audius/wrappers.ts diff --git a/src/services/AudiusSubgraph/index.ts b/protocol-dashboard/src/services/AudiusSubgraph/index.ts similarity index 100% rename from src/services/AudiusSubgraph/index.ts rename to protocol-dashboard/src/services/AudiusSubgraph/index.ts diff --git a/src/services/SelfId/SelfId.ts b/protocol-dashboard/src/services/SelfId/SelfId.ts similarity index 100% rename from src/services/SelfId/SelfId.ts rename to protocol-dashboard/src/services/SelfId/SelfId.ts diff --git a/src/services/SelfId/index.ts b/protocol-dashboard/src/services/SelfId/index.ts similarity index 100% rename from src/services/SelfId/index.ts rename to protocol-dashboard/src/services/SelfId/index.ts diff --git a/src/services/SelfId/types.ts b/protocol-dashboard/src/services/SelfId/types.ts similarity index 100% rename from src/services/SelfId/types.ts rename to protocol-dashboard/src/services/SelfId/types.ts diff --git a/src/store/account/hooks.ts b/protocol-dashboard/src/store/account/hooks.ts similarity index 100% rename from src/store/account/hooks.ts rename to protocol-dashboard/src/store/account/hooks.ts diff --git a/src/store/account/slice.ts b/protocol-dashboard/src/store/account/slice.ts similarity index 100% rename from src/store/account/slice.ts rename to protocol-dashboard/src/store/account/slice.ts diff --git a/src/store/actions/cancelTransaction.ts b/protocol-dashboard/src/store/actions/cancelTransaction.ts similarity index 100% rename from src/store/actions/cancelTransaction.ts rename to protocol-dashboard/src/store/actions/cancelTransaction.ts diff --git a/src/store/actions/createProposal.ts b/protocol-dashboard/src/store/actions/createProposal.ts similarity index 100% rename from src/store/actions/createProposal.ts rename to protocol-dashboard/src/store/actions/createProposal.ts diff --git a/src/store/actions/delegateStake.ts b/protocol-dashboard/src/store/actions/delegateStake.ts similarity index 100% rename from src/store/actions/delegateStake.ts rename to protocol-dashboard/src/store/actions/delegateStake.ts diff --git a/src/store/actions/deregisterService.ts b/protocol-dashboard/src/store/actions/deregisterService.ts similarity index 100% rename from src/store/actions/deregisterService.ts rename to protocol-dashboard/src/store/actions/deregisterService.ts diff --git a/src/store/actions/executeProposal.ts b/protocol-dashboard/src/store/actions/executeProposal.ts similarity index 100% rename from src/store/actions/executeProposal.ts rename to protocol-dashboard/src/store/actions/executeProposal.ts diff --git a/src/store/actions/makeClaim.ts b/protocol-dashboard/src/store/actions/makeClaim.ts similarity index 100% rename from src/store/actions/makeClaim.ts rename to protocol-dashboard/src/store/actions/makeClaim.ts diff --git a/src/store/actions/modifyService.ts b/protocol-dashboard/src/store/actions/modifyService.ts similarity index 100% rename from src/store/actions/modifyService.ts rename to protocol-dashboard/src/store/actions/modifyService.ts diff --git a/src/store/actions/registerService.ts b/protocol-dashboard/src/store/actions/registerService.ts similarity index 100% rename from src/store/actions/registerService.ts rename to protocol-dashboard/src/store/actions/registerService.ts diff --git a/src/store/actions/removeDelegator.ts b/protocol-dashboard/src/store/actions/removeDelegator.ts similarity index 100% rename from src/store/actions/removeDelegator.ts rename to protocol-dashboard/src/store/actions/removeDelegator.ts diff --git a/src/store/actions/submitTransaction.ts b/protocol-dashboard/src/store/actions/submitTransaction.ts similarity index 100% rename from src/store/actions/submitTransaction.ts rename to protocol-dashboard/src/store/actions/submitTransaction.ts diff --git a/src/store/actions/submitVote.ts b/protocol-dashboard/src/store/actions/submitVote.ts similarity index 100% rename from src/store/actions/submitVote.ts rename to protocol-dashboard/src/store/actions/submitVote.ts diff --git a/src/store/actions/undelegateStake.ts b/protocol-dashboard/src/store/actions/undelegateStake.ts similarity index 100% rename from src/store/actions/undelegateStake.ts rename to protocol-dashboard/src/store/actions/undelegateStake.ts diff --git a/src/store/actions/updateDelegation.ts b/protocol-dashboard/src/store/actions/updateDelegation.ts similarity index 100% rename from src/store/actions/updateDelegation.ts rename to protocol-dashboard/src/store/actions/updateDelegation.ts diff --git a/src/store/actions/updateMinimumDelegationAmount.ts b/protocol-dashboard/src/store/actions/updateMinimumDelegationAmount.ts similarity index 100% rename from src/store/actions/updateMinimumDelegationAmount.ts rename to protocol-dashboard/src/store/actions/updateMinimumDelegationAmount.ts diff --git a/src/store/actions/updateOperatorCut.ts b/protocol-dashboard/src/store/actions/updateOperatorCut.ts similarity index 100% rename from src/store/actions/updateOperatorCut.ts rename to protocol-dashboard/src/store/actions/updateOperatorCut.ts diff --git a/src/store/actions/updateStake.ts b/protocol-dashboard/src/store/actions/updateStake.ts similarity index 100% rename from src/store/actions/updateStake.ts rename to protocol-dashboard/src/store/actions/updateStake.ts diff --git a/src/store/actions/userDelegation.ts b/protocol-dashboard/src/store/actions/userDelegation.ts similarity index 100% rename from src/store/actions/userDelegation.ts rename to protocol-dashboard/src/store/actions/userDelegation.ts diff --git a/src/store/api/hooks.ts b/protocol-dashboard/src/store/api/hooks.ts similarity index 100% rename from src/store/api/hooks.ts rename to protocol-dashboard/src/store/api/hooks.ts diff --git a/src/store/api/slice.ts b/protocol-dashboard/src/store/api/slice.ts similarity index 100% rename from src/store/api/slice.ts rename to protocol-dashboard/src/store/api/slice.ts diff --git a/src/store/cache/analytics/genres.ts b/protocol-dashboard/src/store/cache/analytics/genres.ts similarity index 100% rename from src/store/cache/analytics/genres.ts rename to protocol-dashboard/src/store/cache/analytics/genres.ts diff --git a/src/store/cache/analytics/hooks.ts b/protocol-dashboard/src/store/cache/analytics/hooks.ts similarity index 88% rename from src/store/cache/analytics/hooks.ts rename to protocol-dashboard/src/store/cache/analytics/hooks.ts index 58de141..c980829 100644 --- a/src/store/cache/analytics/hooks.ts +++ b/protocol-dashboard/src/store/cache/analytics/hooks.ts @@ -16,13 +16,14 @@ import { CountRecord, setTopApps, setTrailingTopGenres, - MetricError + MetricError, + setIndividualServiceApiCalls } from './slice' import { useEffect, useState } from 'react' import { useAverageBlockTime, useEthBlockNumber } from '../protocol/hooks' import { weiAudToAud } from 'utils/numeric' import { ELECTRONIC_SUB_GENRES } from './genres' -import { fetchWithLibs } from 'utils/fetch' +import { fetchWithLibs, fetchWithTimeout } from 'utils/fetch' dayjs.extend(duration) const MONTH_IN_MS = dayjs.duration({ months: 1 }).asMilliseconds() @@ -117,6 +118,10 @@ export const getTrailingTopGenres = ( : null export const getTopApps = (state: AppState, { bucket }: { bucket: Bucket }) => state.cache.analytics.topApps ? state.cache.analytics.topApps[bucket] : null +export const getIndividualServiceApiCalls = ( + state: AppState, + { node, bucket }: { node: string; bucket: Bucket } +) => state.cache.analytics.individualServiceApiCalls?.[node]?.[bucket] ?? null // -------------------------------- Thunk Actions --------------------------------- @@ -150,20 +155,38 @@ export function fetchApiCalls( } } +/** + * Fetches time series data from a discovery node + * @param route The route to fetch from (plays, routes) + * @param bucket The bucket size + * @param clampDays Whether or not to remove partial current day + * @param node An optional node to make the request against + * @returns the metric itself or a MetricError + */ async function fetchTimeSeries( route: string, bucket: Bucket, - clampDays: boolean = true + clampDays: boolean = true, + node?: string ) { const startTime = getStartTime(bucket, clampDays) let error = false let metric: TimeSeriesRecord[] = [] try { const bucketSize = BUCKET_GRANULARITY_MAP[bucket] - const data = (await fetchWithLibs({ - endpoint: `v1/metrics/${route}`, - queryParams: { bucket_size: bucketSize, start_time: startTime } - })) as any + let data + if (node) { + data = ( + await fetchWithTimeout( + `${node}/v1/metrics/${route}?bucket_size=${bucketSize}&start_time=${startTime}` + ) + ).data.slice(1) // Trim off the first day so we don't show partial data + } else { + data = await fetchWithLibs({ + endpoint: `v1/metrics/${route}`, + queryParams: { bucket_size: bucketSize, start_time: startTime } + }) + } metric = data.reverse() } catch (e) { console.error(e) @@ -191,6 +214,16 @@ export function fetchPlays( } } +export function fetchIndividualServiceRouteMetrics( + node: string, + bucket: Bucket +): ThunkAction> { + return async dispatch => { + const metric = await fetchTimeSeries('routes', bucket, true, node) + dispatch(setIndividualServiceApiCalls({ node, metric, bucket })) + } +} + export function fetchTotalStaked( bucket: Bucket, averageBlockTime: number, @@ -403,6 +436,28 @@ export const useApiCalls = (bucket: Bucket) => { return { apiCalls } } +export const useIndividualServiceApiCalls = (node: string, bucket: Bucket) => { + const [doOnce, setDoOnce] = useState(null) + const apiCalls = useSelector(state => + getIndividualServiceApiCalls(state as AppState, { node, bucket }) + ) + const dispatch = useDispatch() + useEffect(() => { + if (doOnce !== bucket && (apiCalls === null || apiCalls === undefined)) { + setDoOnce(bucket) + dispatch(fetchIndividualServiceRouteMetrics(node, bucket)) + } + }, [dispatch, apiCalls, bucket, node, doOnce]) + + useEffect(() => { + if (apiCalls) { + setDoOnce(null) + } + }, [apiCalls, setDoOnce]) + + return { apiCalls } +} + export const useTotalStaked = (bucket: Bucket) => { const [doOnce, setDoOnce] = useState(null) const totalStaked = useSelector(state => diff --git a/src/store/cache/analytics/slice.ts b/protocol-dashboard/src/store/cache/analytics/slice.ts similarity index 79% rename from src/store/cache/analytics/slice.ts rename to protocol-dashboard/src/store/cache/analytics/slice.ts index 3c2bdfa..b040512 100644 --- a/src/store/cache/analytics/slice.ts +++ b/protocol-dashboard/src/store/cache/analytics/slice.ts @@ -39,6 +39,10 @@ export type State = { topApps: CountMetric trailingTopGenres: CountMetric trailingApiCalls: CountMetric + individualServiceApiCalls: { + // Mapping of node endpoint to TimeSeriesMetric + [node: string]: TimeSeriesMetric + } } export const initialState: State = { @@ -47,7 +51,8 @@ export const initialState: State = { plays: {}, topApps: {}, trailingTopGenres: {}, - trailingApiCalls: {} + trailingApiCalls: {}, + individualServiceApiCalls: {} } type SetApiCalls = { metric: TimeSeriesRecord[] | MetricError; bucket: Bucket } @@ -62,6 +67,11 @@ type SetTrailingTopGenres = { bucket: Bucket } type SetTrailingApiCalls = { metric: CountRecord | MetricError; bucket: Bucket } +type SetIndividualServiceApiCalls = { + node: string + metric: TimeSeriesRecord[] | MetricError + bucket: Bucket +} const slice = createSlice({ name: 'analytics', @@ -96,6 +106,16 @@ const slice = createSlice({ ) => { const { metric, bucket } = action.payload state.trailingApiCalls[bucket] = metric + }, + setIndividualServiceApiCalls: ( + state, + action: PayloadAction + ) => { + const { node, metric, bucket } = action.payload + if (!state.individualServiceApiCalls[node]) { + state.individualServiceApiCalls[node] = {} + } + state.individualServiceApiCalls[node][bucket] = metric } } }) @@ -106,7 +126,8 @@ export const { setPlays, setTopApps, setTrailingTopGenres, - setTrailingApiCalls + setTrailingApiCalls, + setIndividualServiceApiCalls } = slice.actions export default slice.reducer diff --git a/src/store/cache/claims/hooks.ts b/protocol-dashboard/src/store/cache/claims/hooks.ts similarity index 100% rename from src/store/cache/claims/hooks.ts rename to protocol-dashboard/src/store/cache/claims/hooks.ts diff --git a/src/store/cache/claims/slice.ts b/protocol-dashboard/src/store/cache/claims/slice.ts similarity index 100% rename from src/store/cache/claims/slice.ts rename to protocol-dashboard/src/store/cache/claims/slice.ts diff --git a/src/store/cache/contentNode/hooks.ts b/protocol-dashboard/src/store/cache/contentNode/hooks.ts similarity index 100% rename from src/store/cache/contentNode/hooks.ts rename to protocol-dashboard/src/store/cache/contentNode/hooks.ts diff --git a/src/store/cache/contentNode/slice.ts b/protocol-dashboard/src/store/cache/contentNode/slice.ts similarity index 100% rename from src/store/cache/contentNode/slice.ts rename to protocol-dashboard/src/store/cache/contentNode/slice.ts diff --git a/src/store/cache/discoveryProvider/hooks.ts b/protocol-dashboard/src/store/cache/discoveryProvider/hooks.ts similarity index 100% rename from src/store/cache/discoveryProvider/hooks.ts rename to protocol-dashboard/src/store/cache/discoveryProvider/hooks.ts diff --git a/src/store/cache/discoveryProvider/slice.ts b/protocol-dashboard/src/store/cache/discoveryProvider/slice.ts similarity index 100% rename from src/store/cache/discoveryProvider/slice.ts rename to protocol-dashboard/src/store/cache/discoveryProvider/slice.ts diff --git a/src/store/cache/music/hooks.ts b/protocol-dashboard/src/store/cache/music/hooks.ts similarity index 100% rename from src/store/cache/music/hooks.ts rename to protocol-dashboard/src/store/cache/music/hooks.ts diff --git a/src/store/cache/music/slice.ts b/protocol-dashboard/src/store/cache/music/slice.ts similarity index 100% rename from src/store/cache/music/slice.ts rename to protocol-dashboard/src/store/cache/music/slice.ts diff --git a/src/store/cache/proposals/hooks.ts b/protocol-dashboard/src/store/cache/proposals/hooks.ts similarity index 100% rename from src/store/cache/proposals/hooks.ts rename to protocol-dashboard/src/store/cache/proposals/hooks.ts diff --git a/src/store/cache/proposals/slice.ts b/protocol-dashboard/src/store/cache/proposals/slice.ts similarity index 100% rename from src/store/cache/proposals/slice.ts rename to protocol-dashboard/src/store/cache/proposals/slice.ts diff --git a/src/store/cache/protocol/hooks.ts b/protocol-dashboard/src/store/cache/protocol/hooks.ts similarity index 100% rename from src/store/cache/protocol/hooks.ts rename to protocol-dashboard/src/store/cache/protocol/hooks.ts diff --git a/src/store/cache/protocol/slice.ts b/protocol-dashboard/src/store/cache/protocol/slice.ts similarity index 100% rename from src/store/cache/protocol/slice.ts rename to protocol-dashboard/src/store/cache/protocol/slice.ts diff --git a/src/store/cache/rewards/helpers.ts b/protocol-dashboard/src/store/cache/rewards/helpers.ts similarity index 100% rename from src/store/cache/rewards/helpers.ts rename to protocol-dashboard/src/store/cache/rewards/helpers.ts diff --git a/src/store/cache/rewards/hooks.ts b/protocol-dashboard/src/store/cache/rewards/hooks.ts similarity index 100% rename from src/store/cache/rewards/hooks.ts rename to protocol-dashboard/src/store/cache/rewards/hooks.ts diff --git a/src/store/cache/rewards/slice.ts b/protocol-dashboard/src/store/cache/rewards/slice.ts similarity index 100% rename from src/store/cache/rewards/slice.ts rename to protocol-dashboard/src/store/cache/rewards/slice.ts diff --git a/src/store/cache/timeline/hooks.ts b/protocol-dashboard/src/store/cache/timeline/hooks.ts similarity index 100% rename from src/store/cache/timeline/hooks.ts rename to protocol-dashboard/src/store/cache/timeline/hooks.ts diff --git a/src/store/cache/timeline/slice.ts b/protocol-dashboard/src/store/cache/timeline/slice.ts similarity index 100% rename from src/store/cache/timeline/slice.ts rename to protocol-dashboard/src/store/cache/timeline/slice.ts diff --git a/src/store/cache/user/graph/formatter.ts b/protocol-dashboard/src/store/cache/user/graph/formatter.ts similarity index 100% rename from src/store/cache/user/graph/formatter.ts rename to protocol-dashboard/src/store/cache/user/graph/formatter.ts diff --git a/src/store/cache/user/graph/hooks.ts b/protocol-dashboard/src/store/cache/user/graph/hooks.ts similarity index 100% rename from src/store/cache/user/graph/hooks.ts rename to protocol-dashboard/src/store/cache/user/graph/hooks.ts diff --git a/src/store/cache/user/graph/queries.ts b/protocol-dashboard/src/store/cache/user/graph/queries.ts similarity index 100% rename from src/store/cache/user/graph/queries.ts rename to protocol-dashboard/src/store/cache/user/graph/queries.ts diff --git a/src/store/cache/user/graph/types.ts b/protocol-dashboard/src/store/cache/user/graph/types.ts similarity index 100% rename from src/store/cache/user/graph/types.ts rename to protocol-dashboard/src/store/cache/user/graph/types.ts diff --git a/src/store/cache/user/hooks.ts b/protocol-dashboard/src/store/cache/user/hooks.ts similarity index 100% rename from src/store/cache/user/hooks.ts rename to protocol-dashboard/src/store/cache/user/hooks.ts diff --git a/src/store/cache/user/slice.ts b/protocol-dashboard/src/store/cache/user/slice.ts similarity index 100% rename from src/store/cache/user/slice.ts rename to protocol-dashboard/src/store/cache/user/slice.ts diff --git a/src/store/cache/votes/hooks.ts b/protocol-dashboard/src/store/cache/votes/hooks.ts similarity index 100% rename from src/store/cache/votes/hooks.ts rename to protocol-dashboard/src/store/cache/votes/hooks.ts diff --git a/src/store/cache/votes/slice.ts b/protocol-dashboard/src/store/cache/votes/slice.ts similarity index 100% rename from src/store/cache/votes/slice.ts rename to protocol-dashboard/src/store/cache/votes/slice.ts diff --git a/src/store/index.ts b/protocol-dashboard/src/store/index.ts similarity index 100% rename from src/store/index.ts rename to protocol-dashboard/src/store/index.ts diff --git a/src/store/pageHistory/hooks.ts b/protocol-dashboard/src/store/pageHistory/hooks.ts similarity index 100% rename from src/store/pageHistory/hooks.ts rename to protocol-dashboard/src/store/pageHistory/hooks.ts diff --git a/src/store/pageHistory/slice.ts b/protocol-dashboard/src/store/pageHistory/slice.ts similarity index 100% rename from src/store/pageHistory/slice.ts rename to protocol-dashboard/src/store/pageHistory/slice.ts diff --git a/src/store/types.ts b/protocol-dashboard/src/store/types.ts similarity index 100% rename from src/store/types.ts rename to protocol-dashboard/src/store/types.ts diff --git a/src/types.ts b/protocol-dashboard/src/types.ts similarity index 100% rename from src/types.ts rename to protocol-dashboard/src/types.ts diff --git a/src/utils/activeStake.ts b/protocol-dashboard/src/utils/activeStake.ts similarity index 100% rename from src/utils/activeStake.ts rename to protocol-dashboard/src/utils/activeStake.ts diff --git a/src/utils/consts.ts b/protocol-dashboard/src/utils/consts.ts similarity index 100% rename from src/utils/consts.ts rename to protocol-dashboard/src/utils/consts.ts diff --git a/src/utils/copyToClipboard.ts b/protocol-dashboard/src/utils/copyToClipboard.ts similarity index 100% rename from src/utils/copyToClipboard.ts rename to protocol-dashboard/src/utils/copyToClipboard.ts diff --git a/src/utils/effects.ts b/protocol-dashboard/src/utils/effects.ts similarity index 100% rename from src/utils/effects.ts rename to protocol-dashboard/src/utils/effects.ts diff --git a/src/utils/fetch.ts b/protocol-dashboard/src/utils/fetch.ts similarity index 100% rename from src/utils/fetch.ts rename to protocol-dashboard/src/utils/fetch.ts diff --git a/src/utils/format.ts b/protocol-dashboard/src/utils/format.ts similarity index 100% rename from src/utils/format.ts rename to protocol-dashboard/src/utils/format.ts diff --git a/src/utils/hooks.ts b/protocol-dashboard/src/utils/hooks.ts similarity index 100% rename from src/utils/hooks.ts rename to protocol-dashboard/src/utils/hooks.ts diff --git a/src/utils/identicon.ts b/protocol-dashboard/src/utils/identicon.ts similarity index 100% rename from src/utils/identicon.ts rename to protocol-dashboard/src/utils/identicon.ts diff --git a/src/utils/mobile.ts b/protocol-dashboard/src/utils/mobile.ts similarity index 100% rename from src/utils/mobile.ts rename to protocol-dashboard/src/utils/mobile.ts diff --git a/src/utils/numeric.ts b/protocol-dashboard/src/utils/numeric.ts similarity index 100% rename from src/utils/numeric.ts rename to protocol-dashboard/src/utils/numeric.ts diff --git a/src/utils/routes.ts b/protocol-dashboard/src/utils/routes.ts similarity index 100% rename from src/utils/routes.ts rename to protocol-dashboard/src/utils/routes.ts diff --git a/src/components/NodeOverview/NodeOverview.tsx b/src/components/NodeOverview/NodeOverview.tsx deleted file mode 100644 index 09c3608..0000000 --- a/src/components/NodeOverview/NodeOverview.tsx +++ /dev/null @@ -1,106 +0,0 @@ -import React from 'react' -import clsx from 'clsx' - -import Paper from 'components/Paper' -import Button from 'components/Button' -import ModifyServiceModal from 'components/ModifyServiceModal' -import { ButtonType, IconPencil } from '@audius/stems' -import { ServiceType, Address } from 'types' -import { useModalControls } from 'utils/hooks' - -import desktopStyles from './NodeOverview.module.css' -import mobileStyles from './NodeOverviewMobile.module.css' -import { createStyles } from 'utils/mobile' - -const styles = createStyles({ desktopStyles, mobileStyles }) - -const messages = { - dp: 'Discovery Node', - cn: 'Content Node', - title: 'SERVICE', - version: 'VER.', - deregistered: 'DEREGISTERED', - endpoint: 'SERVICE ENDPOINT', - operator: 'OPERATOR', - delegate: 'DELEGATE OWNER WALLET', - modify: 'Modify Service' -} - -const ServiceDetail = ({ label, value }: { label: string; value: string }) => { - return ( -
-
{label}
-
{value}
-
- ) -} - -type NodeOverviewProps = { - spID: number - serviceType: ServiceType - version: string - endpoint: string - operatorWallet: Address - delegateOwnerWallet: Address - isOwner: boolean - isDeregistered: boolean -} - -const NodeOverview = ({ - spID, - serviceType, - version, - endpoint, - operatorWallet, - delegateOwnerWallet, - isOwner, - isDeregistered -}: NodeOverviewProps) => { - const { isOpen, onClick, onClose } = useModalControls() - - return ( - -
-
- {serviceType === ServiceType.DiscoveryProvider - ? messages.dp - : messages.cn} -
- {isDeregistered ? ( -
{messages.deregistered}
- ) : ( -
- {`${messages.version} ${version}`} -
- )} - {isOwner && !isDeregistered && ( - <> -
- - - {delegateOwnerWallet && ( - - )} -
- ) -} - -export default NodeOverview diff --git a/src/containers/Node/Node.module.css b/src/containers/Node/Node.module.css deleted file mode 100644 index 63695af..0000000 --- a/src/containers/Node/Node.module.css +++ /dev/null @@ -1,4 +0,0 @@ -.container { - display: inline-flex; - width: 100%; -}