[PR #1725] [MERGED] chore: type preset editor rows #5237

Closed
opened 2026-10-22 04:14:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1725
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/preset-editor-any-slice


📝 Commits (2)

  • dd5726d chore: type preset editor rows
  • 0f8272d chore: align preset section row guard

📊 Changes

1 file changed (+115 additions, -68 deletions)

View changed files

📝 src/features/catalog/presets/components/PresetEditor.tsx (+115 -68)

📄 Description

Linked issue

N/A - local lint-hardening chore.

Why this change

  • Reduce explicit any usage in the catalog preset editor before a future no-explicit-any lint gate.

What changed

  • Added typed row aliases for preset sections, groups, choice blocks, marker configs, and preset editor mutation props.
  • Replaced PresetEditor code-level explicit any usage with typed rows and existing prompt contract types.
  • Preserved legacy storage shapes for string booleans, JSON-string marker configs, and variable_name.

Refactor impact

Primary owner:

Catalog preset editor UI.

Impact areas reviewed:

  • Preset editor data loading and local state hydration.
  • Section ordering, group lookup, marker display, duplicate-section payloads.
  • Preset variable rendering, reorder payloads, and legacy variable-name fallback.

Boundary notes:

  • Feature-only React typing cleanup.
  • No engine behavior, shared API wrapper, Rust command, or remote runtime path changed.

Pressure points touched:

  • None.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Agent-run pnpm check passed locally, including line endings, architecture, frontend typecheck, Rust workspace check, docs check, and unused-code check.
  • Agent-run pnpm typecheck passed locally before the full check.
  • Agent-run pnpm check:architecture passed locally before the full check.
  • No manual Tauri/browser UI pass was run; this is a type-only cleanup with no intended UI behavior change.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Notes:

  • No docs or release notes needed; no user-facing behavior changed.
  • This PR does not restore old staging/package-workspace/release claims.

UI evidence

N/A - type-only catalog preset editor cleanup.

Summary by CodeRabbit

  • Refactor
    • Improved internal code structure and consistency in the preset editor component.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1725 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `chore/preset-editor-any-slice` --- ### 📝 Commits (2) - [`dd5726d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd5726d1496905065301b11c745b13df9a8816f0) chore: type preset editor rows - [`0f8272d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0f8272db5ee2fc1b1a034d62eb0bacf980e15954) chore: align preset section row guard ### 📊 Changes **1 file changed** (+115 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `src/features/catalog/presets/components/PresetEditor.tsx` (+115 -68) </details> ### 📄 Description ## Linked issue N/A - local lint-hardening chore. ## Why this change - Reduce explicit `any` usage in the catalog preset editor before a future `no-explicit-any` lint gate. ## What changed - Added typed row aliases for preset sections, groups, choice blocks, marker configs, and preset editor mutation props. - Replaced `PresetEditor` code-level explicit `any` usage with typed rows and existing prompt contract types. - Preserved legacy storage shapes for string booleans, JSON-string marker configs, and `variable_name`. ## Refactor impact Primary owner: Catalog preset editor UI. Impact areas reviewed: - Preset editor data loading and local state hydration. - Section ordering, group lookup, marker display, duplicate-section payloads. - Preset variable rendering, reorder payloads, and legacy variable-name fallback. Boundary notes: - Feature-only React typing cleanup. - No engine behavior, shared API wrapper, Rust command, or remote runtime path changed. Pressure points touched: - None. ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Agent-run `pnpm check` passed locally, including line endings, architecture, frontend typecheck, Rust workspace check, docs check, and unused-code check. - Agent-run `pnpm typecheck` passed locally before the full check. - Agent-run `pnpm check:architecture` passed locally before the full check. - No manual Tauri/browser UI pass was run; this is a type-only cleanup with no intended UI behavior change. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims Notes: - No docs or release notes needed; no user-facing behavior changed. - This PR does not restore old staging/package-workspace/release claims. ## UI evidence N/A - type-only catalog preset editor cleanup. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved internal code structure and consistency in the preset editor component. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5237
No description provided.