mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6493
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/4762
Author: @kolacheee
Created: 8/8/2026
Status: ✅ Merged
Merged: 8/8/2026
Merged by: @kolacheee
Base:
staging← Head:feat/4756-migration-notice📝 Commits (6)
c7e7efffeat(client): one-time localized post-migration storage notice (#4756)2ae7383Merge feat/4708-shard-remaining-tables (regression hygiene) into feat/4756-migration-notice57a6286Merge staging (the merged #4708 stack) into feat/4756-migration-notice02d22b2fix(client): authoritative client-side dismissal for the migration notice537bf80fix(client): gate the agent prompter on the notice query, not the modalfce59c9Merge branch 'staging' into feat/4756-migration-notice📊 Changes
9 files changed (+420 additions, -2 deletions)
View changed files
📝
packages/client/src/App.tsx(+19 -1)➕
packages/client/src/components/modals/StorageMigrationNoticeModal.tsx(+127 -0)➕
packages/client/src/hooks/use-storage-migration-notice.ts(+59 -0)📝
packages/client/src/localization/locales/en.json(+14 -0)📝
packages/server/src/db/file-backed-store.ts(+67 -1)📝
packages/server/src/routes/app-settings.routes.ts(+2 -0)➕
packages/shared/src/constants/storage-migration-notice.ts(+18 -0)📝
packages/shared/src/index.ts(+1 -0)📝
scripts/regressions/message-sharding.regression.ts(+113 -0)📄 Description
Linked issue
Closes #4756 (maintainer-approved).
Why this change
.pre-shardbackups are permanent by design), the familiartables/messages.jsondisappears for anyone who looks at or syncs their data folder, and downgrades start being refused with a "storage format" message nobody has met before. Each of those is a predictable "is something broken?" support ticket.What changed
recordMigrationNotice()persists anapp_settingsrow (storage-migration-notice): pre-migration format (captured by the existing version gate, the only place that value exists), the migrated table list, and a timestamp. Written after load and flushed with the migrated shards, so a headless first boot cannot lose it. An unacknowledged prior notice merges (originalfromFormatwins, table lists union); fresh installs migrate nothing and never write one. A future format bump that performs a real shard migration re-arms it for free.PUTwith an empty value.StorageMigrationNoticeModal— mounted inApp.tsxin theWhatsNewModalsequencing family: waits for What's New to resolve, suppresses the agent-update prompter while open, and gates on onboarding completion. ELI5 copy by default; a "Show technical details" toggle reveals the format transition (with i18next plural handling and an unknown-origin variant), the.pre-shardreclaim guidance, and the guarded-downgrade/unshardpath; an "Open the storage guide" button lands the docs viewer on TROUBLESHOOTING. Dismissal is authoritative client-side (the What's New rule): a local dismissed flag plus an optimistic cache clear, with the server acknowledge best-effort — if the PUT fails, the modal stays closed for the session and the durable marker re-shows it next launch.en.jsonrendered through the standard i18n layer; community locales fall back to English per repo convention (deliberately not duplicated into other locale files).The change went through the full gauntlet: recon of the four subsystems it integrates with, an adversarial review workflow (three lenses, per-finding refutation) that caught a real dismissal-reopen loop + a presentation-gate latch the initial live pass had missed (both fixed and re-verified live), and end-to-end browser verification against a real format-2 fixture — migration → marker → modal → technical toggle → dismissal (success and server-down failure paths) → reload clean → docs-viewer link.
Known accepted limitation: the storage-guide button opens the TROUBLESHOOTING document at the top rather than deep-linked to the downgrade section (the docs-viewer modal API takes a document path only).
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm check(green, twice), message-sharding lane incl. the four marker cases (green),pnpm localization:check+ key-reference regression (green). Live browser pass: migration → modal → toggle → dismissal with no reopen (1.5 s sampled) → server-down dismissal sticks (2.5 s sampled) → reload clean → guide button opens TROUBLESHOOTING.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/files changed — the new user-facing strings are UI locale keys, which ride the language-pack workflow rather than docs-i18n.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.