mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-30 14:58:08 +00:00
The commits section read numbers that were typed into scripts/sync-oss.ts (5,420 repositories, 214 orgs, 784 pushes a day, 245,417 commits, each contributor's count), a day's count scaled by a made-up factor, and a star count that began at 1,420. The forge's database holds 1,150 repositories and 46 orgs; none of that was read. Its panels were tinted rgba over a stylesheet, DualStarButton showed its guess before GitHub answered, and BulkStarModal said "successfully starred" over a forge PUT. scripts/sync-oss.ts (was .mjs) now counts GitHub's public activity for the orgs we publish: commits a day, the year, the week, active repositories and the newest commits, written at each build with the moment it was read. A figure the snapshot does not hold is not drawn. The grid, bars and repository card are @hanzo/ui/marketing (8.29.19); the showcase stylesheet and DayActivityModal are deleted. The org and repo pages lose their typed "velocity" banners. Design lint is zero in components/oss, home/OpenSource and ForgeBetaBanner. e2e/gates/activity.spec.ts holds each figure to the snapshot, the cards to one fill and edge in both schemes, a card's name, line and foot to their own rows, and the phone to no sideways scroll. Claude-Session: https://claude.ai/code/session_017vrVus6PPBgP5YRzKV1iqW
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
'use client'
|
|
|
|
import { ArrowRight } from 'lucide-react'
|
|
import { useI18n } from '@hanzo/i18n/react'
|
|
import { XStack } from '@hanzo/ui'
|
|
import { Action, More } from '@hanzo/ui/marketing'
|
|
import { Card } from './plate'
|
|
import { Onward } from './label'
|
|
|
|
/** Hanzo Forge, said once, in the page's own card: what it holds and the two ways in. */
|
|
export default function ForgeBetaBanner() {
|
|
const { t } = useI18n()
|
|
return (
|
|
<Card title={t('Hanzo Forge')} body={t('Source, CI, deploys and issues in one place. Host a repository or mirror one from GitHub.')}>
|
|
<XStack items="center" gap={16} flexWrap="wrap" pt={4}>
|
|
<Action href="https://forge.hanzo.ai" fill target="_blank" rel="noopener noreferrer">
|
|
{t('Open Hanzo Forge')}
|
|
<ArrowRight width={15} height={15} aria-hidden data-i18n-mirror="" />
|
|
</Action>
|
|
<More href="https://forge.hanzo.ai/repo/migrate" target="_blank" rel="noopener noreferrer">
|
|
<Onward>{t('Mirror a repository')}</Onward>
|
|
</More>
|
|
</XStack>
|
|
</Card>
|
|
)
|
|
}
|