mattermost-mobile-upstream/app/utils/snack_bar
Carlos Garcia e2b167b2c6
Mm 68293 ephemeral mode warnings (#10140)
* auto cache rolling cleanup for posts

* ai threads rolling cleanup

* auto rolling cleanup of playbook runs

* fix to import and use renamed module

* makes post cleanup atomic by moving processing to sql layer

* restore previous file viewer post id and use full error logging

* performs vacuum as last step and removes unused code

* return early on empty channel array

* address gallery items without a post id

* prevent drafts to be deleted as part of auto cache cleanups

* unset channel oldest visible on channel switch

* clear oldest visible on empty array

* revert early return to prevent flickering

* restore previous playbookrun id on unmount

* fixes issue creating data retention deletion batches

* move active threads root cleanup protection to SQL execution

* notify observers of range changes in post lists

* in flight protection for auto cache cleanup runs

* add space around operator

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* show warnings as snackbars related to ephemeral mode settings

snackbar can now be persistent for some warnings requiring the user to
acknowledge reading the message by manually dismissing it.

* adds warnings when mobile ephemeral mode settings change

snackbar component has been augmented to show user dismissable messages
that require user interaction and to support longer messages with
title and description.
A header icon continuously show when ephemeral mode or zero persistence
is enabled for a particular server.

* fix i18n

* renders snackbar properly when changing from persistent to ephemeral versions

* reset visibility for tooltip when ephemeral mode config changes

* show ephemeral mode warnings only for active server

* renames added tests to start with should...

* guards against a race casing to wipe an untracked server

* enqueue ephemeral mode config changes so wipe operations don't race

* auto cache cleanup warning shows only for active server

* shows snackbar instead of tooltip on ephemeral mode icon tap

* drops virtual set to true from jest mocks of real modules

this was causing some flaky tests that failed depending on ordering
while running in CI.

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-10-01 18:13:22 +02:00
..
index.test.ts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
index.ts Mm 68293 ephemeral mode warnings (#10140) 2026-10-01 18:13:22 +02:00