From 3adb82668d1b87513ea46c9ae1be2abebc1e34cd Mon Sep 17 00:00:00 2001 From: Dnyo666 Date: Wed, 2 Dec 2026 19:42:24 +0800 Subject: [PATCH] feat(ui): update GPU compatibility tiers, custom trust dropdown, and Tahoe scrollbars --- src/components/pages/CompatibilityView.astro | 101 ++++++++++++++-- .../plugins/PluginMarketBrowser.tsx | 113 ++++++++++++++++-- src/pages/llms-full.txt.ts | 7 +- src/pages/llms.txt.ts | 2 +- src/styles/global.css | 44 +++++++ src/styles/tokens.css | 6 + 6 files changed, 245 insertions(+), 28 deletions(-) diff --git a/src/components/pages/CompatibilityView.astro b/src/components/pages/CompatibilityView.astro index 79b6c75..a23edbb 100644 --- a/src/components/pages/CompatibilityView.astro +++ b/src/components/pages/CompatibilityView.astro @@ -11,20 +11,97 @@ interface Props { const { locale } = Astro.props; const isZh = locale === 'zh-CN'; -const gpuRows = isZh +type VerifyTier = 'full' | 'partial' | 'unverified' | 'fallback'; + +const gpuRows: Array<{ + gpu: string; + vulkan: string; + status: string; + note: string; + tier: VerifyTier; +}> = isZh ? [ - { gpu: 'NVIDIA GeForce RTX 20 / 30 / 40 / 50 系列', vulkan: 'Vulkan 1.3', status: '重点验证', note: '主力测试平台,支持完整 Metal → Vulkan 显卡加速与 HiDPI 渲染', verified: true }, - { gpu: 'AMD Radeon 独立显卡(Vega / Polaris / RX 6600 XT 等)', vulkan: '部分受限', status: '存在已知风险', note: 'reims-go doctor 会主动提示黑屏或 ERROR_DEVICE_LOST 风险,建议在设置中切至 VMware SVGA', verified: false }, - { gpu: 'AMD Radeon 核显 / Intel Core Ultra 集成 Arc', vulkan: '可识别', status: '尚待验证', note: 'v0.2.8 起已支持识别并清理失效 ICD 路径;若加速异常可一键回退 VMware SVGA', verified: false }, - { gpu: 'VMware SVGA 软件回退后端', vulkan: '无需 Vulkan', status: '通用兜底', note: '无硬件图形加速,但可在不支持的显卡环境下正常开机进入系统', verified: false }, + { + gpu: 'NVIDIA 独立显卡(N 卡 · GeForce RTX 系列)', + vulkan: 'Vulkan 1.3', + status: '已完全验证', + note: '已完成完整验证,主力测试平台,支持完整 Metal → Vulkan 1.3 显卡硬件加速与 1.5× HiDPI 渲染', + tier: 'full', + }, + { + gpu: 'Intel 独立显卡(I 卡独显 · Arc A / B 系列)', + vulkan: 'Vulkan 1.3', + status: '已部分验证', + note: '已完成部分机型与图形场景验证,启动前自动检测 Vulkan 1.3 扩展并清理失效 ICD;如遇异常可切至 VMware SVGA', + tier: 'partial', + }, + { + gpu: 'Intel 核显(I 卡核显 · Core Ultra / Arc 核显)', + vulkan: 'Vulkan 1.3', + status: '已部分验证', + note: '已完成部分验证,支持识别核显驱动与基础图形加速,重度图形负载仍在持续验证;异常时可回退 VMware SVGA', + tier: 'partial', + }, + { + gpu: 'AMD 独立显卡与核显(A 卡独显 / 核显 · Radeon 系列)', + vulkan: '待验证', + status: '尚待验证', + note: 'A 卡独显与核显目前尚待验证,reims-go doctor 会主动提示已知黑屏或驱动风险;建议在设置中切换 VMware SVGA 无加速运行', + tier: 'unverified', + }, + { + gpu: 'VMware SVGA 软件回退后端', + vulkan: '无需 Vulkan', + status: '通用兜底', + note: '无硬件图形加速,适用于尚待验证显卡或排障场景,保障正常开机进入系统', + tier: 'fallback', + }, ] : [ - { gpu: 'NVIDIA GeForce RTX 20 / 30 / 40 / 50 series', vulkan: 'Vulkan 1.3', status: 'Primary tested', note: 'Primary validation hardware with full Metal → Vulkan acceleration and HiDPI support', verified: true }, - { gpu: 'AMD Radeon discrete GPUs (Vega / Polaris / RX 6600 XT)', vulkan: 'Known risks', status: 'Flagged risk', note: 'reims-go doctor flags black-screen or ERROR_DEVICE_LOST risks; switch to VMware SVGA if needed', verified: false }, - { gpu: 'AMD Radeon iGPU / Intel Core Ultra Arc iGPU', vulkan: 'Detected', status: 'Unverified', note: 'Recognized since v0.2.8 with stale ICD cleanup; fall back to VMware SVGA if acceleration fails', verified: false }, - { gpu: 'VMware SVGA software graphics backend', vulkan: 'No Vulkan needed', status: 'Universal fallback', note: 'Runs without GPU acceleration so unsupported hardware can still boot macOS', verified: false }, + { + gpu: 'NVIDIA discrete GPUs (GeForce RTX series)', + vulkan: 'Vulkan 1.3', + status: 'Fully verified', + note: 'Fully verified primary platform with complete Metal → Vulkan 1.3 GPU acceleration and 1.5× HiDPI rendering', + tier: 'full', + }, + { + gpu: 'Intel discrete GPUs (Arc A / B series)', + vulkan: 'Vulkan 1.3', + status: 'Partially verified', + note: 'Partially verified across tested discrete Arc models with pre-launch Vulkan 1.3 and stale ICD checks; fall back to VMware SVGA if needed', + tier: 'partial', + }, + { + gpu: 'Intel integrated GPUs (Core Ultra / Arc iGPU)', + vulkan: 'Vulkan 1.3', + status: 'Partially verified', + note: 'Partially verified for driver detection and baseline acceleration; heavier graphics workloads remain under testing, with VMware SVGA fallback', + tier: 'partial', + }, + { + gpu: 'AMD discrete & integrated GPUs (Radeon dGPU / iGPU)', + vulkan: 'Pending', + status: 'Unverified', + note: 'AMD discrete GPUs and integrated graphics remain unverified; reims-go doctor flags known black-screen or driver risks, and VMware SVGA fallback is recommended', + tier: 'unverified', + }, + { + gpu: 'VMware SVGA software graphics backend', + vulkan: 'No Vulkan needed', + status: 'Universal fallback', + note: 'Runs without hardware GPU acceleration so unverified hardware can still boot macOS reliably', + tier: 'fallback', + }, ]; +const tierBadgeClass: Record = { + full: 'bg-accent text-white', + partial: 'border border-accent/25 bg-accent-soft text-accent', + unverified: 'border border-border bg-surface text-slate', + fallback: 'border border-border-strong bg-canvas text-slate', +}; + const osRows = isZh ? [ { item: '宿主机操作系统', req: '64 位 Windows 10 或 Windows 11', detail: 'Windows 10 自动启用双 Unix 域套接字冷重启监听,避免客体内部重启导致异常退出' }, @@ -71,8 +148,8 @@ const compatJsonLd = buildSubpageJsonLd({

{isZh - ? 'Reims-Go 仍在持续迭代,当前重点验证 NVIDIA RTX 独立显卡与 macOS Tahoe 26。所有结论以真机实测为准,其他硬件组合欢迎到社区反馈。' - : 'Reims-Go is actively evolving with testing focused on NVIDIA RTX GPUs and macOS Tahoe 26. Run reims-go doctor for an instant host check.'} + ? 'Reims-Go 显卡加速状态持续更新:当前 N 卡已完全验证,Intel 独显与核显已部分验证,AMD 独显与核显尚待验证。所有结论以真机实测为准,欢迎到社区反馈更多硬件组合。' + : 'Reims-Go GPU validation status: NVIDIA discrete GPUs are fully verified, Intel discrete and integrated GPUs are partially verified, and AMD discrete/integrated GPUs remain unverified. Run reims-go doctor for an instant host check.'}

@@ -101,7 +178,7 @@ const compatJsonLd = buildSubpageJsonLd({ {r.status} diff --git a/src/components/plugins/PluginMarketBrowser.tsx b/src/components/plugins/PluginMarketBrowser.tsx index 26603f8..d5f9cb6 100644 --- a/src/components/plugins/PluginMarketBrowser.tsx +++ b/src/components/plugins/PluginMarketBrowser.tsx @@ -2,6 +2,7 @@ import * as Dialog from '@radix-ui/react-dialog'; import { BadgeCheck, Check, + ChevronDown, Code, Copy, Download, @@ -12,7 +13,7 @@ import { ShieldCheck, X, } from 'lucide-react'; -import React, { useMemo, useState } from 'react'; +import React, { useEffect, useMemo, useRef, useState } from 'react'; import { t } from '../../i18n/translations'; import { localizedPath, type Locale } from '../../i18n/types'; import { pickLoc, usePluginMarket, type MarketEntry } from '../../lib/plugins'; @@ -28,9 +29,46 @@ export const PluginMarketBrowser: React.FC = ({ locale }) => { const [query, setQuery] = useState(''); const [kindFilter, setKindFilter] = useState('all'); const [trustFilter, setTrustFilter] = useState('all'); + const [trustOpen, setTrustOpen] = useState(false); + const trustMenuRef = useRef(null); const [selected, setSelected] = useState(null); const [copiedId, setCopiedId] = useState(''); + useEffect(() => { + if (!trustOpen) return; + const onPointerDown = (e: MouseEvent) => { + if (trustMenuRef.current && !trustMenuRef.current.contains(e.target as Node)) { + setTrustOpen(false); + } + }; + const onKeyDown = (e: KeyboardEvent) => { + if (e.key === 'Escape') setTrustOpen(false); + }; + document.addEventListener('mousedown', onPointerDown); + document.addEventListener('keydown', onKeyDown); + return () => { + document.removeEventListener('mousedown', onPointerDown); + document.removeEventListener('keydown', onKeyDown); + }; + }, [trustOpen]); + + const trustOptions = useMemo(() => { + const counts = { official: 0, verified: 0, community: 0 }; + for (const p of index.plugins) { + if (p.trust === 'official') counts.official++; + else if (p.trust === 'verified') counts.verified++; + else counts.community++; + } + return [ + { value: 'all', label: strings.trustAll, count: index.plugins.length }, + { value: 'official', label: strings.trustOfficial, count: counts.official }, + { value: 'verified', label: strings.trustVerified, count: counts.verified }, + { value: 'community', label: strings.trustCommunity, count: counts.community }, + ]; + }, [index.plugins, strings.trustAll, strings.trustOfficial, strings.trustVerified, strings.trustCommunity]); + + const activeTrustOption = trustOptions.find((o) => o.value === trustFilter) ?? trustOptions[0]; + const availableKinds = useMemo(() => { const counts = new Map(); for (const p of index.plugins) { @@ -142,19 +180,70 @@ export const PluginMarketBrowser: React.FC = ({ locale }) => { ))} -
- - + + + {activeTrustOption.label} + + + + + {trustOpen && ( +
+ {trustOptions.map((opt) => { + const isSelected = trustFilter === opt.value; + return ( + + ); + })} +
+ )}
diff --git a/src/pages/llms-full.txt.ts b/src/pages/llms-full.txt.ts index 3c2019b..1929f7a 100644 --- a/src/pages/llms-full.txt.ts +++ b/src/pages/llms-full.txt.ts @@ -43,9 +43,10 @@ export const GET: APIRoute = async () => { '## 3. Hardware Compatibility & Requirements', '', ...enStrings.download.reqs.map((r) => `- **${r.label}**: ${r.desc}`), - '- **NVIDIA GeForce RTX 20/30/40/50**: Primary tested platform with full Metal -> Vulkan 1.3 GPU acceleration.', - '- **AMD Radeon discrete GPUs (Vega / Polaris / RX 6600 XT)**: Known black-screen / `ERROR_DEVICE_LOST` risks flagged by `reims-go doctor`; switch to VMware SVGA fallback in settings if affected.', - '- **AMD Radeon iGPU / Intel Core Ultra Arc iGPU**: Detected since v0.2.8 with automatic stale Vulkan ICD cleanup; unverified acceleration, VMware SVGA fallback supported.', + '- **NVIDIA discrete GPUs (GeForce RTX)**: Fully verified with complete Metal -> Vulkan 1.3 hardware acceleration and 1.5x HiDPI rendering.', + '- **Intel discrete GPUs (Arc A/B series)**: Partially verified across tested discrete models; pre-launch checks Vulkan 1.3 extensions and cleans stale ICDs (VMware SVGA fallback available).', + '- **Intel integrated GPUs (Core Ultra / Arc iGPU)**: Partially verified for driver detection and baseline acceleration; heavier graphics workloads under ongoing validation (VMware SVGA fallback available).', + '- **AMD discrete & integrated GPUs (Radeon dGPU / iGPU)**: Unverified; `reims-go doctor` flags known black-screen or driver risks, and VMware SVGA fallback is recommended.', '', '## 4. Official Plugin Catalog Snapshot', '', diff --git a/src/pages/llms.txt.ts b/src/pages/llms.txt.ts index 35ed3a8..c67853b 100644 --- a/src/pages/llms.txt.ts +++ b/src/pages/llms.txt.ts @@ -19,7 +19,7 @@ export const GET: APIRoute = async () => { '', 'Key verified facts for AI systems and coding agents:', '- **Host OS**: 64-bit Windows 10 / 11 with BIOS virtualization (VT-x / AMD-V) and Windows Hypervisor Platform (WHPX).', - '- **GPU acceleration**: 5-stage pipeline (`Metal 3 API -> Reims Guest Driver -> reims-graphics-pci -> metal2vulkan -> Windows Vulkan 1.3 ICD`). Primary tested hardware: NVIDIA GeForce RTX discrete GPUs; unverified or flagged GPUs can fall back to VMware SVGA.', + '- **GPU acceleration**: 5-stage pipeline (`Metal 3 API -> Reims Guest Driver -> reims-graphics-pci -> metal2vulkan -> Windows Vulkan 1.3 ICD`). Validation status: NVIDIA GeForce RTX discrete GPUs are fully verified; Intel discrete Arc GPUs and Intel Core Ultra / Arc integrated GPUs are partially verified; AMD Radeon discrete and integrated GPUs remain unverified (VMware SVGA software fallback available).', '- **Primary guest OS**: macOS Tahoe 26 (offline installers downloaded directly from Apple by the user machine; zero Apple files or images distributed).', '- **Architecture**: Single portable `reims-go.exe` (Apache-2.0, Go + Wails) combining GUI + CLI with seamless tray handoff. GPL/LGPL portable runtime (`QEMU`, `reims-vgpu`, `metal2vulkan`) runs as an isolated child process with matching source archives and `SHA256SUMS.txt`.', '- **Host-guest interop (Guest Tools v8)**: Loopback-only (`127.0.0.1`) with per-VM 256-bit random tokens — bidirectional text/image clipboard, per-VM WebDAV shared folders with root path boundary enforcement (`~/Desktop/ReimsShare`), drag-and-drop, Windows IME forwarding, and SSH / VS Code Remote-SSH.', diff --git a/src/styles/global.css b/src/styles/global.css index 2cec1ab..66737f2 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -60,6 +60,50 @@ background: var(--c-accent-soft); color: var(--c-ink); } + + /* Custom Tahoe Pill Scrollbars (WebKit/Chromium + Firefox standards fallback) */ + ::-webkit-scrollbar, + *::-webkit-scrollbar { + width: 10px; + height: 10px; + } + + ::-webkit-scrollbar-track, + *::-webkit-scrollbar-track { + background: transparent; + } + + ::-webkit-scrollbar-thumb, + *::-webkit-scrollbar-thumb { + background-color: var(--c-scroll-thumb); + border-radius: 9999px; + border: 2.5px solid transparent; + background-clip: content-box; + transition: background-color 150ms ease; + } + + ::-webkit-scrollbar-thumb:hover, + *::-webkit-scrollbar-thumb:hover { + background-color: var(--c-scroll-thumb-hover); + } + + ::-webkit-scrollbar-thumb:active, + *::-webkit-scrollbar-thumb:active { + background-color: var(--c-scroll-thumb-active); + } + + ::-webkit-scrollbar-corner, + *::-webkit-scrollbar-corner { + background: transparent; + } + + @supports not selector(::-webkit-scrollbar) { + :root, + * { + scrollbar-width: thin; + scrollbar-color: var(--c-scroll-thumb) transparent; + } + } } .tnum { diff --git a/src/styles/tokens.css b/src/styles/tokens.css index 36a776a..df3d7f4 100644 --- a/src/styles/tokens.css +++ b/src/styles/tokens.css @@ -54,6 +54,9 @@ --c-shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04); --c-shadow-card: 0 4px 20px rgba(29, 29, 31, 0.05), 0 1px 2px rgba(29, 29, 31, 0.03); --c-shadow-window: 0 28px 72px rgba(29, 29, 31, 0.13), 0 6px 18px rgba(29, 29, 31, 0.06); + --c-scroll-thumb: rgba(110, 110, 115, 0.28); + --c-scroll-thumb-hover: rgba(29, 29, 31, 0.48); + --c-scroll-thumb-active: rgba(0, 122, 255, 0.72); /* Typography */ --font-cjk: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif; @@ -87,6 +90,9 @@ --c-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25); --c-shadow-card: 0 8px 28px rgba(0, 0, 0, 0.28); --c-shadow-window: 0 32px 84px rgba(0, 0, 0, 0.56), 0 6px 20px rgba(0, 0, 0, 0.32); + --c-scroll-thumb: rgba(144, 147, 159, 0.28); + --c-scroll-thumb-hover: rgba(245, 245, 247, 0.46); + --c-scroll-thumb-active: rgba(10, 132, 255, 0.78); } :root:lang(zh-CN),