-
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.
Browse files
Browse the repository at this point in the history
* feat: #171 developer installed app graph * feat: #171 update test cases * feat: #171 correct wording Co-authored-by: Cuong Vu <[email protected]>
- Loading branch information
1 parent
b615e13
commit 4be972d
Showing
17 changed files
with
1,175 additions
and
597 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
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
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
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
64 changes: 64 additions & 0 deletions
64
packages/marketplace/src/components/ui/__stubs__/developer-installations-chart-data.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,64 @@ | ||
import { InstallationModelWithAppName } from '@/components/pages/analytics' | ||
|
||
export const installedAppsStub: Array<InstallationModelWithAppName> = [ | ||
{ | ||
id: 'b3c2f644-3241-4298-b320-b0398ff492f1', | ||
appId: '062a376c-f5a3-46a0-a64b-e4bc6e5af2c1', | ||
created: '2020-01-31T12:57:12', | ||
client: 'DXX', | ||
status: 'Active', | ||
appName: 'App 1', | ||
links: [ | ||
{ | ||
rel: 'self', | ||
href: 'http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9', | ||
action: 'GET', | ||
}, | ||
{ | ||
rel: 'app', | ||
href: 'http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1', | ||
action: 'GET', | ||
}, | ||
], | ||
}, | ||
{ | ||
id: 'b3c2f644-3241-4298-b320-b0398ff492f2', | ||
appId: '062a376c-f5a3-46a0-a64b-e4bc6e5af2c2', | ||
created: '2020-01-31T12:57:12', | ||
client: 'DXX', | ||
appName: 'App 2', | ||
status: 'Active', | ||
links: [ | ||
{ | ||
rel: 'self', | ||
href: 'http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9', | ||
action: 'GET', | ||
}, | ||
{ | ||
rel: 'app', | ||
href: 'http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1', | ||
action: 'GET', | ||
}, | ||
], | ||
}, | ||
{ | ||
id: 'b3c2f644-3241-4298-b320-b0398ff492f3', | ||
appId: '062a376c-f5a3-46a0-a64b-e4bc6e5af2c3', | ||
created: '2020-02-03T01:49:57', | ||
client: 'DXX', | ||
appName: 'App 3', | ||
status: 'Active', | ||
links: [ | ||
{ | ||
rel: 'self', | ||
href: 'http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9', | ||
action: 'GET', | ||
}, | ||
{ | ||
rel: 'app', | ||
href: 'http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1', | ||
action: 'GET', | ||
}, | ||
], | ||
}, | ||
] |
59 changes: 59 additions & 0 deletions
59
...ketplace/src/components/ui/__tests__/__snapshots__/developer-installations-chart.tsx.snap
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,59 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DeveloperInstallationsChart should match a snapshot 1`] = ` | ||
<div> | ||
<Component> | ||
Installations | ||
</Component> | ||
<Line | ||
data={ | ||
Object { | ||
"datasets": Array [ | ||
Object { | ||
"backgroundColor": "rgba(75,192,192,0.4)", | ||
"borderCapStyle": "butt", | ||
"borderColor": "rgba(75,192,192,1)", | ||
"borderDash": Array [], | ||
"borderDashOffset": 0, | ||
"borderJoinStyle": "miter", | ||
"data": Array [ | ||
2, | ||
0, | ||
0, | ||
1, | ||
], | ||
"fill": false, | ||
"lineTension": 0.1, | ||
"pointBackgroundColor": "#fff", | ||
"pointBorderColor": "rgba(75,192,192,1)", | ||
"pointBorderWidth": 1, | ||
"pointHitRadius": 10, | ||
"pointHoverBackgroundColor": "rgba(75,192,192,1)", | ||
"pointHoverBorderColor": "rgba(220,220,220,1)", | ||
"pointHoverBorderWidth": 2, | ||
"pointHoverRadius": 5, | ||
"pointRadius": 1, | ||
}, | ||
], | ||
"labels": Array [ | ||
"31/01/2020", | ||
"01/02/2020", | ||
"02/02/2020", | ||
"03/02/2020", | ||
], | ||
} | ||
} | ||
options={ | ||
Object { | ||
"legend": null, | ||
"tooltips": Object { | ||
"callbacks": Object { | ||
"label": [Function], | ||
}, | ||
"mode": "label", | ||
}, | ||
} | ||
} | ||
/> | ||
</div> | ||
`; |
Oops, something went wrong.