Skip to content

Full product audit, Part 2: 11 bugs in settings, sharing, navigation, and large-data behavior #560

Open

Description

@nickhamze

This is the follow-up to #559. The point of this pass was to catch the things users usually find first: the second quick click, the stale browser tab, the narrow screen, the shared folder after reload, and the site with enough content to make a visualization fall over.

I updated to current origin/trunk (c670170) before the final verification pass, then replayed every candidate from the older checkout. Anything already fixed upstream was removed from this issue.

The bugs below still reproduce on current trunk. The two settings problems are the most urgent because OpenStation tells the user everything is saved while silently keeping the wrong value. Screenshot evidence is attached in the first comment.

1. A quick second toggle in Extended Options is silently lost

Why this matters: The control ends in one state, the server saves the opposite state, and the user is not told anything went wrong.

To reproduce:

  1. Open OpenStation Preferences → Features as an administrator.
  2. Toggle Enable drag-and-drop in the Media Library off and immediately back on while the first save is still running.
  3. The checkbox finishes enabled.
  4. Reload or read desktop-mode/v1/extended-options; the server persisted disabled.

The save function returns early while a request is in flight, but the still-enabled control keeps accepting changes and never queues a trailing save.

Where to look: src/settings/sections/extended.ts

2. Two open sessions can overwrite each other’s unrelated settings

Why this matters: A setting that already showed as saved can be silently undone by a stale tab or another device changing something unrelated.

To reproduce:

  1. Open OpenStation in two browser sessions for the same user.
  2. In session A, change the wallpaper and wait for it to save.
  3. Without reloading session B, change only the accent color and wait for it to save.
  4. Reload. Session B’s stale full-settings snapshot restores the old wallpaper while keeping the new accent.

Each save replaces the complete server-side settings object. There is no revision check, conflict response, field merge, or patch request.

Where to look: src/settings/state.ts, includes/os-settings.php

3. Owned folder windows lose their Share button after reload

Why this matters: Folder sharing works on the server, but the owner loses the main way to manage it from the folder window.

To reproduce:

  1. Enable folder sharing and create or share a folder.
  2. Reload the owner’s desktop.
  3. Open the folder from the wallpaper.
  4. The title bar has its normal window and breadcrumb controls, but no Share folder action.

The button matcher requires folder ownership from the client folder store. Normal persisted-placement hydration does not populate that store.

Where to look: src/desktop-files/share-menu-items.ts

4. Accepted shared folders never show the shared badge

Why this matters: Neither owner nor recipient can tell from the desktop that a folder is shared, even after an invitation has been accepted.

To reproduce:

  1. Share an owned folder with a second user.
  2. Accept the invitation as the recipient.
  3. Reload both desktops.
  4. The folder tile has no shared badge for either person.

The badge reads placement.file.shareSummary, but placement responses omit that field. It exists only in the separate folder response shape.

Where to look: includes/desktop-files/rest.php, src/desktop-files/share-menu-items.ts

5. OpenStation Preferences is mostly unreachable at 390px

Why this matters: On a phone-sized viewport or under magnification, most of the window and every right-side title-bar action can sit outside the visible page with no horizontal recovery path.

To reproduce:

  1. Set the viewport to 390×844.
  2. Open OpenStation Preferences as a normal window.
  3. The fresh window renders 820px wide. Its right edge lands at 849px, while the viewport ends at 390px.
  4. Window actions, Minimize, Maximize, Fullscreen, Close, and much of the content are unreachable.

The window keeps its desktop minimum width instead of switching to a compact contract or clamping itself to the viewport.

Where to look: src/desktop.ts, src/window-manager/index.ts

6. Arrow keys do not operate tabs—and can switch desktops instead

Why this matters: Keyboard users cannot move through tab strips using the standard Left/Right Arrow behavior. In Preferences, the unhandled key can bubble to the shell shortcut and switch virtual desktops, making the entire window disappear.

To reproduce:

  1. Open Preferences and focus the selected Appearance tab.
  2. Press Right Arrow.
  3. Focus and selection stay on Appearance instead of moving to Themes.
  4. In the reproduced shell, the key also switched virtual desktops and hid Preferences.
  5. Repeat in Posts: Right Arrow on All posts does not move to Categories.

The tab component handles clicks but has no ARIA tab-pattern keyboard behavior.

Where to look: src/ui/components/os-tabs/os-tabs.ts, src/window/dom.ts

7. Cron’s custom interval field is invisible and unusable

Why this matters: The Cron app opens and lists jobs, but users cannot finish creating a custom recurrence because the required number field never upgrades into a real control.

To reproduce:

  1. Open Cron Jobs.
  2. Choose Create.
  3. Select Custom interval.
  4. The intended <os-number-field> remains an undefined, zero-size element with no focusable input.

The component exists in source but is not present in the production component registration path used by the extension.

Where to look: extensions/desktop-mode-cron-manager/includes/window.php, src/ui/components/os-number-field/

8. Spatial desktop shortcuts ignore enabled native windows

Why this matters: A user can explicitly enable native Posts, Pages, Comments, Plugins, and Users, but clicking their Spatial-layout wallpaper shortcuts still opens the old iframe versions.

To reproduce:

  1. Choose the Spatial desktop layout.
  2. Enable the native Posts, Pages, Comments, Plugins, and Users features.
  3. Click any matching wallpaper shortcut.
  4. OpenStation opens the classic URL/iframe window instead of the enabled native app.
  5. Opening the same app from the canonical native API or dock correctly uses the native renderer.

The synthesized shortcut carries only a URL and bypasses the native replacement registry used by the dock.

Where to look: src/settings/desktop-shortcuts-sync.ts, src/desktop-files/built-in-openers.ts, src/desktop-layout.ts

9. Plugin fallback icons render as blank gray squares

Why this matters: Bundled and locally installed plugins without working WordPress.org artwork lose their identity in the native Plugins window.

To reproduce:

  1. Open native Plugins and wait for the remote icon fallback chain to finish.
  2. Look at a plugin without usable WordPress.org artwork, such as a bundled extension or Hello Dolly.
  3. Its fallback is a blank gray square instead of the intended plugin icon.

The fallback inserts a Dashicons class inside the table’s Shadow DOM, where the document-level Dashicons font and pseudo-element CSS cannot reach it.

Where to look: src/plugins-window/installed-view.ts, src/plugins-window/icon-fallback.ts

10. Firefox drops Gravatars on WordPress 6.0/local HTTP installs

Why this matters: Real user avatars are replaced with initials in the native Users window on a supported minimum environment.

To reproduce:

  1. Run the supported WordPress 6.0/PHP 7.4 environment over local HTTP.
  2. Open native Users in Firefox.
  3. The REST response supplies http://*.gravatar.com URLs.
  4. OpenStation probes them with crossOrigin=anonymous; the HTTP→HTTPS redirect fails CORS, and the UI falls back to initials.

Normalizing known Gravatar URLs to HTTPS before the probe avoids the redirect/CORS failure.

Where to look: src/ui/util/avatar-resolve.ts

11. Content Graph freezes the browser with a large site

Why this matters: A site within the lab’s stress profile can lock the entire OpenStation shell for more than ten seconds just by opening Content Graph. The completed view is also too dense to read or operate meaningfully.

To reproduce:

  1. Use a site whose Content Graph contains roughly 8,890 nodes.
  2. Open Content Graph.
  3. On the final trunk replay, Chromium took 11.59 seconds to become usable and 28.64 seconds on the evidence replay. The longest single main-thread blocks were 10.85–14.12 seconds. Earlier cross-browser runs also blocked Firefox for about 16 seconds and WebKit for about 13 seconds.
  4. The Fit overview renders thousands of tiny marks with no useful visual hierarchy.

The current path performs synchronous simulation warm-up work over the full graph and creates a Pixi object/text workload for every node before yielding.

Where to look: src/content-graph/index.ts, src/content-graph/scene.ts, src/content-graph/sim.ts

Suggested order of attack

  1. Fix the two silent settings-loss paths (Uploading demo video  #1 and ci: make npm run test:php actually work #2).
  2. Make Preferences and tab navigation safe for narrow and keyboard use (Add command palette registration APIs and sync functionality #5 and feat: enable media library enhancement by default with opt-out option #6).
  3. Restore the broken Cron and sharing controls (chore: fix all ESLint + tsc --noEmit errors #3, fix: resolve 3 PHPUnit failures + 1 error on trunk test code #4, and ci: wire PHP tests through wp-env + fix 4 pre-existing failures #7).
  4. Correct the alternate entry points and compatibility fallbacks (Feat/os settings help tab #8–docs: marketing-first README + stage technical content for the wiki #10).
  5. Move Content Graph loading off the long synchronous path and introduce a real large-graph display strategy (Feat/unify command palettes #11).

Each fix should get a focused regression test at the owning state/component layer, plus one browser replay of the user-visible flow.

Activity

  1. nickhamze commented on Aug 11, 2026

    @nickhamze
    CollaboratorAuthor

    Visual evidence

    These are the clearest captures from the reproductions above. The narrow-window, Spatial-routing, and Content Graph images are from the final origin/trunk replay. The plugin and avatar images are from the supported WordPress 6.0/PHP 7.4 lane.

    Preferences at 390×844

    The window opens at its desktop width, leaving most of the content and every right-side title-bar control beyond the viewport.

    Preferences extending beyond a 390px viewport

    Focused crop of the unreachable Preferences window

    Spatial shortcuts bypass native apps

    Native Posts and Plugins were enabled. The wallpaper shortcuts still opened their classic iframe windows.

    Spatial Posts shortcut opening the legacy Posts window

    Focused legacy Posts window opened from Spatial

    Spatial Plugins shortcut opening the legacy Plugins window

    Cron custom interval

    The field between the schedule slug and display label never upgrades into an input. This focused capture is from the first reproduction; the final trunk replay produced the same undefined, zero-size component.

    Missing Cron custom interval field

    Supported minimum environment fallbacks

    Blank plugin fallback icons

    Firefox Users window falling back to initials

    Content Graph with 8,890 nodes

    The final trunk replay took 11.59 seconds, then 28.64 seconds on the evidence run. The finished Fit view is still too dense to read.

    Content Graph with 8,890 nodes

  2. AllTerrainDeveloper commented on Aug 13, 2026

    @AllTerrainDeveloper
    Collaborator

    Opened #602 covering items 1, 2, 3, 4 and 8 from this list, plus one bug found while verifying 3/4 against a live install (a desktop tile dragged onto a folder icon kept its wallpaper coordinates and landed outside any folder window's reach — the layer doesn't scroll, so it was unreachable rather than merely off-screen).

    Not closing this issue: items 5, 6, 7, 9, 10 and 11 are untouched.

    Two notes for whoever picks up the rest:

    • On 2 — the merge went in the REST handler rather than openstation_save_os_settings(). That function's contract is replace, and migration 1 in includes/migrations.php unset()s keys and re-saves precisely so the sanitizer backfills the new defaults. A merging saver would turn that migration into a silent no-op, invisible to PHPUnit because it builds fresh meta every run.
    • On 8 — the defect was only in built-in-openers.ts. desktop-shortcuts-sync.ts synthesizes the shortcut correctly and desktop-layout.ts just decides which items get synthesized; the shortcut opener was the one URL-opening path that never consulted the native-window remap registry.
  3. added
    factory
    on Nov 21, 2026
  4. epeicher commented on Nov 21, 2026

    @epeicher
    Collaborator

    Factory intake: ACCEPT (risk medium, surfaces: ui)

    Summary

    • Checked all 11 reports against the code on current trunk (by reading it, not by replaying them in a browser).
    • Seven no longer apply: 1, 2, 3, 4, 8 and 9 have been fixed since August, and 5 is now handled by the phone layer.
    • Three are still live: the second half of 6 (arrow keys on a tab also drive the desktop), 10 (Gravatar over HTTP) and 11 (Content Graph on a large site). 7 is in a different repository.
    • This job builds one fix: arrow keys pressed on a control that uses them no longer switch desktops, open Overview or minimize every window.
    • 10 and 11 need their own issues; one PR cannot review three unrelated fixes well.

    Scope

    Build: the shell's bare-arrow shortcuts stand down when the focused control owns the arrow keys.

    • The change is in src/window-manager/desktop-shortcuts.ts, in installDesktopArrowShortcuts(). Add one more gate next to the existing isTextEntryFocus( document ) and isModalOpen() checks.
    • The gate answers "does the focused element, or one of its ancestors, use arrow keys itself?". Start from the real focused leaf the way isTextEntryFocus() does in src/window-manager/switcher.ts (walk down through open shadow roots), then walk up through the ancestors, stepping from a shadow root to its host, until the document.
    • It is true for, at least: the ARIA roles tab, tablist, menu, menubar, menuitem (and its checkbox and radio variants), listbox, option, combobox, radio, radiogroup, slider, spinbutton, switch, tree, treeitem, grid, and a focusable separator; and the native <select>, <input type="range"> and <input type="radio">.
    • When it is true, all four keys are left alone: Left and Right do not switch desktops, Up does not toggle Overview, Down does not toggle Show Desktop.
    • Everything else stays as it is: focus on the desktop, on a plain button or on a link still gets the shortcuts; the rules for modified arrows, text entry, open modals and the phone layer do not change; the listener stays where it is (capture phase on document).
    • Test: extend tests/vitest/desktop-shortcuts.test.ts, which today never dispatches a real keydown through the installer. One case with two desktops and focus on an <os-tab> inside <os-tabs> (no switch, no Show Desktop), one with focus on the body (still switches).
    • Docs: docs/workspaces.md describes when these arrows are suppressed ("While the wizard is up it owns the keyboard"). Add the new rule wherever the shortcuts are described, there and in docs/javascript-reference.md if it covers them.
    • Browser replay: in Preferences, focus the sidebar and press Down and Up (the page changes, the windows stay); with two desktops, focus a window's tab strip and press Right (the tab moves, the desktop stays).

    Left out:

    • 10, Gravatar URLs over HTTP: still open. src/ui/util/avatar-resolve.ts probes the URL as given and never upgrades it to HTTPS. Small fix, separate issue.
    • 11, Content Graph on a large site: still open. src/content-graph/sim.ts compares every pair of nodes on each step, and setData() in src/content-graph/scene.ts runs up to 90 of those steps before the first paint. It needs a design for large graphs, so it is a separate issue.
    • 7, Cron's custom interval field: Cron Manager is not in this repository (the README points to desktop-mode-official-extensions). os-number-field is in the kit's lazy-load list here (src/ui/components/tags.ts), so if it still fails, please report it there.
    • An opt-in attribute or wp.os method that lets a plugin's custom control claim the arrow keys. That is new public API and needs a maintainer's decision first.
    • Arrow navigation between desktop icons and files. It has no ARIA role to key on and keeps today's behaviour.

    Already fixed on trunk, nothing to build:

    • 1: Extended Options is now an app action. Every toggle sends its own save and the app runtime sends them in order (apps/os-settings/parts/features.ts, src/app-runtime/session.ts).
    • 2: a save now sends only the keys that changed since this session's last confirmed state, and the route merges them over the stored settings (src/settings/state.ts, includes/os-settings.php).
    • 3: folder rows now arrive with the page as filesBootFolders, so ownership is known after a reload (src/desktop-files/boot-folders.ts).
    • 4: a folder placement's file now carries shareSummary (includes/desktop-files/types/class-openstation-folder-file.php, pinned by tests/phpunit/tests/desktopFilesShareSummary.php).
    • 5: up to 767px wide the phone layer takes over and apps open full screen (src/mode/index.ts), so Preferences no longer opens as an 820px window at 390px.
    • 6, first half: <os-tabs> and the window tab strip now move with the arrow keys, Home and End (src/ui/components/os-tabs/os-tabs.ts, src/window/tab-strip.ts).
    • 8: the shortcut opener now asks the native-window remap first (src/desktop-files/built-in-openers.ts, pinned by tests/vitest/desktop-shortcut-native-remap.test.ts).
    • 9: the Plugins window was rebuilt. A plugin with no artwork shows its initials, and the detail panel uses <os-icon> (apps/plugins/parts/installed-library.ts, installed-detail.ts).

    Why

    The issue bundles eleven unrelated bugs, and most were fixed in the three months since it was opened, so the useful job is the most serious one that is still live. The desktop shortcuts listen on document in the capture phase and only step aside for text entry and open modals, so they run before any control sees the key: a tab strip moves its selection and the shell acts on the same keypress. In Preferences, whose sidebar is a vertical tab list, Down changes the page and minimizes every window; with two desktops, Right on any tab strip moves the tab and switches desktop. The same applies to every select, slider, menu and segmented control in the kit, which is why the fix belongs in the one gate rather than in each component. It is rated medium because it changes the window manager's keyboard handling, which every user of the shell touches, but it adds no API, stores nothing and decides no access.

  5. added
    factory:needs-human
    and removed
    factory:needs-human
    on Nov 21, 2026
  6. epeicher commented on Nov 21, 2026

    @epeicher
    Collaborator

    Factory: merged

    PR #1105 delivers the part of this issue that the intake comment above scoped. The rest is queued as #1110, #1111, each built as a PR of its own. This issue stays open until they land. It leaves the factory's queue.

  7. removed
    factory
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions