mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 05:39:11 +03:00
Adds a "Show archived" option to the view-options dropdown in the file explorer header (versioned buckets only). When enabled: - Archived (soft-deleted) files show up in the folder they used to live in, alongside live objects — coalesced under a synthesized parent folder when the whole path is gone (an ancestor with no live descendants at that level). A live item of the same name always wins. - Archived rows and synthesized folders render with a faint skewed stripes background + dimmed foreground so they read as "recoverable-not-active" at a glance, and their row-level actions dropdown is replaced by an "Archived" tag. - Clicking an archived row swaps the normal preview slot for the archived-file preview panel (already used in the standalone Show archived view), so restore + permanently-delete actions live in one consistent place. Clicking a live row or opening a folder clears it. The standalone "Show archived" view is unchanged and remains the destination for bulk selection and cross-folder browsing. Backed by getArchivedOverlayItems (with unit tests) which handles the tolerance for the mock trash data's inconsistent originalPath/name duplication, and skips synthesizing archived stand-ins when a live item of the same name is already at that level.