Fix tigrbl-lens white screen by loading CSS and upgrading to v0.0.7 #4957
+5
−2
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.
Motivation
/lensHTML.0.0.7release to pick up fixes and match the intended bundle.Description
TIGRBL_LENS_VERSION = "0.0.7"constant and switched the importmap entry for@tigrbljs/tigrbl-lensto use that constant inbuild_lens_html.tigrbl-lensstylesheet link<link rel="stylesheet" href="https://esm.sh/@tigrbljs/tigrbl-lens@{TIGRBL_LENS_VERSION}/dist/tigrbl-lens.css" />into the generated/lensHTML so the app is styled correctly.test_mountable_lens_uvicorn.pyto assert the new import map URL and to verify the CSShrefis present in the HTML.Testing
uv run --directory pkgs/standards --package tigrbl ruff format .anduv run --directory pkgs/standards --package tigrbl ruff check . --fix, and repeated fortigrbl-tests, all of which passed.mount_openrpc(..., path="/openrpc.json")andmount_lens(..., path="/lens")and confirmedGET /openrpc.jsonreturns the OpenRPC JSON andGET /lensreturns HTML containing the lens import and CSS link./openrpc.jsonand/lens; Chromium failed to launch in this environment but the Firefox run completed and produced screenshots showing the OpenRPC JSON and the rendered Lens page.Codex Task