Skip to content

refactor: DRY quicktree action form wrappers #9

@somethingwithproof

Description

@somethingwithproof

Problem

quicktree.php repeats action-form wrapper scaffolding in multiple action branches (add_tree, add_branch), including conditional header display and identical form/box begin/end calls.

Proposed change

  • add shared helpers for quicktree action-form wrapper begin/end
  • use shared helpers in add-tree and add-branch paths
  • preserve behavior while reducing duplicated wrapper logic

Tests

  • add standalone regression tests for helper wrapper call order
  • add source assertions for helper usage in both action branches
  • run syntax checks for touched files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions