Skip to content

Add persistent custom laser profiles (saved in localStorage) with validated “Add Profile” dialog#61

Merged
AnasSarkiz merged 1 commit intotscircuit:mainfrom
AnasSarkiz:main
Feb 5, 2026
Merged

Add persistent custom laser profiles (saved in localStorage) with validated “Add Profile” dialog#61
AnasSarkiz merged 1 commit intotscircuit:mainfrom
AnasSarkiz:main

Conversation

@AnasSarkiz
Copy link
Member

This PR enables users to create, name, and reuse custom laser profiles instead of relying only on built-in presets.

  • Adds a new “Add Laser Profile” dialog with required/unique name validation.
  • Persists custom profiles to localStorage and merges them with built-in presets at runtime.
  • Extracts NumericControl into a shared component to reuse across Settings and the new dialog.
  • Auto-falls back to Default if a previously selected profile no longer exists, preventing invalid state.

@vercel
Copy link

vercel bot commented Feb 5, 2026

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

Project Deployment Actions Updated (UTC)
pcbburn-com Ready Ready Preview, Comment Feb 5, 2026 7:44am

Request Review

@AnasSarkiz AnasSarkiz merged commit 765d2c0 into tscircuit:main Feb 5, 2026
4 checks passed
@tscircuitbot
Copy link


Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

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.

2 participants