[GH-ISSUE #3870] [Feature]: Consolidate duplicate contracts and obsolete UI state #2093

Closed
opened 2026-10-21 05:45:19 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3870

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Several client, server, and shared modules maintain duplicate type declarations, normalizers, preset creation paths, and persisted UI fields for behavior that now has a single canonical owner. The duplicates make contract drift more likely and keep obsolete settings and layout branches alive after their UI consumers have gone away.

Proposed solution

Consolidate the duplicated app-settings, avatar-crop, Spotify-source, and summary-template contracts in the shared package. Remove verified-unused persisted UI settings and the retired vertical Roleplay HUD layout, and route chat-preset imports and duplicates through the normal sanitized creation path.

The cleanup should preserve current rendering, persisted compatibility where still required, Spotify fallback behavior, summary-template normalization, and preset metadata exclusions.

Alternatives considered

Keep local aliases and per-layer normalizers indefinitely. This avoids touching exports but leaves multiple sources of truth and continues carrying settings and branches with no runtime consumer.

Additional context

This is a behavior-preserving maintenance pass. Browser verification should cover desktop/mobile Roleplay HUD popovers, group scenario save/clear behavior, Spotify source selection and malformed-value fallback, current and legacy avatar crops, chat presets, and the New Game setup flow.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jul 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3870 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Several client, server, and shared modules maintain duplicate type declarations, normalizers, preset creation paths, and persisted UI fields for behavior that now has a single canonical owner. The duplicates make contract drift more likely and keep obsolete settings and layout branches alive after their UI consumers have gone away. ## Proposed solution Consolidate the duplicated app-settings, avatar-crop, Spotify-source, and summary-template contracts in the shared package. Remove verified-unused persisted UI settings and the retired vertical Roleplay HUD layout, and route chat-preset imports and duplicates through the normal sanitized creation path. The cleanup should preserve current rendering, persisted compatibility where still required, Spotify fallback behavior, summary-template normalization, and preset metadata exclusions. ## Alternatives considered Keep local aliases and per-layer normalizers indefinitely. This avoids touching exports but leaves multiple sources of truth and continues carrying settings and branches with no runtime consumer. ## Additional context This is a behavior-preserving maintenance pass. Browser verification should cover desktop/mobile Roleplay HUD popovers, group scenario save/clear behavior, Spotify source selection and malformed-value fallback, current and legacy avatar crops, chat presets, and the New Game setup flow. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:19 +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#2093
No description provided.