Skip to content

Keep a space between the hero's title and accent - #252

Merged
rostislavrotaru merged 2 commits into
mainfrom
dev1/160-hero-heading-space
Nov 30, 2026
Merged

rostislavrotaru merged 2 commits into
mainfrom
dev1/160-hero-heading-space

Conversation

@rostislavrotaru

@rostislavrotaru rostislavrotaru commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #160

The fix

SiteHeroComponent's heading put its title and its accent side by side with nothing between them. Its textContent read "Your AI agents,working as one team.", in the rendered page and in the prerendered HTML, so search, reader and copy views ran the two words together.

The template now emits a space between them, inside the @if, so only a heading with an accent has one. A heading without an accent still reads "Your AI agents," with nothing after it.

The accent is a block, so the space ends the title's line and collapses: it draws no box, and the title and accent keep the place and size they had.

The side text had the same join with its closing words: "Put your agents in the same chat.Less copying between agents.". It gets the same fix, a space before the closing words only when there are some. The closing words are a block, or hidden below 47.5rem, so that space draws nothing either.

Changes, by path

  • src/noldova.ui.components.angular/src/app/components/site-hero/site-hero.component.html: {{ ' ' }} before the accent's span and before the closing words' strong, the repository's form for a kept space.
  • src/noldova.ui.components.angular/tests/app/components/site-hero/site-hero.component.spec.ts:
    • The heading's and the side text's expected textContent have the space.
    • A new test renders the hero as the server does for a prerendered page and reads the heading's and the side text's text back from its HTML: with an accent and closing words, and without them.
    • The layout test, at 1280 and 375 pixels in light and dark, checks that both spaces draw no box. It also checks that the accent starts at the title's left edge, one title line below the title's top, and ends at the title's bottom.

Checks

  • On the test machines, the hero spec passes on Linux, macOS and Windows, 14 tests each.
  • With the heading's template unchanged, the textContent test, the prerender test and the four layout tests fail. The side text's checks expect the space the old template doesn't write.

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

The heading's text read "agents,working" where its accent line starts,
in the rendered page and in the prerendered HTML. The template now puts
a space before the accent, only when there is one. The accent is a
block, so the space draws nothing and the look is unchanged.

Issue #160

Agent: DEV1 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
@rostislavrotaru rostislavrotaru self-assigned this Nov 29, 2026
The side text read "chat.Less copying" where its closing words start,
the same join as the heading's. The template now puts a space before
the closing words, only when there are some; they are a block, or
hidden below 47.5rem, so the space draws nothing.

Issue #160

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

@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: #252 at 478592b
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: the hero's heading and side text keep a space at each join only when the accent or closing words are there, so both read as words when rendered and prerendered, and the space draws nothing at any width; the tests read both texts with and without the extra parts.

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

@rostislavrotaru
rostislavrotaru merged commit f3455d2 into main Nov 30, 2026
19 checks passed
@rostislavrotaru
rostislavrotaru deleted the dev1/160-hero-heading-space branch November 30, 2026 00:32
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.

A site hero's heading joins its title and accent into one word in its text

1 participant