Skip to content

Release 1.4.12 - #47

Merged
gpbsumido merged 78 commits into
masterfrom
ps/release/1.4.12
Nov 21, 2026
Merged

gpbsumido merged 78 commits into
masterfrom
ps/release/1.4.12

Conversation

@gpbsumido

@gpbsumido gpbsumido commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Release 1.3.6 → 1.4.12. Merging this ships fourteen versions of work to master and puts 1.4.12 on angular.paulsumido.com. The main change is a 13-part interactive Angular guide under /thoughts, and each lesson also fixed or improved something real on the site.

Cut from origin/develop at c8920f1. master isn't ahead of develop, so nothing needed merging back in first.

What a visitor gets

A 13-lesson Angular guide (1.4.0 to 1.4.12)

Thirteen lessons, from /thoughts/angular-01-* to /thoughts/angular-13-*, covering:

  • project structure
  • standalone components
  • templates
  • signals
  • dependency injection
  • HTTP
  • routing
  • forms
  • change detection
  • directives
  • testing
  • SSR
  • interview prep

Each lesson has Simple, Intermediate and Expert sections, then Pitfalls and Interview questions. Each one also has live demos, real code from this repo with a copy button, an "On this page" nav, a toggle to mark it read (saved in the browser), and links to the previous and next lesson. Lessons are lazy-loaded, so none of their code is in the initial bundle.

Interview practice deck (1.4.12)

All 78 interview questions from the guide in one flashcard deck: show answer, "Got it", "Ask again", and a topic filter.

Fixes that came out of the lessons

  • Clock: prerendered pages showed the menu bar clock frozen at build time, and the bar skipped hydration to hide it. The clock now starts after render, and the bar hydrates instead of being redrawn (1.4.11).
  • Contact form: it accepted messages that were only spaces, now rejected. Errors are now linked to their fields for screen readers, there's one live status region, and Send is no longer disabled before you start (1.4.7).
  • Tags and links: tag pages are prerendered, thought cards are real links, and unknown URLs redirect home (1.4.6).
  • Thoughts reader: it no longer shows the previous thought after you navigate to another (1.4.3).
  • Dates: shown in UTC, so they're the same on the server and in the browser (1.4.2).
  • Keyboard: fixed two places where a keydown was handled twice (1.4.2).
  • GitHub requests: retried with backoff when they fail with a temporary error (1.4.5).

Behind the scenes

  • CI's typecheck had been checking zero files. It now checks the real configs, runs a production build, and has a timeout on every job (1.4.10).
  • Every component is OnPush, pinned by a fitness test. That change exposed an esbuild hang where ng build and ng test never exited, caused by two components with identical inline styles (1.4.8).
  • Architecture fitness tests check layering and that there are no NgModules. Settings state moved to shared/ to fix the three layering violations they found (1.4.0).
  • Changelog guard (1.3.7). Plus, since 1.4.12, an unused GitHub repo search is removed and related thoughts are no longer rebuilt on every change detection pass.

Screenshots

Captured from production builds of master (before) and this branch (after) at 1024×700, dock hidden.

Contact form: a message of only spaces (1.4.7). Before, it was accepted and showed "Message sent successfully!". After, it's rejected with an error linked to the field.

Light Dark
Before contact before light contact before dark
After contact after light contact after dark

Angular guide lesson (new, 1.4.0 to 1.4.12). master has no lessons, so there's no before. Shown: /thoughts/angular-04-signals.

Light Dark
guide light guide dark

Interview practice deck (new, 1.4.12), in /thoughts/angular-13-interview.

Light Dark
deck light deck dark

Verify

Run in a clean worktree of ps/release/1.4.12 after a fresh npm ci. I checked each command's exit code rather than its summary line.

Check Result Exit
npm ci clean install 0
ng test 512 passing, 71 files 0
npm run lint clean 0
tsc app and spec configs clean 0
npm run build 83 prerendered routes, initial 397.21 kB (budget 400 kB), no warning 0

TO-DOs for this PR

  • Hydration in a real browser: check /thoughts/angular-12-ssr once deployed for no NG05xx errors in the console and a clock that fills in. So far I've only checked the built HTML.
  • e2e: e2e/lesson-nav.spec.ts has never been run locally. CI runs it.
  • Bundle size: the initial bundle is 397 kB against the 400 kB budget, which leaves little room for the next eager import.

gpbsumido and others added 30 commits August 16, 2026 22:28
#26 shipped the shortcut remap with no changelog entry and nothing failed.
I only caught it writing the 1.3.6 release note from commits instead of from
the changelog, which is the wrong direction to read it in.

The guard asserts the top entry is the version package.json is on, that it has
bullets under it, that no version gets two headings, that versions and dates
both run newest first, and that every heading parses in the one format.

Red on purpose: package.json moves to 1.3.7 here with no entry to match, which
is the exact shape of the thing that went missing.
Green: the top entry is the version package.json is on, and it has something
under it. All 46 existing entries already satisfied every assertion, so nothing
older had to be rewritten to get here.
The remap shipped in 1.3.4 with no entry. Reconstructed from the four commits
on #26 and checked against the source, not just the commit subjects.

Added to the existing 1.3.4 entry rather than opening a second heading dated
the day it merged. It genuinely shipped in 1.3.4, and a duplicate heading would
break both the one-heading-per-version and the date-ordering assertions.
Version-accurate beat date-accurate.

Documentation repair. No past commits touched.
gpbsumido and others added 29 commits November 21, 2026 11:13
One plain object goes to an Eager card and an OnPush card. Mutating it
updates only the Eager one; replacing it updates both; a shared signal
reaches the OnPush card with no input change at all.

The cards are styled from the lesson component. Sharing one styles
constant between them left an esbuild context open in @angular/build
21.2.18, and ng build and ng test never exited.
Every lesson should get an "On this page" nav over its sections that
marks the one in view. ScrollSpy, LessonSection and lesson 10 don't
exist yet; the every-lesson spec fails nine times with no nav at all.
LessonSection matches each h2 in a lesson, gives it an id from its text
and registers it with ScrollSpy, which the lesson component takes as a
host directive. ScrollSpy creates its IntersectionObserver in
afterNextRender, so prerender never touches it, and highlights the
section in view. The lesson spec's scrollIntoView mock needed a type.
The tag page spec assumed every guide title starts "Angular 0", which
stopped being true at lesson 10; it now matches two digits.
CI's typecheck runs plain tsc against a root tsconfig with no files, so it
checks nothing. CI never builds, and no job has a time limit. The e2e
covers what the fake IntersectionObserver can't: real scrolling.
Lesson 09 said form.reset() only re-rendered the OnPush contact form
because a signal write sat next to it. It renders on its own: controls
keep touched and status in signals, and NgControlStatus reads them in
its host bindings. The new spec resets the form with no other change and
no detectChanges(), and the errors clear.
The root tsconfig has no files, so plain tsc --noEmit checked nothing.
Typecheck the app and spec configs, run the production build (the only
step that prerenders and enforces budgets), and give each job a time
limit so a hung builder can't hold a runner for six hours.
The demo runs the real notBlank validator's cases in the page, with a
switch that swaps in the whitespace bug lesson 08 fixed so exactly one
test goes red.
ProjectsService.search was never written outside its own spec, and the
?q= it built does nothing on /users/:user/repos anyway: GitHub only
filters with q on the /search endpoints.
Teach testing with a stricter CI
@gpbsumido
gpbsumido merged commit 74c0774 into master Nov 21, 2026
2 checks passed
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.

1 participant