Repository navigation
Bring the filter form into sight, and close windows with back - #173
Merged
Merged
Conversation
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
Codecov Report❌ Patch coverage is
📢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 textrules.changein all 16 languages).web/src/lib/layers.ts): everyDialog, 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 thatholdssomething stays open on back.Journeyputs 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.closeWindowcloses a dialog and waits until its entry is gone: a reload right after closing was cut off by that step back (net::ERR_ABORTEDinpassword.specandmove.spec).docs/architecture.mddescribes the windows' entries.Checks
pnpm lint,pnpm check,pnpm test(705 passed),pnpm buildandpnpm e2e(49 passed, against a local PostgreSQL 16) inweb/. In Chromium as a Pixel 7 againstpnpm 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