Skip to content

Memories

Memories is the app's one feature, and the first screen it opens on. It grew out of Stories from the Past, a quiz that is still in the code but no longer routed, and it draws from the same pool: the bundled questions in src/features/stories/questions.ts plus the photos in the senior's memory bank (src/features/stories/use-story-pool.ts).

Its screen, src/features/memories/memories-screen.tsx, shows the reminiscence items of that pool as memories, without asking for answers:

  • The start screen has the greeting, the Loved One's reminder, a Schedule button with the next appointment (schedule), a friendly fencer avatar, and a large Memories button, over the time-of-day sky and the day's hole of the golf course. The Memories button gives a medium haptic tap. While the memories load, a line saying so takes the avatar's place.
  • A session draws up to five memories (MEMORIES_PER_SESSION), each shown once. Nothing repeats within a session. The draw is random, the first memory included.
  • Only memories with a photo, a memory illustration or a video in the app are shown (hasMedia). A memory with only words, or with a video still waiting to be added, is left out.
  • A memory is its picture or video, full screen and shown whole, with no title, story, or prompt beside it. Screen readers still hear the title and the picture's description.
  • A tap on the memory slides up an overlay from the bottom. It holds the memory's context reminder (memoryContext on the item), then the song that is playing, then Restart and Next. It floats over the bottom of the picture, which keeps its size, so a video never jumps smaller as the overlay comes and goes. Another tap puts the overlay away to see the whole picture, and so does Escape: the Escape key on the web, or VoiceOver's two-finger scrub on a phone. On the last memory, Exit takes Next's place.
  • A video is ready before it shows. The phone keeps its own copy of each bank video (src/features/bank/media-cache.ts), and the screen loads the next memory's video while the current one plays, so Next opens on the video, not an empty frame. Until a video's first frame is up, the clip's poster (the still the web drew from it) stands in for it.
  • With them, a Home button appears at the top right, over the picture. It goes straight back to the start screen, without the quit screen's question. The top right is always Home's corner: the start screen keeps its Settings menu there, and the Settings pages their Home button (HomeButton in src/components/pane.tsx, the same button in all three places).
  • A context reminder is a short, plain line addressed to the senior ("You married Nyna on November 18, 1968"), written only from facts the family or the public record gave. It may quote the senior's own words. A memory without one shows its story quote in the overlay instead; the two never show together, so the overlay fits the smallest screen (7 lines of body text, the memoryContext budget).
  • Exit leads to the quit screen: a large question mark and "So, what did you think of the experience today?", with Back to start.
  • A memory's video plays once (an uploaded one is at most a minute long, Media). When it ends, the song stops with it and the overlay slides up on its own, with the memory detail and Restart and Next. Restart plays the video and the song again from the top.
  • A memory can carry a photo, a muted video, or a memory illustration, and a song behind it.