-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: #174 As a 'Developer', I want to see a graph on my analytics pa…
…ge showing API calls (#221) * feat: #174 - Add AppUsageStats apis + redux store - Update market place api schema - Add AppUsageStats component * feat: #174 - Add AppUsageStats apis + redux store - Update market place api schema - Add AppUsageStats component * feat: #173 create traffic table * feat: #174 - Build app usages graph * Revert package.json * feat: #174 - Update test for developer traffic chart * feat: #174 - Add util test, fix created date format in traffic table * feat: #174 - Remove developerId param from appUsageStatsRequest * feat: #174 Remove unused logs - Update appId params * feat: #174 - Update usage stats test for multiple apps * feat: #174 - Fix app usage stats test issues * feat: #174 - Update analytic page rendering flow while loading * feat: #174 - Add type for app trafic tooltip label * feat: #174 - Update marketplace-api-schema.ts file
- Loading branch information
Showing
41 changed files
with
1,344 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
"last 2 versions", | ||
"not ie <= 10" | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/marketplace/src/actions/__tests__/app-usage-stats.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { appUsageStatsReceiveData, appUsageStatsRequestData, appUsageStatsRequestDataFailure } from '../app-usage-stats' | ||
import ActionTypes from '@/constants/action-types' | ||
import { usageStatsDataStub } from '@/sagas/__stubs__/app-usage-stats' | ||
|
||
describe('app-usage-stats actions', () => { | ||
it('should create a appUsageStatsRequestData action', () => { | ||
expect(appUsageStatsRequestData.type).toEqual(ActionTypes.APP_USAGE_STATS_REQUEST_DATA) | ||
expect(appUsageStatsRequestData({ appId: ['1'] }).data).toEqual({ appId: ['1'] }) | ||
}) | ||
it('should create a appUsageStatsReceiveData action', () => { | ||
expect(appUsageStatsReceiveData.type).toEqual(ActionTypes.APP_USAGE_STATS_RECEIVE_DATA) | ||
expect(appUsageStatsReceiveData(usageStatsDataStub).data).toEqual(usageStatsDataStub) | ||
}) | ||
it('should create a appUsageStatsRequestDataFailure action', () => { | ||
expect(appUsageStatsRequestDataFailure.type).toEqual(ActionTypes.APP_USAGE_STATS_REQUEST_DATA_FAILURE) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { actionCreator } from '../utils/actions' | ||
import ActionTypes from '../constants/action-types' | ||
|
||
const { APP_USAGE_STATS_REQUEST_DATA, APP_USAGE_STATS_RECEIVE_DATA, APP_USAGE_STATS_REQUEST_DATA_FAILURE } = ActionTypes | ||
|
||
export interface AppUsageStatsParams { | ||
appId?: string[] | ||
dateFrom?: string | ||
dateTo?: string | ||
} | ||
|
||
export const appUsageStatsRequestData = actionCreator<AppUsageStatsParams>(APP_USAGE_STATS_REQUEST_DATA) | ||
export const appUsageStatsReceiveData = actionCreator<AppUsageStatsParams>(APP_USAGE_STATS_RECEIVE_DATA) | ||
export const appUsageStatsRequestDataFailure = actionCreator<void>(APP_USAGE_STATS_REQUEST_DATA_FAILURE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.