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)
| Remembered | Key | When it points at nothing | Test |
|---|---|---|---|
| Last region | lifer:lastRegionId | The 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 regions | lifer:recentRegions | Damaged entries read as none; regions the picker can't reach are skipped. | RegionBrowser.test.tsx |
| Burst edits: Apply to all photos in this burst | lifer:burstApply.coordinates, .date, .species | Unreadable storage reads as ticked, the default. | useBurstScope.test.tsx |
| Photo editor (Edit photos with) | lifer:photoEditor | An editor no longer installed falls back to the first one found, with a notice once a run. | useOpenInEditors.test.ts |
| Hidden apps | lifer:hiddenApps | An unknown or removed app id hides nothing. | pluginsHidden.test.ts |
| Apps kept from opening in the background, or with notices off | lifer:noBackgroundApps, lifer:noNoticeApps | A removed app's id does nothing. | PluginPage.test.tsx |
| Stats: include RAW photos | lifer:stats.includeRaw | Nothing to point at; unreadable storage reads as on. | StatsPage.test.tsx |
| Album and portfolio export folders | lifer:albumExportFolder, lifer:portfolioExportFolder | The folder picker opens at the top level. | FolderPicker.test.tsx |
| Import: Move photos into my library | lifer:import.moveOriginals | Nothing to point at; unreadable storage reads as off. | PhotoImportRows.known.test.tsx |
| Versions window: list or grid | lifer:versions.view | Nothing 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 bursts | lifer:galleryGroupBursts, and ?bursts= in the URL | Nothing 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:speciesNameAlso | Nothing to point at; an unreadable or unknown value reads as the common name with the default extras. | speciesName.test.ts |
| Photo grids: Version labels | lifer:showVersionLabels | Nothing to point at; unreadable storage reads as on. | PhotoGrid.test.tsx |
| Collection: Show progress by group | lifer:collectionGroupProgressHidden | Nothing to point at; unreadable storage reads as on. | useCollectionDisplayPrefs.test.tsx |
| Collection, trips and albums: Show rarity tags | lifer:rarityTagsHidden | Nothing to point at; unreadable storage reads as on. | useCollectionDisplayPrefs.test.tsx, SpeciesCard.test.tsx |
| Collection and Tree of life: Show uncollected species in colour | lifer:uncollectedColour | Nothing to point at; unreadable storage reads as off (grey). | TaxaExplorer.test.tsx, CollectionToolbar.test.tsx |
| Tree of life: Show only my targets | lifer:explorer.targetsOnly | Nothing 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 rarity | lifer:explorer.rarity | Nothing 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:hdrViewer | Nothing 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 dismissed | lifer: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 dismissed | lifer: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
| Remembered | Where | When it points at nothing | Test |
|---|---|---|---|
| Smart album rules and pinned filters | albums.rules, the pinned_filters setting | A 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 tag | albums.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 covers | albums.cover_photo_id, trips.cover_capture_id | A 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 folders | trips.source_folder, trips.destination_folder | A 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.json | A 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 folders | library/watchedFolders.ts | A missing or unplugged folder is skipped quietly and checked again later. | watchedFolders.test.ts |
| Where keywords go (Settings > Metadata) | file_writing:<user> install setting | Nothing 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 spots | saved_spots | A deleted spot leaves a tombstone so sync removes it everywhere. | savedSpots.integration.test.ts |
| Server link | sync/serverLink.ts | An 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 addresses | network_shares install setting | A 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 |