Repository navigation
docs(CodeBlock): the record states startLineNumber's file coordinates - #9934
Merged
Merged
Conversation
… (FR14) The prop shipped with its behavior in JSDoc and tests; the component record now owns it, so the regenerated API report row has a governing record.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
Author
|
/approve-spec 50525e1 |
8 tasks done
This was referenced Nov 6, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User impact
None at runtime: this records behavior that already shipped. Builders reading CodeBlock's record now find what
startLineNumberdoes. Reviewers have a governing record for the prop's row in the API report.Change
component:CodeBlockgains FR14:startLineNumber(default 1) sets the number of the first line in the source file;startLineNumber + index), so an excerpt reads with its real line numbers;highlightLinesuses the same file coordinates, and an out-of-range entry renders no highlight;The record also gains an "Additive API (FR14)" compatibility line, a verification row, and the focused test in
verified_by. Every statement matches the prop's JSDoc andCodeBlock.startLineNumber.test.tsx(default, a three-line excerpt from line 40, a highlight inside it and entries outside it, a value of 0, exact copy).Record only: no source and no Changeset.
Writing rubric results
R1 narration: none; FR14 and the compatibility line describe what CodeBlock does now, in the present tense.
R2 research: none.
R3 evidence: FR14's basis is "released public type and JSDoc; shipped API" and its verification names the test file; no pull request is cited.
R4 rejected alternatives: none.
R5 change references: none added to the record.
R6 open questions: none added.
Testing
pnpm check:knowledge: templates and records are aligned.Posted by Cindy's agent on her behalf.