Skip to content

feat(engine): support folded_corner preset shape - #678

Merged
ShotaroKataoka merged 2 commits into
mainfrom
crew/folded-corner-shape
Nov 30, 2026
Merged

ShotaroKataoka merged 2 commits into
mainfrom
crew/folded-corner-shape

Conversation

@ShotaroKataoka

Copy link
Copy Markdown
Contributor

🤖 KiroCrew automated PR -- created by KiroCrew on behalf of the maintainer.

Rebuilt from #150 by @mskt4440 on the current repository layout. #150 was closed during the big restructure, when its files moved from skill/sdpm/... to sdpm/sdpm/engine/..., not because of a problem with the change. Thank you, @mskt4440, for the original work; you are credited as co-author on the commit.

What changed

A shape element can now use "shape": "folded_corner" (a note with a turned-down corner).

Part Change
Builder (engine/builder/elements/shape.py) folded_corner -> MSO_SHAPE.FOLDED_CORNER (writes prstGeom foldedCorner)
Converter (engine/converter/elements/shapes.py) foldedCorner -> folded_corner
Lint (engine/schema/lint.py) folded_corner is a known shape name
Guide (references/guides/slide-json-elements.md) folded_corner added to the shape list
CHANGELOG [Unreleased] / Added entry

How tested

  • New tests: test_folded_corner_writes_the_ooxml_preset (built prstGeom is foldedCorner), folded_corner in the round-trip parametrize, and test_folded_corner_is_a_known_name in lint. Both new tests fail without the engine change and pass with it.
  • uv run pytest tests/: 3692 passed, 22 skipped.
  • uv run ruff check sdpm/ servers/ shared/ api/ agent/: clean.

Redeploy

Local mode (sdpm update) and the AWS stack (SdpmRuntime).

Map folded_corner to MSO_SHAPE.FOLDED_CORNER in the builder, read foldedCorner back as folded_corner in the converter, accept the name in lint and list it in the slide-json-elements guide. Rebuilt from #150 on the current layout.

Co-authored-by: Masa Kato <mazkato@amazon.co.jp>
@ShotaroKataoka
ShotaroKataoka merged commit f0c0df1 into main Nov 30, 2026
27 checks passed
@ShotaroKataoka
ShotaroKataoka deleted the crew/folded-corner-shape branch November 30, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog:skip ブログ対象外 kirocrew Created by KiroCrew (automated)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant