Repository navigation
feat(visual-skin): simplify package limits and support MP4 surface backdrops - #3961
Merged
Merged
Conversation
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.
Summary
MAX_SKIN_ASSET_BYTES), removing the separate archive size, entry count, 512 KiB manifest, and 48 MiB aggregate expansion caps while retaining preflight metadata checks, streaming extraction bounds, and CRC validation.video/mp4support for surfacebackgroundAssetIdandpreviewAssetId:ftypsignatures across both ZIP path entries and embedded base64 data URLs, and rejectvideo/mp4in component or stateslots(which paint CSS backgrounds).<video>elements inside the surface paint plane ([data-openbitfun-skin-paint]) below the scrim (::after), mappingfittoobject-fitandbackgroundPositiontoobject-position, suspending playback whiledocument.hidden, and cleaning up player state on skin switches/deactivation.blob:URLs inside the fixed-geometry preview box.Uint8Array.toBase64/Uint8Array.fromBase64when available (with chunked fallback) so large assets encode and decode without multi-second main-thread stalls.openbitfun-skin-designerSkill contract, CLI helper, and tests.Type and Areas
Type: Feature
Areas: web UI, core assembly (
openbitfun-skin-designerbuilt-in skill), docs, testsMotivation / Impact
High-resolution or animated visual skin packs were constrained by separate manifest/archive/entry/aggregate size caps and static-image-only backdrops. Simplifying the importer budget to 128 MiB per file and supporting muted looping MP4 surface backdrops lets skin authors ship rich animated surface environments without relaxing declarative security or component geometry rules.
Note: AI-assisted review, refinement, and verification (tested with Vitest DOM + headless Chromium paint fixtures and Skill CLI tests).
Verification
OPENBITFUN_TEST_BROWSER="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" pnpm --dir src/web-ui run test:run src/infrastructure/visual-skin src/infrastructure/config/components/common/ConfigPageLayout.skin.test.tsx src/infrastructure/config/components/VisualSkinConfigSection.test.tsx src/app/scenes/session/ChatPane.composer-layout.test.tsx(22 test files, 175 tests passed, including headless Chromium paint fixtures)node --test src/crates/assembly/core/builtin_skills/openbitfun-skin-designer/scripts/visual-skin.test.mjs(22 tests passed)pnpm run check:web(passed: typography, appearance contracts, theme color audit across 27 surfaces, theme visual contract,tsc --noEmit)pnpm run check:repo-hygiene && git diff --check(passed)node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD(passed)docs/features/visual-skin-packs.md); no remote transport, Peer HostInvoke, Relay, or Detached Dispatch wire contracts changed (exercised in local DOM and headless Chromium fixtures only).Checklist