You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Realm settings → Localization → Realm overrides, inline editors share one draft value and track edits by row index. Opening a second editor can overwrite the first row’s draft. Filtering or paging can also move an open editor to a different translation.
Key drafts by realm, locale, and translation key. Saving or canceling affects only that row, and failed saves keep the draft available for retry. Search and pagination reload saved translations while preserving open drafts.
Remove confirmed deletions from the table immediately, including successful deletions in a partially failed batch. Ignore superseded fetch responses so they cannot restore deleted rows.
Verified with six Chromium localization tests and six supplemental checks covering concurrent saves, pagination, partial deletes, and stale responses. TypeScript, Prettier, and Spotless passed.
I used an AI coding agent to implement and verify this change.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
A committed regression test is missing for failed inline-save retries, including preserving the editable draft, leaving other rows’ drafts unchanged, and persisting the value after retry.
This PR makes inline translation drafts independent in Realm settings → Localization → Realm overrides, preserving edits across filtering and pagination.
Changes:
Keys drafts by realm, locale, and translation key, with row-specific save, cancel, and retry handling.
Removes confirmed deletions locally and guards against superseded fetch responses.
Updates row-based test helpers and adds coverage for independent drafts, locale switching, and reload behavior.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Successful deletions remain visible until the entire batch finishes, so removal and read invalidation must occur after each successful DELETE to provide immediate feedback.
Local removal and read invalidation run only after the entire batch finishes, so a successful first DELETE remains visible while a later DELETE is slow or stalled. Apply removal and invalidation after each successful DELETE to meet the promised immediate-removal behavior, keeping batch-level cleanup in finally.
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Realm settings → Localization → Realm overrides, inline editors share one draft value and track edits by row index. Opening a second editor can overwrite the first row’s draft. Filtering or paging can also move an open editor to a different translation.
Key drafts by realm, locale, and translation key. Saving or canceling affects only that row, and failed saves keep the draft available for retry. Search and pagination reload saved translations while preserving open drafts.
Remove confirmed deletions from the table immediately, including successful deletions in a partially failed batch. Ignore superseded fetch responses so they cannot restore deleted rows.
Verified with six Chromium localization tests and six supplemental checks covering concurrent saves, pagination, partial deletes, and stale responses. TypeScript, Prettier, and Spotless passed.
I used an AI coding agent to implement and verify this change.