mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4912] [MERGED] fix(test): make the summary reorder regression robust to line endings #6539
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6539
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4912
Author: @kolacheee
Created: 8/11/2026
Status: ✅ Merged
Merged: 8/11/2026
Merged by: @kolacheee
Base:
staging← Head:fix/summary-reorder-regression-crlf📝 Commits (2)
22076e2fix(test): make the summary reorder regression robust to line endings (#4911)708cb61test: assert the summary reorder surface on one element incl. its persisted index (#4911)📊 Changes
2 files changed (+8 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
scripts/regressions/open-issues.regression.ts(+7 -2)📄 Description
Linked issue
Closes #4911
Why this change
The
open-issuesregression fails on Windows checkouts at the assertion "Summary entries must expose a shared desktop and touch reorder surface", even on a cleanstagingtree. It passes in Linux CI.Root cause is a brittle proximity check, not a real regression. The assertion required
data-summary-entry-rootand the nearest followingdata-touch-reorder-itemto be within 3000 characters:After the entry row was extracted into the
SummaryEntryRowsub-component, those two markers sit ~52 lines apart inSummaryPopover.tsx. On the committed LF blob the gap is 2998 chars — 2 under the limit — so CI passes. But the repo uses* text=autoandcore.autocrlfdefaults to true on Windows, so a Windows working tree has CRLF; the ~52 extra carriage-return bytes push the gap to 3050, over the limit, andreadFileSync(..., "utf8")reads those CRLF bytes. So the check passed in Linux CI and failed for every Windows contributor.The reorder feature is fully intact — the
SummaryEntryRowroot element carriesdata-touch-reorder-item="summary-entry"together withdraggable,onDragStart,onDragOver,onDrop, andonDragEnd, and the container root wiresonDragOver/onDropfor desktop drops.What changed
scripts/regressions/open-issues.regression.ts— replaced the single 3000-char cross-component proximity match with two tight assertions that verify the actual shared surface, independent of line endings and of where the row component is defined:data-summary-entry-root→onDrop={handleSummaryDrop});data-touch-reorder-item={reorderable ? "summary-entry"→draggable={reorderable && dragReady}→onDragStart={onDragStart}).CHANGELOG.md— one entry under Fixed.No production code changed.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated, done by me:
pnpm checkpasses (exit 0).pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.tsnow passes end-to-end on a Windows (CRLF) working tree ("Open-issue regressions passed."), where it previously aborted on this assertion.SummaryPopover.tsxon both CRLF and LF-normalized content.No app/runtime behavior changed, so there is nothing to click through in a browser.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG.mdupdated. Nodocs/change and no version bump.Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.