Too many fields on the alert source #21

Closed
opened 2026-10-06 13:23:08 +02:00 by EduarD3V · 4 comments
Owner

Sample url= http://100.118.73.36:5173/alerts/sources?id=checkmk

Here,, the alert source has multiple fields for the url:

URL, Port, Base URL.

The two first are not in http://100.118.73.36:5173/alerts/sources/new , only base url.

also for sources that are Poll type and not webhook type, like checkmk, it is still showing this block that only has to be show on webhook type:

Ingest token (shown once)

Copy this now. Middleware stores only its SHA-256; a rotate invalidates the previous value. The token belongs in the vendor's authorization header, never in the body.

fafasdfasdfasdfasdf

Webhook URL

http://100.11asdfasdfasdf00/webhooks/checkmk-2

Uptime Kuma → Additional Headers (JSON key/value)

{"Authorization": "Bearer asdfasdfasfdasdfasdf"}
Sample url= http://100.118.73.36:5173/alerts/sources?id=checkmk Here,, the alert source has multiple fields for the url: URL, Port, Base URL. The two first are not in http://100.118.73.36:5173/alerts/sources/new , only base url. also for sources that are Poll type and not webhook type, like checkmk, it is still showing this block that only has to be show on webhook type: ``` Ingest token (shown once) Copy this now. Middleware stores only its SHA-256; a rotate invalidates the previous value. The token belongs in the vendor's authorization header, never in the body. fafasdfasdfasdfasdf Webhook URL http://100.11asdfasdfasdf00/webhooks/checkmk-2 Uptime Kuma → Additional Headers (JSON key/value) {"Authorization": "Bearer asdfasdfasfdasdfasdf"} ```
gotoi-agent added reference issue/21-alert-source-fields 2026-10-06 13:29:09 +02:00
Collaborator

PARTIAL DONE by gotoi-agent — PR #24 (issue/21-alert-source-fields -> develop), 3 commits b09a968/0915c6a/3ad8f17. Edit pane: URL+Port hidden for pull-capable kinds; one-time token box + Rotate row hidden in pull mode. Guided setup: post-Save webhook block gated on webhook mode; pull-mode note instead. Gates green: uc _check, ai-headers, type-mirror, dashboard test 238 pass, svelte-check 0 errors, build ok, hidden set 1 pass. Not browser-verified (auth-gated pages, no session in worktree) — reviewer with a session should eyeball /alerts/sources?id=checkmk and /alerts/sources/new -> Checkmk -> Save. Refs #21

PARTIAL DONE by gotoi-agent — PR #24 (issue/21-alert-source-fields -> develop), 3 commits b09a968/0915c6a/3ad8f17. Edit pane: URL+Port hidden for pull-capable kinds; one-time token box + Rotate row hidden in pull mode. Guided setup: post-Save webhook block gated on webhook mode; pull-mode note instead. Gates green: uc _check, ai-headers, type-mirror, dashboard test 238 pass, svelte-check 0 errors, build ok, hidden set 1 pass. Not browser-verified (auth-gated pages, no session in worktree) — reviewer with a session should eyeball /alerts/sources?id=checkmk and /alerts/sources/new -> Checkmk -> Save. Refs #21
Collaborator

Claimed — branch issue/21-alert-source-fields. Doing: hide the duplicate URL/Port fields on the source detail pane for pull-capable kinds and hide the post-Save webhook token/URL/headers block for pull-mode sources in guided setup.

Claimed — branch `issue/21-alert-source-fields`. Doing: hide the duplicate URL/Port fields on the source detail pane for pull-capable kinds and hide the post-Save webhook token/URL/headers block for pull-mode sources in guided setup.
Collaborator

Plan: /home/eduardez/workspace/gotoi-wt/meta/issue-21.plan.md
Tasks:

  1. Gate detail-pane Port/URL on !pullPreset; gate token box + Rotate row on !pullMode (dashboard/src/routes/alerts/sources/+page.svelte)
  2. Gate post-Save webhook block on created && !pullMode in /alerts/sources/new
  3. Extend UC-FE-51/71 text assertions; bump UC-FE-51/71/73
  4. Gates: uc _check, ai-headers, type-mirror, dashboard bun run test + check + build
Plan: /home/eduardez/workspace/gotoi-wt/meta/issue-21.plan.md Tasks: 1. Gate detail-pane Port/URL on `!pullPreset`; gate token box + Rotate row on `!pullMode` (dashboard/src/routes/alerts/sources/+page.svelte) 2. Gate post-Save webhook block on `created && !pullMode` in /alerts/sources/new 3. Extend UC-FE-51/71 text assertions; bump UC-FE-51/71/73 4. Gates: uc _check, ai-headers, type-mirror, dashboard bun run test + check + build
Collaborator

DONE — refs #21 (issue stays open).

Commits: b09a968 (detail pane hides URL/Port + token box for pull kinds), 0915c6a (guided setup hides post-Save webhook block in pull mode), 3ad8f17 (UC source assertions).

Gates: UC _check 0 · check-ai-headers 0 · check-type-mirror 0 · dashboard bun run test 238 passed · bun run check 0 errors · bun run build 0.

Limit: no browser smoke (routes are auth-gated, no unattended session) — verified via svelte-check + build + page assertions. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-21.report.md

DONE — refs #21 (issue stays open). Commits: b09a968 (detail pane hides URL/Port + token box for pull kinds), 0915c6a (guided setup hides post-Save webhook block in pull mode), 3ad8f17 (UC source assertions). Gates: UC _check 0 · check-ai-headers 0 · check-type-mirror 0 · dashboard bun run test 238 passed · bun run check 0 errors · bun run build 0. Limit: no browser smoke (routes are auth-gated, no unattended session) — verified via svelte-check + build + page assertions. Report: /home/eduardez/workspace/gotoi-wt/meta/issue-21.report.md
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
EduarD3V/gotoi#21
No description provided.