refactor: remove gh/GitHub references from tokens, classes, and component names

Rename all --color-gh-* CSS tokens to --color-*, update Tailwind class names
(bg-gh-*, text-gh-*, border-gh-*, etc.) across all TSX/TS files, rename
GhButton component and file to Button, and remove trivial descriptive comments.
This commit is contained in:
2026-03-21 22:11:13 +01:00
parent 3c643d5dcc
commit 71fa228013
31 changed files with 308 additions and 372 deletions

View File

@@ -29,7 +29,7 @@ export function RecentSessions({ sessions }: RecentSessionsProps) {
if (sessions.length === 0) {
return (
<div className="px-4 py-8 text-center text-sm text-gh-muted">No recent sessions found</div>
<div className="px-4 py-8 text-center text-sm text-muted">No recent sessions found</div>
);
}
@@ -37,44 +37,44 @@ export function RecentSessions({ sessions }: RecentSessionsProps) {
<div className="overflow-x-auto">
<table className="min-w-full">
<thead>
<tr className="border-b border-gh-border-muted bg-gh-base">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-gh-subtle">
<tr className="border-b border-border-muted bg-base">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-subtle">
Date
</th>
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-gh-subtle">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-subtle">
Type
</th>
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-gh-subtle">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-subtle">
Track
</th>
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-gh-subtle">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-subtle">
Duration
</th>
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-gh-subtle">
<th className="px-4 py-2 text-left text-xs font-medium uppercase tracking-wider text-subtle">
Players
</th>
</tr>
</thead>
<tbody>
{sessions.map((session) => (
<tr key={session.id} className="border-b border-gh-border-muted transition-colors hover:bg-gh-hover last:border-0">
<td className="px-4 py-3 text-sm text-gh-muted">
<tr key={session.id} className="border-b border-border-muted transition-colors hover:bg-hover last:border-0">
<td className="px-4 py-3 text-sm text-muted">
{formatDate(session.date)}
</td>
<td className="px-4 py-3">
<span className={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${
session.type === 'R' ? 'bg-gh-green-bg text-gh-green' :
session.type === 'Q' ? 'bg-gh-yellow-bg text-gh-yellow' :
'bg-gh-blue-bg text-gh-blue'
session.type === 'R' ? 'bg-green-bg text-green' :
session.type === 'Q' ? 'bg-yellow-bg text-yellow' :
'bg-blue-bg text-blue'
}`}>
{session.type === 'R' ? 'Race' : session.type === 'Q' ? 'Qualify' : 'Practice'}
</span>
</td>
<td className="px-4 py-3 text-sm text-gh-secondary">{session.track}</td>
<td className="px-4 py-3 text-sm text-gh-muted">
<td className="px-4 py-3 text-sm text-secondary">{session.track}</td>
<td className="px-4 py-3 text-sm text-muted">
{formatDuration(session.duration)}
</td>
<td className="px-4 py-3 text-sm text-gh-secondary">
<td className="px-4 py-3 text-sm text-secondary">
{session.players}
</td>
</tr>