Skip to content

Bring the filter form into sight, and close windows with back - #173

Merged
FionaPreroll merged 2 commits into
mainfrom
claude/project-thread-kevabv
Nov 24, 2026
Merged

FionaPreroll merged 2 commits into
mainfrom
claude/project-thread-kevabv

Conversation

@FionaPreroll

@FionaPreroll FionaPreroll commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Requested by Fiona · project thread

On a phone, Edit on a filter rule opened the form below the list, out of sight, and back left the page instead of closing the form or the settings.

What changes

  • The filter form comes into sight as it opens (scrollIntoView), for Edit and for "Add a rule", and its heading says "Change the rule" when it changes a saved one instead of always "New rule" (new text rules.change in all 16 languages).
  • Back closes windows over the page (web/src/lib/layers.ts): every Dialog, the image opened large (which had this on its own since Open images of articles large, with zoom, and stop dimming them #172 and now uses the module) and the filter form make an entry in the history while open. Each entry counts the windows open up to it (layer), so back closes the topmost one only: first the filter form, then the settings. A dialog that holds something stays open on back.
  • A window closed another way (close button, Escape, Save, Cancel) takes its entry with it, a moment later. If it led the reader to another list meanwhile (subscribing shows the new feed), Journey puts that list in the window's entry instead of pushing a new one, so back leads once to the list before, not through a dead entry. Without that, Chrome ran the queued step back after the new list's entry and took the reader back to the old list.
  • The test setup unmounts and waits for the history to settle after each test, so a step back left over from one test does not close the next test's dialog.
  • In e2e, closeWindow closes a dialog and waits until its entry is gone: a reload right after closing was cut off by that step back (net::ERR_ABORTED in password.spec and move.spec).
  • docs/architecture.md describes the windows' entries.

Checks

pnpm lint, pnpm check, pnpm test (705 passed), pnpm build and pnpm e2e (49 passed, against a local PostgreSQL 16) in web/. In Chromium as a Pixel 7 against pnpm dev:demo: Edit on the third rule shows the whole form in the viewport; back closes the form, a second back the settings; the close button with the form open removes both entries; subscribing from the dialog shows the feed and back goes once to the list before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WQbEhUCFbnvY5R8BGbY44Y

On a phone, Edit on a filter rule opened the form below the list, out of
sight, and back left the page instead of closing the form or the settings.
The form now scrolls into sight as it opens and says whether it adds a rule
or changes one.

Windows over the page (every dialog, the image opened large and the form of
a filter rule) now make an entry in the history of their own while they are
open (web/src/lib/layers.ts), so back, in the browser and on Android,
closes the topmost of them and nothing else. A dialog that holds something
that would be lost stays open. A window closed another way takes its entry
with it; one that takes the reader to another list, like subscribing, gives
its entry to that list, so back leads once to where the reader was before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQbEhUCFbnvY5R8BGbY44Y
@FionaPreroll FionaPreroll self-assigned this Nov 24, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
web/src/lib/components/Dialog.svelte 66.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

A window over the page takes its entry in the history with it by a step
back a moment after it closes, and a reload right then was cut off by it
(net::ERR_ABORTED in password.spec and move.spec). closeWindow closes a
window by its button and waits until its entry is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQbEhUCFbnvY5R8BGbY44Y
@FionaPreroll
FionaPreroll merged commit 92441b9 into main Nov 24, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants