Skip to content

DEV-183 Dev Toolbar#848

Closed
ryanechternacht wants to merge 15 commits into
mainfrom
toolbar
Closed

DEV-183 Dev Toolbar#848
ryanechternacht wants to merge 15 commits into
mainfrom
toolbar

Conversation

@ryanechternacht
Copy link
Copy Markdown
Member

@ryanechternacht ryanechternacht commented Jan 26, 2026

https://linear.app/schematic/issue/DEV-183/add-a-dev-toolbar

https://www.loom.com/share/47adb5985bcc4143b753027beb66e09b

this was a bit of flyer that I (and claude) whipped up. I added a dev toolbar to the core js repo that can be enabled in either js, react, or vue sdks. the one downside of this is that I'm using vanilla js to create/control the toolbar, which is a bit verbose and annoying to read. I refactored the whole toolbar out to it's own file and tried to keep the "logical" parts of the toolbar separate from the "html generation" parts for readability.

currently, the toolbar lets you manually set flag values (either true/false) to simplify testing.

moving forward, I envision 2 big additions

  • setting numbers for effective entitlements (requires effective entitlements)
  • setting trial status and other fields in useSchematicPlan hook (requires useSchematicPlan hook)

also, the styling on this is quite simple. happy to edit as we see fit.

@ryanechternacht ryanechternacht self-assigned this Jan 26, 2026
@ryanechternacht ryanechternacht requested review from a team as code owners January 26, 2026 03:53
Comment thread js/package.json
"url": "git+ssh://git@github.com/SchematicHQ/schematic-js.git"
},
"scripts": {
"dev": "npx esbuild src/index.ts --bundle --format=esm --outfile=dist/schematic.esm.js --watch",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

quality of life for dev. build:esm script + -- watch to auto build as you dev. currently, it still requires a manual yarn build in the react folder to actually get a fully built library for local react dev, but this saves some time

Copy link
Copy Markdown
Contributor

@tenub tenub left a comment

Choose a reason for hiding this comment

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

Overall this looks pretty great. My only question to pose is if this may be better served as a separate package. Otherwise, there are a decent number of shared types resulting in some code duplication; we could maybe export shared types to resolve this.

@@ -0,0 +1,361 @@
import { CheckFlagReturn } from "./types";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tenub I think I am pulling in the our types, right?

The types below are just specific to the toolbar (and claude's createElement which I'm ¯_(ツ)_/¯ on, but works)

ryanechternacht and others added 5 commits January 29, 2026 10:11
… table (#847)

* Add debug if public api key isn't included when using pricing table

* fix react hook issue

* another fix for this react hook issue

* Always warn if api key isn't passed
GitHub ref: refs/heads/main
GitHub repo: SchematicHQ/schematic-api
Git SHA: 9ff40d2dfea3c89ce5eed99bbcfab92c85f23efc

Co-authored-by: Benjamin Papillon <benpapillon@gmail.com>
@github-actions
Copy link
Copy Markdown

🚀 Components Preview Deployed!

📍 Preview URL: https://schematic-next-example-kvbof97zs-schematichq.vercel.app
🔄 Components Version: Built from commit cd4623d
📦 Demo App: schematichq/schematic-next-example

@github-actions
Copy link
Copy Markdown

🚀 Components Preview Deployed!

📍 Preview URL: https://schematic-next-example-lw50ck5rk-schematichq.vercel.app
🔄 Components Version: Built from commit 8c9dbce
📦 Demo App: schematichq/schematic-next-example

@ryanechternacht
Copy link
Copy Markdown
Member Author

i did something wrong with rebase. checkout #852 instead

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.

3 participants