Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(web): 焦点环收进静止边的内侧,调试 serve 仍要本机才配得了

longmeidaod5ee578dd127
diff --git a/docs/OPERATIONS.md b/docs/OPERATIONS.md
index 739a7c2ec..82fef5451 100644
--- a/docs/OPERATIONS.md
+++ b/docs/OPERATIONS.md
@@ -171,7 +171,7 @@ curl -s --noproxy '*' -o /dev/null -w '%{http_code}\n' https://peach.local/healt
验收四项:菜单栏只出现一个 Peach 图标且 `status` 报「已加载」;`launchctl print` 的 pid 就是那个菜单栏进程;`pfctl -s nat` 列出 80 → 8900、443 → 8443 两条 rdr;两条 `/healthz` 都回 200。`peach.local` 换成本机 `[server].mdns_name` 的值。
- 发布入口是 `scripts/build_windows.ps1`:先用 `scripts/generate_brand_assets.py` 生成方形 Logo 与多尺寸 `.ico`,再构建单一 `dist/Peach/Peach.exe`;无参数运行托盘,`serve`/`migrate` 运行 CLI。桌面快捷方式和开机自启都在配置页的「开机自启」一组里开关,由 `src/peach/desktop_startup.py` 落盘;`scripts/manage_tray_startup.ps1` 只作发布包的排障入口。
- 对外测试包由 `.github/workflows/release.yml` 承担:`build_windows.ps1 -Standalone` 用 PyInstaller onedir 生成完整 Windows 程序目录,压缩后由不检出源码的消费任务运行 `scripts/smoke_desktop.py`。`v<__version__>` tag 与版本不一致会失败,通过制品验收才创建 GitHub 预发布并附 SHA256;`workflow_dispatch` 只生成和验收 artifact。macOS 独立包另列待办,源码菜单栏构建入口仍为 `build_macos_app.py`。
-- 刷新源码运行态不要用 Computer Use 点托盘:`python scripts/restart_windows_tray.py` 按精确 EXE 路径找到 pystray 隐藏窗口、发送正常停止消息、等托盘自行关闭子服务,再静默启动并核对新托盘重新拥有两个服务;找不到唯一窗口或退出超时就拒绝,绝不强杀后另启。`--swap-from <暂存包>` 让它在旧托盘退出后、新托盘启动前顺手换掉二进制,那是整条链路上唯一一个目标文件没有进程持有的窗口;换生产二进制用下面那条入口,不要单独调它。
+- 刷新源码运行态不要用 Computer Use 点托盘:`python scripts/restart_windows_tray.py` 按精确 EXE 路径找到 pystray 隐藏窗口、发送正常停止消息、等托盘自行关闭子服务,再静默启动并核对新托盘重新拥有两个服务;找不到唯一窗口或退出超时就拒绝,绝不强杀后另启。`--swap-from <暂存包>` 让它在旧托盘退出后、新托盘启动前顺手换掉二进制,那是整条链路上唯一一个目标文件没有进程持有的窗口;换生产二进制用下面那条入口,不要单独调它。打包托盘窗口不在时命令自动改走源码托盘:`find_source_tray_windows()` 按同一窗口类名加「命令行含 `peach.tray`」认源码托盘,`restart_source_tray()` 照抄原命令行(含 `--show`/数据根)等托盘退出后自起,不换包不备份;`--source` 显式跳过打包入口。
- 换掉生产托盘二进制走 `python scripts/deploy_windows_tray.py`,在主检出里用项目 venv 的 Python 跑:拒绝脏检出 → 按 HEAD 提交号在 `<数据根>/state/source-sync-build/<commit>/` 构建 → 让暂存包自己跑一次 `migrate status` → 停旧托盘、原地换 `dist/Peach/Peach.exe`(旧的留成 `Peach.pre-source-sync-<时间>.exe`)、起新托盘 → 用项目 CA 严格校验读生产 HTTPS 口的 `/healthz`。验收按回话的是谁分成两条:独立发行版里回话的就是冻结进程自己,核对它报的 `build_commit` 等于这次打包的提交;本机这套形态下回话的是 venv 里的源码进程——托盘刻意把两个子服务交回项目 venv(`src/peach/tray.py` 的 `_peach_executable()`),那个进程没有第二个版本,`build_commit` 结构上恒为 None——这时核对生产入口那个文件的 sha256 等于这次打出来的暂存包,而托盘正是换完之后才从这个文件起来并拿到两个子服务的。两条都不认版本号:版本号一次发布才推一格,同一个号下有很多个构建,只比版本号证明不了二进制换掉了。结果打印成一份 JSON,`step` 说明停在哪一步。新托盘起不来或拿不到两个子服务时自动换回备份并重开旧托盘;`--staged <路径>` 复用已经打好的包、跳过构建。不要就地构建 `dist/Peach/`:运行中的托盘持有那个文件,PyInstaller 清目录会撞上 WinError 5。换生产入口本身仍要当场授权,脚本不代替那次授权。
- `dist/Peach/Peach.exe` 是本机打包入口而不是可移动的独立发行版:托盘只打包了自己,服务进程仍由项目 venv 的 `peach.exe` 承担,`_peach_executable()` 从 exe 位置逐级向上找 `.venv\Scripts\peach.exe`,所以不要按「单文件绿色版」对外描述。
- `<数据根>/logs` 里的 `*.log` 统一保留半年、大小不设限(`peach.log_retention.sweep`,托盘在起任何子进程之前跑):半年没再写过的文件整份删掉;还在写的文件按自然月切段,上次写入落在更早月份就改名成 `<名字>.until-<最后写入日期>.log`,段再等半年被删。子进程是直接追加 stdout,不经 `logging`,所以按文件而不是按行处理。
diff --git a/docs/reference-snapshots/upstream/boardui-auth-card.json b/docs/reference-snapshots/upstream/boardui-auth-card.json
new file mode 100644
index 000000000..64ab97397
--- /dev/null
+++ b/docs/reference-snapshots/upstream/boardui-auth-card.json
@@ -0,0 +1,104 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "auth-card",
+ "type": "registry:block",
+ "title": "Auth Card",
+ "description": "Sign-in and sign-up cards with social providers stacked with labels or inline as icons, plus email fields and a CTA.",
+ "dependencies": [
+ "@remixicon/react@^4.9.0"
+ ],
+ "registryDependencies": [
+ "button",
+ "checkbox",
+ "cx",
+ "divider",
+ "input",
+ "input-otp",
+ "link-button",
+ "social-button"
+ ],
+ "files": [
+ {
+ "path": "components/application/auth/auth-card.tsx",
+ "content": "\"use client\";\n\nimport type { FormEvent, ReactNode } from \"react\";\nimport { useState } from \"react\";\nimport { RiMailCheckLine } from \"@remixicon/react\";\nimport { Button } from \"@/components/base/buttons/button\";\nimport { Checkbox } from \"@/components/base/checkbox/checkbox\";\nimport { Divider } from \"@/components/base/divider/divider\";\nimport { Input } from \"@/components/base/input/input\";\nimport { InputOtp } from \"@/components/base/input-otp/input-otp\";\nimport { LinkButton } from \"@/components/base/buttons/link-button\";\nimport { SocialButton } from \"@/components/base/social-button/social-button\";\nimport type { SocialProvider } from \"@/components/base/social-button/social-providers\";\nimport { cx } from \"@/utils/cx\";\n\n// Re-exported so `media` has a batteries-included option and the registry\n// installs it alongside the card. Nothing here imports it otherwise.\nexport {\n AuthMediaCarousel,\n type AuthMediaSlide,\n} from \"@/components/application/auth/auth-media-carousel\";\n\n/**\n * Sign-in and sign-up cards built on the social buttons.\n *\n * The providers render one of three ways, because each is right somewhere:\n *\n * layout=\"stacked\" full-width buttons with labels, one per row. Names each\n * provider, so it suits a dedicated sign-in page with the\n * room to spell them out.\n * layout=\"inline\" icon-only squares side by side. Compact enough for a\n * modal or a narrow panel, and carries more providers in\n * the same space.\n * layout=\"grid\" icon-only across equal columns, so a small set reads as\n * one row of controls rather than loose squares.\n *\n * All three sit below the email form, never above it, and all three take the\n * same `providers` array, so switching is one prop and the set never has to\n * be written twice.\n *\n * `media` turns the whole thing into a two-column split with artwork beside\n * the form — pass `AuthMediaCarousel` for a set of images that cycles on its\n * own — and `logo` puts a mark above the title.\n *\n * `mode=\"verify\"` is the step after either one: OTP boxes instead of email\n * and password, a resend action instead of a link to the other mode, and no\n * providers at all, since the visitor has already chosen how they sign in.\n *\n * The form is deliberately uncontrolled and `onSubmit`-based: an auth card is\n * the shell around whatever the host app's auth library does, not an opinion\n * about it. Pass `onSubmit` and `onProvider`, or swap the CTA for your own.\n */\n\nexport type AuthLayout = \"stacked\" | \"inline\" | \"grid\";\nexport type AuthMode = \"signin\" | \"signup\" | \"verify\";\n\nexport interface AuthCardProps {\n /**\n * `signin` (default), `signup`, or `verify` for the one-time-code step.\n * `verify` swaps the email fields for OTP boxes and drops the providers:\n * the visitor has already chosen how they are signing in.\n */\n mode?: AuthMode;\n /** `verify` only: the address the code went to, shown in the description. */\n email?: string;\n /** `verify` only: how many digits. Defaults to 6. */\n codeLength?: number;\n /** `verify` only: fires once the last box is filled. */\n onComplete?: (code: string) => void;\n /** `verify` only: the resend action. */\n onResend?: () => void;\n /** How the provider buttons are arranged. Defaults to `stacked`. */\n layout?: AuthLayout;\n providers?: SocialProvider[];\n title?: ReactNode;\n description?: ReactNode;\n /**\n * Artwork for the right half. Passing it turns the card into the split\n * layout: form on the left, media on the right, which drops to the form\n * alone below `md` rather than stacking a tall image above the fields.\n */\n media?: ReactNode;\n /**\n * Mark above the title — a wordmark, an app icon, anything. Deliberately a\n * node rather than a src, so the card stays brand-agnostic and an installed\n * copy pulls none of BoardUI's own artwork with it.\n */\n logo?: ReactNode;\n /** Centre the heading, as the split layout usually wants. */\n centered?: boolean;\n /** Sign-up only: adds a stacked confirm-password field. */\n confirmPassword?: boolean;\n /** Small print under the card, outside its border. */\n footnote?: ReactNode;\n /** Fires with the form's own FormData; wire it to your auth library. */\n onSubmit?: (data: FormData) => void;\n onProvider?: (provider: SocialProvider) => void;\n /** Footer link target, e.g. to the opposite mode. */\n switchHref?: string;\n /**\n * Heading level for the card title. Defaults to `1`, because on a real\n * sign-in screen the card *is* the page. Drop it to `2`+ wherever the card\n * is embedded as a preview inside a page that already has an `<h1>` — two\n * `<h1>`s in one document flattens the outline for screen readers and for\n * anything reading the page as a document.\n */\n headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;\n className?: string;\n}\n\nconst COPY = {\n signin: {\n title: \"Welcome back\",\n description: \"Sign in to pick up where you left off.\",\n cta: \"Sign in\",\n switchLead: \"New here?\",\n switchAction: \"Create an account\",\n },\n signup: {\n title: \"Create your account\",\n description: \"Start building with BoardUI in a couple of minutes.\",\n cta: \"Create account\",\n switchLead: \"Already have an account?\",\n switchAction: \"Sign in\",\n },\n verify: {\n title: \"Check your inbox\",\n description: \"Enter the code we sent to finish signing in.\",\n cta: \"Verify and continue\",\n switchLead: \"Code not arriving?\",\n switchAction: \"Send a new one\",\n },\n} as const;\n\nexport function AuthCard({\n mode = \"signin\",\n email,\n codeLength = 6,\n onComplete,\n onResend,\n layout = \"stacked\",\n providers = [\"google\", \"apple\", \"github\"],\n title,\n description,\n media,\n logo,\n centered = false,\n confirmPassword = false,\n footnote,\n onSubmit,\n onProvider,\n switchHref = \"#\",\n headingLevel = 1,\n className,\n}: AuthCardProps) {\n const TitleHeading = `h${headingLevel}` as const;\n const [remember, setRemember] = useState(true);\n const [code, setCode] = useState(\"\");\n const copy = COPY[mode];\n const signup = mode === \"signup\";\n const verify = mode === \"verify\";\n\n const submit = (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n onSubmit?.(new FormData(event.currentTarget));\n };\n\n const social = (\n <div\n className={cx(\n layout === \"stacked\" && \"flex flex-col gap-2.5\",\n // Wraps rather than scrolls: six providers on a narrow card should\n // fall to a second row, not clip.\n layout === \"inline\" && \"flex flex-wrap justify-center gap-2\",\n // Equal columns that share the full width, so three providers read as\n // one row of controls rather than three loose squares.\n layout === \"grid\" && \"grid grid-flow-col auto-cols-fr gap-2.5\",\n )}\n >\n {providers.map((provider) => (\n <SocialButton\n key={provider}\n brand={provider}\n appearance=\"white\"\n iconOnly={layout !== \"stacked\"}\n fullWidth={layout === \"stacked\"}\n // `iconOnly` fixes a square width; the grid needs it to stretch,\n // and `className` is last into `cx` so it wins.\n className={layout === \"grid\" ? \"w-full\" : undefined}\n onClick={() => onProvider?.(provider)}\n />\n ))}\n </div>\n );\n\n // The code step centres itself and carries a mark by default: it is a\n // single-purpose screen, and the icon is what says at a glance which one.\n // Left-aligned like the other two modes: a centred column with a hairline\n // was the reference's shape, and this one should read as the same family\n // as the sign-in card it follows, not as a different screen.\n const centerContent = centered;\n const mark =\n logo ??\n (verify ? (\n <RiMailCheckLine className=\"size-8 text-foreground-icon-primary\" aria-hidden />\n ) : null);\n\n const body = (\n <>\n {mark ? (\n <div className={cx(\"mb-5 flex\", centerContent ? \"justify-center\" : \"justify-start\")}>\n {mark}\n </div>\n ) : null}\n\n <div className={cx(\"flex flex-col gap-1.5\", centerContent && \"text-center\")}>\n <TitleHeading className=\"text-title-2-medium text-text-primary\">\n {title ?? copy.title}\n </TitleHeading>\n <p className=\"text-body-regular text-text-secondary\">\n {description ??\n (verify && email ? (\n <>\n Enter the code we sent to{\" \"}\n <span className=\"text-body-medium text-text-primary\">{email}</span>{\" \"}\n to finish signing in.\n </>\n ) : (\n copy.description\n ))}\n </p>\n </div>\n\n <form onSubmit={submit} className=\"mt-6 flex flex-col gap-4\">\n {verify ? (\n <div className=\"flex flex-col gap-1.5\">\n <span className=\"text-body-medium text-text-secondary\">\n Verification code\n </span>\n <InputOtp\n value={code}\n onChange={setCode}\n onComplete={onComplete}\n length={codeLength}\n groupEvery={codeLength % 2 === 0 ? codeLength / 2 : undefined}\n aria-label=\"Verification code\"\n className=\"justify-start\"\n />\n </div>\n ) : null}\n\n {signup && !confirmPassword ? (\n <Input name=\"name\" label=\"Full name\" placeholder=\"Ada Lovelace\" isRequired />\n ) : null}\n\n {verify ? null : (\n <Input\n name=\"email\"\n type=\"email\"\n label=\"Email\"\n placeholder=\"[email protected]\"\n autoComplete=\"email\"\n hint={signup ? \"We use this to contact you, and never share it.\" : undefined}\n isRequired\n />\n )}\n\n {verify ? null : signup && confirmPassword ? (\n // Stacked, full width: a password field pair is easier to fill at\n // full width than in two half-width columns, and it keeps the whole\n // form on one rhythm.\n <>\n <Input\n name=\"password\"\n type=\"password\"\n label=\"Password\"\n placeholder=\"At least 8 characters\"\n autoComplete=\"new-password\"\n isRequired\n />\n <Input\n name=\"confirmPassword\"\n type=\"password\"\n label=\"Confirm password\"\n placeholder=\"Repeat your password\"\n autoComplete=\"new-password\"\n isRequired\n />\n </>\n ) : (\n <Input\n name=\"password\"\n type=\"password\"\n label=\"Password\"\n placeholder={signup ? \"At least 8 characters\" : \"Enter your password\"}\n autoComplete={signup ? \"new-password\" : \"current-password\"}\n isRequired\n />\n )}\n\n {signup || verify ? null : (\n <div className=\"flex items-center justify-between\">\n <Checkbox size=\"sm\" isSelected={remember} onChange={setRemember}>\n Remember me\n </Checkbox>\n <LinkButton href=\"#\">Forgot password?</LinkButton>\n </div>\n )}\n\n <Button type=\"submit\" className=\"w-full\">\n {copy.cta}\n </Button>\n\n {/* The split layout carries its terms line under the card instead,\n through `footnote`, so it does not crowd the CTA. */}\n {signup && !footnote ? (\n <p className=\"text-caption-1-regular text-text-tertiary\">\n By creating an account you agree to our Terms of Service and Privacy Policy.\n </p>\n ) : null}\n </form>\n\n {/* Providers always follow the form, in every layout: the email fields\n are the path this card is built around, and a bank of provider\n buttons above them buries the thing people came to fill in. The\n code step shows none — the visitor has already picked a method. */}\n {!verify && providers.length > 0 ? (\n <>\n <div className=\"my-5\">\n <Divider>or continue with</Divider>\n </div>\n {social}\n </>\n ) : null}\n\n {/* Resend is an action, not a destination, so on the code step the\n footer is a button. `LinkButton` renders one when given no href. */}\n {verify ? (\n <p className=\"mt-6 text-center text-body-regular text-text-secondary\">\n {copy.switchLead}{\" \"}\n <LinkButton onClick={onResend}>{copy.switchAction}</LinkButton>\n </p>\n ) : (\n <p className=\"mt-6 text-center text-body-regular text-text-secondary\">\n {copy.switchLead} <LinkButton href={switchHref}>{copy.switchAction}</LinkButton>\n </p>\n )}\n </>\n );\n\n const card = media ? (\n <div\n className={cx(\n \"grid w-full max-w-[880px] overflow-hidden rounded-3xl border border-border-button-default bg-background-primary-default shadow-xs md:grid-cols-2 dark:bg-background-secondary-default\",\n className,\n )}\n >\n <div className=\"flex flex-col p-6 sm:p-8\">{body}</div>\n {/* Hidden rather than stacked below `md`: a tall image above the fields\n pushes the form off a phone screen for no gain. */}\n <div className=\"relative hidden bg-background-secondary-default md:block\">{media}</div>\n </div>\n ) : (\n <div\n className={cx(\n \"flex w-full max-w-[400px] flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-6 shadow-xs sm:p-8 dark:bg-background-secondary-default\",\n className,\n )}\n >\n {body}\n </div>\n );\n\n if (!footnote) return card;\n\n return (\n <div className=\"flex w-full flex-col items-center gap-4\">\n {card}\n <p className=\"max-w-[520px] text-center text-caption-1-regular text-text-tertiary\">\n {footnote}\n </p>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/application/auth/auth-card.tsx"
+ },
+ {
+ "path": "components/application/auth/auth-media-carousel.tsx",
+ "content": "\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { cx } from \"@/utils/cx\";\n\n/**\n * Auto-advancing artwork for the auth card's `media` slot.\n *\n * The transition is a four-beat cycle rather than a plain slide. The image\n * fills the panel edge to edge; when its turn is up it shrinks and rounds off\n * into a card, holds there long enough to read as a deliberate pause, and only\n * then travels left. The next image rides in beside it already card-sized, and\n * grows back out to fill the panel once it has landed. Shrinking first is what\n * makes the movement legible: a full-bleed image sliding under a hard edge\n * reads as a cut, while a card that detaches, moves, and settles reads as one\n * object being replaced by another.\n *\n * The travel happens in depth, not flat across the panel. The panel holds a\n * perspective, and the cards leave and arrive pushed back along Z and turned\n * on their vertical axis, so the outgoing one banks away to the left while the\n * next swings in from the right and squares up as it lands. Both are angled\n * away from the middle, as though they sit on a drum turning past the viewer,\n * which is what gives the movement a front and a back instead of a left and a\n * right.\n *\n * Every slide is placed by where it sits relative to the current one, so the\n * set travels in one direction forever and the wrap back to the first image is\n * just another step left. The cost of that arrangement is that the slide\n * leaving the frame has to jump from the left side to the back of the queue on\n * the right, so transitions are enabled only for the slides actually moving in\n * a given beat; everything else is repositioned with them switched off.\n *\n * Plain `<img>` rather than `next/image`: this file installs into other\n * people's projects, and it should not decide their image pipeline for them.\n * The first slide is eager and the rest lazy, so the card paints immediately\n * without pulling four files at once.\n *\n * It advances on its own and offers no controls. The artwork beside a sign-in\n * form is atmosphere, not content — a visitor is there to get in, and giving\n * them arrows to click is inviting them away from the thing they came to do.\n * Honouring `prefers-reduced-motion` means holding on the first slide.\n */\n\nconst REDUCED_MOTION_QUERY = \"(prefers-reduced-motion: reduce)\";\n\n/** Card state: shrunk to a rounded tile, and the size it rides in at. */\nconst CARD_SCALE = 0.82;\nconst ENTER_SCALE = 0.8;\nconst CARD_RADIUS = 24;\n\n/** How deep the drum is, and how far the cards turn on it. */\nconst PERSPECTIVE = 850;\nconst DEPTH = 220;\nconst TILT = 48;\n\nconst SHRINK_MS = 450;\n/** The deliberate pause once it has become a card, before it moves. */\nconst HOLD_MS = 200;\nconst SLIDE_MS = 700;\nconst GROW_MS = 500;\n\n/**\n * `idle` at rest, full bleed\n * `shrink` pulling back into a card, then holding\n * `slide` travelling left while the next one rides in\n * `enter` the frame where the new slide takes over, before it grows\n */\ntype Phase = \"idle\" | \"shrink\" | \"slide\" | \"enter\";\n\nconst NEXT_PHASE: Record<Phase, Phase> = {\n idle: \"shrink\",\n shrink: \"slide\",\n slide: \"enter\",\n enter: \"idle\",\n};\n\nexport interface AuthMediaSlide {\n src: string;\n /** Decorative by default: the artwork carries no information the form needs. */\n alt?: string;\n}\n\nexport function AuthMediaCarousel({\n slides,\n interval = 3200,\n className,\n}: {\n slides: AuthMediaSlide[];\n /** Milliseconds a slide rests at full bleed, before the transition begins. */\n interval?: number;\n className?: string;\n}) {\n const [index, setIndex] = useState(0);\n const [phase, setPhase] = useState<Phase>(\"idle\");\n const count = slides.length;\n\n useEffect(() => {\n if (count < 2) return;\n if (window.matchMedia(REDUCED_MOTION_QUERY).matches) return;\n\n // `enter` is only a re-labelling: the outgoing slide is dropped and the\n // incoming one takes position 0 at the size it was already drawn at, so it\n // needs a frame to paint before the grow can transition from it.\n const delay = {\n idle: interval,\n shrink: SHRINK_MS + HOLD_MS,\n slide: SLIDE_MS,\n enter: 20,\n }[phase];\n\n const timer = window.setTimeout(() => {\n if (phase === \"slide\") setIndex((current) => (current + 1) % count);\n setPhase(NEXT_PHASE[phase]);\n }, delay);\n\n return () => window.clearTimeout(timer);\n }, [phase, count, interval]);\n\n return (\n <div\n style={{ perspective: `${PERSPECTIVE}px` }}\n className={cx(\"absolute inset-0 overflow-hidden\", className)}\n >\n {slides.map((slide, slideIndex) => {\n // 0 is the slide in play, 1 is next in the queue, and everything else\n // waits off to the right until its turn comes round.\n const position = (slideIndex - index + count) % count;\n const current = position === 0;\n const upNext = position === 1;\n\n // Where this slide sits on the drum. `arrived` is square to the\n // viewer but still card-sized: growing is the beat after.\n const transform = current\n ? phase === \"slide\"\n ? `translateX(-100%) translateZ(${-DEPTH}px) rotateY(${-TILT}deg) scale(${CARD_SCALE})`\n : phase === \"shrink\"\n ? `scale(${CARD_SCALE})`\n : phase === \"enter\"\n ? `scale(${ENTER_SCALE})`\n : \"scale(1)\"\n : upNext && phase === \"slide\"\n ? `scale(${ENTER_SCALE})`\n : `translateX(100%) translateZ(${-DEPTH}px) rotateY(${TILT}deg) scale(${ENTER_SCALE})`;\n\n // Only the slides in motion this beat may transition. The rest are\n // being repositioned, and a transition would streak them across.\n const moving = current || (upNext && phase === \"slide\");\n\n return (\n // Deliberate: this file installs into other projects and should not\n // require next/image. Swap it for your own loader if you have one.\n // eslint-disable-next-line @next/next/no-img-element\n <img\n key={slide.src}\n src={slide.src}\n alt={slide.alt ?? \"\"}\n aria-hidden={slide.alt ? undefined : true}\n loading={slideIndex === 0 ? \"eager\" : \"lazy\"}\n style={{\n transform,\n borderRadius: current && phase === \"idle\" ? 0 : CARD_RADIUS,\n transitionDuration:\n phase === \"slide\" ? `${SLIDE_MS}ms` : phase === \"shrink\" ? `${SHRINK_MS}ms` : `${GROW_MS}ms`,\n }}\n className={cx(\n \"absolute inset-0 size-full object-cover\",\n moving && phase !== \"enter\"\n ? \"transition-[transform,border-radius] ease-in-out\"\n : \"transition-none\",\n )}\n />\n );\n })}\n\n {slides.length > 1 ? (\n <div className=\"absolute inset-x-0 bottom-4 flex justify-center gap-1.5\">\n {slides.map((slide, slideIndex) => (\n <span\n key={slide.src}\n aria-hidden\n className={cx(\n \"h-1.5 rounded-full bg-white transition-all duration-500 ease-out\",\n slideIndex === index ? \"w-5 opacity-90\" : \"w-1.5 opacity-45\",\n )}\n />\n ))}\n </div>\n ) : null}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/application/auth/auth-media-carousel.tsx"
+ },
+ {
+ "path": "components/base/social-button/social-providers.ts",
+ "content": "/**\n * Brand glyphs for the social sign-in buttons.\n *\n * Path data is copied verbatim from two upstream sets, never redrawn:\n * - Simple Icons (https://simple-icons.org), CC0 1.0 — the 24×24 glyphs.\n * - Bootstrap Icons (https://icons.getbootstrap.com), MIT — the 16×16\n * glyphs, used only for LinkedIn, Slack, Microsoft and Amazon, which\n * Simple Icons removed at the trademark holders' request.\n * Each entry carries its own `viewBox` because the two sets are drawn on\n * different grids; the button scales whichever it gets to the same box.\n *\n * `brand` is the provider's own colour, used when `color=\"brand\"`. The glyphs\n * themselves are monochrome and paint with `currentColor`, so the neutral\n * treatment needs no second copy of the artwork.\n *\n * The logos are trademarks of their owners. Several providers (Google and\n * Apple in particular) publish sign-in button guidelines covering colour,\n * clear space and wording; check them before shipping a production login.\n */\n\nexport type SocialProvider = keyof typeof SOCIAL_PROVIDERS;\n\nexport const SOCIAL_PROVIDERS = {\n \"google\": {\n label: \"Google\",\n // The system's blue token, not Google's own #4285F4. The two are close\n // enough that showing both in one product reads as a mistake, and the\n // `colorful` button is a BoardUI control, so it takes the BoardUI blue —\n // and with it the primary button's exact gradient. The multi-colour G\n // used by `appearance=\"white\"` is untouched and stays Google's own.\n brand: \"var(--color-accent-500)\",\n viewBox: \"0 0 24 24\",\n path: \"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z\",\n },\n \"apple\": {\n label: \"Apple\",\n brand: \"#000000\",\n viewBox: \"0 0 24 24\",\n path: \"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701\",\n },\n \"github\": {\n label: \"GitHub\",\n brand: \"#181717\",\n viewBox: \"0 0 24 24\",\n path: \"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\",\n },\n \"gitlab\": {\n label: \"GitLab\",\n brand: \"#FC6D26\",\n viewBox: \"0 0 24 24\",\n path: \"m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z\",\n },\n \"microsoft\": {\n label: \"Microsoft\",\n brand: \"#5E5E5E\",\n viewBox: \"0 0 16 16\",\n path: \"M7.462 0H0v7.19h7.462zM16 0H8.538v7.19H16zM7.462 8.211H0V16h7.462zm8.538 0H8.538V16H16z\",\n },\n \"x\": {\n label: \"X\",\n brand: \"#000000\",\n viewBox: \"0 0 24 24\",\n path: \"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z\",\n },\n \"facebook\": {\n label: \"Facebook\",\n brand: \"#0866FF\",\n viewBox: \"0 0 24 24\",\n path: \"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z\",\n },\n \"linkedin\": {\n label: \"LinkedIn\",\n brand: \"#0A66C2\",\n viewBox: \"0 0 16 16\",\n path: \"M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z\",\n },\n \"discord\": {\n label: \"Discord\",\n brand: \"#5865F2\",\n viewBox: \"0 0 24 24\",\n path: \"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z\",\n },\n \"slack\": {\n label: \"Slack\",\n brand: \"#4A154B\",\n viewBox: \"0 0 16 16\",\n path: \"M3.362 10.11c0 .926-.756 1.681-1.681 1.681S0 11.036 0 10.111.756 8.43 1.68 8.43h1.682zm.846 0c0-.924.756-1.68 1.681-1.68s1.681.756 1.681 1.68v4.21c0 .924-.756 1.68-1.68 1.68a1.685 1.685 0 0 1-1.682-1.68zM5.89 3.362c-.926 0-1.682-.756-1.682-1.681S4.964 0 5.89 0s1.68.756 1.68 1.68v1.682zm0 .846c.924 0 1.68.756 1.68 1.681S6.814 7.57 5.89 7.57H1.68C.757 7.57 0 6.814 0 5.89c0-.926.756-1.682 1.68-1.682zm6.749 1.682c0-.926.755-1.682 1.68-1.682S16 4.964 16 5.889s-.756 1.681-1.68 1.681h-1.681zm-.848 0c0 .924-.755 1.68-1.68 1.68A1.685 1.685 0 0 1 8.43 5.89V1.68C8.43.757 9.186 0 10.11 0c.926 0 1.681.756 1.681 1.68zm-1.681 6.748c.926 0 1.682.756 1.682 1.681S11.036 16 10.11 16s-1.681-.756-1.681-1.68v-1.682h1.68zm0-.847c-.924 0-1.68-.755-1.68-1.68s.756-1.681 1.68-1.681h4.21c.924 0 1.68.756 1.68 1.68 0 .926-.756 1.681-1.68 1.681z\",\n },\n \"figma\": {\n label: \"Figma\",\n brand: \"#F24E1E\",\n viewBox: \"0 0 24 24\",\n path: \"M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z\",\n },\n \"notion\": {\n label: \"Notion\",\n brand: \"#000000\",\n viewBox: \"0 0 24 24\",\n path: \"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z\",\n },\n \"dropbox\": {\n label: \"Dropbox\",\n brand: \"#0061FF\",\n viewBox: \"0 0 24 24\",\n path: \"M6 1.807L0 5.629l6 3.822 6.001-3.822L6 1.807zM18 1.807l-6 3.822 6 3.822 6-3.822-6-3.822zM0 13.274l6 3.822 6.001-3.822L6 9.452l-6 3.822zM18 9.452l-6 3.822 6 3.822 6-3.822-6-3.822zM6 18.371l6.001 3.822 6-3.822-6-3.822L6 18.371z\",\n },\n \"spotify\": {\n label: \"Spotify\",\n brand: \"#1ED760\",\n viewBox: \"0 0 24 24\",\n path: \"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z\",\n },\n \"twitch\": {\n label: \"Twitch\",\n brand: \"#9146FF\",\n viewBox: \"0 0 24 24\",\n path: \"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\",\n },\n \"reddit\": {\n label: \"Reddit\",\n brand: \"#FF4500\",\n viewBox: \"0 0 24 24\",\n path: \"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z\",\n },\n \"tiktok\": {\n label: \"TikTok\",\n brand: \"#000000\",\n viewBox: \"0 0 24 24\",\n path: \"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z\",\n },\n \"instagram\": {\n label: \"Instagram\",\n brand: \"#FF0069\",\n viewBox: \"0 0 24 24\",\n path: \"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077\",\n },\n \"telegram\": {\n label: \"Telegram\",\n brand: \"#26A5E4\",\n viewBox: \"0 0 24 24\",\n path: \"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z\",\n },\n \"whatsapp\": {\n label: \"WhatsApp\",\n brand: \"#25D366\",\n viewBox: \"0 0 24 24\",\n path: \"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z\",\n },\n \"amazon\": {\n label: \"Amazon\",\n brand: \"#FF9900\",\n viewBox: \"0 0 16 16\",\n path: \"M10.813 11.968c.157.083.36.074.5-.05l.005.005a90 90 0 0 1 1.623-1.405c.173-.143.143-.372.006-.563l-.125-.17c-.345-.465-.673-.906-.673-1.791v-3.3l.001-.335c.008-1.265.014-2.421-.933-3.305C10.404.274 9.06 0 8.03 0 6.017 0 3.77.75 3.296 3.24c-.047.264.143.404.316.443l2.054.22c.19-.009.33-.196.366-.387.176-.857.896-1.271 1.703-1.271.435 0 .929.16 1.188.55.264.39.26.91.257 1.376v.432q-.3.033-.621.065c-1.113.114-2.397.246-3.36.67C3.873 5.91 2.94 7.08 2.94 8.798c0 2.2 1.387 3.298 3.168 3.298 1.506 0 2.328-.354 3.489-1.54l.167.246c.274.405.456.675 1.047 1.166ZM6.03 8.431C6.03 6.627 7.647 6.3 9.177 6.3v.57c.001.776.002 1.434-.396 2.133-.336.595-.87.961-1.465.961-.812 0-1.286-.619-1.286-1.533M.435 12.174c2.629 1.603 6.698 4.084 13.183.997.28-.116.475.078.199.431C13.538 13.96 11.312 16 7.57 16 3.832 16 .968 13.446.094 12.386c-.24-.275.036-.4.199-.299z M13.828 11.943c.567-.07 1.468-.027 1.645.204.135.176-.004.966-.233 1.533-.23.563-.572.961-.762 1.115s-.333.094-.23-.137c.105-.23.684-1.663.455-1.963-.213-.278-1.177-.177-1.625-.13l-.09.009q-.142.013-.233.024c-.193.021-.245.027-.274-.032-.074-.209.779-.556 1.347-.623\",\n },\n \"bitbucket\": {\n label: \"Bitbucket\",\n brand: \"#0052CC\",\n viewBox: \"0 0 24 24\",\n path: \"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z\",\n },\n \"auth0\": {\n label: \"Auth0\",\n brand: \"#EB5424\",\n viewBox: \"0 0 24 24\",\n path: \"M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z\",\n },\n \"okta\": {\n label: \"Okta\",\n brand: \"#007DC1\",\n viewBox: \"0 0 24 24\",\n path: \"M12 0C5.389 0 0 5.35 0 12s5.35 12 12 12 12-5.35 12-12S18.611 0 12 0zm0 18c-3.325 0-6-2.675-6-6s2.675-6 6-6 6 2.675 6 6-2.675 6-6 6z\",\n },\n} as const;\n",
+ "type": "registry:component",
+ "target": "components/base/social-button/social-providers.ts"
+ }
+ ],
+ "assets": [
+ {
+ "url": "/carousel/floral.webp",
+ "target": "public/carousel/floral.webp"
+ },
+ {
+ "url": "/carousel/kitchen.webp",
+ "target": "public/carousel/kitchen.webp"
+ },
+ {
+ "url": "/carousel/seafood.webp",
+ "target": "public/carousel/seafood.webp"
+ },
+ {
+ "url": "/carousel/shark-collage.webp",
+ "target": "public/carousel/shark-collage.webp"
+ },
+ {
+ "url": "/carousel/space-squid.webp",
+ "target": "public/carousel/space-squid.webp"
+ },
+ {
+ "url": "/carousel/sunrise.webp",
+ "target": "public/carousel/sunrise.webp"
+ },
+ {
+ "url": "/carousel/vending-machine.webp",
+ "target": "public/carousel/vending-machine.webp"
+ }
+ ],
+ "meta": {
+ "docsUrl": "https://www.boardui.com/components/auth-card",
+ "example": "import { AuthCard } from \"@/components/application/auth/auth-card\";\n\nexport function Example() {\n return (\n <AuthCard\n mode=\"signin\"\n layout=\"stacked\"\n providers={[\"google\", \"apple\", \"github\"]}\n onSubmit={(data) => signIn(\"credentials\", Object.fromEntries(data))}\n onProvider={(provider) => signIn(provider)}\n />\n );\n}",
+ "snippets": [
+ {
+ "label": "layout",
+ "code": "{/* Stacked: full-width buttons with labels, under the form */}\n<AuthCard layout=\"stacked\" providers={[\"google\", \"apple\", \"github\"]} />\n\n{/* Inline: icon-only squares, under the form */}\n<AuthCard\n layout=\"inline\"\n providers={[\"google\", \"apple\", \"github\", \"x\", \"figma\", \"slack\"]}\n/>\n\n{/* Grid: icon-only buttons across equal columns */}\n<AuthCard layout=\"grid\" providers={[\"apple\", \"google\", \"figma\"]} />"
+ },
+ {
+ "label": "split",
+ "code": "import { AuthMediaCarousel } from \"@/components/application/auth/auth-media-carousel\";\n\n<AuthCard\n mode=\"signup\"\n layout=\"grid\"\n centered\n confirmPassword\n providers={[\"apple\", \"google\", \"figma\"]}\n footnote=\"By clicking continue, you agree to our Terms of Service and Privacy Policy.\"\n media={\n <AuthMediaCarousel\n slides={[\n { src: \"/art/one.webp\" },\n { src: \"/art/two.webp\" },\n { src: \"/art/three.webp\" },\n { src: \"/art/four.webp\" },\n ]}\n />\n }\n/>\n\n{/* Any node works — a single image, a video, a gradient */}\n<AuthCard media={<img src=\"/art/one.webp\" alt=\"\" className=\"size-full object-cover\" />} />"
+ },
+ {
+ "label": "logo",
+ "code": "{/* logo takes a node, so it is your mark, not a src the card owns */}\n<AuthCard\n centered\n logo={<ProLogoMark scale={40 / 56} animated />}\n title=\"Sign in to BoardUI Pro\"\n description=\"Your license unlocks every Pro component and template.\"\n/>\n\n{/* Left-aligned when centered is off */}\n<AuthCard mode=\"signup\" logo={<AppLogo className=\"size-10\" />} />"
+ },
+ {
+ "label": "verify",
+ "code": "<AuthCard\n mode=\"verify\"\n email=\"[email protected]\"\n codeLength={6}\n onComplete={(code) => verifyCode(code)}\n onResend={() => resend()}\n/>\n\n{/* Four boxes instead of six */}\n<AuthCard mode=\"verify\" email={email} codeLength={4} />"
+ },
+ {
+ "label": "mode",
+ "code": "<AuthCard mode=\"signin\" /> {/* Welcome back, remember me, forgot password */}\n<AuthCard mode=\"signup\" /> {/* Adds a name field and the terms line */}"
+ },
+ {
+ "label": "provider",
+ "code": "{/* Any of the 24 social button brands, in any order */}\n<AuthCard providers={[\"google\", \"microsoft\", \"okta\"]} />\n\n{/* Email only: pass an empty array and the divider disappears with it */}\n<AuthCard providers={[]} />"
+ },
+ {
+ "label": "wiring",
+ "code": "<AuthCard\n mode=\"signup\"\n // The form is uncontrolled; you get its FormData on submit.\n onSubmit={(data) => {\n const email = data.get(\"email\");\n const password = data.get(\"password\");\n // ...hand these to your auth library\n }}\n onProvider={(provider) => signIn(provider)}\n switchHref=\"/sign-in\"\n/>"
+ }
+ ]
+ }
+}
diff --git a/docs/reference-sources.json b/docs/reference-sources.json
index 967fc620c..8a45ca3a4 100644
--- a/docs/reference-sources.json
+++ b/docs/reference-sources.json
@@ -320,9 +320,12 @@
"snapshot": "docs/reference-snapshots/upstream/boardui-input.json",
"checked_on": "2026-09-09",
"sha256": "ac1e66c9ed15f9db2750dd528bc894c856ac84e79f72ff4acb96f14b1ab9c249",
- "role": "输入框焦点口径:2px inset ring,悬停 border-button-hover、聚焦 border-button-active,无外发光;Peach 输入面板按用户的决定保留白底。",
+ "role": "输入框焦点口径:field 基类是 ring-2 ring-inset ring-transparent,悬停 border-button-hover、聚焦 border-button-active 且聚焦压过悬停,无外发光,transition 明确列了 box-shadow;Peach 输入面板按用户的决定保留白底与静止那条边,环画在边的内侧。",
"consumers": [
"web/css/22-followmanage.css",
+ "web/css/01-base.css",
+ "web/css/02-topbar.css",
+ "web/css/15-detail.css",
"web/board.css",
"tests/test_web_ui.py"
]
@@ -337,7 +340,24 @@
"role": "border-button-active 的取值出处(浅色 neutral-400、深色 neutral-600);Peach 只取该档,不搬全量变量表。",
"consumers": [
"web/board.css",
- "web/css/22-followmanage.css"
+ "web/css/22-followmanage.css",
+ "web/css/01-base.css",
+ "web/css/02-topbar.css",
+ "web/css/15-detail.css"
+ ]
+ },
+ {
+ "id": "boardui-auth-card",
+ "name": "BoardUI Auth Card 组件源",
+ "url": "https://www.boardui.com/r/auth-card.json",
+ "snapshot": "docs/reference-snapshots/upstream/boardui-auth-card.json",
+ "checked_on": "2026-09-09",
+ "sha256": "cf4159a700769519867f150acbfafd6f3345b9990fd5b6b76c7609407f413cf2",
+ "role": "同底色下的嵌套卡层次:一条发丝边加 shadow-xs(0 1px 2px 0 rgb(0 0 0 / 0.18)),shadow-sm 与它同批取自上游的主题 token;xs 是在 auth-card 的 24px 大圆角上成立的,Peach 这两处是 10px 小圆角,贴地细影只剩一条硬边读成环,所以改用 sm 的两档扩散,圆角沿用本站 token。",
+ "consumers": [
+ "web/board.css",
+ "web/css/22-followmanage.css",
+ "tests/test_web_ui.py"
]
}
]
diff --git a/frontend/src/board-controls.ts b/frontend/src/board-controls.ts
index 63422177b..54f84c958 100644
--- a/frontend/src/board-controls.ts
+++ b/frontend/src/board-controls.ts
@@ -63,7 +63,7 @@ export function wireBoardTabs(root:ParentNode){
面板切换那几组是 `role=tablist`:滑块换成按 `aria-selected` 找当前项,ARIA 仍然是 Tabs
控制 tabpanel,不为了长得像分段控件就把它写成 radiogroup。 */
export function wireBoardSegments(root:ParentNode) {
- const selector='.iconswitch,.insightswitch,.insighttabs';
+ const selector='.iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch';
const groups=[...root.querySelectorAll<HTMLElement>(selector)];
if(root instanceof HTMLElement&&root.matches(selector))groups.push(root);
groups.forEach(group=>{
diff --git a/src/peach/cli.py b/src/peach/cli.py
index 8ba1e5227..3fadc8b6c 100644
--- a/src/peach/cli.py
+++ b/src/peach/cli.py
@@ -118,6 +118,9 @@ def _serve_token(args: argparse.Namespace) -> str:
f"拒绝启动:--no-auth 只对回环地址成立,而 --host {args.host} 不是。\n"
f"在局域网地址上关掉登录,等于把整个馆藏和写接口交给同网段的任何设备。"
)
+ # 直接写而不是 setdefault:走到这里就是这次启动确实要开调试口径,
+ # 继承来的旧值不该把它顶掉,反过来也不该由它决定别的进程算不算调试。
+ os.environ["PEACH_DEV"] = "1"
return ""
secrets_dir = settings_file.active().directory("secrets")
token = auth.resolve_token(args.token, secrets_dir)
diff --git a/src/peach/routes_configuration.py b/src/peach/routes_configuration.py
index d00855949..03935ffde 100644
--- a/src/peach/routes_configuration.py
+++ b/src/peach/routes_configuration.py
@@ -36,6 +36,16 @@ def managed_configuration() -> bool:
return distribution.standalone() or os.environ.get("PEACH_TRAY_MANAGED") == "1"
+def dev_environment() -> bool:
+ """调试用的裸 serve:`--no-auth` 启动时由 CLI 置上 `PEACH_DEV=1`。
+
+ 未过初始配置、也没有托盘接管时,配置页不该再要求「先在托管主机上打开」——
+ 调试期间的这台本身就是主机。这个标记只免掉「托盘接管且已配置」那两条前提,
+ 本机调用方那一条仍要成立:环境变量会被子进程继承,光凭它放行等于把配置写
+ 接口交给能连上这个端口的任何设备。保存后的重载由重启这份服务的调用方负责。"""
+ return os.environ.get("PEACH_DEV") == "1"
+
+
def revision(config) -> str:
return hashlib.sha256(config.path.read_bytes()).hexdigest()
@@ -73,7 +83,9 @@ def local_only(request: Request) -> None:
def configurable(request: Request) -> bool:
- """配置只向已配置的托盘服务的本机调用方开放。"""
+ """配置只向已配置的托盘服务的本机调用方开放;调试 serve 免掉托管那两条。"""
+ if dev_environment():
+ return local_client(request)
return (managed_configuration() and bool(request.app.state.settings.configured)
and local_client(request))
diff --git a/tests/test_onboarding.py b/tests/test_onboarding.py
index 00d03f55a..02aaebda0 100644
--- a/tests/test_onboarding.py
+++ b/tests/test_onboarding.py
@@ -809,6 +809,15 @@ class StandaloneConfigurationTests(_Case):
self.assertFalse(client.get("/api/configuration", headers=headers).json()["editable"])
self.assertEqual(client.post("/api/configuration", headers=headers, json=body).status_code, 409)
+ def test_a_dev_serve_counts_as_configurable_without_a_tray(self):
+ """裸 serve 调试(--no-auth 置 PEACH_DEV=1)免掉「先去托管主机」的前提。"""
+ with mock.patch.dict(os.environ, {"PEACH_DEV": "1", "PEACH_TRAY_MANAGED": ""}), \
+ mock.patch("peach.distribution.standalone", return_value=False), \
+ self.client() as client:
+ self.assertTrue(client.get("/healthz").json()["configurable"])
+ headers = {"X-Token": "test-token"}
+ self.assertEqual(client.get("/api/configuration", headers=headers).status_code, 200)
+
def test_the_configuration_page_is_a_screen_of_the_app_and_its_data_a_json_contract(self):
"""`/configuration` 是主站外壳里的一屏,表单由 island 画;真相只在 `/api/configuration`。"""
from peach.routes_configuration import RELOAD_NAME
diff --git a/tests/test_reference_updates.py b/tests/test_reference_updates.py
index 15c02e828..04f3fcf9e 100644
--- a/tests/test_reference_updates.py
+++ b/tests/test_reference_updates.py
@@ -43,6 +43,7 @@ class ReferenceUpdateTests(unittest.TestCase):
"vercel-geist-switch-segmented",
"boardui-input",
"boardui-theme",
+ "boardui-auth-card",
"youtube-stats-buffer-20260829"},
)
self.assertNotEqual(
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 8953e68d1..879dd273f 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -395,29 +395,48 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn('.fcredfield input{height:32px;width:100%;min-width:0;', css)
def test_field_focus_rings_are_neutral_and_theme_aware(self):
- """输入框的静止边、悬停边与聚焦环都是当前主题的中性透明色,不是蓝的。
+ """输入框静止 1px 中性边、悬停与聚焦同一枚 2px inset ring 换灰档(BoardUI Input)。
- 2026-09-05 实测 vercel.com 后台:输入框静止 1px `--ds-gray-alpha-400`、悬停
- alpha-500、聚焦 1px alpha-600 再套一圈 4px 的 16% 黑,暗色那档换成 24% 白;
- 整站没有一处焦点或选中用到蓝。同一组 token 写成明暗两档后,全站带输入语义的
- 控件只有这一份配方——否则浅色主题下会留下一圈只在深底上成立的高饱和蓝。
+ 2026-09-05 实测 vercel.com 后台的 4px 中性辉光已被 BoardUI Input
+ (2026-09-09 取证登记 boardui-input)接替:`ring-2 ring-inset` 在
+ border-button-hover/-active 两档间换档,聚焦压过悬停。环画在静止那条边的
+ 内侧,三态边框同色——聚焦时把边改成透明只会露出控件自己的底,那正是环外
+ 那条亮边的来源。上游把 box-shadow 写进了 transition,环是渐出来的。
"""
for palette in (":root{", '@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){',
':root[data-theme="dark"]{'):
self.assertPageContains(palette)
self.assertPageContains("--field-ring:rgba(0,0,0,.08);--field-ring-hover:rgba(0,0,0,.21);")
- self.assertPageContains("--field-ring-focus:rgba(0,0,0,.34);--field-glow:rgba(0,0,0,.16);")
+ self.assertPageContains("--field-ring-focus:rgba(0,0,0,.34);")
self.assertPageContains("--field-ring:rgba(255,255,255,.14);--field-ring-hover:rgba(255,255,255,.24);")
- self.assertPageContains("--field-ring-focus:rgba(255,255,255,.51);--field-glow:rgba(255,255,255,.24);")
- for selector in ('.geist-search input[type="search"]', ".geist-input", ".preference textarea"):
- self.assertPageContains(selector + ":hover{border-color:var(--field-ring-hover)}")
- self.assertPageContains(".search:focus-within{border-color:var(--field-ring-focus);"
- "box-shadow:0 0 0 4px var(--field-glow)}")
- self.assertPageContains('.gselectfield[aria-expanded="true"]{border-color:var(--field-ring-focus);')
+ self.assertPageContains("--field-ring-focus:rgba(255,255,255,.51);")
css = stylesheet_source()
- self.assertNotIn("color-mix(in srgb,var(--tungsten) 72%,transparent)", css,
- "输入框的聚焦环不用蓝,走 --field-ring-focus")
+ for stale in ("border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)",
+ ":hover{border-color:var(--field-ring-focus)",
+ "--field-glow"):
+ self.assertNotIn(stale, css, f"焦点配方已接替:{stale}")
+ self.assertNotIn("border-color:transparent;box-shadow:inset", css,
+ "环画在边的内侧,聚焦时不清空那条边")
+ for rule in ('.geist-search input[type="search"]:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}',
+ '.geist-search input[type="search"]:focus{outline:0;'
+ 'box-shadow:inset 0 0 0 2px var(--color-border-button-active)}',
+ '.geist-input:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}',
+ '.geist-input:focus{outline:0;box-shadow:inset 0 0 0 2px var(--color-border-button-active)}',
+ '.gselectfield[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--color-border-button-active)}',
+ '.search:focus-within{box-shadow:inset 0 0 0 2px var(--color-border-button-active)}',
+ '.preference textarea:focus{box-shadow:inset 0 0 0 2px var(--color-border-button-active);outline:0}',
+ '.fcredfield input:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}',
+ '.fcredfield input:focus-visible{outline:0;'
+ 'box-shadow:inset 0 0 0 2px var(--color-border-button-active)}'):
+ self.assertPageContains(rule)
+ # 换档要渐出来:上游 field 的 transition 明确列了 box-shadow,只写
+ # border-color 的话环是硬切的。带环的那几个控件都得把它列进去。
+ for transition in ('line-height:20px;transition:box-shadow .12s ease}',
+ 'font:inherit;font-size:var(--fs-md);line-height:20px;transition:box-shadow .12s ease}',
+ 'transition:border-color .12s ease,background-color .12s ease,box-shadow .12s ease}',
+ 'font-family:inherit;transition:box-shadow .12s ease}'):
+ self.assertPageContains(transition)
def test_fieldsets_put_the_bright_face_on_the_content_and_the_bar_below_it(self):
"""操作条以中性透明灰叠在框体上,与骨架使用同一灰阶。"""
@@ -1509,8 +1528,8 @@ class WebUiSourceTests(unittest.TestCase):
def test_browser_chrome_focus_and_mobile_inputs_follow_the_ui_checklist(self):
self.assertPageContains('<meta name="theme-color" content="#FFFFFF"')
self.assertPageContains('<meta name="theme-color" content="#080A0D"')
- # 聚焦环是中性的:1px 提到 alpha-600 的边加一圈 4px 辉光,仍是「看得见的焦点」。
- self.assertPageContains('.search:focus-within{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}')
+ # 聚焦环按 BoardUI Input:静止那条边内侧的 2px inset 灰环,仍是「看得见的焦点」。
+ self.assertPageContains('.search:focus-within{box-shadow:inset 0 0 0 2px var(--color-border-button-active)}')
self.assertPageContains('@media (max-width:760px){input,textarea,select{font-size:16px!important}}')
self.assertPageContains('button,a,input,textarea,select,summary{touch-action:manipulation}')
@@ -1528,9 +1547,9 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('<div class="geist-search" data-search-input>')
self.assertPageContains(
"""<span class="geist-search-prefix" data-search-prefix>${icon('search')}</span>""")
- # 焦点环与顶部搜索框同一个配方,中性不带色相。
+ # 焦点环与顶部搜索框同一个配方:BoardUI Input 的 2px inset 灰环。
self.assertCode('.geist-search input[type="search"]:focus{outline:0;'
- 'border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}')
+ 'box-shadow:inset 0 0 0 2px var(--color-border-button-active)}')
# 忙态换的是前缀位,输入框自己不动;hook 跟着组件走,不留关注页专属的名字。
self.assertPageContains("form.querySelector('[data-search-prefix]')")
self.assertPageContains("if(prefix)prefix.innerHTML=spinnerHtml('查找中');")
@@ -5630,7 +5649,8 @@ class WebUiSourceTests(unittest.TestCase):
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
controls = (Path(__file__).resolve().parents[1] / "frontend/src/board-controls.ts").read_text(encoding="utf-8")
self.assertIn("const selector='.managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)';", controls)
- self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs';", controls)
+ self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs,"
+ ".follow-workspace-switch';", controls)
self.assertIn("export function wireGrowingCharts(root:ParentNode) {", controls)
self.assertIn("wireBoardSegments(root);wireBoardTabs(root);wireGrowingCharts(root)", controls)
self.assertIn(".insightswitch[data-board-segments]{position:relative;display:inline-flex;align-items:center;gap:2px;padding:4px;"
@@ -7815,9 +7835,11 @@ class WebUiSourceTests(unittest.TestCase):
"width:auto;max-width:100%;min-height:0;margin:0;padding:4px;border:0;"
"border-radius:10px;background:var(--color-background-tertiary-default);", board)
self.assertIn("min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;", board)
- self.assertIn(":is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs)>.board-segment-thumb",
+ self.assertIn(":is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,"
+ ".follow-workspace-switch)>.board-segment-thumb",
board)
- self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs';", controls)
+ self.assertIn("const selector='.iconswitch,.insightswitch,.insighttabs,"
+ ".follow-workspace-switch';", controls)
self.assertIn("'label:has(input:checked),button[aria-selected=true]'", controls)
self.assertIn("mutation.observe(group,{subtree:true,attributes:true,attributeFilter:['aria-selected']})",
controls)
diff --git a/web/app.js b/web/app.js
index d222c96de..24eeec8d0 100644
--- a/web/app.js
+++ b/web/app.js
@@ -570,14 +570,18 @@ function openSettings(open=true){
const panel=$('#settingsPanel');
if(open){
settingsTransition++;panel.classList.remove('closing');
- settingsReturnFocus=settingsReturnFocus||document.activeElement;panel.hidden=false;document.body.classList.add('settings-open');syncSettingsPanel();void syncMachineSettings();
+ settingsReturnFocus=settingsReturnFocus||document.activeElement;panel.hidden=false;
+ document.documentElement.style.overflow='hidden';
+ document.body.classList.add('settings-open');syncSettingsPanel();void syncMachineSettings();
queueMicrotask(()=>$('#settingsClose').focus());return
}
if(panel.hidden||panel.classList.contains('closing'))return;
const transition=++settingsTransition;panel.classList.add('closing');
const finish=()=>{
if(transition!==settingsTransition||!panel.classList.contains('closing'))return;
- panel.hidden=true;panel.classList.remove('closing');document.body.classList.remove('settings-open');
+ panel.hidden=true;panel.classList.remove('closing');
+ document.documentElement.style.overflow='';
+ document.body.classList.remove('settings-open');
if(settingsReturnFocus&&document.contains(settingsReturnFocus))settingsReturnFocus.focus();
settingsReturnFocus=null;
};
diff --git a/web/board.css b/web/board.css
index 54a27c01d..737af5f3c 100644
--- a/web/board.css
+++ b/web/board.css
@@ -683,10 +683,13 @@ body :is(.sbadge.ok,.board-chip.success){background:color-mix(in srgb,#84cc16 16
@media(max-width:760px){.followmanage .fsource.frow{grid-template-columns:20px minmax(0,1fr) auto}.board-follow-list .fprovider{grid-column:2;grid-row:2}.board-follow-list .fchecked{grid-column:2;grid-row:3}}
@container(max-width:520px){.followmanage .fauthor .fsource.frow{grid-template-columns:20px minmax(0,1fr) auto}.followmanage .fauthor .fprovider{grid-column:2;grid-row:2}.followmanage .fauthor .fchecked{grid-column:2;grid-row:3}}
@media(prefers-reduced-motion:reduce){.board-tooltip,.board-carousel-pagination .swiper-pagination-bullet{transition:none}}
-:root{--board-chart-0:#94e000;--board-chart-1:#3493ff;--board-chart-2:#bc74f9;--board-chart-3:#f657bd;--board-chart-4:#ffc600;--board-chart-5:#2dcbb8}
+:root{--shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.06),0 1px 3px 0 rgb(0 0 0 / 0.10);--board-chart-0:#94e000;--board-chart-1:#3493ff;--board-chart-2:#bc74f9;--board-chart-3:#f657bd;--board-chart-4:#ffc600;--board-chart-5:#2dcbb8}
.fauthorhead{list-style:none}.fauthorhead::-webkit-details-marker{display:none}.board-author-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}.board-author-actions .board-author-toggle{margin:0}.followmanage details.fauthor>.fcollapse>.fcollapsebody{padding:0}.followmanage details.fauthor:not([open]) .fauthorhead{margin-bottom:0}
.followmanage .fsource.selected{background:var(--color-background-primary-default);box-shadow:none;border-color:var(--color-border-focus-ring)}.followmanage .fsource.selected.disabled{opacity:1}
-.followmanage .fsource:has([data-follow-select]):not(tr){border:1px solid var(--color-border-button-default);border-radius:10px;padding:12px 20px 12px 16px;margin:8px 0;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease}
+/* 同底色上的嵌套卡(作者卡里的来源行)按 10px 圆角取 shadow-sm:
+ BoardUI 的 shadow-xs 出自 24px 大圆角的 auth-card(2026-09-09 取证登记
+ boardui-auth-card),贴地细影在小圆角上只剩一条硬边读成环,sm 多一档 3px 扩散。 */
+.followmanage .fsource:has([data-follow-select]):not(tr){border:1px solid var(--color-border-button-default);border-radius:10px;padding:12px 20px 12px 16px;margin:8px 0;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease;box-shadow:var(--shadow-sm)}
.followmanage .fsource:has([data-follow-select]):hover{background:var(--color-background-primary-hover)}
.followmanage .fsec:has(.board-follow-selection){padding:0;border-radius:18px;background:var(--ground);overflow:visible}.followmanage .fsec>.board-follow-selection{padding:4px 24px 12px}
.followmanage .fsourceactions{padding:2px;overflow:visible}
@@ -765,8 +768,8 @@ html.board-high-contrast :is(.selectiondock,.reviewcontrols.is-stuck,.reviewgrou
.insightswitch[data-board-segments] label>span{display:flex;align-items:center;min-height:28px;height:auto;padding:4px 10px;border-radius:6px;background:transparent;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body);transition:color .2s ease}
.insightswitch[data-board-segments] label:hover>span{color:var(--color-text-primary)}
.insightswitch[data-board-segments] label:has(input:checked)>span{background:transparent;box-shadow:none;color:var(--color-text-primary);font:var(--board-body-medium)}
-:root[data-theme="dark"] :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs)>.board-segment-thumb{background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}
-@media(prefers-color-scheme:dark){:root:not([data-theme]) :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs)>.board-segment-thumb{background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}}
+:root[data-theme="dark"] :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,.follow-workspace-switch)>.board-segment-thumb{background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}
+@media(prefers-color-scheme:dark){:root:not([data-theme]) :is(.iconswitch:not(.themeswitch),.insightswitch,.insighttabs,.follow-workspace-switch)>.board-segment-thumb{background:color-mix(in srgb,var(--color-text-primary) 14%,var(--color-background-tertiary-default));box-shadow:0 1px 2px #00000040}}
/* 排序行里的版式切换跟同一行的排序键、换批键一样高(30px):轨道 3px 内边距、选项 24px、图标 16px。
筛选行与排序行上下留白都是 8px,排序滚动容器不再自己多垫 4px。 */
.count .sorts .iconswitch[data-board-segments],.entitycollectionhead .sorts .iconswitch[data-board-segments]{padding:3px;border-radius:8px;gap:2px}
@@ -974,10 +977,12 @@ body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
/* 关注工作区:Board Tabs、读数与 Table 的层级,业务分区保留各自表单。 */
.followmanage .fmanageoverview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
-.follow-workspace-switch{display:inline-flex;gap:3px;padding:4px;background:var(--ground);border-radius:var(--control-radius);width:max-content;max-width:100%;overflow-x:auto}
-.follow-workspace-switch button{border:0;border-radius:var(--control-radius);padding:8px 14px;background:transparent;color:var(--muted);font:var(--board-body-medium);white-space:nowrap;cursor:pointer}
-.follow-workspace-switch button:hover{color:var(--ink)}
-.follow-workspace-switch button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 12%,transparent)}
+/* 关注管理工作区切换进分段控件一族:几何照 .insighttabs(4px 内边距、10px 外圆角、
+ tertiary 灰轨道),滑块与色变由 wireBoardSegments 的共享驱动负责,200ms 一条缓动。 */
+.follow-workspace-switch{position:relative;display:inline-flex;align-items:center;gap:2px;width:max-content;max-width:100%;min-height:0;padding:4px;border:0;border-radius:10px;background:var(--color-background-tertiary-default);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
+.follow-workspace-switch button{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;gap:6px;height:auto;min-height:28px;margin:0;padding:4px 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:color .2s cubic-bezier(.4,0,.2,1)}
+.follow-workspace-switch button:hover{background:none;color:var(--color-text-primary)}
+.follow-workspace-switch button[aria-selected=true]{background:none;color:var(--color-text-primary);box-shadow:none}
.cleanup-workspace-switch{display:flex;gap:4px;overflow-x:auto;margin:0 0 20px;padding:4px;background:var(--ground);border-radius:var(--control-radius)}
.cleanup-workspace-switch a{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:var(--control-radius);color:var(--muted);font:var(--board-body-medium);text-decoration:none;white-space:nowrap}
.cleanup-workspace-switch a:hover{background:var(--hover);color:var(--ink)}
diff --git a/web/css/01-base.css b/web/css/01-base.css
index e574a024c..28b88aeb0 100644
--- a/web/css/01-base.css
+++ b/web/css/01-base.css
@@ -69,11 +69,12 @@
--layer-miniplayer:900; --layer-dialog:1000; --layer-popover:1100; --layer-tooltip:1200;
--frost-panel:rgba(250,250,250,.92); --frost-light:rgba(255,255,255,.86);
--overlay-5:rgba(0,0,0,.05);--border-10:rgba(0,0,0,.10);--border-15:rgba(0,0,0,.15);
- /* 输入框那一组边与环。2026-09-05 实测 vercel.com 的输入框:静止 1px 的
- gray-alpha-400、悬停 alpha-500、聚焦 1px alpha-600 外加 4px 的 16% 黑,
- 暗色那档换成 24% 白。焦点不是蓝的——蓝在这套里只给链接和数据。 */
+ /* 输入框静止那条边。2026-09-05 实测 vercel.com 的输入框:静止 1px 的
+ gray-alpha-400、悬停 alpha-500。焦点不是蓝的——蓝在这套里只给链接和数据。
+ 悬停与聚焦的环另走 BoardUI Input 的 border-button 两档,见 .geist-input;
+ --field-ring-focus 留给 .pickrow 这类「选中的那一行」标边。 */
--field-ring:rgba(0,0,0,.08);--field-ring-hover:rgba(0,0,0,.21);
- --field-ring-focus:rgba(0,0,0,.34);--field-glow:rgba(0,0,0,.16);
+ --field-ring-focus:rgba(0,0,0,.34);
/* 字号只有这一套刻度。之前站内散着 22 种字号(9…48px),相邻两档差半像素,
既排不出层级也没法复核。收敛成 8 档,下限 12px:更小的灰字在 Vercel 的
design.md 里被明确列为要拒绝的生成式设计反射。新增字号前先证明现有 8 档都不合适。 */
@@ -88,7 +89,7 @@
--frost-panel:rgba(6,9,14,.94); --frost-light:rgba(14,18,24,.90);
--overlay-5:rgba(245,250,255,.05);--border-10:rgba(245,250,255,.10);--border-15:rgba(245,250,255,.15);
--field-ring:rgba(255,255,255,.14);--field-ring-hover:rgba(255,255,255,.24);
- --field-ring-focus:rgba(255,255,255,.51);--field-glow:rgba(255,255,255,.24);
+ --field-ring-focus:rgba(255,255,255,.51);
--page:#04060A;
--picked:var(--inset);
--rating:#E5B34A;
@@ -101,7 +102,7 @@
--frost-panel:rgba(6,9,14,.94); --frost-light:rgba(14,18,24,.90);
--overlay-5:rgba(245,250,255,.05);--border-10:rgba(245,250,255,.10);--border-15:rgba(245,250,255,.15);
--field-ring:rgba(255,255,255,.14);--field-ring-hover:rgba(255,255,255,.24);
- --field-ring-focus:rgba(255,255,255,.51);--field-glow:rgba(255,255,255,.24);
+ --field-ring-focus:rgba(255,255,255,.51);
--page:#04060A;
--picked:var(--inset);
--rating:#E5B34A;
@@ -163,13 +164,15 @@ button,a,input,textarea,select,summary{touch-action:manipulation}
.geist-search input[type="search"]{width:100%;min-width:0;height:38px;
box-sizing:border-box;border:1px solid var(--field-ring);border-radius:var(--control-radius);
background:var(--ground);color:var(--ink);padding:0 12px 0 38px;font-size:var(--fs-md);font-family:inherit;
- line-height:20px;transition:border-color .12s ease}
+ line-height:20px;transition:box-shadow .12s ease}
.geist-search input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.geist-search input[type="search"]::placeholder{color:var(--muted)}
-/* 点进去要立刻看得出焦点在这儿:1px 的边提到 alpha-600,外面再套一圈 4px 的中性辉光。 */
-.geist-search input[type="search"]:hover{border-color:var(--field-ring-hover)}
-.geist-search input[type="search"]:focus{outline:0;
- border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
+/* 悬停与聚焦是同一枚 2px inset ring 在两档灰之间换档,聚焦压过悬停(BoardUI Input
+ 的 `ring-2 ring-inset`,2026-09-09 取证登记 boardui-input)。环画在静止那条边的
+ 内侧,三态边框同色——把聚焦态的边改成透明只会露出控件自己的底,那正是环外那条
+ 亮边的来源。上游把 box-shadow 写进了 transition,环是渐变出来的,不是硬切。 */
+.geist-search input[type="search"]:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}
+.geist-search input[type="search"]:focus{outline:0;box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
.geist-search:focus-within .geist-search-prefix{color:var(--ink)}
/* 纯文本输入框:全站唯一一份。此前每处自己拼内边距,控件高度散在 34/40/43 三档,
而 <=760px 那条把输入框字号顶到 16 像素的防放大规则只抬没写死高度的那几个,
@@ -180,11 +183,10 @@ button,a,input,textarea,select,summary{touch-action:manipulation}
.geist-input{box-sizing:border-box;width:100%;min-width:0;height:var(--control-h);
border:1px solid var(--field-ring);border-radius:var(--control-radius);
background:var(--ground);color:var(--ink);padding:0 12px;
- font:inherit;font-size:var(--fs-md);line-height:20px;transition:border-color .12s ease}
+ font:inherit;font-size:var(--fs-md);line-height:20px;transition:box-shadow .12s ease}
.geist-input::placeholder{color:var(--muted)}
-.geist-input:hover{border-color:var(--field-ring-hover)}
-.geist-input:focus{outline:0;
- border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
+.geist-input:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}
+.geist-input:focus{outline:0;box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
/* 按钮分档只靠填充,边框一条不画:Geist 的四个变体 `border-width` 全是 0、字重全是 500。
次级那一档另挂一圈 `box-shadow:0 0 0 1px`(2026-09-07 复测 vercel.com/geist/button:次级
填 #FFFFFF、环 rgb(235,235,235);primary #171717、error、warning 三档 `box-shadow:none`;
@@ -329,7 +331,7 @@ body.settings-open>.ovtrack.page,body.photolight-open>.ovtrack.page{display:none
gap:8px;width:100%;min-width:0;height:var(--control-h);padding:0 10px 0 12px;
border:1px solid var(--field-ring);border-radius:var(--control-radius);
background:var(--ground);color:var(--ink);font:inherit;font-size:var(--fs-md);line-height:20px;
- text-align:left;cursor:pointer;transition:border-color .12s ease,background-color .12s ease}
+ text-align:left;cursor:pointer;transition:border-color .12s ease,background-color .12s ease,box-shadow .12s ease}
.gselectfield>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gselectmenu [data-select-content]{display:flex;align-items:center;gap:8px;min-width:0}
.gselectfield .gselectmark{vertical-align:-3px;margin-inline-end:8px}
@@ -337,8 +339,7 @@ body.settings-open>.ovtrack.page,body.photolight-open>.ovtrack.page{display:none
.gselectfield>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;color:var(--muted)}
.gselectfield:hover:not(:disabled){border-color:var(--field-ring-hover)}
/* 展开时按住焦点态:菜单开着而触发器看起来没被点中,读起来像两个控件。 */
-.gselectfield[aria-expanded="true"]{border-color:var(--field-ring-focus);
- box-shadow:0 0 0 4px var(--field-glow)}
+.gselectfield[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
.gselectfield:disabled{background:var(--surface);color:var(--muted);cursor:not-allowed}
.gselectfield:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}
.popmenu.gselectmenu button{display:flex;align-items:center;gap:8px;width:100%;min-height:var(--control-h);
diff --git a/web/css/02-topbar.css b/web/css/02-topbar.css
index 8c6a1d698..64786791e 100644
--- a/web/css/02-topbar.css
+++ b/web/css/02-topbar.css
@@ -16,8 +16,9 @@
.brand h1{font-family:Bahnschrift,"Segoe UI Variable Display","Microsoft YaHei UI","PingFang SC",sans-serif;font-weight:600;margin:0;font-size:var(--fs-xl);line-height:1;letter-spacing:.08em}
.brand .sub{font-size:var(--fs-xs);line-height:1;letter-spacing:.14em;color:var(--muted);padding-top:2px}
.search{flex:1;max-width:620px;margin:0 auto;display:flex;align-items:center;gap:8px;
- background:var(--surface);border:1px solid var(--line);border-radius:var(--pill-radius);padding:8px 16px;position:relative}
-.search:focus-within{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow)}
+ background:var(--surface);border:1px solid var(--line);border-radius:var(--pill-radius);padding:8px 16px;position:relative;
+ transition:box-shadow .12s ease}
+.search:focus-within{box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
.search input{flex:1;min-width:0;background:none;border:0;outline:none;font-size:var(--fs-lg)}
.search>svg{width:21px;height:21px;flex:none;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round}
/* 补全按种类分组,一次可能有七组,所以下拉栏自己滚:滚到底不把页面接着往下带,
diff --git a/web/css/15-detail.css b/web/css/15-detail.css
index 1abfb6dec..021e7270e 100644
--- a/web/css/15-detail.css
+++ b/web/css/15-detail.css
@@ -115,9 +115,9 @@
.preference{border:0;padding:0;margin:0 0 14px;background:transparent}.preference[hidden]{display:none}
.preference textarea{display:block;width:100%;min-height:62px;resize:vertical;padding:8px 9px;
color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:var(--control-radius);
- line-height:1.5;font-size:var(--fs-md)}
+ line-height:1.5;font-size:var(--fs-md);transition:border-color .12s ease,box-shadow .12s ease}
.preference textarea:hover{border-color:var(--field-ring-hover)}
-.preference textarea:focus{border-color:var(--field-ring-focus);box-shadow:0 0 0 4px var(--field-glow);outline:0}
+.preference textarea:focus{box-shadow:inset 0 0 0 2px var(--color-border-button-active);outline:0}
.preference-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:7px}
.preference-foot>span{margin-right:auto;color:var(--muted);font-size:var(--fs-xs)}.preference-foot>span:empty{display:none}
.savepreference{min-width:58px;padding-inline:12px}
diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.css
index 5d006e076..23c3eab4a 100644
--- a/web/css/22-followmanage.css
+++ b/web/css/22-followmanage.css
@@ -155,16 +155,10 @@
「全部来源」在白面上只剩一行字,升降序那枚只剩一个箭头浮在页面上。 */
.fbtn[data-srcfilter-toggle],.fbtn.fmanagedir{border:1px solid var(--field-ring);background:var(--ground);color:var(--ink-2)}
.fbtn[data-srcfilter-toggle]:hover:not(:disabled),.fbtn.fmanagedir:hover:not(:disabled){border-color:var(--field-ring-hover);background:var(--ground)}
-/* 输入焦点按 BoardUI Input 口径(2026-09-09 取证登记 boardui-input):壳不描边、
- 悬停与聚焦是同一枚 2px inset ring 在两档灰之间换档——悬停 border-button-hover、
- 聚焦 border-button-active,无辉光无蓝环。fill 由用户定成白底,环跟着走;
- 外框清零才不会有 1px 亮边夹在环和壳之间。按钮类的 focus-visible 仍按 Button 源的蓝 ring。 */
-.followmanage .geist-search input[type="search"],
-.followmanage .fcredfield input{border:0}
-.followmanage .geist-search input[type="search"]:hover,
-.followmanage .fcredfield input:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}
-.followmanage .geist-search input[type="search"]:focus,
-.followmanage .fcredfield input:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
+/* 输入焦点已按 BoardUI Input 收进 01-base 的共享档(hover/focus 的 inset ring),
+ 此处只改「添加关注」这一面板的底色:白卡躺在灰面上。选择器用 :where 写开,
+ 避免字面上再出现一遍共享输入框的整段规则。 */
+.followmanage :where(.geist-search) input[type="search"]{background:var(--color-background-primary-default)}
.fbtn[data-srcfilter-toggle][aria-expanded="true"]{border-color:var(--color-border-focus-ring);box-shadow:none;outline:2px solid var(--color-border-focus-ring);outline-offset:2px}
.fbtn.small{height:26px;padding:0 10px;font-size:var(--fs-sm)}
.fbtn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
@@ -248,7 +242,9 @@ p.fnote .followtask{color:var(--ink-2)}
.fauthorhead .fmeta{margin-left:auto;flex:0 1 auto;min-width:0;white-space:nowrap}
.fauthorhead .fmeta.warn{margin-left:0}
.fauthorsources{min-height:0}
-.fauthorsources .geist-scroller-container{padding-right:12px}
+/* 底部这 6px 是给来源卡的落影留的:滚动容器按内容盒裁边,不留就把最后一枚卡
+ 贴着底的那圈 shadow-sm(3px 扩散)切掉一半,读起来像最后一行缺了一条边。 */
+.fauthorsources .geist-scroller-container{padding-right:12px;padding-bottom:6px}
.fauthorsources .fsource:last-child{border-bottom:0}
.fauthor .fsource.frow{padding-left:0px;display:grid;
grid-template-columns:22px minmax(0,1fr) auto auto auto auto;gap:10px;flex-wrap:nowrap}
@@ -338,8 +334,10 @@ details.fcred{display:block;min-width:0}
.fcredfield span{font-size:var(--fs-xs);color:var(--muted)}
.fcredfield input{height:32px;width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border-15);
border-radius:var(--control-radius);background:var(--color-background-primary-default);color:var(--ink);padding:0 12px;font-size:var(--fs-md);
- font-family:inherit;transition:border-color .12s ease}
-.fcredfield input:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}
+ font-family:inherit;transition:box-shadow .12s ease}
+/* 凭据输入框不是 .geist-input,吃不到 01-base 那份共享档,两档环在这里各写一遍。 */
+.fcredfield input:hover{box-shadow:inset 0 0 0 2px var(--color-border-button-hover)}
+.fcredfield input:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--color-border-button-active)}
/* 「去取」指向站外的凭据页,后缀那枚外链箭头说明这一下会离开 Peach。 */
.fcredactions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:0}
.fcredactions button{height:32px;box-sizing:border-box;padding:0 14px;border-radius:var(--control-radius);
@@ -396,8 +394,9 @@ details.fcred{display:block;min-width:0}
.fpickitem{display:flex;gap:9px;align-items:center;padding:7px 9px;border:1px solid var(--border-10);border-radius:var(--surface-radius);margin-bottom:4px;cursor:pointer;font-size:var(--fs-xs);transition:background-color .15s ease,border-color .15s ease}
/* CheckboxCard 的悬停与 board 同一档:卡片自己的底是 primary-default,
悬停整面抬到 primary-hover,边框抬钮悬停档。底色不能缺——查找结果躺在
- --ground 的灰面上,透明底配 #f5f5f5 的悬停在浅色下等于没动。 */
-.fpickitem{background:var(--color-background-primary-default)}
+ --ground 的灰面上,透明底配 #f5f5f5 的悬停在浅色下等于没动。
+ 落影与作者卡里的来源行同档,两处都是躺在同底色上的嵌套卡。 */
+.fpickitem{background:var(--color-background-primary-default);box-shadow:var(--shadow-sm)}
.fpickitem:hover{background:var(--color-background-primary-hover);border-color:var(--color-border-button-hover);color:var(--ink)}
/* 「已经关注」整行退成主题的中性灰:不该用透明度——它会把边框和复选框一起冲淡,
在同一档底色上灰到读不出来。--muted 按主题自己深浅,比底色各深一档。 */
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index d5a31a967..cf954f066 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1053,7 +1053,7 @@ function Tt(e) {
});
}
function Et(e) {
- let t = ".iconswitch,.insightswitch,.insighttabs", n = [...e.querySelectorAll(t)];
+ let t = ".iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments")) return;
e.dataset.boardSegments = "true";