Skip to content

refactor: DRY quicktree action form wrappers #9

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

Activity

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