Skip to content

Commit e6e0c9a

Browse files
feat: rewrite and redesign
1 parent cde2cad commit e6e0c9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+17500
-4919
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @electron/wg-ecosystem @electron/wg-releases
1+
* @electron/wg-ecosystem @electron/wg-releases

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: 'CI'
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- sam/rewrite
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: 'Install Node'
19+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
20+
with:
21+
node-version: '22.x'
22+
- name: 'Install Deps'
23+
run: npm ci
24+
- name: 'Build'
25+
run: npm run build
26+
build:
27+
runs-on: ubuntu-latest
28+
29+
permissions:
30+
contents: read
31+
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
- name: 'Install Node'
35+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
36+
with:
37+
node-version: '22.x'
38+
- name: 'Install Deps'
39+
run: npm ci
40+
- name: 'Lint'
41+
run: npm run lint
42+
- name: 'Typecheck'
43+
run: npm run typecheck
44+
- name: 'Test'
45+
run: npm run test

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
.envrc
21
node_modules
3-
src/static/css/prismjs/*.css
2+
3+
/.cache
4+
/build
5+
.env
6+
7+
.envrc
8+
coverage

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.15.0

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,21 @@ the [Electron](https://github.com/electron/electron) project.
55

66
## Getting started
77

8-
The website is a simple Node.js app built using [Express](https://expressjs.com/) and [Handlebars.js](https://handlebarsjs.com/).
8+
The website is built using [Remix](https://remix.run/).
99

1010
### Installation
1111

12-
To run the app locally, install dependencies and run the `start` script:
12+
To run the app locally, install dependencies and run the `dev` script:
1313

1414
```
15-
yarn
16-
yarn start
15+
npm install
16+
npm run dev
1717
```
1818

19-
When developing locally, you may want to use the `watch` script instead, which watches for file changes using [nodemon](https://github.com/remy/nodemon).
20-
2119
### GitHub Authentication
2220

2321
The app pulls release information from GitHub, and local usage (especially going through pages of past releases) may hit the rate limit for anonymous GitHub usage. You can provide a GitHub Personal Access Token (PAT) by setting the `GITHUB_TOKEN` environment variable before running the app locally, which will have higher rate limits.
2422

2523
## License
2624

27-
Distributed under the [MIT License](https://github.com/electron/release-status/blob/main/LICENSE).
25+
Distributed under the [MIT License](https://github.com/electron/release-status/blob/main/LICENSE).

app/components/ActiveBuildCard.tsx

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import { Link } from "@remix-run/react";
2+
import { SudowoodoRelease } from "~/data/release-data";
3+
4+
type ActiveBuildCardProps = {
5+
build: Pick<
6+
SudowoodoRelease,
7+
"id" | "channel" | "branch" | "generatedElectronVersion"
8+
>;
9+
queued?: boolean;
10+
};
11+
12+
const prettyChannel = (channel: SudowoodoRelease["channel"]) => {
13+
switch (channel) {
14+
case "alpha":
15+
return "Alpha";
16+
case "beta":
17+
return "Beta";
18+
case "stable":
19+
return "Stable";
20+
case "nightly":
21+
return "Nightly";
22+
}
23+
};
24+
25+
const channelColor = (channel: SudowoodoRelease["channel"]) => {
26+
switch (channel) {
27+
case "alpha":
28+
case "beta":
29+
return "yellow";
30+
case "stable":
31+
return "green";
32+
case "nightly":
33+
return "purple";
34+
}
35+
};
36+
37+
export const ActiveBuildCard = ({ build, queued }: ActiveBuildCardProps) => {
38+
const channelBubbleColor = channelColor(build.channel);
39+
40+
return (
41+
<Link
42+
to={`/build/${build.id}`}
43+
className="border border-blue-200 dark:border-blue-800 rounded-lg p-4 bg-blue-50 dark:bg-blue-900/20 hover:bg-blue-100 dark:hover:bg-blue-700/20 hover:border-blue-300 dark:hover:border-blue-700 transition-colors"
44+
prefetch="intent"
45+
>
46+
<div className="flex justify-between items-start">
47+
<div>
48+
<div className="flex items-center gap-2">
49+
<span className="text-sm font-medium text-[#2f3241] dark:text-white">
50+
{build.generatedElectronVersion || "Version Soon..."}
51+
</span>
52+
<span
53+
className={`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-${channelBubbleColor}-100 text-${channelBubbleColor}-800 dark:bg-${channelBubbleColor}-900/30 dark:text-${channelBubbleColor}-400`}
54+
>
55+
{prettyChannel(build.channel)}
56+
</span>
57+
</div>
58+
<div className="text-xs text-gray-500 dark:text-gray-400 mt-1">
59+
Branch: <span className="font-mono">{build.branch}</span>
60+
</div>
61+
</div>
62+
<div className="flex items-center">
63+
{queued ? (
64+
<span className="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-orange-100 text-orange-800 dark:bg-orange-900/30 dark:text-orange-400 animate-pulse">
65+
<span className="w-1.5 h-1.5 bg-orange-500 rounded-full mr-1"></span>
66+
Queued
67+
</span>
68+
) : (
69+
<span className="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400 animate-pulse">
70+
<span className="w-1.5 h-1.5 bg-blue-500 rounded-full mr-1"></span>
71+
Building
72+
</span>
73+
)}
74+
</div>
75+
</div>
76+
</Link>
77+
);
78+
};

0 commit comments

Comments
 (0)