Skip to Content
DocumentationEditorPanel Mode Derivation

Panel Mode Derivation (Advanced)

This page explains how panel modes are determined at a system level.


Mode derivation

Panel modes are not set manually. They are computed from system state.

The derivation follows a priority chain:

  1. Ownership β€” does this tab hold the editing lease?
  2. Same-document constraint β€” is the same document open in both panels?
  3. Preview or historical state β€” is the user viewing a past version?
  4. User actions β€” is the user following updates or in focus mode?

The highest-priority condition determines the mode.


Authority states

Each panel has an authority state:

  • Live β€” connected to the latest version, editing allowed
  • Historical β€” viewing a past version, read-only
  • Fork β€” editing based on a past version, creating a new path

Visual indicator mapping

Each mode maps to visual feedback:

  • Editing β†’ normal appearance, active cursor
  • Read-only β†’ dimmed appearance, lock icon
  • Preview β†’ preview label, distinct styling
  • Following β†’ auto-updating indicator

Why this model works

  • Modes are always consistent with system state
  • Users never end up in an invalid mode
  • Changes propagate instantly when conditions change

Back to: Panel Modes

Last updated on