Skip to main content

Remembered state

Lifer remembers choices (a region, an export folder, a filter) as an id or a path. Each one can outlive the thing it points at: the region's pack is removed, the folder is on an unplugged drive, the tag was deleted. The rule for every row below is the same: the app quietly falls back to a sensible default, and never blanks a page or shows an error for a choice the user made earlier.

When you add something that is remembered, add a row and a test.

Browser storage (the web app)​

RememberedKeyWhen it points at nothingTest
Last regionlifer:lastRegionIdThe region picker clears it; the Collection moves to a downloaded country on the same continent, then any, then the continent.RegionBrowser.test.tsx, restoreFallback.test.ts
Recent regionslifer:recentRegionsDamaged entries read as none; regions the picker can't reach are skipped.RegionBrowser.test.tsx
Burst edits: Apply to all photos in this burstlifer:burstApply.coordinates, .date, .speciesUnreadable storage reads as ticked, the default.useBurstScope.test.tsx
Photo editor (Edit photos with)lifer:photoEditorAn editor no longer installed falls back to the first one found, with a notice once a run.useOpenInEditors.test.ts
Hidden appslifer:hiddenAppsAn unknown or removed app id hides nothing.pluginsHidden.test.ts
Apps kept from opening in the background, or with notices offlifer:noBackgroundApps, lifer:noNoticeAppsA removed app's id does nothing.PluginPage.test.tsx
Stats: include RAW photoslifer:stats.includeRawNothing to point at; unreadable storage reads as on.StatsPage.test.tsx
Album and portfolio export folderslifer:albumExportFolder, lifer:portfolioExportFolderThe folder picker opens at the top level.FolderPicker.test.tsx
Import: Move photos into my librarylifer:import.moveOriginalsNothing to point at; unreadable storage reads as off.PhotoImportRows.known.test.tsx
Versions window: list or gridlifer:versions.viewNothing to point at; an unknown or unreadable value goes back to a list for a few files and a grid for many.PhotoVersions.test.tsx
Gallery: Group burstslifer:galleryGroupBursts, and ?bursts= in the URLNothing to point at; unreadable storage reads as off, and a link's ?bursts= wins over the saved choice.useGalleryDisplayPrefs.test.ts
Species names (main name and what shows beside it)lifer:speciesNameMain, lifer:speciesNameAlsoNothing to point at; an unreadable or unknown value reads as the common name with the default extras.speciesName.test.ts
Photo grids: Version labelslifer:showVersionLabelsNothing to point at; unreadable storage reads as on.PhotoGrid.test.tsx
Collection: Show progress by grouplifer:collectionGroupProgressHiddenNothing to point at; unreadable storage reads as on.useCollectionDisplayPrefs.test.tsx
Collection, trips and albums: Show rarity tagslifer:rarityTagsHiddenNothing to point at; unreadable storage reads as on.useCollectionDisplayPrefs.test.tsx, SpeciesCard.test.tsx
Collection and Tree of life: Show uncollected species in colourlifer:uncollectedColourNothing to point at; unreadable storage reads as off (grey).TaxaExplorer.test.tsx, CollectionToolbar.test.tsx
Tree of life: Show only my targetslifer:explorer.targetsOnlyNothing to point at; unreadable storage reads as off. With no targets in view it says so and offers Show every species.TaxaExplorer.test.tsx
Tree of life: Show raritylifer:explorer.rarityNothing to point at; unset or unreadable storage reads as on with a region picked and off without.TaxaExplorer.test.tsx
Show HDR photos in the viewer (experimental)lifer:hdrViewerNothing to point at; unreadable storage reads as off. A photo with no HDR copy, or a screen without HDR, shows the normal image.hdrViewer.test.ts, Lightbox.test.tsx
Low disk space notice dismissedlifer:lowSpaceDismissed (per drive: free space and time)Nothing to point at; unreadable storage reads as not dismissed. It stays hidden until the drive's free space halves, drops under 5 GB, or 7 days pass.LowSpaceBanner.test.tsx
Library location notice dismissedlifer:libraryLocationDismissed (per share)Nothing to point at; unreadable storage reads as not dismissed. A dismissed share never shows the notice again; Settings > Storage still lists it.LibraryLocationBanner.test.tsx

Saved in the library​

RememberedWhereWhen it points at nothingTest
Smart album rules and pinned filtersalbums.rules, the pinned_filters settingA tag, region, trip or album that is gone matches nothing; the album and the albums list still load.smartAlbums.integration.test.ts
Smart rule naming a region or tagalbums.rules (regionId, tag)A removed region or a deleted tag matches nothing; the album, its species and the albums list still open.smartAlbums.integration.test.ts
Album and trip coversalbums.cover_photo_id, trips.cover_capture_idA cover photo in the Trash gives way to the newest photo in the album, without the old crop; emptying the Trash repoints it.routes.integration.test.ts (albums), trash.integration.test.ts
Trip folderstrips.source_folder, trips.destination_folderA missing or unplugged folder still lists and opens the trip; a scan finds nothing new and marks its photos missing, not gone, so they come back when the drive does.routes.integration.test.ts (trips), walkFiles.test.ts
Companion app manifests and approvals<app data>/plugins/*.json, plugin-approvals.jsonA removed manifest drops the app on the next scan; a broken one is skipped and logged once; a changed or missing app file asks again or says it is missing.plugins.rs tests
Watched folderslibrary/watchedFolders.tsA missing or unplugged folder is skipped quietly and checked again later.watchedFolders.test.ts
Where keywords go (Settings > Metadata)file_writing:<user> install settingNothing to point at; an unknown or unreadable value reads as the default (IMG_0001.xmp, inside files on, linked folders off). A linked file on an unplugged drive is skipped and gets no stray sidecar.fileWriting.integration.test.ts
Saved spotssaved_spotsA deleted spot leaves a tombstone so sync removes it everywhere.savedSpots.integration.test.ts
Server linksync/serverLink.tsAn address that answers as another server is skipped, and the key goes only to the server that proves it holds the link secret.serverLink.test.ts
Network share addressesnetwork_shares install settingA share that no longer answers just fails to connect and stays Not connected; a share mounted elsewhere is found by its address.networkShares.test.ts