Skip to content

TS ui_framework: type assertions are not JSX; class extends is not generics (#8011, stack 4/5) - #8021

Closed
squid-protocol wants to merge 2 commits into
fix/8010-rule-overlap-leaksfrom
fix/8011-ts-ui-framework-assertions
Closed

squid-protocol wants to merge 2 commits into
fix/8010-rule-overlap-leaksfrom
fix/8011-ts-ui-framework-assertions

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Stack 4/5. Base is #8019 (on #8015, #8013). Review after it.

What this does

rule before after
TS ui_framework <Foo>expr matched as a JSX component, so old-style type assertions such as <NamedTypeNode>factory.create() counted as UI <Foo counts as JSX only with an attribute (<Foo prop=), a self-close (<Foo />) or a closing tag (</Foo>)
TS generics bare extends matched, so class A extends B and interface I extends J counted as generics only conditional types (T extends U ? X : Y); constraints (<T extends U>) still match the <…> branch

tests/extraction/languages/test_typescript_ui_generics_8011.py covers type assertions, JSX components (attribute, self-close, closing tag, Foo.Bar, data- attributes), heritage extends, and real generics (conditional, constraint, keyof).

Golden masters

  • Re-blessed both legs: 554 differences per leg.
  • All 474 file-level differences are on .ts files.
  • Fields moved: generic type abstractions, UI view-layer components, and the repository fingerprint, drift and function archetypes downstream of them.

Checks

Class / Sibling gaps

Fixes #8011
Part of #8010

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

squid-protocol and others added 2 commits November 7, 2026 10:01
…tag; class extends is not generics (#8011, #8010)

Old-style type assertions (<NamedTypeNode>factory.create()) matched the JSX
alternative; class/interface heritage extends matched generics. Constraints
(<T extends U>) and conditional types (T extends U ? X : Y) still count.

Fixes #8011
Part of #8010

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
554 differences per leg, all on .ts files (474 file-level): generic type
abstractions, UI view-layer components, and the repository fingerprint /
drift and function archetypes downstream of them.

Part of #8011

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 15:53
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Superseded by #8024 (the stack squashed into one PR to save CI capacity, at the owner's request).

squid-shepherd Bot pushed a commit that referenced this pull request Nov 7, 2026
…rlap leaks, TS ui/generics, function-level scope (#8009, #8010, #8011, #8012) (#8024)

Squash of the five-PR stack (#8013, #8015, #8019, #8021, #8022), combined at the
owner's request to save CI capacity.

- #8009: SIGNAL_DISPLAY_NAMES + signal_display_name() + docs/signals.md; the LLM
  brief shows display names beside raw keys and no longer calls linear 'paths'.
- #8010: C size_t out of safety; Python/embedded_python pass only as
  except...: pass (one site); PHP exit/die out of debug_prints.
- #8011: TS ui_framework treats <Foo> as JSX only with attribute/self-close/
  closing tag; class/interface extends is not generics.
- #8012: FUNCTION_LEVEL_ABSENT_SIGNALS marks the 36 always-zero function columns.
Golden masters re-blessed per slice, every difference attributed.

Fixes #8011


Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY

Co-authored-by: Claude Opus 5.5 <[email protected]>
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