Skip to content

Commit b262cbd

Browse files
authored
Merge pull request #10456 from ethereum/dev
2 parents 0f67f2d + b515053 commit b262cbd

File tree

130 files changed

+5299
-776
lines changed

Some content is hidden

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

130 files changed

+5299
-776
lines changed

.all-contributorsrc

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10172,6 +10172,44 @@
1017210172
"contributions": [
1017310173
"content"
1017410174
]
10175+
},
10176+
{
10177+
"login": "megatheikal",
10178+
"name": "megatheikal",
10179+
"avatar_url": "https://avatars.githubusercontent.com/u/64621442?v=4",
10180+
"profile": "https://megatheikal.com",
10181+
"contributions": [
10182+
"bug"
10183+
]
10184+
},
10185+
{
10186+
"login": "stephenfire",
10187+
"name": "Stephen Guo",
10188+
"avatar_url": "https://avatars.githubusercontent.com/u/17247036?v=4",
10189+
"profile": "https://github.com/stephenfire",
10190+
"contributions": [
10191+
"translation"
10192+
]
10193+
},
10194+
{
10195+
"login": "feuGeneA",
10196+
"name": "F. Eugene Aumson",
10197+
"avatar_url": "https://avatars.githubusercontent.com/u/7883777?v=4",
10198+
"profile": "http://aumson.org/gene",
10199+
"contributions": [
10200+
"bug",
10201+
"content"
10202+
]
10203+
},
10204+
{
10205+
"login": "rpalakkal",
10206+
"name": "Roshan",
10207+
"avatar_url": "https://avatars.githubusercontent.com/u/19766713?v=4",
10208+
"profile": "https://github.com/rpalakkal",
10209+
"contributions": [
10210+
"content",
10211+
"code"
10212+
]
1017510213
}
1017610214
],
1017710215
"contributorsPerLine": 7,
@@ -10180,5 +10218,6 @@
1018010218
"repoType": "github",
1018110219
"repoHost": "https://github.com",
1018210220
"skipCi": true,
10183-
"commitConvention": "angular"
10221+
"commitConvention": "angular",
10222+
"commitType": "docs"
1018410223
}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
15951595
<tr>
15961596
<td align="center" valign="top" width="14.28%"><a href="https://changwu.me/"><img src="https://avatars.githubusercontent.com/u/1557364?v=4?s=100" width="100px;" alt="changwu"/><br /><sub><b>changwu</b></sub></a><br /><a href="#content-changwu-tw" title="Content">🖋</a></td>
15971597
<td align="center" valign="top" width="14.28%"><a href="http://uniyj.eth"><img src="https://avatars.githubusercontent.com/u/84749041?v=4?s=100" width="100px;" alt="yj"/><br /><sub><b>yj</b></sub></a><br /><a href="#content-uniyj" title="Content">🖋</a></td>
1598+
<td align="center" valign="top" width="14.28%"><a href="https://megatheikal.com"><img src="https://avatars.githubusercontent.com/u/64621442?v=4?s=100" width="100px;" alt="megatheikal"/><br /><sub><b>megatheikal</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Amegatheikal" title="Bug reports">🐛</a></td>
1599+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/stephenfire"><img src="https://avatars.githubusercontent.com/u/17247036?v=4?s=100" width="100px;" alt="Stephen Guo"/><br /><sub><b>Stephen Guo</b></sub></a><br /><a href="#translation-stephenfire" title="Translation">🌍</a></td>
1600+
<td align="center" valign="top" width="14.28%"><a href="http://aumson.org/gene"><img src="https://avatars.githubusercontent.com/u/7883777?v=4?s=100" width="100px;" alt="F. Eugene Aumson"/><br /><sub><b>F. Eugene Aumson</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AfeuGeneA" title="Bug reports">🐛</a> <a href="#content-feuGeneA" title="Content">🖋</a></td>
1601+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rpalakkal"><img src="https://avatars.githubusercontent.com/u/19766713?v=4?s=100" width="100px;" alt="Roshan"/><br /><sub><b>Roshan</b></sub></a><br /><a href="#content-rpalakkal" title="Content">🖋</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=rpalakkal" title="Code">💻</a></td>
15981602
</tr>
15991603
</tbody>
16001604
</table>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.14.0",
3+
"version": "7.14.1",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "[email protected]:ethereum/ethereum-org-website.git",

redirects.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,5 @@
342342
{
343343
"fromPath": "/*/staking/withdraws",
344344
"toPath": "/:splat/staking/withdrawals/"
345-
},
346-
{
347-
"fromPath": "/*/writing-cohort",
348-
"toPath": "https://ethereumwriterscohort.carrd.co/"
349345
}
350346
]

src/@chakra-ui/gatsby-plugin/components/Tag/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ const { Tag: tagTheme } = theme.components
1515
const baseStyleContainer = defineMergeStyles(tagTheme.baseStyle?.container, {
1616
border: "1px",
1717
borderColor: "transparent",
18+
boxSizing: "border-box",
1819
gap: 1,
1920
borderRadius: "full",
2021
px: 2,
22+
py: 0.5,
2123
minH: 8,
2224
fontWeight: 300,
2325
"&:any-link": {
@@ -35,7 +37,7 @@ const baseStyleLabel = defineStyle({
3537
fontSize: "xs",
3638
textTransform: "uppercase",
3739
textAlign: "center",
38-
lineHeight: 1,
40+
lineHeight: 1.6,
3941
})
4042

4143
const baseStyleCloseButton = defineStyle({

src/components/Banners/Implementations/WritersCohortBanner.tsx

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

src/components/Staking/StakingConsiderations/use-staking-considerations.tsx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,20 @@ export const useStakingConsiderations = ({ page }: IProps) => {
229229
matomo: {
230230
eventCategory: `StakingConsiderations`,
231231
eventAction: `Clicked`,
232-
eventName: "clicked saas diverse clients",
232+
eventName: "clicked saas diverse consensus clients",
233+
},
234+
},
235+
{
236+
title: t("page-staking-considerations-saas-8-title"),
237+
description: t("page-staking-considerations-saas-8-description"),
238+
valid: t("page-staking-considerations-saas-8-valid"),
239+
caution: t("page-staking-considerations-saas-8-caution"),
240+
warning: t("page-staking-considerations-saas-8-warning"),
241+
Svg: MultiClientIcon,
242+
matomo: {
243+
eventCategory: `StakingConsiderations`,
244+
eventAction: `Clicked`,
245+
eventName: "clicked saas diverse execution clients",
233246
},
234247
},
235248
{
@@ -335,7 +348,20 @@ export const useStakingConsiderations = ({ page }: IProps) => {
335348
matomo: {
336349
eventCategory: `StakingConsiderations`,
337350
eventAction: `Clicked`,
338-
eventName: "clicked pooled diverse clients",
351+
eventName: "clicked pooled diverse execution clients",
352+
},
353+
},
354+
{
355+
title: t("page-staking-considerations-saas-8-title"),
356+
description: t("page-staking-considerations-pools-9-description"),
357+
valid: t("page-staking-considerations-saas-8-valid"),
358+
caution: t("page-staking-considerations-saas-8-caution"),
359+
warning: t("page-staking-considerations-saas-8-warning"),
360+
Svg: MultiClientIcon,
361+
matomo: {
362+
eventCategory: `StakingConsiderations`,
363+
eventAction: `Clicked`,
364+
eventName: "clicked pooled diverse consensus clients",
339365
},
340366
},
341367
{

src/components/Staking/StakingProductsCardGrid.tsx

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ type Product = {
104104
permissionless: FlagType
105105
permissionlessNodes: FlagType
106106
multiClient: FlagType
107-
diverseClients: FlagType
107+
consensusDiversity: FlagType
108+
executionDiversity: FlagType
108109
economical: FlagType
109110
matomo: MatomoEventOptions
110111
}
@@ -131,7 +132,8 @@ const StakingProductCard: React.FC<ICardProps> = ({
131132
permissionless,
132133
permissionlessNodes,
133134
multiClient,
134-
diverseClients,
135+
consensusDiversity,
136+
executionDiversity,
135137
economical,
136138
matomo,
137139
},
@@ -172,7 +174,11 @@ const StakingProductCard: React.FC<ICardProps> = ({
172174
},
173175
{
174176
label: <Translation id="page-staking-considerations-saas-7-title" />,
175-
status: diverseClients,
177+
status: executionDiversity,
178+
},
179+
{
180+
label: <Translation id="page-staking-considerations-saas-8-title" />,
181+
status: consensusDiversity,
176182
},
177183
{
178184
label: <Translation id="page-staking-considerations-solo-8-title" />,
@@ -318,12 +324,8 @@ const StakingProductCardGrid: React.FC<IProps> = ({ category }) => {
318324
return product.multiClient === FlagType.VALID ? 1 : 0
319325
}
320326

321-
const scoreDiverseClients = (product: Product): 2 | 1 | 0 => {
322-
return product.diverseClients === FlagType.VALID
323-
? 2
324-
: product.diverseClients === FlagType.WARNING
325-
? 1
326-
: 0
327+
const scoreClientDiversity = (flag: FlagType): 2 | 1 | 0 => {
328+
return flag === FlagType.VALID ? 2 : flag === FlagType.WARNING ? 1 : 0
327329
}
328330

329331
const scoreEconomical = (product: Product): 1 | 0 => {
@@ -340,7 +342,8 @@ const StakingProductCardGrid: React.FC<IProps> = ({ category }) => {
340342
score += scorePermissionless(product)
341343
score += scorePermissionlessNodes(product)
342344
score += scoreMultiClient(product)
343-
score += scoreDiverseClients(product)
345+
score += scoreClientDiversity(product.executionDiversity)
346+
score += scoreClientDiversity(product.consensusDiversity)
344347
score += scoreEconomical(product)
345348
return score
346349
}
@@ -421,7 +424,12 @@ const StakingProductCardGrid: React.FC<IProps> = ({ category }) => {
421424
permissionlessNodes: getFlagFromBoolean(
422425
listing.hasPermissionlessNodes
423426
),
424-
diverseClients: getDiversityOfClients(listing.pctMajorityClient),
427+
executionDiversity: getDiversityOfClients(
428+
listing.pctMajorityExecutionClient
429+
),
430+
consensusDiversity: getDiversityOfClients(
431+
listing.pctMajorityConsensusClient
432+
),
425433
liquidityToken: getFlagFromBoolean(listing.tokens?.length),
426434
minEth: listing.minEth,
427435
}))
@@ -452,7 +460,12 @@ const StakingProductCardGrid: React.FC<IProps> = ({ category }) => {
452460
...getTagProperties(listing),
453461
...getSharedSecurityProperties(listing),
454462
permissionless: getFlagFromBoolean(listing.isPermissionless),
455-
diverseClients: getDiversityOfClients(listing.pctMajorityClient),
463+
executionDiversity: getDiversityOfClients(
464+
listing.pctMajorityExecutionClient
465+
),
466+
consensusDiversity: getDiversityOfClients(
467+
listing.pctMajorityConsensusClient
468+
),
456469
selfCustody: getFlagFromBoolean(listing.isSelfCustody),
457470
minEth: listing.minEth,
458471
}))

src/components/StatsBoxGrid/GridItem.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react"
22
import { VStack, Icon, Box, Flex, Text } from "@chakra-ui/react"
33
import { MdInfoOutline } from "react-icons/md"
44
import { kebabCase } from "lodash"
5-
import { ResponsiveContainer, AreaChart, Area, XAxis } from "recharts"
5+
import { ResponsiveContainer, AreaChart, Area, XAxis, YAxis } from "recharts"
66
import Tooltip from "../Tooltip"
77
import Translation from "../Translation"
88
import Link from "../Link"
@@ -60,6 +60,16 @@ export const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
6060
})
6161
}
6262

63+
const minValue = state.data.reduce(
64+
(prev, { value }) => (prev < value ? prev : value),
65+
1e42
66+
)
67+
68+
const maxValue = state.data.reduce(
69+
(prev, { value }) => (prev > value ? prev : value),
70+
0
71+
)
72+
6373
const chart: React.ReactNode = (
6474
<ResponsiveContainer width="100%" height="100%">
6575
<AreaChart
@@ -96,6 +106,7 @@ export const GridItem: React.FC<IGridItemProps> = ({ metric, dir }) => {
96106
fill={`url(#colorUv-${kebabCase(title)})`}
97107
connectNulls
98108
/>
109+
<YAxis type="number" domain={[minValue, maxValue]} width={0} />
99110
<XAxis dataKey="timestamp" axisLine={false} tick={false} />
100111
</AreaChart>
101112
</ResponsiveContainer>

0 commit comments

Comments
 (0)