Skip to content

fix(design): text style sets only the changed field and clamps size to the kernel range - #5773

Open
prakashUXtech wants to merge 8 commits into
devfrom
lead/text-style-TS-7b
Open

prakashUXtech wants to merge 8 commits into
devfrom
lead/text-style-TS-7b

Conversation

@prakashUXtech

Copy link
Copy Markdown
Contributor

This fixes Packet-Review 2's amendments 7 and 8 (#3779) in Design's kernel route for text styles.

  • With a mixed selection, a text style command now sets only the field the user changed. Each layer keeps its own value for every other field. Before, the first layer's whole style overwrote the rest.
  • Text size clamps to the kernel's range, TextStyleRules.range(.size) (1...1600), instead of a local 1...1000. The rows, the kernel and Design now agree on the limit. The DesignModel.LiveStyling size-clamp mutation now points at the new line.

Tests: DesignTextStyleTests.aMixedSelectionTakesOnlyTheChangedField changes the size on two layers with different families. Both take 1500, which the kernel range keeps, and each keeps its own family. A size over the range clamps to 1600. DesignStyleTests now expects the kernel's 1600 ceiling.

Stacked on #5047 (TS-7). It gets the fast-lane label when it is retargeted to dev.

Belt-Lead: act-1a1774f754d-5cse
Feature: text-style
Slice: TS-design
Refs #3779
Mutate: DesignModel.DesignTextStyle+Kernel 4/4
Fast-Check: pass
Head: e27cfff


Generated by Claude Code

@prakashUXtech prakashUXtech added the fast-lane Merge automatically when small, green and outside protected paths label Oct 26, 2026 — with Claude
@prakashUXtech prakashUXtech added the beta In the AfterGlow beta cut label Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: this PR body has AI attribution lines ("Generated by Claude Code", "🤖 Generated with" or a Co-Authored-By: Claude trailer). The lane strips them from the squash commit, so nothing waits on this, but please delete them from the body and leave them out of your next PRs.

@prakashUXtech
prakashUXtech changed the base branch from lead/text-style-TS-7 to dev October 31, 2026 05:38
@github-actions github-actions Bot removed the fast-lane Merge automatically when small, green and outside protected paths label Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: not eligible. too big: 427 lines, 16 files (max 400 lines, 15 files). This PR now needs normal captain review.

@github-actions github-actions Bot added the fast-lane Merge automatically when small, green and outside protected paths label Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions github-actions Bot added fast-lane Merge automatically when small, green and outside protected paths and removed fast-lane Merge automatically when small, green and outside protected paths labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions github-actions Bot added fast-lane Merge automatically when small, green and outside protected paths and removed fast-lane Merge automatically when small, green and outside protected paths labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions github-actions Bot added fast-lane Merge automatically when small, green and outside protected paths and removed fast-lane Merge automatically when small, green and outside protected paths labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions github-actions Bot added fast-lane Merge automatically when small, green and outside protected paths and removed fast-lane Merge automatically when small, green and outside protected paths labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions github-actions Bot removed the fast-lane Merge automatically when small, green and outside protected paths label Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

29 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Fast lane: labelled because the PR carries Belt-Lead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta In the AfterGlow beta cut needs-split Over the lane cap; split per lead.md rule 22

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant