-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter chart based on date range, refactor datagridtable, move mock d…
…ata into json file
- Loading branch information
1 parent
e3b8bc0
commit 100cd61
Showing
6 changed files
with
205 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,6 @@ | ||
import data from './json/data.json'; | ||
|
||
import type { MockData } from '../types/mockdata'; | ||
|
||
// mock data | ||
export const mockData: MockData[] = [ | ||
{ | ||
id: 1, | ||
title: 'Set 1', | ||
description: 'Description for Set 1', | ||
dateCreated: '01/01/2024', | ||
status: 'Open', | ||
comments: 'No comments.', | ||
}, | ||
{ | ||
id: 2, | ||
title: 'Set 2', | ||
description: 'Description for Set 2', | ||
dateCreated: '01/02/2024', | ||
status: 'Open', | ||
comments: 'No comments.', | ||
}, | ||
{ | ||
id: 3, | ||
title: 'Set 3', | ||
description: 'Description for Set 3', | ||
dateCreated: '01/03/2024', | ||
status: 'Closed', | ||
comments: 'No comments.', | ||
}, | ||
{ | ||
id: 4, | ||
title: 'Set 4', | ||
description: 'Description for Set 4', | ||
dateCreated: '01/04/2024', | ||
status: 'Closed', | ||
comments: 'No comments.', | ||
}, | ||
{ | ||
id: 5, | ||
title: 'Set 5', | ||
description: 'Description for Set 5', | ||
dateCreated: '01/05/2024', | ||
status: 'In Progress', | ||
comments: 'No comments.', | ||
}, | ||
{ | ||
id: 6, | ||
title: 'Set 6', | ||
description: 'Description for Set 6', | ||
dateCreated: '01/06/2024', | ||
status: 'In Progress', | ||
comments: 'No comments.', | ||
}, | ||
]; | ||
export const mockData: MockData[] = JSON.parse(JSON.stringify(data)); |
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,50 @@ | ||
[ | ||
{ | ||
"id": 1, | ||
"title": "Set 1", | ||
"description": "Description for Set 1", | ||
"dateCreated": "01/01/2024", | ||
"status": "Open", | ||
"comments": "No comments." | ||
}, | ||
{ | ||
"id": 2, | ||
"title": "Set 2", | ||
"description": "Description for Set 2", | ||
"dateCreated": "01/02/2024", | ||
"status": "Open", | ||
"comments": "No comments." | ||
}, | ||
{ | ||
"id": 3, | ||
"title": "Set 3", | ||
"description": "Description for Set 3", | ||
"dateCreated": "01/03/2024", | ||
"status": "Closed", | ||
"comments": "No comments." | ||
}, | ||
{ | ||
"id": 4, | ||
"title": "Set 4", | ||
"description": "Description for Set 4", | ||
"dateCreated": "01/04/2024", | ||
"status": "Closed", | ||
"comments": "No comments." | ||
}, | ||
{ | ||
"id": 5, | ||
"title": "Set 5", | ||
"description": "Description for Set 5", | ||
"dateCreated": "01/05/2024", | ||
"status": "In Progress", | ||
"comments": "No comments." | ||
}, | ||
{ | ||
"id": 6, | ||
"title": "Set 6", | ||
"description": "Description for Set 6", | ||
"dateCreated": "01/06/2024", | ||
"status": "In Progress", | ||
"comments": "No comments." | ||
} | ||
] |
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
export type Status = 'Open' | 'Closed' | 'In Progress'; | ||
|
||
export type TotalStatus = { | ||
Open: number; | ||
Closed: number; | ||
'In Progress': number; | ||
}; |
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