Skip to content

Export the text field from the site entry and give it a large size - #262

Merged
rostislavrotaru merged 4 commits into
mainfrom
dev5/138-site-text-field
Nov 30, 2026
Merged

rostislavrotaru merged 4 commits into
mainfrom
dev5/138-site-text-field

Conversation

@rostislavrotaru

@rostislavrotaru rostislavrotaru commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #138.
Closes #223.

What changes

The site entry exports the text field (#138). @noldova/ui.components.angular/site now exports TextFieldComponent, TextFieldBoxComponent and TextFieldEndDirective, the same classes as the main entry. A site that starts from the site entry no longer needs the main entry for a search field, plain, quiet or large. Their declarations in src/api/site.d.ts carry the main entry's docs word for word, as each entry's declarations must.

The bundle check covers them. bundle-site's start now shows a quiet search field in its header (nolSiteSearch) and a large one in a nol-text-field-box with its search glyph on its page. text-field joins the site start's allowed parts, and the check fails when the start holds no text field, though it shows one.

The text field has a large size (#223). input[nol-text-field] and textarea[nol-text-field] take [large]="true":

  • at least --nol-site-field-height, 3rem, high;
  • --nol-site-field-padding, the space-4 step (1rem), at each side;
  • the site radius, --nol-site-radius (0.75rem);
  • the site text, --nol-site-text on the --nol-site-line line.

The two new values are site properties in styles/site.css, beside the site radius and text, which styles/kit.css imports. They stay out of KIT.md's token table, as the other site properties do. The field's border, colors, focus, invalid, disabled and quiet looks are its own. In nol-text-field-box the box takes the large height and padding too, so the glyph, button and end text keep their places, and the end text takes the field's text size. On several lines the same padding goes on every side.

It is a boolean, large, beside quiet, not a size input: size is a native attribute of <input>, which a directive input would hide.

Earlier work

The archive's ui-components main-line copy (the Nov 10 repository) has no large field size, so the size is new.

TeamRun's docs search (src/noldova.teamrun.docs/src/app/components/docs-search/) draws its own input. The large field matches it on height (3rem), side padding (space-4), the glyph's place (space-4 from the border) and the input fill. It differs where the issue or the kit's rules decide:

  • the site radius, 0.75rem, where the docs search uses radius-large, 0.5rem;
  • the site text, where it uses text-title;
  • the typed text starting space-2 after the glyph, as every boxed field's does, where it uses space-3;
  • the kit's focus border only, where it also adds shadow-large on focus and a darker border on hover.

Checks

  • Specs on Linux, Mac and Windows, after main's merge: the API, text-field, site-header, site-search, gallery and field-message specs, with the new text-field-large.component.spec.ts. tests/api/site.spec.ts now lists the three text-field classes among the site entry's exports. The docs site's Text field page spec lists large among the field's inputs; the docs suite passes on Linux, where it runs.
  • The new spec measures, in both themes, in light and dark:
    • the large field's height, side padding, radius, text size and line, quiet too;
    • a boxed large field's glyph, button and end text;
    • the several-line field's padding;
    • the field's return to normal when large is turned off.
  • On Linux: npm run build, the kit bundle check and the docs site's suite pass.
  • Mutants, each failing the spec or the check:
    • the field's large rule;
    • the box's large rule;
    • the end text's size;
    • --nol-site-field-height;
    • the host class binding;
    • the bundle fixture without a text field;
    • the check without text-field allowed.

Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium

Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
…a boxed large field's look apart from its padding

Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
@rostislavrotaru rostislavrotaru self-assigned this Nov 30, 2026
…s inputs on the docs page

Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
@rostislavrotaru

Copy link
Copy Markdown
Contributor Author

Ready at 5c1cd55, #138/#223.

Changed: the site entry exports the text field (TextFieldComponent, TextFieldBoxComponent, TextFieldEndDirective); the text field takes [large]="true" (3rem, site radius and text), boxed too; the kit bundle check covers the site start's text field.
Checks: Linux, Mac and Windows: the changed files' specs and their users, 514 passed; Linux: npm run build, the kit bundle check and the docs suite (1920) passed; the 7 mutants each fail a spec or the check. CI green at 5c1cd55. 0 behind main.
Not checked: nothing open.

Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium

@rostislavrotaru
rostislavrotaru marked this pull request as ready for review November 30, 2026 03:43

@rostislavrotaru rostislavrotaru left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: #262 at 5c1cd55
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: the site entry exports the text field with declarations matching the main entry's, the large size is set from the site's radius and text, and the bundle check holds the site start's text field; the specs fail without the change.

Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High

@rostislavrotaru
rostislavrotaru merged commit 3af043d into main Nov 30, 2026
19 checks passed
@rostislavrotaru
rostislavrotaru deleted the dev5/138-site-text-field branch November 30, 2026 03:45
rostislavrotaru added a commit that referenced this pull request Dec 1, 2026
Closes #286

Moves the kit to 0.0.48, with what has merged since 0.0.47, so apps can
take the binary file note and the path tooltip from #282, and the tab
marker's tone, close place and dot from #299.

## What changes

- `version.json` is at 0.0.48.
- `CHANGELOG.md` has the 0.0.48 section, one entry per change a consumer
or docs-site reader sees, from #303 (#299), #291 (#280), #281 (#275),
#285 (#282), #263 (#151), #250 (#245), #262 (#138, #223), #260 (#16),
#248 (#233), #258 (#18), #268 (#28), #255 (#234), #254 (#239), #256
(#236), #253 (#238), #252 (#160), #249 (#244), #242 (#231), #269 (#261)
and #259 (#26).
- Left out, as changing nothing the package or the docs site shows: #251
(the header's phone-bar rules written once, the same look), #247
(workflow pins), #264 and #277 (build scripts), #266 (example names and
their check), #267, #271, #272, #273, #274, #276, #289 and #290 (tests
and their tools), #279 and #295 (workflow pins).

## Checks

No test covers these two files. The product names check reads the new
section in CI; it names no product.

Agent: DEV2 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give the text field a large size, for a site's search box Export the text field from the site entry

1 participant