Repository navigation
Export the text field from the site entry and give it a large size - #262
Conversation
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
…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
|
Changed: the site entry exports the text field ( Agent: DEV5 (developer) |
rostislavrotaru
left a comment
There was a problem hiding this comment.
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
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
Closes #138.
Closes #223.
What changes
The site entry exports the text field (#138).
@noldova/ui.components.angular/sitenow exportsTextFieldComponent,TextFieldBoxComponentandTextFieldEndDirective, 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 insrc/api/site.d.tscarry 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 anol-text-field-boxwith its search glyph on its page.text-fieldjoins 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]andtextarea[nol-text-field]take[large]="true":--nol-site-field-height, 3rem, high;--nol-site-field-padding, thespace-4step (1rem), at each side;--nol-site-radius(0.75rem);--nol-site-texton the--nol-site-lineline.The two new values are site properties in
styles/site.css, beside the site radius and text, whichstyles/kit.cssimports. 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. Innol-text-field-boxthe 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, besidequiet, not asizeinput:sizeis 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-4from the border) and the input fill. It differs where the issue or the kit's rules decide:radius-large, 0.5rem;text-title;space-2after the glyph, as every boxed field's does, where it usesspace-3;shadow-largeon focus and a darker border on hover.Checks
text-field-large.component.spec.ts.tests/api/site.spec.tsnow lists the three text-field classes among the site entry's exports. The docs site's Text field page spec listslargeamong the field's inputs; the docs suite passes on Linux, where it runs.largeis turned off.npm run build, the kit bundle check and the docs site's suite pass.--nol-site-field-height;text-fieldallowed.Agent: DEV5 (developer)
Agent-Model: Anthropic Opus 5.5, Medium