diff --git a/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx b/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx index 94526d904..379bd58cd 100644 --- a/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx +++ b/frontend/app/components/Dashboard/components/CardIssues/CardIssueItem.tsx @@ -12,7 +12,7 @@ function CardIssueItem(props: Props) {
- +
{issue.name} diff --git a/frontend/app/constants/zindex.ts b/frontend/app/constants/zindex.ts index f70b77d56..2bb2e9009 100644 --- a/frontend/app/constants/zindex.ts +++ b/frontend/app/constants/zindex.ts @@ -2,6 +2,7 @@ export const INDEXES = { PLAYER_REQUEST_WINDOW: 10, BUG_REPORT_PICKER: 19, BUG_REPORT: 20, + HEADER: 99, POPUP_GUIDE_BG: 99997, POPUP_GUIDE_BTN: 99998, TOOLTIP: 99999, diff --git a/frontend/app/layout/TopHeader.tsx b/frontend/app/layout/TopHeader.tsx index 102bfbf97..00a77ee93 100644 --- a/frontend/app/layout/TopHeader.tsx +++ b/frontend/app/layout/TopHeader.tsx @@ -6,6 +6,7 @@ import { Layout, Space } from 'antd'; import { useStore } from 'App/mstore'; import { Icon } from 'UI'; import { observer } from 'mobx-react-lite'; +import { INDEXES } from 'App/constants/zindex'; const { Header } = Layout; @@ -17,7 +18,7 @@ function TopHeader() { style={{ position: 'sticky', top: 0, - zIndex: 1, + zIndex: INDEXES.HEADER, padding: '0 20px', display: 'flex', alignItems: 'center', diff --git a/frontend/app/mstore/types/issue.ts b/frontend/app/mstore/types/issue.ts index 0b22f318e..b82c117cc 100644 --- a/frontend/app/mstore/types/issue.ts +++ b/frontend/app/mstore/types/issue.ts @@ -21,6 +21,7 @@ export default class Issue { sessionCount: number = 0; icon: string = ''; source: string = ''; + color: string = ''; constructor() { this.type = ''; @@ -28,6 +29,7 @@ export default class Issue { this.sessionCount = 0; this.icon = ''; this.source = ''; + this.color = ''; } fromJSON(json: any) { @@ -35,7 +37,8 @@ export default class Issue { this.name = ISSUE_MAP[json.name].name || ''; this.sessionCount = json.sessionCount; this.icon = ISSUE_MAP[json.name].icon || ''; - this.source = json.source; + this.source = json.value || json.source || ''; + this.color = ISSUE_MAP[json.name].color || ''; return this; } } \ No newline at end of file diff --git a/frontend/app/mstore/types/widget.ts b/frontend/app/mstore/types/widget.ts index c51a202a7..710847743 100644 --- a/frontend/app/mstore/types/widget.ts +++ b/frontend/app/mstore/types/widget.ts @@ -191,6 +191,8 @@ export default class Widget { name: this.name, series: this.series.map((series: any) => series.toJson()), thumbnail: this.thumbnail, + page: this.page, + limit: this.limit, config: { ...this.config, col: