-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Build Stats #105
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
base: develop
Are you sure you want to change the base?
feat: Build Stats #105
Conversation
We haven't been weekly for a while now
@MaxIsJoe is attempting to deploy a commit to the unitystation Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
move your stats bellow the heading of the page. I will check the components and stuff after work |
@@ -14,7 +14,7 @@ const colourByType: Dict<string> = { | |||
|
|||
const textByType: Dict<string> = { | |||
'announcement': 'Announcement', | |||
'weekly': 'Weekly Update', | |||
'weekly': 'Progress Update', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to rebase. This commmit already exists
return ( | ||
<Panel> | ||
<h3 className="text-xl font-bold mb-4 text-white">Recent Build Statistics</h3> | ||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div className="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
<div className="grid grid-cols-1 lg:grid-cols-3 gap-4"> |
there is an awkward transition if you test how responsive is this new component where the 3 cols are not big enough for the text
} | ||
|
||
const BuildStatsComponent: React.FC<BuildStatsProps> = ({ builds }) => { | ||
const recentBuilds = builds.slice(0, 150); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
150 is a big slice, isn't it?
@@ -0,0 +1,68 @@ | |||
import React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all components should be inside the outer components folder.
I'd say this component is an organism, so place it inside components/organisms/changelog/
@@ -0,0 +1,15 @@ | |||
import React, { ReactNode } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mocules?
Adds a stats section at the top of the page that showcases how many additions, fixes and improvements were made in the past few builds + a card next to it that displays the latest code-scan version.