Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add charts and tables to the stats page #1696

Merged
merged 5 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 46 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"autoprefixer": "^10.4.13",
"axios": "^1.2.1",
"boolean": "^3.2.0",
"chart.js": "^4.2.1",
"clsx": "^1.2.1",
"date-fns": "^2.29.3",
"eslint": "8.29.0",
Expand All @@ -62,6 +63,7 @@
"npm": "^9.2.0",
"postcss-focus-visible": "^7.1.0",
"react": "18.2.0",
"react-chartjs-2": "^5.2.0",
"react-cookie": "^4.1.1",
"react-dom": "18.2.0",
"react-feature-flags": "^1.0.0",
Expand Down
3 changes: 3 additions & 0 deletions website/public/locales/en/stats.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"aborted_low_grade": "Aborted low grade",
"assistant": "Assistant",
"backlog_ranking": "Backlog ranking",
"choose_a_language": "Choose a language",
"count": "Count",
"growing": "Growing",
"halted_by_moderator": "Halted by moderator",
Expand All @@ -10,6 +12,7 @@
"message_trees_by_state": "Message trees by state",
"message_trees_states_by_lang": "Message trees states by language",
"prompt_lottery_waiting": "Prompt lottery waiting",
"prompter": "Prompter",
"ranking": "Ranking",
"ready_for_export": "Ready for export",
"stats": "Stats",
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const DataTable = <T,>({
<TableCaption pb={0}>{caption}</TableCaption>
<Thead>
{getHeaderGroups().map((headerGroup) => (
<Tr key={headerGroup.id}>
<Tr key={headerGroup.id} sx={{ "white-space": "normal" }}>
{headerGroup.headers.map((header) => (
<Th key={header.id}>
<Box display="flex" alignItems="center">
Expand Down