Skip to content

角色管理 - #677

Merged
MakinoharaShoko merged 4 commits into
devfrom
character-manage
Nov 14, 2026
Merged

MakinoharaShoko merged 4 commits into
devfrom
character-manage

Conversation

@MakinoharaShoko

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T13:32:15.185026Z 24ace5b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24ace5b2d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +79 to +80
nextLayers.splice(toIndex, 0, moved);
return { ...doc, layers: nextLayers };

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep preset ordering consistent with reordered layers

When layers belonging to an existing preset are reordered, this operation changes only doc.layers, leaving the preset's bottom-to-top array unchanged. For example, moving face below base changes the canvas order to [face, base] but still saves presets.normal as [base, face]. CharacterCanvas also renders exclusively in global layer order, so selecting that preset conceals the discrepancy. Update the affected preset ordering along with the layers, or render preset-specific ordering so the preview accurately represents the saved preset.

Useful? React with 👍 / 👎.

Comment on lines +174 to +176
const components = Object.fromEntries(
[...doc.layers].reverse().map((layer) => [layer.key, serializeComponent(layer.component)]),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Prevent numeric layer names from losing their saved order

For layers named with integer strings, such as those automatically derived from 1.png and 2.png, Object.fromEntries enumerates the component keys in numeric order regardless of the requested layer order. Consequently, a top-to-bottom layer list of ["1", "2"] becomes ["2", "1"] after serialization and parsing. Dragging these layers therefore cannot reliably persist their stacking order. Generate and validate non-integer layer keys, or use an ordering representation that survives the JSON round trip.

Useful? React with 👍 / 👎.

@MakinoharaShoko
MakinoharaShoko merged commit e2b57e0 into dev Nov 14, 2026
7 checks passed
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.

1 participant