diff --git a/packages/marketplace/src/components/pages/__tests__/__snapshots__/analytics.tsx.snap b/packages/marketplace/src/components/pages/developer-analytics/__tests__/__snapshots__/developer-analytics.tsx.snap similarity index 87% rename from packages/marketplace/src/components/pages/__tests__/__snapshots__/analytics.tsx.snap rename to packages/marketplace/src/components/pages/developer-analytics/__tests__/__snapshots__/developer-analytics.tsx.snap index 4f5bd7ae84..b614976d94 100644 --- a/packages/marketplace/src/components/pages/__tests__/__snapshots__/analytics.tsx.snap +++ b/packages/marketplace/src/components/pages/developer-analytics/__tests__/__snapshots__/developer-analytics.tsx.snap @@ -1,12 +1,12 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AnalyticsPage renenderTabContent should render Billing Tab 1`] = ` +exports[`AnalyticsPage renderTabContent should render Billing Tab 1`] = ` <div> <Component /> </div> `; -exports[`AnalyticsPage renenderTabContent should render Detailed Tab 1`] = ` +exports[`AnalyticsPage renderTabContent should render Detailed Tab 1`] = ` <div> <Component /> </div> diff --git a/packages/marketplace/src/components/pages/__tests__/analytics.tsx b/packages/marketplace/src/components/pages/developer-analytics/__tests__/developer-analytics.tsx similarity index 87% rename from packages/marketplace/src/components/pages/__tests__/analytics.tsx rename to packages/marketplace/src/components/pages/developer-analytics/__tests__/developer-analytics.tsx index 04808a2c03..5a0936e60a 100644 --- a/packages/marketplace/src/components/pages/__tests__/analytics.tsx +++ b/packages/marketplace/src/components/pages/developer-analytics/__tests__/developer-analytics.tsx @@ -1,8 +1,8 @@ import * as React from 'react' import { shallow } from 'enzyme' -import { AnalyticsTab, handleUseEffectToSetCurrentTab, renenderTabContent, tabConfigs } from '../analytics' -import AnalyticsPage from '../analytics' +import { AnalyticsTab, handleUseEffectToSetCurrentTab, renderTabContent, tabConfigs } from '../developer-analytics' +import AnalyticsPage from '../developer-analytics' jest.mock('react-router-dom', () => ({ ...jest.requireActual('react-router-dom'), // use actual for all non-hook parts @@ -59,14 +59,14 @@ describe('AnalyticsPage', () => { expect(mockSetCurrentTab).toBeCalledWith(AnalyticsTab.DETAILED) }) }) - describe('renenderTabContent', () => { + describe('renderTabContent', () => { it('should render Detailed Tab', () => { - const result = renenderTabContent(AnalyticsTab.DETAILED) + const result = renderTabContent(AnalyticsTab.DETAILED) const wrapper = shallow(<div>{result}</div>) expect(wrapper).toMatchSnapshot() }) it('should render Billing Tab', () => { - const result = renenderTabContent(AnalyticsTab.BILLING) + const result = renderTabContent(AnalyticsTab.BILLING) const wrapper = shallow(<div>{result}</div>) expect(wrapper).toMatchSnapshot() }) diff --git a/packages/marketplace/src/components/pages/analytics.tsx b/packages/marketplace/src/components/pages/developer-analytics/developer-analytics.tsx similarity index 83% rename from packages/marketplace/src/components/pages/analytics.tsx rename to packages/marketplace/src/components/pages/developer-analytics/developer-analytics.tsx index 4460485828..898e357396 100644 --- a/packages/marketplace/src/components/pages/analytics.tsx +++ b/packages/marketplace/src/components/pages/developer-analytics/developer-analytics.tsx @@ -2,12 +2,12 @@ import * as React from 'react' import { useHistory, useParams } from 'react-router-dom' import { Tabs, FlexContainerBasic, FlexContainerResponsive, H3, TabConfig } from '@reapit/elements' import ErrorBoundary from '@/components/hocs/error-boundary' -import DetailedTab from '../ui/analytics/detailed/detailed-tab' -import BillingTab from '../ui/analytics/billing/billing-tab' +import DetailedTab from '@/components/ui/developer-analytics/detailed' +import BillingTab from '@/components/ui/developer-analytics/billing' import Routes from '@/constants/routes' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' -export type AnalyticsPageProps = {} +export type DeveloperAnalyticsPageProps = {} export type TabConfigsProps = { currentTab: string @@ -59,7 +59,7 @@ export const handleUseEffectToSetCurrentTab = (activeTab, setCurrentTab) => { } } -export const renenderTabContent = currentTab => { +export const renderTabContent = currentTab => { switch (currentTab) { case AnalyticsTab.DETAILED: return <DetailedTab /> @@ -70,7 +70,7 @@ export const renenderTabContent = currentTab => { } } -export const AnalyticsPage: React.FC<AnalyticsPageProps> = () => { +export const DeveloperAnalyticsPage: React.FC<DeveloperAnalyticsPageProps> = () => { const [currentTab, setCurrentTab] = React.useState<AnalyticsTab>(AnalyticsTab.DETAILED) const history = useHistory() const { activeTab } = useParams() @@ -85,11 +85,11 @@ export const AnalyticsPage: React.FC<AnalyticsPageProps> = () => { <div className={styles.tabContainer}> <Tabs tabConfigs={tabConfigs({ currentTab, history })} /> </div> - <div>{renenderTabContent(currentTab)}</div> + <div>{renderTabContent(currentTab)}</div> </FlexContainerResponsive> </FlexContainerBasic> </ErrorBoundary> ) } -export default AnalyticsPage +export default DeveloperAnalyticsPage diff --git a/packages/marketplace/src/components/pages/developer-analytics/index.ts b/packages/marketplace/src/components/pages/developer-analytics/index.ts new file mode 100644 index 0000000000..2c57fae197 --- /dev/null +++ b/packages/marketplace/src/components/pages/developer-analytics/index.ts @@ -0,0 +1,3 @@ +import DeveloperAnalytics from './developer-analytics' + +export default DeveloperAnalytics diff --git a/packages/marketplace/src/components/ui/__stubs__/developer-installations-chart-data.ts b/packages/marketplace/src/components/ui/__stubs__/developer-installations-chart-data.ts index 9f41e9fdad..affa238be7 100644 --- a/packages/marketplace/src/components/ui/__stubs__/developer-installations-chart-data.ts +++ b/packages/marketplace/src/components/ui/__stubs__/developer-installations-chart-data.ts @@ -1,4 +1,4 @@ -import { InstallationModelWithAppName } from '@/components/ui/analytics/detailed/installation-table' +import { InstallationModelWithAppName } from '@/components/ui/developer-analytics/detailed/installation-table' export const installedAppsStub: Array<InstallationModelWithAppName> = [ { diff --git a/packages/marketplace/src/components/ui/analytics/billing/__test__/__snapshots__/billing-tab.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/__test__/__snapshots__/billing-tab.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/__test__/__snapshots__/billing-tab.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/__test__/__snapshots__/billing-tab.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/__test__/billing-tab.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/__test__/billing-tab.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/__test__/billing-tab.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/__test__/billing-tab.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/billing-tab.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/billing-tab.tsx similarity index 94% rename from packages/marketplace/src/components/ui/analytics/billing/billing-tab.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/billing-tab.tsx index 326bd79155..3e0d74d2c2 100644 --- a/packages/marketplace/src/components/ui/analytics/billing/billing-tab.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/billing/billing-tab.tsx @@ -3,7 +3,7 @@ import CostCalculator from './cost-calculator' import TransactionHistory from './transaction-history' import { FlexContainerResponsive, FlexContainerBasic, Grid, GridItem } from '@reapit/elements' import ErrorBoundary from '@/components/hocs/error-boundary' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' import ServiceChart from './service-chart' import CostExplorer from './cost-explorer' diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator-form.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator-form.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator-form.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator-form.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/cost-calculator.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/total-cost-table.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/total-cost-table.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/__snapshots__/total-cost-table.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/__snapshots__/total-cost-table.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/cost-calculator-form.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/cost-calculator-form.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/cost-calculator-form.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/cost-calculator-form.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/cost-calculator.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/cost-calculator.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/cost-calculator.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/cost-calculator.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/total-cost-table.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/total-cost-table.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/__test__/total-cost-table.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/__test__/total-cost-table.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/cost-calculator-form.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/cost-calculator-form.tsx similarity index 97% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/cost-calculator-form.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/cost-calculator-form.tsx index c03761208b..c24b861d92 100644 --- a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/cost-calculator-form.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/cost-calculator-form.tsx @@ -11,7 +11,7 @@ import { FormikErrors, isNumberOnly, } from '@reapit/elements' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' export type CostCalculatorFormProps = { initialValues: CostCalculatorFormValues diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/cost-calculator.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/cost-calculator.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/cost-calculator.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/cost-calculator.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/index.ts b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/total-cost-table.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/total-cost-table.tsx similarity index 98% rename from packages/marketplace/src/components/ui/analytics/billing/cost-calculator/total-cost-table.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/total-cost-table.tsx index 6eea71aea2..d43f5a01a2 100644 --- a/packages/marketplace/src/components/ui/analytics/billing/cost-calculator/total-cost-table.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-calculator/total-cost-table.tsx @@ -4,7 +4,7 @@ import { CostCalculatorFormValues } from './cost-calculator-form' import { EndpointsUsedRange, TierPrice } from './cost-calculator' import { formatCurrency, formatNumber } from '@/utils/number-formatter' import { Table, Grid, GridItem, H6, H4, Button } from '@reapit/elements' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' export type TotalCostTableProps = { formValues: CostCalculatorFormValues diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer-table.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer-table.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer-table.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer-table.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-explorer.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-filter-form.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-filter-form.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/__snapshots__/cost-filter-form.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/__snapshots__/cost-filter-form.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-explorer-table.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-explorer-table.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-explorer-table.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-explorer-table.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-explorer.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-explorer.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-explorer.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-explorer.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-filter-form.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-filter-form.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/__test__/cost-filter-form.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/__test__/cost-filter-form.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-explorer-table.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-explorer-table.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-explorer-table.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-explorer-table.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-explorer.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-explorer.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-explorer.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-explorer.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-filter-form.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-filter-form.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/cost-filter-form.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/cost-filter-form.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/cost-explorer/index.ts b/packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/cost-explorer/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/billing/cost-explorer/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/billing/index.ts b/packages/marketplace/src/components/ui/developer-analytics/billing/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/billing/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/billing/service-chart/__tests__/__snapshots__/service-chart.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/__tests__/__snapshots__/service-chart.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/service-chart/__tests__/__snapshots__/service-chart.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/__tests__/__snapshots__/service-chart.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/service-chart/__tests__/service-chart.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/__tests__/service-chart.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/service-chart/__tests__/service-chart.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/__tests__/service-chart.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/service-chart/index.ts b/packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/service-chart/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/billing/service-chart/service-chart.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/service-chart.tsx similarity index 94% rename from packages/marketplace/src/components/ui/analytics/billing/service-chart/service-chart.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/service-chart.tsx index b6731aa3ac..d607af3ec0 100644 --- a/packages/marketplace/src/components/ui/analytics/billing/service-chart/service-chart.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/billing/service-chart/service-chart.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Bar } from 'react-chartjs-2' import { H4, FlexContainerResponsive } from '@reapit/elements' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' // TODO will replace mock data when have API const data = { diff --git a/packages/marketplace/src/components/ui/analytics/billing/transaction-history/__test__/__snapshots__/transaction-history.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/__test__/__snapshots__/transaction-history.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/transaction-history/__test__/__snapshots__/transaction-history.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/__test__/__snapshots__/transaction-history.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/billing/transaction-history/__test__/transaction-history.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/__test__/transaction-history.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/transaction-history/__test__/transaction-history.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/__test__/transaction-history.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/billing/transaction-history/index.ts b/packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/billing/transaction-history/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/billing/transaction-history/transaction-history.tsx b/packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/transaction-history.tsx similarity index 95% rename from packages/marketplace/src/components/ui/analytics/billing/transaction-history/transaction-history.tsx rename to packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/transaction-history.tsx index 1bc73fb520..c550ed2837 100644 --- a/packages/marketplace/src/components/ui/analytics/billing/transaction-history/transaction-history.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/billing/transaction-history/transaction-history.tsx @@ -1,6 +1,6 @@ import * as React from 'react' import { H4, Grid, GridItem, H6 } from '@reapit/elements' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' export type TransactionHistoryProps = {} diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/detailed-tab.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/detailed-tab.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/detailed-tab.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/detailed-tab.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/installation-table.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/installation-table.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/installation-table.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/installation-table.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/traffic-event-table.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/traffic-event-table.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/__snapshots__/traffic-event-table.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/__snapshots__/traffic-event-table.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/detailed-tab.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/detailed-tab.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/detailed-tab.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/detailed-tab.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/installation-table.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/installation-table.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/installation-table.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/installation-table.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/__test__/traffic-event-table.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/traffic-event-table.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/__test__/traffic-event-table.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/__test__/traffic-event-table.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/detailed-tab.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/detailed-tab.tsx similarity index 99% rename from packages/marketplace/src/components/ui/analytics/detailed/detailed-tab.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/detailed-tab.tsx index e41af98861..76b47fe95b 100644 --- a/packages/marketplace/src/components/ui/analytics/detailed/detailed-tab.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/detailed/detailed-tab.tsx @@ -19,7 +19,7 @@ import InstallationTable, { InstallationModelWithAppName } from './installation- import FilterBar from './filter-bar' import ErrorBoundary from '@/components/hocs/error-boundary' import { GET_ALL_PAGE_SIZE } from '@/constants/paginator' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' import { AppInstallationsState } from '@/reducers/app-installations' import { DeveloperState } from '@/reducers/developer' import { AppUsageStatsState } from '@/reducers/app-usage-stats' diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/default-filter-group.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/default-filter-group.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/default-filter-group.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/default-filter-group.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/filter-bar.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/filter-bar.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/filter-bar.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/filter-bar.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/filter-form.test.tsx.snap b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/filter-form.test.tsx.snap similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/__snapshots__/filter-form.test.tsx.snap rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/__snapshots__/filter-form.test.tsx.snap diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/default-filter-group.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/default-filter-group.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/default-filter-group.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/default-filter-group.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/filter-bar.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/filter-bar.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/filter-bar.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/filter-bar.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/filter-form.test.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/filter-form.test.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/__test__/filter-form.test.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/__test__/filter-form.test.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/default-filter-group.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/default-filter-group.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/default-filter-group.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/default-filter-group.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/filter-bar.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/filter-bar.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/filter-bar.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/filter-bar.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/filter-form.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/filter-form.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/filter-form.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/filter-form.tsx diff --git a/packages/marketplace/src/components/ui/analytics/detailed/filter-bar/index.ts b/packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/filter-bar/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/detailed/filter-bar/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/detailed/index.ts b/packages/marketplace/src/components/ui/developer-analytics/detailed/index.ts similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/index.ts rename to packages/marketplace/src/components/ui/developer-analytics/detailed/index.ts diff --git a/packages/marketplace/src/components/ui/analytics/detailed/installation-table.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/installation-table.tsx similarity index 98% rename from packages/marketplace/src/components/ui/analytics/detailed/installation-table.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/installation-table.tsx index 94b05c04ed..019e8ca22f 100644 --- a/packages/marketplace/src/components/ui/analytics/detailed/installation-table.tsx +++ b/packages/marketplace/src/components/ui/developer-analytics/detailed/installation-table.tsx @@ -4,7 +4,7 @@ import { InstallationModel, AppSummaryModel } from '@reapit/foundations-ts-defin import { AppInstallationsState } from '@/reducers/app-installations' import { DeveloperState } from '@/reducers/developer' import { INSTALLATIONS_PER_PAGE } from '@/constants/paginator' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' export interface InstallationModelWithAppName extends InstallationModel { appName?: string diff --git a/packages/marketplace/src/components/ui/analytics/detailed/traffic-event-table.tsx b/packages/marketplace/src/components/ui/developer-analytics/detailed/traffic-event-table.tsx similarity index 100% rename from packages/marketplace/src/components/ui/analytics/detailed/traffic-event-table.tsx rename to packages/marketplace/src/components/ui/developer-analytics/detailed/traffic-event-table.tsx diff --git a/packages/marketplace/src/components/ui/developer-installations-chart.tsx b/packages/marketplace/src/components/ui/developer-installations-chart.tsx index 579a67398d..0dd9df674a 100644 --- a/packages/marketplace/src/components/ui/developer-installations-chart.tsx +++ b/packages/marketplace/src/components/ui/developer-installations-chart.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { Line } from 'react-chartjs-2' import { H4, Loader } from '@reapit/elements' -import { InstallationModelWithAppName } from '@/components/ui/analytics/detailed/installation-table' +import { InstallationModelWithAppName } from '@/components/ui/developer-analytics/detailed/installation-table' import { groupInstalledAppsByDate, getChartData, groupAppsByNameAndCount } from '@/utils/developer-analytics' export interface DeveloperInstallationsChartProps { diff --git a/packages/marketplace/src/components/ui/developer-traffic-table.tsx b/packages/marketplace/src/components/ui/developer-traffic-table.tsx index 66b23288ee..50a7fd070e 100644 --- a/packages/marketplace/src/components/ui/developer-traffic-table.tsx +++ b/packages/marketplace/src/components/ui/developer-traffic-table.tsx @@ -1,7 +1,7 @@ import React, { useMemo } from 'react' import { UsageStatsModel, PagedResultAppSummaryModel_, AppUsageStatsModel } from '@reapit/foundations-ts-definitions' import { H4, Table, toLocalTime, Loader } from '@reapit/elements' -import styles from '@/styles/pages/analytics.scss?mod' +import styles from '@/styles/pages/developer-analytics.scss?mod' export interface DeveloperAppTrafficProps { stats: UsageStatsModel diff --git a/packages/marketplace/src/core/router.tsx b/packages/marketplace/src/core/router.tsx index 15c0b62d50..01ef1a9e7e 100644 --- a/packages/marketplace/src/core/router.tsx +++ b/packages/marketplace/src/core/router.tsx @@ -26,7 +26,7 @@ const DeveloperSettings = React.lazy(() => import('../components/pages/settings/ const DeveloperWelcomePage = React.lazy(() => import('../components/pages/developer-welcome')) const DeveloperHelpPage = React.lazy(() => import('../components/pages/developer-help')) const ClientHelpPage = React.lazy(() => import('../components/pages/client-help')) -const AnalyticsPage = React.lazy(() => import('../components/pages/analytics')) +const AnalyticsPage = React.lazy(() => import('@/components/pages/developer-analytics')) const AdminAppsPage = React.lazy(() => import('../components/pages/admin-apps')) const RegisterConfirm = React.lazy(() => import('../components/pages/register-confirm')) const AdminStats = React.lazy(() => import('../components/pages/admin-stats')) diff --git a/packages/marketplace/src/styles/pages/analytics.scss b/packages/marketplace/src/styles/pages/developer-analytics.scss similarity index 100% rename from packages/marketplace/src/styles/pages/analytics.scss rename to packages/marketplace/src/styles/pages/developer-analytics.scss diff --git a/packages/marketplace/src/tests/badges/badge-branches.svg b/packages/marketplace/src/tests/badges/badge-branches.svg index cdf03cd9ac..69be6ec755 100644 --- a/packages/marketplace/src/tests/badges/badge-branches.svg +++ b/packages/marketplace/src/tests/badges/badge-branches.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="170" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="170" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="117" height="20" fill="#555"/><rect x="117" width="53" height="20" fill="#e05d44"/><rect width="170" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="595" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1070">Coverage:branches</text><text x="595" y="140" transform="scale(.1)" textLength="1070">Coverage:branches</text><text x="1425" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">69.94%</text><text x="1425" y="140" transform="scale(.1)" textLength="430">69.94%</text></g></svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="170" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="170" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="117" height="20" fill="#555"/><rect x="117" width="53" height="20" fill="#e05d44"/><rect width="170" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="595" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1070">Coverage:branches</text><text x="595" y="140" transform="scale(.1)" textLength="1070">Coverage:branches</text><text x="1425" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">69.87%</text><text x="1425" y="140" transform="scale(.1)" textLength="430">69.87%</text></g></svg> \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-functions.svg b/packages/marketplace/src/tests/badges/badge-functions.svg index 0c5b33893e..ec16cbeb0e 100644 --- a/packages/marketplace/src/tests/badges/badge-functions.svg +++ b/packages/marketplace/src/tests/badges/badge-functions.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="170" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="170" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="117" height="20" fill="#555"/><rect x="117" width="53" height="20" fill="#e05d44"/><rect width="170" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="595" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1070">Coverage:functions</text><text x="595" y="140" transform="scale(.1)" textLength="1070">Coverage:functions</text><text x="1425" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">73.32%</text><text x="1425" y="140" transform="scale(.1)" textLength="430">73.32%</text></g></svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="164" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="164" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="117" height="20" fill="#555"/><rect x="117" width="47" height="20" fill="#e05d44"/><rect width="164" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="595" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1070">Coverage:functions</text><text x="595" y="140" transform="scale(.1)" textLength="1070">Coverage:functions</text><text x="1395" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="370">73.3%</text><text x="1395" y="140" transform="scale(.1)" textLength="370">73.3%</text></g></svg> \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-lines.svg b/packages/marketplace/src/tests/badges/badge-lines.svg index 758aed985b..f1d312f6d1 100644 --- a/packages/marketplace/src/tests/badges/badge-lines.svg +++ b/packages/marketplace/src/tests/badges/badge-lines.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="146" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="146" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="93" height="20" fill="#555"/><rect x="93" width="53" height="20" fill="#dfb317"/><rect width="146" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="475" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="830">Coverage:lines</text><text x="475" y="140" transform="scale(.1)" textLength="830">Coverage:lines</text><text x="1185" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">89.79%</text><text x="1185" y="140" transform="scale(.1)" textLength="430">89.79%</text></g></svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="146" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="146" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="93" height="20" fill="#555"/><rect x="93" width="53" height="20" fill="#dfb317"/><rect width="146" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="475" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="830">Coverage:lines</text><text x="475" y="140" transform="scale(.1)" textLength="830">Coverage:lines</text><text x="1185" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">89.85%</text><text x="1185" y="140" transform="scale(.1)" textLength="430">89.85%</text></g></svg> \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-statements.svg b/packages/marketplace/src/tests/badges/badge-statements.svg index 6af8217559..8ae3f6e3fd 100644 --- a/packages/marketplace/src/tests/badges/badge-statements.svg +++ b/packages/marketplace/src/tests/badges/badge-statements.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="176" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="176" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="129" height="20" fill="#555"/><rect x="129" width="47" height="20" fill="#dfb317"/><rect width="176" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="655" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1190">Coverage:statements</text><text x="655" y="140" transform="scale(.1)" textLength="1190">Coverage:statements</text><text x="1515" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="370">88.9%</text><text x="1515" y="140" transform="scale(.1)" textLength="370">88.9%</text></g></svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="182" height="20"><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="182" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="129" height="20" fill="#555"/><rect x="129" width="53" height="20" fill="#dfb317"/><rect width="182" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="655" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1190">Coverage:statements</text><text x="655" y="140" transform="scale(.1)" textLength="1190">Coverage:statements</text><text x="1545" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">88.96%</text><text x="1545" y="140" transform="scale(.1)" textLength="430">88.96%</text></g></svg> \ No newline at end of file diff --git a/packages/marketplace/src/utils/developer-analytics.ts b/packages/marketplace/src/utils/developer-analytics.ts index 89bb15a954..852f0a873c 100644 --- a/packages/marketplace/src/utils/developer-analytics.ts +++ b/packages/marketplace/src/utils/developer-analytics.ts @@ -1,6 +1,6 @@ import dayjs from 'dayjs' import orderBy from 'lodash.orderby' -import { InstallationModelWithAppName } from '@/components/ui/analytics/detailed/installation-table' +import { InstallationModelWithAppName } from '@/components/ui/developer-analytics/detailed/installation-table' export interface InstallationModelWithDateObject extends InstallationModelWithAppName { createdDate: Date