Skip to content

Commit 0b4c1c1

Browse files
gakonstJenampcode-com
authored
feat: add reusable Badge pill component and use in network upgrades page (#110)
Adds a Badge component following the Demo pill style (rounded-[30px], 9px uppercase text) with variants for all Radix color scales: red, amber, green, blue, violet, gray. Replaces emoji priority indicators with <Badge variant="red">Required</Badge> on the network upgrades page. Amp-Thread-ID: https://ampcode.com/threads/T-019c71df-8566-77cd-80ce-01c287208044 Co-authored-by: Jen <jen@tempo.xyz> Co-authored-by: Amp <amp@ampcode.com>
1 parent 0749d94 commit 0b4c1c1

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

src/components/Badge.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const variants = {
2+
red: 'bg-red3 text-red11',
3+
amber: 'bg-amber3 text-amber11',
4+
green: 'bg-green3 text-green11',
5+
blue: 'bg-accentTint text-accent',
6+
violet: 'bg-violet3 text-violet11',
7+
gray: 'bg-gray3 text-gray11',
8+
} as const
9+
10+
type BadgeVariant = keyof typeof variants
11+
12+
export function Badge({
13+
variant = 'gray',
14+
children,
15+
}: {
16+
variant?: BadgeVariant
17+
children: React.ReactNode
18+
}) {
19+
return (
20+
<span
21+
className={`inline-flex h-[19px] items-center justify-center rounded-[30px] px-1.5 text-center font-medium text-[9px] uppercase leading-none tracking-[2%] ${variants[variant]}`}
22+
>
23+
{children}
24+
</span>
25+
)
26+
}
27+
28+
export default Badge

src/pages/guide/node/network-upgrades.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
description: Timeline and details for Tempo network upgrades and important releases for node operators.
33
---
44

5+
import { Badge } from '../../../components/Badge'
6+
57
# Network Upgrades and Releases
68

79
Tempo uses scheduled network upgrades to introduce protocol changes. Each upgrade goes through testnet activation before mainnet. This page also tracks important releases that node operators should be aware of.
@@ -12,7 +14,7 @@ For detailed release notes and binaries, see the [Changelog](/changelog).
1214

1315
| Release | Date | Network | Description | Priority |
1416
|---------|------|---------|-------------|----------|
15-
| [v1.2.0](https://github.com/tempoxyz/tempo/releases/tag/v1.2.0) | Feb 13, 2026 | Mainnet only | Fixes validation bug rejecting transactions with gas limits above ~16.7M, blocking large contract deployments | 🔴 Required |
17+
| [v1.2.0](https://github.com/tempoxyz/tempo/releases/tag/v1.2.0) | Feb 13, 2026 | Mainnet only | Fixes validation bug rejecting transactions with gas limits above ~16.7M, blocking large contract deployments | <Badge variant="red">Required</Badge> |
1618

1719
---
1820

@@ -24,7 +26,7 @@ For detailed release notes and binaries, see the [Changelog](/changelog).
2426
| **TIPs** | [TIP-1000: State Creation Cost Increase](https://docs.tempo.xyz/protocol/tips/tip-1000), [TIP-1009: Expiring Nonces](https://docs.tempo.xyz/protocol/tips/tip-1009), [TIP-1010: Mainnet Gas Parameters](https://docs.tempo.xyz/protocol/tips/tip-1010) |
2527
| **Testnet** | Feb 5, 2026 15:00 UTC (unix: 1770303600) — Release: [v1.1.0](https://github.com/tempoxyz/tempo/releases/tag/v1.1.0) |
2628
| **Mainnet** | Feb 12, 2026 15:00 UTC (unix: 1770908400) — Release: [v1.1.1](https://github.com/tempoxyz/tempo/releases/tag/v1.1.1) |
27-
| **Priority** | 🔴 Required |
29+
| **Priority** | <Badge variant="red">Required</Badge> |
2830

2931
---
3032

@@ -34,4 +36,4 @@ For detailed release notes and binaries, see the [Changelog](/changelog).
3436
|---|---|
3537
| **Scope** | Initial mainnet launch |
3638
| **Mainnet** | Jan 16, 2026 (genesis) — Release: [v1.0.0](https://github.com/tempoxyz/tempo/releases/tag/v1.0.0) |
37-
| **Priority** | 🔴 Required |
39+
| **Priority** | <Badge variant="red">Required</Badge> |

0 commit comments

Comments
 (0)