Skip to content

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

MaxIsJoe
Copy link
Contributor

image

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.

Copy link

vercel bot commented Apr 21, 2025

@MaxIsJoe is attempting to deploy a commit to the unitystation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
unitystation-web ✅ Ready (Inspect) Visit Preview Apr 21, 2025 7:51pm

@corp-0
Copy link
Member

corp-0 commented Apr 21, 2025

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',
Copy link
Member

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">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<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);
Copy link
Member

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';
Copy link
Member

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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mocules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants