From eced7efb38b5f6189165ddb46a1591173991daf3 Mon Sep 17 00:00:00 2001 From: Paulo Date: Sun, 16 Aug 2026 16:21:10 +0200 Subject: [PATCH] Trim the comments on the lent-UI surface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment density on the files this arc added ran well past what the code needed — restating what the next line already says, and narrating decisions that belong in the PR. Cut to what a reader cannot get from the code: why Bare drops className, why --accent sits on body rather than :root, why bool is not drawn by SettingField, and that the pinned export list is a contract to stop at rather than edit. No behaviour change. --- backend/druks/durable/schemas.py | 5 ++--- frontend/src/components/Control.tsx | 10 +++------- frontend/src/components/SettingField.tsx | 16 ++++++---------- frontend/src/components/StatusGlyph.tsx | 4 +--- frontend/src/runtime/druks-ui.test.ts | 8 ++------ frontend/src/runtime/druks-ui.ts | 15 +++------------ frontend/src/styles.css | 5 ++--- frontend/vite.config.ts | 12 ++++-------- 8 files changed, 23 insertions(+), 52 deletions(-) diff --git a/backend/druks/durable/schemas.py b/backend/druks/durable/schemas.py index df69efbf..a872d94b 100644 --- a/backend/druks/durable/schemas.py +++ b/backend/druks/durable/schemas.py @@ -132,9 +132,8 @@ def from_run( # takes either and is always a string. SubjectId = Annotated[str, BeforeValidator(str)] -# The one line a board row and a detail page show a subject as. Blank is rejected -# rather than rendered: a title nobody can read is the thing this field exists to -# prevent. +# The one line a board row and a detail page show a subject as; blank is +# rejected rather than rendered. SubjectLabel = Annotated[str, StringConstraints(strip_whitespace=True, min_length=1)] diff --git a/frontend/src/components/Control.tsx b/frontend/src/components/Control.tsx index 756d3472..3f69acc4 100644 --- a/frontend/src/components/Control.tsx +++ b/frontend/src/components/Control.tsx @@ -6,10 +6,8 @@ import type { TextareaHTMLAttributes, } from 'react' -// The control frames the shell draws, as components. Omitting ``className`` is -// the point: the class name stops being a contract typed by hand, so it can be -// renamed without breaking a caller. Layout stays the page's — position a -// control from the parent's own rules, not by passing it a class. +// Dropping ``className`` is the point: the class name stops being a contract +// callers type by hand. Position a control from the parent's own rules. type Bare

= Omit export function TextInput(props: Bare>) { @@ -29,7 +27,6 @@ interface ButtonProps extends Bare> { } export function Button({ variant = 'ghost', ...props }: ButtonProps) { - // ``type`` ahead of the spread so a form's submit button can override it. return