-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sPPS C:\Users\B Sostene\Desktop\atlp-pulse-fn> git checkout develop
error: Your local changes to the following files would be overwritten by checkout: tests/pages/TraineeAttendance.test.tsx Please commit your changes or stash them before you switch branches. edit 7d95521 sort invitations by descending or ascending (#590) s fix-docs (#587) s b1a22b6 fix Internanationalization testimonial section (#592) s df093d2 changing undrop icon (#583) s b7cb194 fx<search> improving search invitation to listern to typing event (#591) s 9e05149 fix(#404):login activies display in a table (#576) s 464657e fix(#403):adding a not found page (#593) s cc142ef fix(#599): Improve invitation table pagination (#553) s f08afd4 fix(#595):Improve the dark mode skeleton to match dark design (#598) s 4321d94 fix(#404): add skeleton loader on login activities table (#600) s d72b882 Remove ratings legacy feature #225 (#594) s 6ea7721 fix(#391):Enable Consistent Edit For All Cohorts (#607) s fe125aa fix(#605):table responsiveness (#611) s acbeb7e (#606) Harmonize action button theme across tables in TTL's portal (#613) s 643274e fix(#394): Resolve Trainee Detail View Errors (#614) s 75d247a average ratings (#617) s 4c9fc7c TTL-Page improvement (#601) s 2e47213 #513 refactoring attendance feature on trainee side (#603) s 58eb885 fix: move client-side attendance logic to server (#596) s a14728e Enable admin to view all programs with user breakdown per program-#422 (#618) s 31852e3 (fix): add coordinator dashboard page (#608)S C:\Users\B Sostene\Desktop\atlp-pulse-fn> git checkout develop error: Your local changes to the following files would be overwritten by checkout: tests/pages/TraineeAttendance.test.tsx Please commit your changes or stash them before you switch branches. s 7d95521 sort invitations by descending or ascending (#590) s 711747f fix-docs (#587) s b2a22b6 fix Internanationalization testimonial section (#592) s df093d2 changing undrop icon (#583) s b7cb194 fx<search> improving search invitation to listern to typing event (#591) s 9e05149 fix(#404):login activies display in a table (#576) s 464657e fix(#403):adding a not found page (#593) s cc142ef fix(#599): Improve invitation table pagination (#553) s f08afd4 fix(#595):Improve the dark mode skeleton to match dark design (#598) s 4321d94 fix(#404): add skeleton loader on login activities table (#600) s d72b882 Remove ratings legacy feature #225 (#594) s 6ea7721 fix(#391):Enable Consistent Edit For All Cohorts (#607) s fe125aa fix(#605):table responsiveness (#611) s acbeb7e (#606) Harmonize action button theme across tables in TTL's portal (#613) s 643274e fix(#394): Resolve Trainee Detail View Errors (#614) s 75d247a average ratings (#617) s 4c9fc7c TTL-Page improvement (#601) s 2e47213 #513 refactoring attendance feature on trainee side (#603) s 58eb885 fix: move client-side attendance logic to server (#596) s a14728e Enable admin to view all programs with user breakdown per program-#422 (#618) s 31852e3 (fix): add coordinator dashboard page (#608)ort invitations by descending or ascending (#590) Co-authored-by: niyobertin <[email protected]> fix-docs (#587) fix Internanationalization testimonial section (#592) changing undrop icon (#583) fx<search> improving search invitation to listern to typing event (#591) fix(#404):login activies display in a table (#576) fix(#403):adding a not found page (#593) fix(#599): Improve invitation table pagination (#553) fix(#595):Improve the dark mode skeleton to match dark design (#598) fix(#404): add skeleton loader on login activities table (#600) Remove ratings legacy feature #225 (#594) fix(#391):Enable Consistent Edit For All Cohorts (#607) -As an admin, I have ability to edit all cohorts that I am permitted to manage fix(#605):table responsiveness (#611) Co-authored-by: niyobertin <[email protected]> (#606) Harmonize action button theme across tables in TTL's portal (#613) fix(#394): Resolve Trainee Detail View Errors (#614) average ratings (#617) TTL-Page improvement (#601) * droping and undropping ttl * ft-droping-and-undropping-ttl * ft-droping-and-undropping-ttl * ft-ttl-page-improvement * fix: move client-side attendance logic to server * feat(trainee-attendance): implements a trainee-side attendance fix: move client-side attendance logic to server (#596) Enable admin to view all programs with user breakdown per program-#422 (#618) (fix): add coordinator dashboard page (#608) main admin dashboard new piechart and stats updated new piechart and stats updated ft-admin-dashboard-can-vieww-table-teams new piechart and stats updated
- Loading branch information
1 parent
4b358e0
commit 5b2944b
Showing
115 changed files
with
11,405 additions
and
4,093 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import React from 'react'; | ||
import { Bar } from 'react-chartjs-2'; | ||
import { | ||
Chart as ChartJS, | ||
CategoryScale, | ||
LinearScale, | ||
BarElement, | ||
Title, | ||
Tooltip, | ||
Legend, | ||
} from 'chart.js'; | ||
|
||
ChartJS.register( | ||
CategoryScale, | ||
LinearScale, | ||
BarElement, | ||
Title, | ||
Tooltip, | ||
Legend, | ||
); | ||
|
||
interface Props {} | ||
|
||
// eslint-disable-next-line react/function-component-definition | ||
const BarChart: React.FC<Props> = () => { | ||
const data = { | ||
labels: [ | ||
'01', | ||
'02', | ||
'03', | ||
'04', | ||
'05', | ||
'06', | ||
'07', | ||
'08', | ||
'09', | ||
'10', | ||
'11', | ||
'12', | ||
], | ||
datasets: [ | ||
{ | ||
label: 'Nova', | ||
data: [12, 19, 3, 5, 2, 3, 12, 14, 5, 7, 9, 11], | ||
backgroundColor: '#5A6ACF', | ||
borderRadius: 0, | ||
barThickness: 8, | ||
}, | ||
{ | ||
label: 'Fighters', | ||
data: [10, 15, 5, 8, 6, 9, 13, 9, 6, 8, 7, 10], | ||
backgroundColor: '#D1D5DB', | ||
borderRadius: 0, | ||
barThickness: 8, | ||
}, | ||
], | ||
}; | ||
|
||
const options = { | ||
responsive: true, | ||
maintainAspectRatio: false, | ||
plugins: { | ||
legend: { | ||
position: 'bottom' as const, | ||
labels: { | ||
color: '#D1D5DB', | ||
}, | ||
}, | ||
tooltip: { | ||
enabled: true, | ||
}, | ||
}, | ||
scales: { | ||
x: { | ||
grid: { | ||
display: false, | ||
}, | ||
ticks: { | ||
color: '#737B8B', | ||
}, | ||
}, | ||
y: { | ||
grid: { | ||
borderDash: [5, 5], | ||
color: '#ffffff', | ||
}, | ||
ticks: { | ||
color: '#ffffff', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
return ( | ||
<div className="w-full h-[300px]"> | ||
<Bar data={data} options={options} className="-ml-8" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BarChart; |
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,96 @@ | ||
import React from 'react'; | ||
import { Doughnut } from 'react-chartjs-2'; | ||
import { Chart as ChartJS, ArcElement, Tooltip, Legend } from 'chart.js'; | ||
|
||
ChartJS.register(ArcElement, Tooltip, Legend); | ||
|
||
// eslint-disable-next-line react/function-component-definition | ||
const PieChart: React.FC = () => { | ||
const data = { | ||
labels: ['new pie chart'], | ||
datasets: [ | ||
{ | ||
label: 'rates', | ||
data: [30, 100], | ||
backgroundColor: ['#4F46E5', '#A5B4FC'], | ||
hoverOffset: 4, | ||
}, | ||
], | ||
}; | ||
const data2 = { | ||
labels: ['new pie chart'], | ||
datasets: [ | ||
{ | ||
label: 'rates', | ||
data: [30, 70], | ||
backgroundColor: ['#4F46E5', '#A5B4FC'], | ||
hoverOffset: 4, | ||
}, | ||
], | ||
}; | ||
const data3 = { | ||
labels: ['new pie chart'], | ||
datasets: [ | ||
{ | ||
label: 'rates', | ||
data: [60, 60], | ||
backgroundColor: ['#4F46E5', '#A5B4FC'], | ||
hoverOffset: 4, | ||
}, | ||
], | ||
}; | ||
|
||
const options = { | ||
responsive: true, | ||
cutout: '70%', | ||
plugins: { | ||
tooltip: { | ||
callbacks: { | ||
// eslint-disable-next-line func-names, object-shorthand | ||
label: function (tooltipItem: any) { | ||
return `${tooltipItem.label}: ${tooltipItem.raw}%`; | ||
}, | ||
}, | ||
}, | ||
legend: { | ||
display: false, | ||
}, | ||
}, | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col items-center -ml-8 mb-8"> | ||
<div className="flex space-x-8"> | ||
<div className="relative w-[200px] h-[200px] bg-red-200 p-2 rounded"> | ||
<Doughnut data={data} options={options} /> | ||
<div className="absolute inset-0 flex items-center justify-center"> | ||
<div className="text-center"> | ||
<p className="text-2xl font-semibold text-gray-500">10</p> | ||
</div> | ||
</div> | ||
<p className="text-center mt-2">New Invitations & Registration</p> | ||
</div> | ||
<div className="relative w-[200px] h-[200px] bg-green-200 p-2 rounded"> | ||
<Doughnut data={data2} options={options} /> | ||
<div className="absolute inset-0 flex items-center justify-center"> | ||
<div className="text-center"> | ||
<p className="text-2xl font-semibold text-gray-500">20</p> | ||
</div> | ||
</div> | ||
<p className="text-center mt-2">Upcoming Events</p> | ||
</div> | ||
<div className="relative w-[200px] h-[200px] bg-yellow-200 p-2 rounded"> | ||
<Doughnut data={data3} options={options} /> | ||
<div className="absolute inset-0 flex items-center justify-center"> | ||
<div className="text-center"> | ||
<p className="text-2xl font-semibold text-gray-500">50</p> | ||
</div> | ||
</div> | ||
<p className="text-center mt-2">Active& Progressive Tickets</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PieChart; |
Oops, something went wrong.