Repository navigation
feat(web): step Back through open work-area tabs in narrow mode - #283
Open
orbitingflea wants to merge 1 commit into
Open
orbitingflea wants to merge 1 commit into
orbitingflea wants to merge 1 commit into
Conversation
|
This PR changes the test suite by +38 test cases (browser +5, unit +33, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
Thread transfer impact
This comment will update automatically after the next completed run. |
In a window 980 px wide or less, a user's tab open or switch pushes a history entry, and a session-storage map keyed by the entry's key records the thread and tab it shows. Back shows the previous open tab, skips closed tabs and deleted threads, and leaves the thread after the starting tab. Entries the app adds itself are tagged when reached, quote links keep their own reveal, and Reopen Closed View adds no entry. Wide windows push nothing and skip leftover same-URL tab entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
force-pushed
the
feat/fullscreen-panels-narrow-back
branch
from
November 24, 2026 15:16
746ec96 to
b3f8ff2
Compare
This branch has not been deployed
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.
Why
Let phone and narrow-window users step Back through open tabs of a thread instead of leaving it. At 980 px or less, the work area shows one tab at a time, so Back used to leave the thread.
Behaviour change
Behaviour change: yes, phone and narrow-window users (980 px or less) see Back return to the previous open tab of the thread instead of leaving it; wide windows are unchanged.
What changed
Track narrow-mode tabs in
apps/web/src/fork/workArea/with a session-storage map keyed by entry key, skip deleted-thread entries, calluseTabHistoryinWorkArea.tsx, and updateREADME.md.Scope
Only
apps/web/src/fork/workArea/andREADME.md. Upstream files and UI text are unchanged.Tradeoffs
Long-press multi-entry jumps do not change tabs. Switching a tab during thread deletion goes home instead of to the next thread. Back from Settings onto a tab entry keeps the current tab.
Blast Radius
Limited to
apps/web/src/fork/workArea/. Wide windows add no entries and only skip same-URL leftovers and deleted-thread entries.Verification
Memory-history unit tests, Chromium real-history tests, existing work-area tests, and changed-files checks pass.
Details
Behaviour rules
(max-width: 980px), showing one tab at a time.__TSR_keyin session storage for the newest 500 entries. Records survive reload, and blocked or corrupted storage is ignored. The app writes no history state and never replaces an entry, so same-URL router navigation stays unchanged.Per-file notes
In
apps/web/src/fork/workArea/:tabHistoryTags.tsaddsTabTags,createTabTags, andtabHistoryTagsfor the session-storage map.tabHistory.logic.tsaddsTabEntry,readTabEntry,layoutOf,userShownTabChange,planPush, anddecideMove.tabHistory.tsaddswatchTabHistoryanduseTabHistoryfor browser and Electron hash history.useThreadGone.tsexportsreadThreadGone, returning true when a loaded, complete thread list omits the thread.WorkArea.tsxcallsuseTabHistory.README.mdnotes narrow-mode Back under the work area bullet.Tests
tabHistory.logic.test.tsunit tests on memory history cover decisions, store actions, storage, quote links, Settings, Reopen Closed View, push cancellation, and deleted threads.tabHistory.browser.test.tsxChromium tests on real browser history cover narrow steps, desktop no entries, a main-chat quote then Back, a queued Reopen Closed View at narrow and desktop widths, and Back past a deleted thread.