Skip to content

refactor: group board state flags into typed state objects #107

@StudentWeis

Description

@StudentWeis

Current State

Board and settings state are currently tracked with many parallel boolean fields on RopyBoard and SettingsEditor. Related concerns like preview visibility, delete flow, clear-confirm visibility, search filters, and settings toggles are spread across top-level structs, which makes the ownership of each state slice harder to read and maintain.

Target State

Group related state into focused structs and enums such as UiState, FilterState, and nested settings editor state objects, while preserving existing board behavior and wiring.

Rationale

This refactor reduces top-level field sprawl, makes call sites read in terms of domain state instead of raw flags, and leaves a clearer path for future expansion if any of these slices need more than two states.

Scope

gui

Safety Net

  • Existing tests cover the affected behavior
  • This refactor is purely mechanical (no behavior change)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions