Repository navigation
feat(client-devtools)!: make /overlay the full panel, move the lean view to /mini - #104
Merged
Merged
Conversation
…iew to /mini
The publish workflow was fine. 1.10.2 shipped every byte of the new panel. The
problem was that `mountOverlay` was never the thing that got rewritten.
`overlay` is the import people reach for. Leaving the smallest UI in the
package on the most obvious name meant that following your instincts got you
six read-only tables and nothing telling you a better one existed one subpath
away. That is a naming bug and it wasted a release.
So `/overlay` is the full panel now, and `/panel` is the same module under the
name it had first. Nobody already on `/panel` sees any change at all. The lean
view has not gone anywhere and is still worth having: six tables and a filter
box in 3.5 kB is the right trade for a demo or a production-adjacent build. It
answers to `/mini` and `mountMini`.
client-react-devtools needed the same correction. Its `panel={false}` escape
hatch reached for `/overlay`, so after this it would have quietly stopped
meaning anything and handed you the full panel either way. It reaches for
`/mini` now, and there is a test for each branch.
BREAKING CHANGE: `mountOverlay` from `@forge-go/client-devtools/overlay` now
renders the full panel rather than the lean six-table view, and the bundle it
pulls in grows accordingly. If you wanted the small one, import `mountMini`
from `@forge-go/client-devtools/mini`. `/panel` is unchanged.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Conventional Commits ValidationPR Title: valid |
`props: ForgeDevtoolsProps = {}` makes the parameter optional, so a bare
`createElement` resolves to the no-props overload and rejects every prop the
component actually takes. The existing tests only ever passed `null` or a
key, which is why nobody had hit it.
Caught by CI and not by me: I ran the package build and not its test
typecheck, and those are two different tsconfigs.
Contributor
Conventional Commits ValidationPR Title: valid |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The publish workflow was fine. 1.10.2 shipped every byte of the new panel. The
problem was that
mountOverlaywas never the thing that got rewritten.overlayis the import people reach for. Leaving the smallest UI in thepackage on the most obvious name meant that following your instincts got you
six read-only tables and nothing telling you a better one existed one subpath
away. That is a naming bug and it wasted a release.
So
/overlayis the full panel now, and/panelis the same module under thename it had first. Nobody already on
/panelsees any change at all. The leanview has not gone anywhere and is still worth having: six tables and a filter
box in 3.5 kB is the right trade for a demo or a production-adjacent build. It
answers to
/miniandmountMini.client-react-devtools needed the same correction. Its
panel={false}escapehatch reached for
/overlay, so after this it would have quietly stoppedmeaning anything and handed you the full panel either way. It reaches for
/mininow, and there is a test for each branch.BREAKING CHANGE:
mountOverlayfrom@forge-go/client-devtools/overlaynowrenders the full panel rather than the lean six-table view, and the bundle it
pulls in grows accordingly. If you wanted the small one, import
mountMinifrom
@forge-go/client-devtools/mini./panelis unchanged.