Skip to content

Emit a warning when manufacturerPartNumber is missing for the connector#2143

Merged
MustafaMulla29 merged 2 commits intomainfrom
mfn/warning
Apr 16, 2026
Merged

Emit a warning when manufacturerPartNumber is missing for the connector#2143
MustafaMulla29 merged 2 commits intomainfrom
mfn/warning

Conversation

@MustafaMulla29
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment Apr 16, 2026 6:51am

Request Review

@MustafaMulla29 MustafaMulla29 marked this pull request as ready for review April 16, 2026 06:44
standard: props.standard,
subcircuit_id: this.getSubcircuit()?.subcircuit_id ?? undefined,
warning_type: "source_missing_manufacturer_part_number_warning",
message: `${this.getString()} has standard="${props.standard}" but no manufacturerPartNumber (mfn). Add mfn if you do not want the USB-C part to change in future.`,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
message: `${this.getString()} has standard="${props.standard}" but no manufacturerPartNumber (mfn). Add mfn if you do not want the USB-C part to change in future.`,
message: `${this.getString()} has standard="${props.standard}" but no manufacturerPartNumber (mfn). Add mfn if you do not want the part to change in future.`,

Is the connector always usb-c?

Copy link
Copy Markdown
Contributor Author

@MustafaMulla29 MustafaMulla29 Apr 16, 2026

Choose a reason for hiding this comment

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

Yes currently only usbc is implemented

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Although your suggestion sounds good

@MustafaMulla29 MustafaMulla29 requested review from seveibar and removed request for seveibar April 16, 2026 15:10
@MustafaMulla29 MustafaMulla29 merged commit cc26893 into main Apr 16, 2026
14 checks passed
@MustafaMulla29 MustafaMulla29 deleted the mfn/warning branch April 16, 2026 15:14
@tscircuitbot
Copy link
Copy Markdown
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

4 participants