Skip to content

Task 032: Split EditMonitor.vue into child components (phase 1) - #32

Merged
Igloczek merged 2 commits into
masterfrom
task/032-split-edit-monitor-page
Jun 30, 2026
Merged

Igloczek merged 2 commits into
masterfrom
task/032-split-edit-monitor-page

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/032-split-edit-monitor-page.md from the ponytail audit backlog.

Goal

Extract the largest independent sections from the 4,337-line page into child components.

Scope

  • Identify 3–5 extractable sections (e.g. notification section, advanced settings, conditions, type-specific fields, tags).
  • Move each to src/components/edit-monitor/ with props/events; no behavior change.
  • Target: EditMonitor.vue ≤3,000 LOC after this phase.

Acceptance criteria

  • At least 3 new components under src/components/edit-monitor/.
  • Create monitor, edit monitor, save, and start/stop flows work for HTTP and one non-HTTP type.
  • bun run lint passes.
  • bun run test-e2e passes monitor edit scenario.

Depends on

Task 030 (composables available for shared datetime/theme).

Verification

bun run lint
bun run test-e2e
wc -l src/pages/EditMonitor.vue

Audit reference

Finding #5 — EditMonitor.vue monolith (phase 1).

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

  • Template content preserved verbatim with original v-if guards inside child components
  • monitor passed as object prop (direct mutation, consistent with EditMonitorConditions)
  • Notification/proxy dialogs remain in parent; children emit events to trigger $refs
  • Removed now-unused timeoutMin/timeoutMax/timeoutStep computed props from parent (moved to EditMonitorHeartbeatSettings)
  • Build artifact (embedded-assets.bundle.ts) excluded from commit

7 files changed, 1557 insertions(+), 1397 deletions(-)

@Igloczek
Igloczek force-pushed the task/032-split-edit-monitor-page branch from 03a009e to 4818a92 Compare June 30, 2026 12:11
Igloczek added 2 commits June 30, 2026 14:24
Extract five independent sections from the 4,337-line EditMonitor page
into src/components/edit-monitor/ with props/events; no behavior change.

New components:
- EditMonitorHeartbeatSettings (interval, retries, timeout, resend)
- EditMonitorAdvanced (TLS, ping, redirects, status codes, etc.)
- EditMonitorNotifications (notification toggles + setup/edit events)
- EditMonitorWebsocketAuth (WebSocket authentication options)
- EditMonitorHttpOptions (HTTP method, body, headers, auth)
- EditMonitorGlobalpingHttpOptions (Globalping HTTP subtype options)

EditMonitor.vue reduced from 4,337 to 2,986 LOC.

Ponytail audit finding #5 — EditMonitor.vue monolith (phase 1).
@Igloczek
Igloczek force-pushed the task/032-split-edit-monitor-page branch from 4818a92 to 3a707bb Compare June 30, 2026 12:25
@Igloczek
Igloczek merged commit 8b4f498 into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/032-split-edit-monitor-page branch June 30, 2026 12:59
Igloczek added a commit that referenced this pull request Aug 8, 2026
Task 032: Split EditMonitor.vue into child components (phase 1)
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