Skip to content

Shorten the homepage Network step details - #25

Merged
RodCor merged 1 commit into
mainfrom
cursor/tighten-network-step-details-0adf
Nov 20, 2026
Merged

RodCor merged 1 commit into
mainfrom
cursor/tighten-network-step-details-0adf

Conversation

@RodCor

@RodCor RodCor commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Summary

Shortens the three Network step-card detail strings on the homepage and raises short links in the layout-owned homepage files to a 24px tap height. Titles and command strings are unchanged. Branched from origin/main at 7ce1e46 after #24 merged.

Detail strings

Step Before Chars After Chars
Invite On machine A, in the repo. Copy the code (it starts with knet1.). The default name is friends. Kimetsu is not listening yet. 124 A creates the invite. The code starts with knet1. The default name is friends. Nothing is listening yet. 104
Join On machine B. Membership is saved. Still nothing is listening. 62 On B, membership is saved. Nothing is listening. 48
Share, then request Leave share running on A. On B: kimetsu network request. If discovery misses A, pass the peer: line share printed. 114 A runs share while B runs kimetsu network request. If discovery misses A, pass the peer: line share printed. 108

knet1., kimetsu network request, and peer: are unchanged inside the details. No test asserted the old sentences, so no test file changed.

One-line reasons

  • Invite: say that A creates the invite, and drop "in the repo" and "Copy the code", which the network guide already states.
  • Join: drop the words "machine" and "Still".
  • Share, then request: say that share runs on A while B runs kimetsu network request, and keep the discovery fallback.
  • Link height: the 390px pass measured several homepage links under 24px tall, so those in the layout-owned files got min-h-[24px].

Facts dropped, with citations

  • "in the repo" — content/docs/network/index.mdx:71 ("Run both sides in the same project directory.")
  • "Copy the code" — content/docs/network/index.mdx:90 ("Copy the code (it starts with knet1.).")

Join and share drop no facts.

1. Screenshots and heights (measured)

Static npm run build, served with npx serve out. Viewport CSS px: 1440 and 390 (window.innerWidth). html { scrollbar-gutter: stable } in src/app/global.css reserves 15px, so the laid-out page and the PNG width are 1425 and 375. documentElement.scrollWidth was 1425 and 375. Both are within the viewport. Network crops are the #network element.

Images are on orphan branch cursor/pr-assets-item3 at 44631b2a891f34862e986a4baa2e3eaac5dea1ba.

View Before After
1440 full page png png
1440 Network png png
390 full page png png
390 Network png png
Width Before page height Before #network height After page height After #network height
1440 2998 1032 2978 1008
390 5254 1968 5223 1923

Page height is documentElement.scrollHeight. Network height is #network offsetHeight. PNG heights match those numbers.

2. Figures and Get started (measured)

On the rendered homepage, 1.77x, 22% to 65%, and about 99% each occur once, and that once is inside #benchmarks, both before and after.

#get-started initial HTML differs by one class. The mobile tap-target fix changed the install link from km-text-link mt-4 inline-block to km-text-link mt-4 inline-flex min-h-[24px] items-center. The command block, copy button, and the rest of the section are the same.

3. axe-core (measured)

axe-core 4.14.1 on the built homepage. Violations: 0 at 1440 and 390, before and after. heading-order passes at both widths. color-contrast is incomplete (gradient background and overlap), not a violation.

4. Lighthouse mobile (measured)

Lighthouse 13.6.0, Chrome 157.0.8103.50 (HeadlessChrome/157.0.0.0), default mobile emulation, five runs one at a time. Median is the middle value of each metric.

Score LCP CLS TBT benchmarkIndex
Before median 100 908.6 ms 0 67.5 ms 3796
After median 99 909.0 ms 0 93.0 ms 3164.5

Every run had CLS 0. Median LCP stays under 2.5 s. Before runs: 100/907 ms, 100/909 ms, 89/3758 ms, 100/909 ms, 100/907 ms. After runs: 100/908 ms, 98/914 ms, 99/911 ms, 100/909 ms, 99/909 ms. The after benchmarkIndex is lower (machine load); LCP did not move.

5. npm run check (measured)

npm run check passed: Biome, tsc --noEmit, 45 tests, and next build plus the static-output check.

6. Mobile check at 390 (measured, headings judged)

  • Horizontal overflow: documentElement.scrollWidth is 375, and the rightmost element is at 375. Both are <= 390. No horizontal overflow.
  • Tap targets now at least 24px in the files this change owns: "Read the Network guide" 153.84×24, "All results and methodology →" 196.52×24, "All installation options →" 160.64×24, footer About 38.64×24, Contact 49.91×24, GitHub 45.11×24, Changelog 67.42×24, For agents 67.19×24.
  • Still under 24px, left unchanged because they are in about-contact.tsx: "Source code →" section#about a.km-text-link 96.08×20, "Related projects →" section#about a.km-text-link 122.17×20, "LinkedIn" section#contact a.km-text-link 56.38×18.
  • Command code blocks: the three Network <code> blocks do not overflow (scrollWidth equals clientWidth, right edge 355). Selecting each block returns the full command. The Get started copy button wrote npm install -g kimetsu-ai plus kimetsu setup --host claude-code to the clipboard, matching the code block.
  • Headings (judged): breaks are on word boundaries and nothing overflows. At 390 the title is "Persistent / memory for / coding agents." and the Network heading is "One shared memory / network your / agents plug into." text-wrap: balance does not change that Network heading, and text-wrap: pretty ends on the shorter line "plug into." The heading text stays as it was. "Share, then request" stays on one line.
  • Diagram controls, not modified: Pause 100.3×44, Previous 92.55×44, Next 67.3×44, step buttons 44×44. No diagram overflow.
Open in Web Open in Cursor 

Cut words from the three step cards and give the short homepage links a 24px tap height.

Co-authored-by: Rodrigo <rodrigo.ccordoba@hotmail.com>

@RodCor RodCor left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

approved at 047ea7e.

  • copy: titles and commands are byte-identical. the two dropped facts are both in the docs: "in the repo" at network/index.mdx:71 ("same project directory") and "copy the code" at :90. no claims changed. network-section.tsx:9-20.
  • shots (44631b2): the step cards read cleanly at 1440 and 390, nothing wraps badly, and the section is 1032→1008 and 1968→1923.
  • tap targets: the 24px min-height on text links meets WCAG 2.5.8. it's class-only, so install commands and the diagram are untouched. axe 0, verify green.
  • perf: lighthouse median 100→99 and tbt 68→93 ms, but benchmarkIndex fell 3796→3164 between runs, so it isn't like-for-like. the diff adds no js and changes no layout (cls 0, lcp 909 ms both), so i accept that it's noise. 99 is still in the good band.

non-blocking, for a follow-up:

  1. network-section.tsx:9 "The code starts with knet1. The default…": the sentence period swallows the prefix's own dot, so it reads as knet1. wrap the prefix in <code> like the commands, or rephrase so it doesn't end the sentence.
  2. km-text-link inline-flex min-h-[24px] items-center is now repeated 9 times. a single utility (e.g. km-text-link-target) would keep it consistent. don't fold it into km-text-link itself, because inline prose links shouldn't become inline-flex.
  3. about-contact.tsx's three 18–20px links, as you noted.

@RodCor
RodCor marked this pull request as ready for review November 20, 2026 20:08
@RodCor
RodCor merged commit 8a975d2 into main Nov 20, 2026
1 check 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.

2 participants