diff --git a/.claude/skills/podbay-ui/SKILL.md b/.claude/skills/podbay-ui/SKILL.md index 344fe31..5138eb0 100644 --- a/.claude/skills/podbay-ui/SKILL.md +++ b/.claude/skills/podbay-ui/SKILL.md @@ -31,7 +31,7 @@ The app is a single-page app served as static assets. It shows strangers' mail i - a date is `DatePicker`; - an action is `Button`, and a field with its label and help is `Field` with `Label`. - Read the component's entry in Kumo's own documentation, shipped with the pinned version (`node_modules/@cloudflare/kumo/ai/component-registry.md`), before using it. A control's size is its `size` prop, never a class: the controls of one form share one size, and a height, a size, a corner or a type size written by hand on a Kumo control is refused. Where Kumo's component cannot do the job, one wrapper for it lives in `app/components/controls/` and every screen uses it. A native control that must stay (a whole line that opens a message, say) is one line of `ON_PURPOSE` in `scripts/checks/controls.ts`, with its reason. The controls written by hand before the check came in are its `TO_MOVE` debt, which only goes down (#82, #83). + Read the component's entry in Kumo's own documentation, shipped with the pinned version (`node_modules/@cloudflare/kumo/ai/component-registry.md`), before using it. A control's size is its `size` prop, never a class: the controls of one form share one size, and a height, a size, a corner or a type size written by hand on a Kumo control is refused. Where Kumo's component cannot do the job, one wrapper for it lives in `app/components/controls/` and every screen uses it. A native control that must stay (a whole line that opens a message, say) is one line of `ON_PURPOSE` in `scripts/checks/controls.ts`, with its reason. A Kumo control that keeps a fully round shape a screen had before Kumo (`rounded-full` alone, which Kumo gives only to a circle for an icon) is one line of `ROUND_ON_PURPOSE` there, with its reason. A move to Kumo keeps what the screen looks like; a change of look is said in the pull request with pictures of before and after. The controls written by hand before the check came in are its `TO_MOVE` debt, which only goes down (#82, #83). Every control has a name: Kumo's controls take `label`; an icon button gets `aria-label`. Errors are `role="alert"`. Move focus by a ref to the form, not by element id (the field library sets ids after the first paint). 7. **Attachments are downloads.** Link to a plain one; a risky one goes through the warning in `EmailAttachmentList`. Only plain image kinds are previewed or embedded (`isShowableImage`). diff --git a/app/components/Header.tsx b/app/components/Header.tsx index b42dd95..bef0255 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -119,24 +119,26 @@ export default function Header() { className="h-12 w-full rounded-full border border-transparent bg-kumo-fill pl-12 pr-20 text-sm text-kumo-default placeholder:text-kumo-subtle focus:border-kumo-line focus:bg-kumo-base focus:outline-none focus:ring-1 focus:ring-kumo-ring [&::-webkit-search-cancel-button]:hidden" /> {searchQuery && ( - + onClick={clearSearch} + /> )} - + onClick={() => setOptionsOpen(true)} + /> useUIStore.setState({ dragged: [] })} + // Whether Shift is held for the box this click or key ticks: Kumo's box takes no click + // handler of its own, so the line reads it on the way down. + onClickCapture={(event) => { + withShift.current = event.shiftKey; + }} + onKeyDownCapture={(event) => { + withShift.current = event.shiftKey; + }} onContextMenu={(event) => { event.preventDefault(); setMenu({ email, at: { x: event.clientX, y: event.clientY } }); @@ -336,35 +344,26 @@ export default function MessageList({ index === cursor ? "border-l-kumo-brand" : "border-l-transparent" } ${tone}`} > - { - withShift.current = event.shiftKey; - }} - onChange={() => toggle(email.id)} + onCheckedChange={() => toggle(email.id)} /> - + /> {/* The conversation itself: one button, so the row has one name and one action */} - + ); } diff --git a/app/components/email-panel/MessageHeader.tsx b/app/components/email-panel/MessageHeader.tsx index b4c5308..8471bed 100644 --- a/app/components/email-panel/MessageHeader.tsx +++ b/app/components/email-panel/MessageHeader.tsx @@ -141,7 +141,8 @@ export default function MessageHeader({ )}
-
+ {/* The line wraps: where Unsubscribe would leave the name no room, it moves under the name. */} +
{actions && !isSelf && !isDraft ? ( // The sender's name opens what can be done with the sender, as a card would. @@ -189,13 +190,17 @@ export default function MessageHeader({ )} {isDraft && {t("Draft")}} {actions?.onUnsubscribe && ( - + )}
- {" · "} - - {t("Sign-in and security")} - -

+ +
)} {domains.length > 0 && (

{domains.join(", ")}

diff --git a/app/routes/search-results.tsx b/app/routes/search-results.tsx index fee5189..088573d 100644 --- a/app/routes/search-results.tsx +++ b/app/routes/search-results.tsx @@ -3,6 +3,7 @@ // https://opensource.org/licenses/Apache-2.0 // Modified by the Podbay contributors. +import { Button } from "@cloudflare/kumo"; import { MagnifyingGlassIcon, StarIcon } from "@phosphor-icons/react"; import { useNavigate, useParams, useSearch } from "@tanstack/react-router"; import { useEffect, useState } from "react"; @@ -92,9 +93,16 @@ export default function SearchResultsRoute() { {QUICK_FILTERS.map(([operator, label]) => { const on = hasOperator(urlQuery, operator); return ( - + ); })}
diff --git a/docs/status.md b/docs/status.md index 983662b..e1daada 100644 --- a/docs/status.md +++ b/docs/status.md @@ -28,7 +28,7 @@ | Markdown links and anchors | D14 | `pnpm static docs` | | The guidance is consistent: `AGENTS.md` is one page and names every skill and subagent; skills are named as their folders; a rule's paths still match files; a subagent names only skills that exist and cannot edit; the settings keep local secrets unread and ask before a push or a deploy | D15 | `pnpm static guidance`, `test/unit/guidance.test.ts` | | No lint warning: every rule has one level for every file, no file is exempt, and `pnpm lint` fails on a warning (`--error-on-warnings`), so a clean run prints none. A rule is kept off at a place only by a `biome-ignore` that says why (two keyed lists that are never reordered). File size only goes down | D1, D4 | `pnpm lint`, `pnpm static ratchets` (lint warnings at 0) | -| The app's controls are Kumo's (`pnpm static controls`): no `