Skip to content

A failed column save leaves Posts and Pages showing the rejected layout #593

Closed

Description

@nickhamze

If a Posts or Pages column change cannot be saved, the server-backed setting rolls back but the open table and its menu do not. The rejected layout remains on screen until the page is reloaded.

How to reproduce

  1. Open the native Posts or Pages window.
  2. Open Window actions → Show columns.
  3. Take the browser offline.
  4. Hide a column and wait for the save to fail.
  5. The authoritative setting returns to its previous value, but the table keeps the column hidden and the menu keeps it unchecked.

What should happen

The table and menu should repaint from the restored saved state, and OpenStation should clearly say that the change could not be saved.

Where I would look

The global failure handler replaces its settings state, but does not notify subscribeOsSettings() listeners after rollback. The native table depends on that subscription to repaint its columns and menu.

  • src/settings/index.ts
  • src/settings/state.ts
  • src/posts-window/index.ts

A rejected column change leaves the live table and menu stale

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions