Skip to content

fix(ui): square uncomposited popovers and preview path-bar files - #1912

Merged
l0gicgate merged 5 commits into
mainfrom
fix/1911-uncomposited-popups-and-path-preview
Oct 28, 2026
Merged

l0gicgate merged 5 commits into
mainfrom
fix/1911-uncomposited-popups-and-path-preview

Conversation

@JoeJoeflyn

@JoeJoeflyn JoeJoeflyn commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  1. On uncomposited X11 displays (without a compositing window manager), transparent pixels cannot be alpha-blended and render as solid black #000000, causing popovers and context menus to display black shadow padding frames and clipped black corner tips. This change detects !display.is_composited() via a dynamic CSS provider and sets box-shadow: none; border-radius: 0; so popovers are crisp with squared borders.
  2. When submitting a file path directly in the path/location bar, the browser reveals the file inside its parent directory and now automatically dispatches a Quick Preview request so the user can immediately view its contents.

Visual evidence

option-b-comparison
screenrecording-2026-10-28_03-49-24.mp4

How to test

  1. Launch Strata on an uncomposited X11 display (or in a bare Xvfb / openbox session without picom/compton). Right-click on a file or folder.
  2. Confirm the context menu has square right-angle corners without any black borders or clipped black corner artifacts.
  3. In the path bar (Ctrl+L), paste or type an exact file path (e.g. /path/to/image.png) and press Enter.

Expected result:
Popovers and menus on uncomposited X11 render clean square borders without black frames or pixel clipping. Submitting a file path navigates to the parent directory, focuses the file, and immediately opens Quick Preview for it.

Related issue

Closes #1911

@github-actions github-actions Bot added the fix label Oct 27, 2026
Remove box-shadow and square popup corners on uncomposited X11 displays to eliminate black framing and corner artifacts. Request quick preview automatically when a file path is submitted in the location bar.

Closes #1911
@JoeJoeflyn
JoeJoeflyn force-pushed the fix/1911-uncomposited-popups-and-path-preview branch from e83a741 to 0f789ac Compare October 27, 2026 21:05
Navigating away before a typed file path finished revealing left the preview
target set, so a later selection of that file opened Quick Preview unasked.
Clearing it on a navigation whose selection does not target the file also
re-borrowed the RefCell it was reading, which panicked.
The peek panel is an in-window widget, so its shadow renders fine without a
compositor; only tooltip and popover surfaces need the fallback.
…e menu baseline

The context-menu baseline is captured on an uncomposited Xvfb display, so it
showed the black shadow frame the fallback removes.
@wmfeht

wmfeht commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Review

Requesting changes. The uncomposited popover CSS matches the widgets that own the black frame, and it stays under the user stylesheet. Path-bar Quick Preview crashes if another navigation happens before the parent folder selects the file.

High

src/app/browser.rs:1708 borrows preview_revealed_location for the whole if and then take()s it in the body. On Rust 2024 that temporary still lives through the body, so this panics with RefCell already borrowed.

Reproduced: navigate_input of a file whose parent validation is still pending (NestedValidationSource), then browser.navigate to another folder. Backtrace is Browser::navigate_for_selection at src/app/browser.rs:1711.

The flag is set at src/app/browser.rs:1415 before the parent probe. Local validation awaits probes::folder, so the main loop runs in between. Sidebar navigation, a second path-bar submit, and navigate_to_ancestor all enter navigate_for_selection. The check also runs before the already-open early return.

Clone the location out of the cell before take().

Also clear the token in descend_with_selection (src/app/browser.rs:1758) and restore_path (src/app/browser.rs:3976). Both abort the parent probe and leave the flag set, so the next folder navigation hits the same panic. Clear it in the browser when validation fails too. The view's abandon_deferred_reveal (src/ui/browser/events.rs:1065) only covers some errors.

Medium

Drop .peek-popover from UNCOMPOSITED_CSS (src/ui/theme.rs:50). That class is the in-window folder-peek card (src/ui/browser/peek.rs:348). Its shadow is drawn in the parent window and already blends without a compositor. The rule squares peek on uncomposited X11.

tooltip, popover, and popover contents are the right nodes. Menu shadows in src/style.css (.folder-context-popover contents and the column, jobs, and path-completion popovers) sit on contents, and this provider is above the base sheet.

Low

The new tests return only after a synchronous source has selected the file. Please cover a still-pending parent probe followed by navigate, and descend or Back during that probe.

docs/themes.md should mention this sheet directly under the user stylesheet, since a user popover shadow brings the black frame back. On an uncomposited display these rules also force popup radii to 0, which docs/preferences.md currently describes as following corner roundness.

@l0gicgate

Copy link
Copy Markdown
Contributor

Review and cleanup

Merged main at 86df474dc (no conflicts).

Review against the description and #1911.

  • Uncomposited popups: confirmed. The CSS fallback and the live composited notify hook work as described. The .peek-popover selector was dropped from the fallback: the peek panel is an in-window revealer, not a popup surface, so its shadow and corners render fine without a compositor and squaring it was an unrelated regression. popover > contents was redundant with popover contents.
  • Typed file path opens Quick Preview: confirmed, with two defects fixed (below). The preview intent is still tracked as a side-channel field that every navigation path has to clear; a follow-up could carry it on the reveal selection itself.
  • The committed context-menu QA baseline is captured on bare Xvfb, which is uncomposited, so it showed exactly the black frame this PR removes. CI did not catch the drift because the QA job only runs on workflow_dispatch. The baseline is regenerated, and the typed-path scenario now asserts the preview.

Fixes pushed

  • 0e8c08e22 fix(browser): drop a pending typed-path preview when navigation moves on. navigate_for_selection called take() while still holding the borrow() from the if let scrutinee, so navigating anywhere else while a typed path's parent validation was pending panicked with RefCell already borrowed. History restores (restore_path), descents (descend_with_selection), and a parent validation rejected with a non-mount error also left the target set, so a later selection of that file opened Quick Preview unasked. Covered by location_input::leaving_a_pending_typed_file_reveal_drops_its_preview (history, navigate, rejected, descend routes); each fix was checked to fail the test when reverted on its own.
  • a2c5d64b6 fix(theme): limit the uncomposited fallback to popup surfaces, document it in docs/themes.md, and tighten the two doc comments.
  • 635a321fa test(qa): list-typed-file-path now waits for the Quick Preview; context-menu baseline regenerated with STRATA_QA_UPDATE_BASELINES=1 and reviewed (square corners, no frame).

Validation

  • ./scripts/test-headless.py -- app::browser::tests ui::theme::tests — 346 passed
  • ./scripts/test-headless.py location_input — 30 passed
  • ./scripts/qa.sh --test-threads 6 context-menu-baseline icons-hover-baseline icons-view-baseline list-view-baseline columns-view-baseline columns-overflow-baseline selection-and-focus-baseline delete-confirmation-baseline icons-airy-view-baseline list-typed-file-path — 10 passed
  • ./scripts/quality.sh fmt, ./scripts/quality.sh clippy — clean
  • git diff --check — clean

Follow-ups outside this PR

  • install_provider connects a notify::composited handler per ThemeManager and never disconnects it; harmless for the single shared manager, but tests build many managers (they already accumulate CSS providers the same way).
  • A typed path to a non-previewable file still enables the preview drawer, the same as pressing Space on it; not changed here.

CI: all checks green on attempt 3 of run 40601724020. Attempt 1 lost Rust tests shard 2 (the test process died with no failing test while unrelated services::document and media tests were in flight) and Rust tests shard 3 (progress::tests::minimization::deletion::fast_delete_animates_only_its_own_success_without_showing_progress hit its 30 s pump deadline; it passes locally in about 7.5 s). A full rerun of the identical commit passed every shard. Note that gh run rerun --failed cannot rerun shards in this workflow: they download quality-bundle-<attempt>, which only a full rerun rebuilds.

@l0gicgate
l0gicgate merged commit bd6cd37 into main Oct 28, 2026
23 of 29 checks passed
@l0gicgate
l0gicgate deleted the fix/1911-uncomposited-popups-and-path-preview branch October 28, 2026 02:35
wmfeht added a commit to wmfeht/strata-feature-map that referenced this pull request Nov 1, 2026
Sync lgse/strata#1912, #1885: remappable per-map keys, uncomposited popovers, typed-path preview
@wmfeht wmfeht mentioned this pull request Nov 2, 2026
14 tasks
l0gicgate added a commit that referenced this pull request Nov 2, 2026
…sweep (#2030)

* fix(columns): act on the focused row after Back

Back restores every column with no cursor. Pressing Left into an
ancestor column then left its cursor empty, and F2, Delete, copy, cut
and duplicate fell back to the folder the *parent* column has open, so
they renamed or trashed the root column's folder instead of the focused
row.

- Left gives a parent column without a cursor the folder it has open, as
  descending into that folder would have left it. A parent still loading
  takes it once listed, through its own load target with no fallback, so
  a folder gone or hidden meanwhile leaves no cursor rather than one on
  an unrelated entry. Any cursor placed meanwhile, reveal or failed load
  cancels it; relocation rebases it and a kept listing clears it. The
  #1437 preferred entry and its fallback are unchanged.
- The "folder you entered" fallback for rename, delete and copy/cut
  applies only when the active column is the deepest one.
- focus_parent, focus_child, select and the cursor moves share one
  place_committed_cursor helper (formerly focus_only).

Fixes #1993

* fix(filter): keep focus on a renamed filter result

Renaming a Ctrl+F filter result left focus and selection on whichever
result took over its row, so the next Delete trashed a neighbour.

When a rename completes, the stale-result prune finds the old path gone
before the search index lists the new one, drops the result, and the
results fall back to the result now in its slot (List, Icons) or to no
selection (Columns). In Columns, rename labels were also looked up
through the directory listing instead of the result rows, so the
optimistic and restored names landed on the wrong row.

Results now record a rename when it starts, from the inline editor
(Enter or Tab) or the 10xer rename prompt. The prune keeps the renamed
result in place under its new path while the view would show it, and
the first update that lists the new path carries the selection, anchor
and focus over to it; Columns also moves its cursor there. A rename to a
path in another folder is recorded as a move: the result is dropped, not
kept as a phantom, and no remaining result takes its selection, as the
listing does. Failed and abandoned renames forget only their own record,
so a newer rename's record survives. Columns rename labels resolve
through the results, the directory reveal leaves result rows alone, and
the Columns listing-focus fallback over results reuses
focus_results_on_cursor, so focus returns to a refused result after its
error dialog.

Fixes #1994

* fix(selection): move the range anchor with Home, End, page keys and arrows

Plain Home, End, Page Up and Page Down move the cursor, selection and
anchor in the model, but in List and Icons GTK's own Shift range origin
stayed at the last arrow position, so a following native Shift+Home,
Shift+End or Shift+arrow extended from there. Move that origin to the
model's anchor after these moves, as restores and Ctrl+click already do.

Columns passed Shift+Home and Shift+End to its GTK list, whose origin its
model-driven arrows never set, so they selected only the edge item.
Extend to the first or last item from the model's anchor there, as its
Shift+arrows and Shift+page keys do.

In List and Icons, plain arrows and their h j k l letters moved GTK's
cursor while the model kept its old anchor, so Shift+Page Up/Down and
Shift+click extended from an earlier item. The dispatcher now runs GTK's
arrow binding for both and anchors the model at the cursor when the move
replaced the selection, not when GTK keeps a range at an edge. It also
cancels a pending click-to-rename, which the browser's own key handler no
longer sees once the dispatcher stops the key; an unmoved letter is still
stopped so it is never typed.

Fixes #1995

* fix(preview): ignore file commands while focus is in the preview

With keyboard focus inside a rendered document, PDF, table or archive
preview, Delete moved the previewed file to Trash, Shift+Delete asked to
delete it permanently, Ctrl+D duplicated it, F2/Ctrl+R started renaming
it and Ctrl+Alt+N moved it into a new folder. The guards only exempted
text widgets (#670), so any other preview widget let the default-map
file commands act on the selection behind it.

Check whether focus is anywhere inside the preview drawer, whatever
widget it renders, for these commands, as the clipboard keys already
did. The 10xer map is unchanged: its preview keys hand focus back to the
listing before a file command runs.

Fixes #1996

* refactor(preview): define preview focus once and drop an estimated QA cost

Answer the window dispatcher's preview-focus check with PreviewDrawer::owns_focus. The slot, overlay, revealer and resize grip that the old check also accepted are never focusable, so the result is unchanged. Describe what the check tests rather than overclaiming, and leave the new scenario's cost out until it is measured.

Refs #1996

* fix(10xer): keep ~// folder picker searches under home

The folder picker stripped "~/" and joined the remainder onto home, so a
remainder starting with "/" (as in "~//x") replaced home with the
filesystem root. Go, copy to and move to then searched and acted outside
home. Trim leading slashes from the remainder so repeated slashes after
"~" collapse as in POSIX paths.

Fixes #1997

* docs(selection): document the range anchor set by Home, End and page keys

Refs #1995

* docs(columns): document the cursor Left places after Back

Also name the jump-key test helper after what it does, so it no longer shares a name with the video-clip helper.

Refs #1993

* fix(sidebar): keep the empty Pinned heading hidden after a rail sync

The rail sync showed every section heading toggle whenever the sidebar
rebuilt or left the icon rail, including the empty Pinned section that
should appear only while files are dragged over the sidebar. The
first-paint rebuild therefore showed an empty PINNED heading at startup.

The rail sync now reapplies the empty section's drag visibility, which
also keeps its heading hidden in the rail during a drag.

Fixes #2000

* fix(rename): keep Tab's next editor when a renamed folder's column moves

In Columns, Tab after renaming a folder whose child column was open
renamed it but opened no editor on the next item. When the rename
landed, relocating the open child column truncated the columns from
that depth, and the truncation cancelled every inline rename, including
the editor Tab had just opened in the retained parent column. The
cursor mirror was blocked by that editor, so the child column and
breadcrumb kept showing the renamed folder.

Truncating columns now cancels only a rename inside the columns it
closes, and Tab mirrors the child column to the item the rename moves
to at once, without a preview, before its editor opens.

Fixes #2002

* test(filter): cover focus after a dismissed delete confirmation on a result

In Columns with Ctrl+F results showing, dismissing the Shift+Delete
confirmation (Escape or a backdrop click) left focus on the wrong
result, so the next arrow and Delete acted on a file the user did not
pick.

The confirmation returns focus through the window's listing fallback,
focus_rebuilt_active_column. It scrolled to the browser's directory
cursor mapped through the column's listing, then focused the list, but
the results replace those rows and keep their own cursor, so the
directory position landed on an unrelated result row (the top one when
the cursor was on the first file). 0530b013 (#1994) already made that
fallback focus the results on their cursor; this adds the regression
scenario for the delete confirmation in Columns, Icons and List, both
dismissals and the next arrow key, a mutation that removes that
branch, and documents the behaviour.

Fixes #1998

* test(sidebar): check the rail keeps the empty pin drop target during a drag

Also clarify when sync_empty_pinned_section runs.

Refs #2000

* fix(location): name the folder List and Icons show after leaving Columns

The breadcrumb and the Ctrl+L text followed the deepest column on every
ColumnAdded event and were never resynced on a view switch. After Columns
mirrored a child folder beside the focused column, switching to List or
Icons showed the active (parent) folder while the location bar still
named the child, so Ctrl+L then Enter entered the child unasked.

The location bar now follows one mode-aware rule: the deepest column in
Columns, the active folder in Icons and List. A view switch, an added
column and relocated columns all sync through it.

Fixes #1999

* fix(preview): step media by content, not names, in every view

Previous/next audio and video built their sequence from file names and
dropped only files whose metadata probe had answered "not media". List
and Columns never run that probe, so text named like a video (fake.mp4,
notes.h264) was counted and stepped to; its text preview then dropped
the player and stranded media stepping. Icons only agreed because it
probes visible cards.

A file now joins the sequence when its probe found media or, until the
probe reaches it, when its leading bytes back the media name: the same
check the preview makes before choosing a player. Bytes are read off the
GTK thread and cached per file; unread files stay out until they answer,
and the shown player's position and previous/next buttons refresh when
they do. The shown file always anchors its sequence.

Fixes #2003

* fix(navigation): let Menu and Shift+F10 on Back list the back history

The window and chooser key handlers run in the capture phase, so they
claimed the context-menu key and opened the pane's context menu before
the focused Back button's own key controller could list its history.
Both now leave the key to a focused Back button that has a history menu.

Cover the keyboard paths in the back-history-dropdown QA scenario and in
the window and chooser keyboard dispatch tests.

Fixes #2001

* fix(undo): let Ctrl+Z and Redo reach the browser while filter results show

With a pane filter query active and focus on the results, the search
results stage yielded every key except the arrows, clipboard keys and
Delete straight to GTK, so the window's Undo and Redo handlers never ran
and Ctrl+Z after Move to Trash did nothing. Undo and Redo replay the
operation history rather than act on a selection, so the results no
longer claim them. Ctrl+Z with focus in the filter field stays text
editing.

Fixes #2005

* fix(browser): follow the open folder when another program renames an ancestor

Inotify watches the open folder itself, not its path, so a rename of one
of its ancestors reached no monitor: the pane kept the old path, new
files were queried there and dropped, deletions still applied, and F5
fell back to the nearest existing ancestor of the stale path.

- After each batch of changes, the local directory monitor looks its
  folder up at its path off the main thread and reports the folder's
  removal when it is gone, which feeds the existing departure check.
- find_by_identity now takes the departed folder and searches its
  nearest existing ancestor: the folders in it when the parent remains,
  else the same path below each of them, so a folder carried along by a
  renamed ancestor is found by its identity. The browser follows the
  renamed ancestor, which rebases search indexes and open columns.
- A deeper column's own removal report, which its parent column's
  monitor otherwise covers, now also checks that the first column of the
  watched chain is still where it was, since no open monitor sees a
  rename above it.

A deleted ancestor still deletes the open folder, whose monitor reports
it as before; the lookup then finds nothing and the nearest existing
ancestor is restored.

Fixes #2004

* test(qa): follow the open folder after its parent is renamed

Rename the open folder's parent from outside in Columns, Icons and List,
write a file into the folder, and expect it listed without a refresh;
F5 then reloads the folder at its new path.

Refs #2004

* docs: describe following an open folder whose ancestor is renamed

Refs #2004

* test(navigation): share the Back button key-test helpers

Move the mapped Back button lookup and the per-widget key press into
test_support::widgets, used by the window and chooser regressions, and
document that Menu and Shift+F10 on a focused Back button list the back
history.

Refs #2001

* refactor(columns): share the child mirror between the cursor and Tab rename

Both paths now open or close the child column through one helper, the
cursor alone previewing a file. Adds a columns test that closing a
column to the right keeps a rename in the parent column, rates the
Tab-past-open-folder scenario, and qualifies the Tab rename docs for
filtered columns and mirroring turned off.

Refs #2002

* fix(startup): probe GVfs before loading preferences

The unresponsive-GVfs probe ran after PreferenceManager::shared(), whose
folder-view watch creates a file monitor through g_file_new_for_path and
so GIO's default VFS. With a gvfsd that never answers, that call blocked
for the 25 s D-Bus activation timeout before the 2 s probe could run, and
the window appeared after about 27 s.

Run the probe right after logging starts, before anything asks GIO for
its default VFS, and assert in debug builds that GIO has not loaded its
modules when the probe runs, so every QA launch catches a regression of
this order.

Fixes #2006

* test(undo): check Redo re-trashes a filtered result restored by Undo

Refs #2005

* fix(location): restore the displayed folder when a location edit ends

Esc, a failed submit and the mount paths refilled the location entry from
the active column, so in Columns with a mirrored child the entry reverted
to the parent while the breadcrumbs named the child, and the next Ctrl+L
prefilled the parent. The entry now restores from the same displayed
folder the breadcrumbs follow. Truncated columns sync through that rule
too, replacing the last caller of the active-column variant.

Fixes #1999

* test(startup): require the GVfs probe order child to run its test

Assert that the isolated launch ran exactly one test, explain a failed GIO check, and loosen the volume-monitor wording now that more start-up work follows the probe.

Refs #2006

* fix(preview): read media sequences nearest-first through mount lanes

Review follow-up for the content check behind media stepping:

- The answer cache is trimmed only at the start of a walk, and never
  forgets the listing being walked; in-flight files are not cached at
  all. Past the cap, a walk no longer wipes its own answers and re-reads
  them forever.
- One cancellable reader per preview reads outward from the shown file
  in growing chunks (the nearest file on each side first) and refreshes
  the position after each chunk that answered. It stops when the
  preview closes, stops showing a player, or starts reading for another
  shown file.
- Reads run as background work through each folder's mount lane, so a
  stalled mount skips them instead of parking workers.
- A failed read is no answer: it is not cached as media and is asked
  again when the shown file changes. The metadata probe keeps trusting
  the name when a read fails.
- The docs no longer claim remote locations and route files are checked
  by content.

Refs #2003

* fix(location): build the breadcrumb hierarchy menu from the displayed folder

The right-click hierarchy menu read the active column, so in Columns with
a mirrored child it marked the parent as current and left the child out
while the bar named the child. It now uses the same displayed folder as
the bar.

Fixes #1999

* fix(preview): wait out busy mounts and keep media answers per preview

Second review follow-up for the content check behind media stepping:

- A background request is skipped whenever another request is on the
  same mount, not only when it has stalled. Reads now wait 100 ms and
  try again while the mount still answers, and give up only once it
  stalls, times out or fails, so a folder load or the previous reader
  no longer leaves real videos out of the count.
- Each read follows symbolic links through Progress::reach, so a dead
  link target trips only that file's path.
- Answers live in the preview that walks the listing and are trimmed to
  it on every walk, so one window can no longer forget another's
  answers. The global cache and its size cap are gone.
- Reads stop as soon as the preview drops its player, not only after
  the next chunk that answers.

Refs #2003

* fix(browser): look for a departed folder through its mount's lane

Review follow-up for the renamed-ancestor fix.

- The look a native monitor takes at its folder's path after each batch
  now runs as background work on the mount's lane, so it is skipped
  while the lane is busy or stalled instead of parking a GLib worker on
  a server that stopped answering.
- The search for a departed folder by its identity runs as an
  interactive request on the lane and never looks into a mount point,
  which cannot be renamed and could hang or trigger an automount.
- start_watch takes the identity the folder's load recorded, so the
  monitor also reports its folder gone when the old path holds another
  folder that the mount's identity rule proves different, as after
  `mv b b2 && mkdir -p b/c`. Mounts that renumber folders prove nothing,
  so only existence counts there. No extra stat is needed.
- The monitor keeps its pending look and aborts it when it is dropped.

Refs #2004

* docs: describe the lane-bound departure checks of folder monitors

List the post-batch look and the identity search among the lane's
requests, describe them under Folder monitors, note the renumbering-mount
limitation, and re-wrap the keyboard-navigation paragraph.

Refs #2004

* fix(preview): stop waiting for a mount kept busy without stalling

A background request is skipped while any request's own lane covers the
folder, but responsiveness only sees where requests are reaching, so a
request hung behind a dead link kept the folder skipped while it still
read as answering, and the media reads polled it forever.

Waiting for a busy mount now ends 10 s (NOT_RESPONDING_AFTER) after the
first skip, and a folder that got no answer is not asked again by the
same reads; its files are asked again when the shown file changes. The
busy-mount test now takes its request only after the preview opens, so
a slow host cannot stall it first.

Refs #2003

* fix(preview): share one busy-mount wait across a read's folders

The busy-mount wait restarted for every folder, and a request that has
learned its mount keeps every folder on it busy, so reads spanning many
folders (search results) could poll for N x 10 s. The wait now belongs
to the whole run of reads: it starts at the first skip, ends when a job
runs, and once it has run out a later skip gives its folder up at once.

The docs say files not read before the wait ran out are asked again when
the shown file changes, and the paragraph is rewrapped.

Refs #2003

* fix(browser): run one departure look at a time and stay on the searched mount

Round-two review follow-up for the renamed-ancestor fix.

- A background lane request is skipped while another holds the lane, so
  a monitor no longer starts a look at its folder's path while one is
  pending, which used to skip the new one and abort the old. Batches that
  arrive meanwhile ask for one more look when the pending one ends.
- The identity search skips every candidate path that the mount table,
  read from the searched ancestor's real path, places on another mount,
  at any depth and through a symlinked ancestor, not only immediate
  children that are mount points.

Refs #2004

* docs: correct the departure-look limits of folder monitors

Say that a reload keeps the column's monitor, describe one look at a
time and the mount rule of the identity search, and re-wrap the Request
lanes paragraph.

Refs #2004

* fix(preview): never reset the busy-mount wait within a run of reads

A successful read on any mount cleared the wait, so results that
interleave a busy mount with a free one gave the busy mount a fresh
10 s after every success. The wait now starts at the run's first skip
and is never cleared; reads start over when the shown file changes.

The busy-mount test counts lane requests per folder instead of timing
the run: the first folder waits, the second gives up on its first try.

Refs #2003

* test(browser): make the follow-up departure look the only one that can see the rename

Round-three review follow-up for the renamed-ancestor fix.

- The gated live test now holds the first look after its stat, so that
  look finds the folder still in place and only the follow-up look the
  later batches ask for can report the departure.
- Pass a monitor's folder and its departure-look inputs through
  WatchedFolder and DepartureChecks rather than five positional values.
- Say that a renamed ancestor is usually noticed at the next change,
  since a look is skipped while another request holds the lane.

Refs #2004

* refactor(services): pass a WatchRequest to FileSource::start_watch

start_watch had grown to five positional values with the folder identity
added for #2004. The folder it watches (location, include_hidden and
began_on) now travels as a WatchRequest beside DirectoryRequest and
MetadataRequest, which the local adapter also hands its monitor in place
of its own WatchedFolder. No behaviour change.

Refs #2004

* docs(rename): rewrap the Tab rename paragraph

* refactor(adapters): schedule a monitor's batch flush outside connect_monitor

connect_monitor had grown to 108 lines, with the departure look nested in
its flush timer. The state a watch's batches share now lives in
MonitorBatches, which ConnectedMonitor holds, and schedule_flush and
pending_key take the flush timer and the pending key out of the change
handler, leaving connect_monitor at 64 lines. No behaviour change.

Refs #2004

* test(navigation): share the Back history key assertion

Move the focus, press-through and history-menu checks both
context_menu_keys_on_back_list_the_back_history regressions repeated
into test_support::widgets::BackHistoryKey, which takes the window's key
handler as a closure. The chooser case now also checks that no other
menu opens with the history.

Refs #2001

* refactor(preview): split media content reads into a run and small steps

Code-health follow-up, no behaviour change:

- The per-run state (cancellable, limits, given-up folders, busy wait)
  is now a ReadRun whose methods read chunks and folders, so no function
  takes more than four values. The busy-wait rule is a named predicate,
  and the lane job, the per-file read and the folder grouping are small
  functions.
- family_listing hands the content filtering and the read start to a
  new media_sequence.
- The text-named-as-video test uses the shared video_drawer fixture and
  a position_of helper.

Refs #2003

* fix(chooser): return Tab from the 10xer Save name to the files

In 10xer mode the focused name field kept every key but F1, Escape and
Ctrl+Shift+M, so Tab fell through to GTK and moved focus to Cancel.
Let Tab and Shift+Tab in the name reach the chooser, whose existing
name stage returns focus to the files.

Fixes #2008

* fix(devices): report an already-present volume after the first folder opens

strata --unlock-volume resolved a volume that was already present
synchronously, before the window's first folder opened. That folder's
reset then removed every open-argument status card, so "This is not an
encrypted volume" (and any other immediate unlock card) never showed.
Start the unlock wait once the first folder has reset the view.

Fixes #2007

* fix(remote): decode SMB share-root names in headings, tabs and titles

GVfs reports "/" as the basename of a mount root, including an SMB
share whose mount spec covers the share's URI segment. Location's
display name then fell back to the raw, percent-encoded last URI
segment, and the tab label and window title used the basename
directly and read "/".

Name such roots from the URI's percent-decoded last path segment, or
its host at a server root, ignoring query and fragment, and make the
tab label (and so the window title) use the same display name. The
URI used for I/O is unchanged.

Fixes #2009
Refs #2018 (window title and tab label item)

* fix(remote): classify GVfs-SMB connection failures by their errno text

GVfs-SMB fails a mount with G_IO_ERROR_FAILED and appends g_strerror of the
libsmbclient errno ("Failed to mount Windows share: Connection refused"), so
the code-based transport classifier fell through to the generic
"An unexpected system error occurred". Match the trailing reason against this
process's strerror and glibc's English text for refused, timed-out and
unreachable connections. Unresolvable hosts still report only EINVAL and keep
the generic message.

Fixes #2010

* fix(shortcut-reference): list Back-history and Tab-in-rename rows where they work

The F1 reference listed "List the back history" under Columns navigation,
where there is no pane header or Back button, and twice under Icons
navigation, because the row sat both in the Icons rows and in the rows every
default-map view shares. It now follows the shared Back / forward row in the
Icons and List references only. 10xer mode hides the pane header, so no 10xer
reference lists it.

Tab / Shift+Tab in an inline rename commit it and rename the next / previous
item in 10xer mode and its file chooser too, but only the default reference
listed it. The 10xer window and chooser references now list it as
"in an inline rename", since 10xer's own rename key opens the footer prompt,
where Tab does not advance; the row stays out of the "10xer mode" category
like other rows the default map shares.

Fixes #2013

* fix(i18n): close localization gaps from the release-candidate sweep

- Add the missing "FILE ICONS" Settings heading to all thirteen catalogs.
  Catalog tests only compare catalogs with each other, so they cannot see
  a source string that was never added; a new Settings test builds every
  page and requires each section heading to have an entry in every catalog.
- Translate the Hungarian custom-action icon names, which were the English
  slugs, and fix "Márkaszínek" and "Videóbélyegképek".
- Localize the --install-udiskie-unlock and --uninstall-udiskie-unlock
  success lines and their restart warning, and print them in the system
  locale, as the installer that runs them does.
- Use the catalog's majority straight apostrophe for the update and release
  notes "Couldn't …" messages and their neighbours, merging the two curly
  duplicates of "Couldn't install update".

Fixes #2014

* docs(remote): move SMB failure note to the GVfs compatibility section

Fixes #2010

* fix(remote): keep non-ASCII share-root hosts readable and assert tab labels

Parse with NON_DNS so a server root's host is shown as typed rather than
as punycode, and check tab labels against explicit expected names.

Fixes #2009

* fix(shortcut-reference): name the listing as the catalogs do in the rename row

German and Simplified Chinese call the listing "Auflistung" and "文件列表";
"Liste" and "列表" read as the List view, though the row also applies in
Icons and Columns. Move the test-only reference_rows into the module's tests
and loop the new test over tenxer_scopes instead of a copy of it.

Refs #2013

* refactor(udiskie): report restart outcome instead of warning text

restart_udiskie_at now returns a RestartOutcome, and restart_udiskie translates the RESTART_WARNING constant once, so a future warning cannot reach the output untranslated. Behaviour is unchanged.

Fixes #2014

* fix(chooser): route 10xer Tab from the name field through the options

Sending Tab from the name field straight to the files left 10xer users
no keyboard route to the file type filter, application choices, or the
read-only option. Tab from the name field now walks those options and
then returns to the files; with none it returns straight to the files.
Shift+Tab steps back through the options to the name field, and from
the name field returns to the files.

Fixes #2008

* fix(chooser): reach a nameless request's options with 10xer Tab

Requests without a name field, such as folder choosers, sent Tab from
the header straight to the files, so their choices had no keyboard
route. Tab from the header now goes to the name field when there is one,
otherwise into the options, and to the files when there are neither.

Fixes #2008

* fix(file-providers): draw every provider heading as a row, not a GTK section title

GTK keeps a titled menu section's label outside the widget tree while the
section is empty, but still names the section after it. An AT-SPI client
reading the section's relations realizes that detached label, and GTK fails
`gtk_at_context_set_accessible_role: assertion '!self->realized'` when the
label joins the tree. Strata created titled sections only for providers
without a heading icon, which matches the report that the critical appears
only with LocalSend and KDE Connect installed.

Name icon-less providers with the custom heading row the icon path already
uses, so no provider section carries a GTK title in a rendered menu.

Refs #2011

* fix(file-providers): give each provider heading a fresh custom slot ID

GTK records every custom menu slot in its top-level slot table under a key
the slot widget owns, and never drops the entry when the slot is removed.
The context menu keeps one model across opens and clears its provider
sections on each rebuild, so reusing `provider-heading-<id>` looked up a
freed key: GTK warned "Duplicate custom ID" and could insert the heading
into a freed slot, or fail and fall back to a GTK section title. Each
heading now takes an ID with a per-insertion serial.

Also note in the doc comment that a GTK section title is detached until
GTK's idle separator sync, not only while its section is empty.

Refs #2011

* test(file-providers): watch for GTK slot warnings instead of fatal warnings

`G_DEBUG=fatal-warnings` aborted the reopened-menu test on any unrelated
GLib warning during setup, without naming the cause. Record only GTK's
"Duplicate custom ID" warnings and accessible-role criticals through a log
writer in the test's own process, forward every message as usual, and
assert none were recorded.

Refs #2011

* refactor(chooser): lift Tab-cycle request setups out of the test

Refs #2008

* test(settings): flatten the heading catalog check

Collect headings and missing translations with iterator chains instead of four nested blocks. No behaviour change.

Fixes #2014

* test(file-providers): share the rendered provider menu fixture

Both heading-row tests built the same model, popover, action group and
renderer. Move that setup into a `RenderedMenu` fixture. The retired-menu
test keeps its own setup: it renders without a popover and shares one
liveness cell across epochs.

Refs #2011

* fix(browser): show the archive icon for short tar suffixes

icon_for_name listed tgz but not tbz, tbz2, txz or tzst, so those tar
archives fell back to the document icon although their Type reads
"Tar archive".

Refs #2016

* fix(operations): explain a refused move across file systems

A rename whose typed path leads onto another file system is refused
with EXDEV, which had no catalog reason and read as "An unexpected
system error occurred". Name it as a different file system in all
thirteen languages.

Refs #2017

* test(qa): regenerate the rename-enter and quick-preview mutations

Both patches stopped applying after collection_edit.rs and the keyboard
commands were rewritten, so rename-commits-on-enter and
space-previews-filtered-result lost their mutation checks. Rebase them
onto the current code without changing the defect they introduce.

Refs #2019

* fix(browser): drop the arrow from the breadcrumb hierarchy popover

#1912 squared the popovers for uncomposited X11 displays, but the
right-click crumb-bar popover still asked for an arrow, which draws a
black band with a white arrow over the current crumb there. Match the
other popovers and point at the click without an arrow.

Refs #2016

* fix(devices): open Properties on a harmless action so Enter never releases

The footer loop grabbed focus for every action on non-removable targets, so
the release button took the initial focus and Enter unmounted the device.
Only Set label may now take focus; otherwise Close keeps it.

Refs #2015

* fix(archive): name the link an extraction refuses to write through

A member stored under an extracted symbolic link is refused, but the
refusal read as the raw ELOOP text "There are too many levels of
symbolic links". Say that extraction refuses to go through the link
and name it, in all thirteen languages.

Refs #2017

* fix(qa-drive): merge restart preferences into the parsed settings.toml

restart --pref replaced only the first line of a key, so a multi-line
array the application saved left settings.toml unparseable, and it
refused tables such as keymap={...} only after the application had quit.

Move the seeding and preference code into scripts/qa_drive.py, which
parses the saved file with tomllib, replaces each key whole and writes
the document back, renders objects as inline tables as tests/qa.rs does,
and checks every value before the application is stopped. A saved file
that no longer parses is left unchanged and the application relaunched.

Refs #2019

* fix(devices): name the Properties release action after the row's release

Properties always labelled its release button Eject, while the row button
and menu said Unmount for mounts that can only be unmounted. The menu now
hands Properties the row's release kind with its handler.

Refs #2015

* fix(devices): show a device's saved Strata label in Properties and release

The Properties subtitle and the release overlay, unplug notice and pending
row used the system name, while the Devices row showed the saved label.
They now name the device as the row does, and the Properties subtitle
follows label changes live.

Refs #2015

* fix(remote): drop the query and fragment from typed remote addresses

GVfs folds a URI's query and fragment into the mount spec it looks up.
The SFTP backend ignores them when it mounts, so a typed address such
as sftp://host/served?tok=…#frag mounted successfully but its listing
then failed with "The location is not mounted", because the mount it
registered never matched the location's spec.

No accepted scheme addresses files with a query or fragment, so typed
addresses now drop both before navigating. A literal ? or # in a name
is typed as %3F or %23.

Refs #2018

* fix(paste): offer no Replace where a file meets a folder

The conflict prompt offered Replace for a file pasted onto a folder of
the same name (or a folder onto a file), and the paste then failed that
item with "A file and a folder cannot safely replace one another".
Apply to All with Replace carried the same failure to such items.

The prompt now learns whether the two items are of one kind, hides
Replace and focuses Keep Both when they are not, and says why. Apply to
All leaves every collision its answer cannot apply to for its own
prompt, as it already did for Merge.

Refs #2017

* fix(remote): explain an SFTP session lost during sign-in

When the SFTP server stops while the password prompt is open, the
submitted password reaches an SSH session that has already ended. GVfs
reports that as G_IO_ERROR_FAILED with its own translation of
"Connection failed", which fell through to "An unexpected system error
occurred".

Classify that message, in English or GVfs' translation, as a transport
failure and tell the user to check that the server is running.

Refs #2018

* fix(cli): print --unlock-volume usage errors to the invoking terminal

handle_command_line runs in the primary instance, so when Strata was
already running eprintln! wrote the usage error to the primary's log and
the invoking command exited 1 silently. Print it through the command
line's printerr, which reaches the process that ran the command.

Refs #2015

* fix(kdeconnect): name the device in the sent notice as the menu does

When two paired devices share a name, the Send to menu tells them apart
with a short suffix from the device ID ("Pixel (a9e6f3)"), but the
success notice used the bare name ("Files submitted to Pixel: 2").

Build both from one helper, so the notice names the device exactly as
the menu showed it.

Refs #2018

* fix(chooser): name only existing files in the SaveFiles replace prompt

A SaveFiles request whose names partly exist asked "Replace existing
files?" and listed every requested name. The destination check now
reports which paths already hold a file, and the prompt names those
and words its title and warning by their count.

Refs #2017

* fix(updates): cache a missing release for the installed tag

fetch_exact_release wrote release-notes.toml only when GitHub had a
release for the installed tag. A build from a tag with no release, such
as a locally built release candidate, got a 404 on every window's first
Settings → Updates visit.

Cache that "unavailable" answer with its time and recheck it after the
update-check interval, so notes published later still appear. The entry
has no notes field, so an older version that requires one refetches
instead of showing empty notes. Found notes keep the format earlier
versions wrote, and a failed request is still not cached.

Refs #2018

* fix(udiskie): show the restart request in Settings when udiskie cannot restart

Use Strata and Restore default discarded install and uninstall's message,
so Settings showed only a green check when the CLI would have asked to
restart udiskie or log out. Install and uninstall now report whether a
manual restart is needed, and Settings keeps that request on screen until
the next change.

Refs #2015

* fix(undo): undo a new item and the plain name typed for it in one step

A New Folder or New File named with a plain name recorded its creation
and then a rename, so the first Ctrl+Z only gave back the default name
and a second one trashed the item. A name typed as a path already
folded into the creation's undo (#1512).

The browser now names a new item through name_new_item, which moves the
creation's undo onto the named item as a placement does, so one Ctrl+Z
trashes it and redo restores it under that name. Renames of existing
items still record their own undo.

Refs #2017

* fix(udiskie): restore the user's original configuration byte for byte

Install deleted the YAML backup once it succeeded and uninstall re-emitted
the configuration, so comments and flow-style lists were lost for good.
Re-emitted JSON also lacked a trailing newline, and an udiskie directory
that install created stayed behind empty.

Install now keeps the original bytes until uninstall, which writes them
back verbatim when the restored settings still match them and otherwise
keeps the user's later edits as before. Re-emitted JSON ends with a
newline, and uninstall removes the udiskie directory when install created
it and nothing else was added.

Refs #2015

* fix(devices): move every window and tab off a device it releases

Releasing a device sent only the invoking pane home, so another window or
tab browsing inside it stayed on the empty mount point after an unmount.
Every sidebar now registers its browser with the release, which moves each
one inside the device home before flushing and returns them all if the
release fails while the device is still mounted.

Refs #2015

* fix(rename): give focus back to an item whose Tab rename failed

Tab commits an inline rename and moves the cursor on to the neighbour.
When that rename failed, for example onto a name already taken, closing
the error left focus on the neighbour instead of the row whose name was
refused, where an Enter commit keeps it.

A rename Tab moved on from is now marked, and its failure selects its
item again. The rename-onto-existing-rejected scenario covers Tab in
Columns and List beside Enter, and its mutation patch applies again
after the browser events refactor.

Refs #2017

* fix(devices): name an unmounted fstab volume's declared filesystem

Properties probed the filesystem with lsblk and, once mounted, the mount
itself, so an unmounted fstab entry whose source is not a block device
showed Unknown although fstab declares its type. Fall back to the type
fstab declares for the device.

Refs #2015

* fix(a11y): keep focus off unnamed modal layers and containers

Focus fell on widgets a screen reader announces as nothing:

- Settings opened by focusing its backdrop layer; it now focuses the
  current page's navigation entry.
- Properties opened by focusing its layer; it now focuses its first
  control.
- A dialog closed over another modal (Settings, Properties) returned
  focus to its opener even when that opener was the modal's own layer,
  and an opener the dialog had disabled (Keyboard's Reset all) handed
  focus to the first focusable widget, a scrolled window. It now goes
  to the nearest named control, skipping boxes, scrolled windows and
  viewports.
- The release picker drops focus to the Settings layer while it
  resolves the chosen release, so that layer became the dialog's
  opener. The picker now takes focus back first, and Cancel returns
  to it.

Refs #2012

* fix(a11y): disable the release channel choice with its row

With automatic update checks off, the Release channel row is
insensitive, but GTK reports each widget's own sensitivity over AT-SPI,
so the choice and its menu button's toggle still announced themselves
as usable and did nothing when activated. The choice and its toggle now
follow the row, and stay disabled on package-managed installs.

Refs #2012

* fix(a11y): name the links in update status and release notes

GTK gives the links in a label's markup no accessible name, so "View
releases on GitHub" in a failed check and the version link in an
available or Stable-channel-target status read as empty links. Labels
set through the new accessibility helper name each link after its text;
the update status and release notes use it.

Refs #2012

* fix(a11y): name the search palette field after its mode

The folder-jump palette (Ctrl+Shift+K) changed only its field's
placeholder and description, so the field kept the accessible name
"Search files and folders…". Both modes now set the name and the
placeholder together.

Refs #2012

* fix(a11y): name each theme editor color cell once

A grid cell is named from its content, so each color field's cell in
the theme editor joined its swatch's name and its label ("Background
Background"). The cell is now named after the field.

Refs #2012

* fix(a11y): describe volume rows by their path

A volume row's accessible description was its name, mounted or not,
while mount rows carry their path. It is now the mount path when
mounted, else where it would mount (an fstab entry's mount point), else
its device.

Refs #2012

* style: format the drive dialog and udiskie fixes

Refs #2015

* fix(settings): fit integration cards side by side in the catalog

GtkFlowBox picks its column count from each child's natural width. A
catalog card's natural width came from its 28-character title and
description plus the Install button, and its minimum from the
requirement chips laid out on one line, so it took more than half of
the 820 px and 942 px catalog widths of 1200 px and 1430 px windows,
and every card got its own line.

Wrap the requirement chips, and hold each card in a bin that reports
its minimum width as its natural width, so the grid fits as many cards
per line as their minimum widths allow and stretches them to fill it.
A 320 px floor keeps narrow windows at one readable column.

Refs #2018

* style: format the remote-location polish changes

Refs #2018

* fix(delete): give the cursor back when a confirmation is cancelled

A compression that finished while a delete confirmation was open
selected its archive underneath, and cancelling the confirmation then
put focus on the archive instead of the row the dialog asked about.
The modal itself kept focus (#1900).

The confirmation now remembers the cursor it opened on, and a cancel
that finds the cursor moved selects the cursor and the dialog's items
again before the listing takes focus back. A confirmed deletion, or a
cursor that never moved, is left alone.

Refs #2017

* style(a11y): format the accessibility fixes and scope a test import

Apply rustfmt to the new focus and Settings code, and reach the shared
`descendants` test helper through its module path from the qa-only
release channel helper, so builds without the qa feature have no
unused import.

Refs #2012

* fix(devices): address review nits on the drive dialog and udiskie fixes

Read fstab only off the interface thread and treat its auto and none
placeholder types as unknown. Record the command-line printerr call in the
unsafe-code inventory, and document that the udiskie install folder keeps
the original configuration until uninstall, which restores it byte for byte
for setups made by this version or later.

Refs #2015

* fix(qa): wheel a clipped pointer target into view before aiming

A click, hover or select on a row in a Columns pane the strip had
scrolled away, or on a crumb past the end of the breadcrumb trail, aimed
at off-screen coordinates and never reached the target.

Before aiming, find the innermost scrolled window that leaves the aimed
point outside its viewport and turn the wheel over it, with Shift for a
horizontal scroller, until the point shows. An aim kept inside a
left_bound box is unchanged, so clipped-column scenarios still aim at
the visible part.

Refs #2019

* fix(qa): type characters the keyboard layout lacks

type and key refused any character missing from the layout read at
startup, so a scenario or qa-drive session could not enter non-ASCII
text such as accented or CJK file names.

On X11, lend the keysym to an empty keycode for one tap, as xdotool
does, and restore the row afterwards. Each change waits until GTK's
keymap reports it, so the press is never translated with the old row.

Refs #2019

* test(qa): reach scrolled-away columns and crumbs and type a non-ASCII name

Clicks a row in a Columns pane the strip scrolled away and renames it to
a non-ASCII name, then clicks a crumb scrolled off the start of the
trail. Each clipped target is checked to be out of view first, so the
scenario fails without the aiming and typing fixes.

Refs #2019

* fix(remote): address review nits on the remote-location polish

- Release notes: a "no release" entry stamped in the future, from a
  clock that ran ahead, is rechecked instead of trusted until real time
  catches up.
- KDE Connect: each send ticket keeps the label its menu showed, so the
  notice names the device exactly as the menu did even when another
  device with the same name pairs before activation.
- Integrations catalog: the 320 px floor now sets only the natural width
  the grid uses to choose columns; a card's minimum is back to 240 px,
  so a very narrow window shrinks it rather than adding to its clipping.

Refs #2018

* fix(delete): act on an open folder's row when deleting it from its column

Delete or Shift+Delete in a Columns folder whose column selects nothing
deletes that folder, but the cursor stayed in its column. When such a
deletion was cancelled, closing "Operation cancelled" put focus on the
first row of the folder's column, which the cursor was not on, so the
first Down only selected it.

The cursor now moves to the folder's row in the parent before the
deletion starts, as if that row had been chosen: a finished deletion
moves on to a neighbour, a cancelled one leaves focus on the folder.
The held-operations fixture moves to the shared file-command tests.

Refs #2017

* refactor(a11y): track the current Settings page instead of reading CSS

Opening Settings found the navigation entry to focus by searching the
widget tree for its active styling class. The page host now records the
current page next to its navigation buttons, and `build_layer` returns a
`SettingsLayer` that focuses that page's button.

Refs #2012

* docs: describe the operations dialog and focus fixes

Say that the paste conflict prompt offers no Replace between a file and
a folder, that a refused Tab rename gives focus back to its item, that
one Undo removes a new item under a plain name too, that cancelling a
delete confirmation puts the cursor back, and that the chooser's
replace prompt names only existing files.

Refs #2017

* style: format the operations polish changes

Refs #2017

* test(window): wait for the grouping transfer before renaming its folder

abandoned_group_naming_keeps_a_later_rename_separate went on once the
grouped files were on disk, but the transfer records its undo entry
only when it reports TransferFinished. When the main loop was busy, as
with host mount churn from other containers, the later rename ran first,
the move never reached the undo stack, and the second undo trashed the
folder with the files instead of ungrouping them.

Wait for TransferFinished instead, so the test checks the undo stack the
finished grouping leaves.

Refs #2019

* test(sidebar): keep host mount changes from rebuilding sidebars under test

Every sidebar rebuilt itself on any volume or mount-table change, and
tests share the host's mount table, which other processes change at any
moment: each container start adds and removes overlay mounts. A rebuild
replaces the rows and unparents the popovers a test holds, so
selected_rides_the_block_both_directions saw its pinned row unmapped and
sidebar_folder_customization_loads_and_updates_across_windows lost the
row's Customize item. Under a loop of container starts both failed on
every run.

Test builds no longer subscribe the sidebar to host volume and mount
signals; tests build the device rows they need directly.

Refs #2019

* fix(preview): classify raw H.264 and HEVC streams by every common suffix

Only .h264 was named video/h264, so .264, .h265, .265 and .hevc streams
read as Unknown with no media rows in Properties. Properties also took
the sniffed application/octet-stream for its kind and default
application, disagreeing with the preview's video/h264, and the listing
showed a generic icon for every raw stream.

Classify all five suffixes, let Properties refine a bare binary sniff by
name (a byte-backed type still wins, so text named .h264 stays text),
and give the streams the video icon.

Refs #2016

* fix(tabs): name a tab after the location it is waiting on or failed to open

A tab opened by Open in New Tab or Ctrl+Shift+T has no folder until its
target resolves, so it read "Home" (and the window title just
"Strata") while it connected, and kept that label when the target was
unavailable, although its pane shows that location's error.

Remember the awaited location for every new-tab route, as reopening a
saved session already did, and label the tab and title after it until
the pane has a folder of its own.

Refs #2016

* fix(browser): offer Retry on an unreadable folder in List and Icons

The List and Icons status page only carried Open as Administrator, so a
folder that failed to load there reported the error with no way to
reload it, while Columns' feedback page offers Retry. Give the shared
pane status page the same Retry action, shown with every load error and
hidden on an empty folder, and route both error paths through one
helper.

Refs #2016

* fix(theme): style the folder-error Retry and administrator buttons

.retry-button only set a margin, so Retry and Open as Administrator on an
unreadable folder fell back to GTK's white default button on dark
themes. Give them the shared secondary-button styling the action dialogs
and settings use, in every state.

Refs #2016

* fix(browser): open the breadcrumb hierarchy menu below the crumb bar

The menu pointed at the click, so it opened over the lower half of the
crumbs it lists. Point at the bar's full height at the click's x
instead.

Refs #2016

* fix(settings): load a blank interface font as the default font

The setter trims the family and treats a blank one as Default, but a
loaded value skipped that, so a hand-edited interface_font = "" left
the Interface font button unlabelled with no accessible value (and
"   " showed whitespace). Normalize the loaded value through the same
rule.

Refs #2016

* fix(sidebar): show every GVfs network share as a disconnectable network row

Only smb: mounts took the network row; an SFTP (or FTP, WebDAV) mount
fell through to the drive row with a hard-drive icon and an eject
button. Route every GVfs network backend through the network-share row,
with its network icon and Properties and Disconnect menu.

Refs #2016

* fix(location): read network: and network:// as the Network root

The location bar only knew network:///, so "network:" was taken for a
relative path ("Enter an absolute path.") and "network://" opened a
location that GIO lists as the Network root but that Strata named
"network:" in its heading and breadcrumb and "/" in the title. Read the
bare roots of network:, trash: and recent: in GIO's canonical
scheme:/// form, which is the location the sidebar opens and labels.

Refs #2016

* fix(search): order equal-score results by name, not walk order

Ties fell back to the index position, which is directory enumeration
order, so equal-score filter and search results came out in reverse
creation order on tmpfs, in every view, and with more than 100 hits the
100 kept were the first the walk found. Break ties by folded name, then
path, in both the bounded heap and the incremental insert, so the kept
page is the first by name. The heap still holds at most the result
limit, borrowing names from the index.

Refs #2016

* fix(columns): close deeper columns on a plain click on a file

A plain click on a file armed a release action only when it previewed,
so with single-click previews off (or on a file that cannot preview) the
click selected the file but left the deeper column open, with its
open-path marker and the breadcrumb on it. Moving the cursor onto the
file with the keyboard, or a previewing click, closes it.

Arm a release action that ends the open path at the clicked file's
column. It runs on release, so dragging the file into the open column
still works. Two scenarios that relied on the old behaviour now reach
their state without it: the context-menu ownership runs move the cursor
to the root column with Left, and the peek scenario measures its
column count after the file selection.

Refs #2016

* docs(columns): describe how a plain file click ends the open path

Document that a plain click on a file closes the deeper columns whether
or not it previews, unless the press becomes a drag, and list the
scenario that owns the rule.

Refs #2016

* test(qa): keep deeper columns open for the peek preview check

The tail selected the parent's file by click, which now closes the
deeper columns, so the check that the focused parent stays visible
beside the preview no longer ran with them open. Turn mirroring off and
move the cursor to the file with Down instead, and compare the column
count with the five open before.

Refs #2016

* style: apply rustfmt to the QA input and grouping test changes

Refs #2019

* fix(delete): move the cursor out of a deleted folder only when the delete starts

Leaving the open folder for its row in the parent ran before the browser
knew whether the deletion would start, so a deletion refused while a
transfer's cancellation was still pending moved the cursor anyway. The
browser now says whether an operation requested now would start, from
the same check its start uses, and the cursor moves only then.

Refs #2017

* fix(delete): give the cursor back without showing hidden files

Selecting by location shows hidden files when a requested item is
hidden, which a cancelled confirmation's cursor restore must never do.
It now selects among the items shown only, through a selector that
shares the ranking and selection with the revealing one.

Refs #2017

* docs: rewrap and correct the delete and rename keyboard notes

Rewrap the lines the operations polish left long, correct the Columns
Delete note, which still said nothing is deleted when nothing is
selected, to name the open folder and the cursor's move to its row,
and give the cancelled-deletion focus test its own comment.

Refs #2017

* test(qa): regenerate eight mutation patches the stacked fixes broke

click-modes, clipboard, keep-both, keyboard-navigation, location-entry,
new-entry-collision, rename-click-away and view-switching stopped
applying after their code moved into browser and operations submodules.
Rebase each onto the current code with the same defect, so its scenario
keeps a mutation check. rename-error-dialog is regenerated on another
branch of the stack and is left as it is.

Refs #2019

* fix(qa): keep left_bound aims, typed keysyms and pref keys within their contract

An aim kept inside a left_bound box is never scrolled, as documented.
Only type lends a keycode to a character the layout lacks; a key chord
naming an unknown keysym still fails clearly. qa-drive refuses a
preference key that is not a bare TOML key, so seeding writes the keys
exactly as tests/qa.rs does.

Refs #2019

* fix(sidebar): leave a network share in every window before disconnecting

Routing SFTP, FTP, WebDAV, AFP and NFS mounts to the network-share row
(#2016) moved them off the drive release, which takes every registered
window and tab off the device first and brings them back if it stays
mounted. The share row's Disconnect only unmounted, so every browser on
the share was left on an unmounted location, as SMB already was.

Share the release's leave step and its return of unmoved browsers, and
make Disconnect leave the share in every window and tab, unmount it, and
return them when GIO still lists the share after a failed or cancelled
unmount. The release keeps its own mountinfo check, since a GVfs share
is not a native mount point.

Refs #2016

* test(tabs): move the awaited-tab label checks beside the reopen tests

Keep tabs/tests.rs under 1,500 lines: the missing-target test and its
tab-label helper join the deleted-directory test that shares them.

Refs #2016

* test(qa): keep the open column through file clicks in two Columns scenarios

A plain click on a file now ends the open path at its column (a6fb30c0),
so two scenarios that clicked a root file with a deeper column open lost
that column. new-folder-collision-dialog checks that the kept folder's
column is still open before it clicks readme.md, and
empty-column-clears-other-columns extends the root selection with
Ctrl+clicks, which leave the archive column open for the empty-column
click.

Refs #2016

* fix(sidebar): keep share disconnects quiet when dismissed and one at a time

Cancelling GVfs's own "busy" dialog reports FailedHandled, which still
showed "Unable to disconnect"; use the release's quiet-error rule.
Guard each share row so a second Disconnect does nothing while the first
runs, and note why the mounted check after a failed unmount may briefly
lag the volume monitor.

Refs #2016

* test(qa): wait after each Ctrl+click and check the archive column stays open

Refs #2016

* fix(sidebar): describe an unmounted volume by its device

GIO sets an activation root only for cdda discs and proxy volumes, never for
an fstab volume, so the mount-point fallback never ran and a phone's row was
described by its raw URI.

* fix(qa-drive): replace settings.toml atomically and refuse unencodable values

* test: make the KDE Connect notice test discriminating and drop echo assertions

The notice test passed on main because both devices were named Pixel; renaming
the activated device after the menu was built catches the regression. The
removed assertions repeated a helper's two lines, read private tab state, or
checked a display name unrelated to input parsing.

* refactor: drop labelling comments and simplify the tab relabel

---------

Co-authored-by: Pierre Berube <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): uncomposited X11 popups show black frame and path-bar files do not preview

3 participants