Skip to content

refactor: consolidate duplicate PromptField onto canonical shared copy#2210

Merged
chubes4 merged 1 commit into
mainfrom
dedupe-promptfield
May 24, 2026
Merged

refactor: consolidate duplicate PromptField onto canonical shared copy#2210
chubes4 merged 1 commit into
mainfrom
dedupe-promptfield

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 24, 2026

Closes part of #2209 (phase 1 step 1).

Changes

  • Delete duplicate inc/Core/Admin/Pages/Pipelines/assets/react/components/shared/PromptField.jsx
  • No import rewrites needed — both real consumers (PipelineStepCard, SystemTasksTab) already imported via the @shared/components/PromptField webpack alias, which resolves to the canonical file. The duplicate was dead code.
  • Build verified clean (npm run build, zero errors/warnings).

Diff summary

The two files were near-identical. The only difference: the Pipelines copy imported AUTO_SAVE_DELAY from ../../utils/constants while the canonical inlined the same 500ms value. Functionally equivalent.

Out of scope

…red/components copy

The Pipelines copy at inc/Core/Admin/Pages/Pipelines/assets/react/components/shared/PromptField.jsx
was a near-identical duplicate of inc/Core/Admin/shared/components/PromptField.jsx (the only
difference was that the Pipelines copy imported AUTO_SAVE_DELAY from a constants module while
the canonical inlined the same 500ms value).

No imports actually referenced the duplicate — both real consumers (PipelineStepCard,
SystemTasksTab) already import via the @shared/components/PromptField webpack alias, which
resolves to the canonical file. The duplicate was dead code.

Part of #2209 (phase 1 step 1). No behavior change; build verified clean.
@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 24, 2026

Homeboy Results — data-machine

Lint

lint — passed

Deep dive: homeboy lint data-machine --changed-since 008878b

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/26348812022

Test

test — passed

ℹ️ No impacted tests found for --changed-since 008878b
ℹ️ Run full suite if needed: homeboy test data-machine
Deep dive: homeboy test data-machine --changed-since 008878b

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/26348812022

Audit

audit — passed

Deep dive: homeboy audit data-machine --changed-since 008878b

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/26348812022
Tooling versions
  • Homeboy CLI: homeboy 0.197.2+af8cd8f8
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: dd23ee80
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 8434d89 into main May 24, 2026
5 checks passed
@chubes4 chubes4 deleted the dedupe-promptfield branch May 24, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant