mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7226] [MERGED] fix(chat): say why trash rows pause while a restore runs #7633
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#7633
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/7226
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/trash-busy-status-7210📝 Commits (3)
6222159fix(chat): say why trash rows pause while a restore runs123da83Merge remote-tracking branch 'origin/staging' into fix/trash-busy-status-721005e14caMerge origin/staging into fix/trash-busy-status-7210📊 Changes
4 files changed (+21 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/message-trash-responsive.e2e.ts(+9 -0)📝
packages/client/src/components/chat/ChatMessageMarksPanels.tsx(+9 -0)📝
packages/client/src/localization/locales/en.json(+2 -0)📄 Description
Linked issue
Refs #7210 (follow-up to #7218; the maintainer approved this status line on 2026-10-07)
Why this change
aria-hiddenandaria-busyis not announced reliably. A sighted user scrolled halfway down the list saw only dimmed rows.What changed
ChatTrashList(packages/client/src/components/chat/ChatMessageMarksPanels.tsx) now has onerole="status"/aria-live="polite"element between the header and the list. It is always on the page and empty while idle, so the text change is announced. While busy it shows Restoring messages… or Deleting messages…. The existing result toast still reports the outcome.--background,--foreground,--border). Long translations wrap inside the panel.ui.chat.messagetrash.restoringandui.chat.messagetrash.deleting. No community locale files touched.e2e/message-trash-responsive.e2e.ts: new assertions only. The status exists and is empty before the restore, reads "Restoring messages…" and is visible while the restore is held, the list's top doesn't move, and the status is empty again afterwards. No existing assertion changed. Without the component change the new assertions fail (getByRole('status')not found).[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for reference; boxes above are left for the human reviewer):
pnpm check: passed (includespnpm localization:check, format, lint, e2e types, build).pnpm localization:check: passed.message-trash-responsive,message-trash-batching,message-marks-trash,chat-settings-toolswith--workers=1:message-trash-batching"conflicts-only" test timed out waiting for 5,001 rows to refill (4,600 seen at 10 s). That test doesn't touch the new status, and it then passed 3/3 with--repeat-each=3. It looks like a timing flake under machine load, not a regression.staging, which only conflicted inCHANGELOG.md; every entry kept):--workers=1 --repeat-each=3: desktop-chromium 18/18 passed, mobile-webkit 18/18 passed (including themessage-trash-batching"conflicts-only" test all 3 times).role="status"witharia-live="polite", is on the page and empty before anything runs, and has noaria-hidden,aria-busy,inertor hidden ancestor; it reads "Restoring messages…" for Restore all and a row's Restore, and "Deleting messages…" for a row's Delete forever and Empty trash; it clears afterwards; the toast wording differs; the note's text and background reach about 18:1 (light) and 12:1 (dark) contrast; it stays inside the panel below the header buttons, and stays in view with the list scrolled to row 2,500. Row render counts stay unchanged during the restores.stagingmerge:pnpm checkpassed (exit 0),pnpm version:checkpassed, andmessage-trash-responsiveplusmessage-marks-trashpassed again on desktop-chromium and mobile-webkit (6/6).rate_limit(all 3 reviews in the window used, about 49 min wait). The GitHub CodeRabbit review needs to run on this PR.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG
[Unreleased]has a new entry. Nodocs/pages changed.UI evidence (if applicable)
No screenshots are attached. Screenshots were checked locally (desktop-chromium and mobile-webkit, light and dark): the note shows over the dimmed first rows at the top of the list, and stays pinned to the top of the view when the list is scrolled. Long translated text wraps inside the panel width. In dark mode the panel background is slightly see-through, so dimmed row text shows faintly behind the note; the note stays readable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.