feat(assets): refine character asset workspace - #612
Merged
huyanxius merged 6 commits intoAug 25, 2026
Conversation
The asset workspace needs authenticated access to the binary pixel-perfect tool. Add a typed client that downloads source media and validates PNG responses and metadata. Frontend features can process existing asset images without duplicating transport logic.
Binary image transport needs regression coverage for authentication and response validation. Cover source downloads, token recovery, business failures, metadata checks, and missing media. The frontend client now has focused evidence for its API boundary.
Character assets need a focused surface for processing existing action frames. Add single-action and all-action processing with comparison, progress, failure, and download states. Users can inspect pixel-perfect results without replacing stored assets.
Asset cards and dense action sequences need a consistent responsive hierarchy. Align library cards, restyle character actions, expand frames inline, and connect pixel processing. The asset workspace now scales across desktop widths without changing existing workflows.
The refined asset detail must preserve existing routes while changing its visual structure. Cover action controls, inline frame expansion, vertical scrolling, and empty states. The page behavior remains reviewable independently from its presentation changes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
The asset-detail and workbench UI changes are internally consistent, but the new processing path is not deployable against the fixed PR base: the frontend calls /tools/pixel-perfect, while that route is not present in this PR or its base. The focused tests and static inspection cover the client contract, but runtime verification is blocked because frontend dependencies are not installed in the mounted checkout.
xyh202131
previously approved these changes
Aug 25, 2026
三处冲突的取舍: - export-panel:合并两条按钮形态。iconOnly 走 main 的图标+tooltip 分支,普通形态走本分支的 icon + label 排版,两个 prop 都保留。 - character-detail:布局以本分支为准,删掉 main 的 OutfitMaster 外壳(本分支已改成标题旁悬浮预览 + PixelPerfectWorkbench), 但把它的八向母版网格单独拆成 CharacterTemplateDirections 保留下来。 - 帧序列面板:main 的方向切换搬进本分支的卡内 ActionFramePanel, 方向状态下沉到面板自身;main 那段卡外的帧序列 section 删除。
xyh202131
approved these changes
Aug 25, 2026
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.
统一角色资产库与详情页的视觉层级,并增加动作帧完美像素化工作台,使高帧数角色资产在桌面端可稳定浏览与处理。
Why
原有资产卡片与项目中心规格不一致,动作和帧数量增加后容易出现横向溢出或浏览效率下降;同时已有完美像素化接口缺少面向动作帧的前端入口。
Changes
Implementation
Verification
node_modules/.bin/vitest run src/entities/pixel-perfect/api.test.ts src/pages/character-detail/index.test.tsx:13 tests passednpm run typecheck:通过node_modules/.bin/oxfmt --check ...:通过git diff --check upstream/main...HEAD:通过Scope
Related Issues
Closes #604
Refs #550
Refs #566