Skip to content

feat: bulk feature integration (discovery, web push, badges, webhooks, and more) - #73

Merged
fclairamb merged 625 commits into
mainfrom
feat/bulk
May 27, 2026
Merged

fclairamb merged 625 commits into
mainfrom
feat/bulk

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Summary

This PR integrates a series of independently implemented features and fixes from the feat/bulk branch:

  • Discovery scan range increase: Raised MaxScanChunks from 256 to 4096 and added a large-range CIDR warning in the UI
  • Status-update badge position: Moved badge to the right side of the status update card
  • Webhook URL key mismatch fix: Migration 033 renames webhook_url → url in integration_connections.settings; backfills existing data
  • Empty uptime-bar / response-time graph: Fixed bucket query to read all tiers (raw + hour + day) and accumulate correctly
  • Web Push Foundation: VAPID keypair lifecycle, app_settings KV table (migration 034), service worker, subscription hook, and enable button
  • Invite already-signed-in fix: Gates the "Creating account for…" note on auth state; adds alreadySignedIn i18n key
  • Badges width/minWidth input fix: Buffers numeric inputs in local React state; commits to URL on blur to avoid TanStack Router validation rejecting intermediate values
  • Web Push Notification Delivery: Dispatches web push to escalation policy users (Phase A) and org-channel subscribers (Phase B); adds test-send endpoint

Test plan

  • Backend: make test (all new features have unit + integration tests)
  • Frontend: make test-dash (Playwright E2E added for web push, badges width, invite page)
  • Manual smoke: dev server with make dev-test, verify web push subscription + notification delivery, CIDR scanner large-range warning, badges width typing
  • Migrations: apply on clean DB and verify both SQLite and Postgres paths

🤖 Generated with Claude Code

fclairamb added 30 commits May 25, 2026 01:47
…ations

Slack channels can only originate from the OAuth install flow. CreateChannel
now returns ErrSlackManualCreate (400 VALIDATION_ERROR) for type=slack, and
GetDestinations returns ErrSlackNotConnected (409 CHANNEL_NOT_CONNECTED) for
tokenless stubs instead of a misleading 502.
New Channel form renders an Install CTA for Slack instead of a create form;
the edit page shows a not-connected CTA (gating the destinations fetch) when a
Slack channel has no team_id. Adds i18n keys and e2e coverage; reworks the
destination-picker e2e to mock the channel now that manual create is rejected.
fclairamb and others added 22 commits May 26, 2026 07:45
…gets

Phase A: add UserContactTypeWebPush const, webpush dispatchRoute case with
gone-subscription pruning + audit, extend pageSchedule and pageAllAdmins to
walk all user routes (not just direct email), set VerifiedAt=now() on webpush
contact creation, add webpush test-send support, and add deriveDeviceLabel +
WebPushEnableButton affordance in Account → Notifications.

Also fix pre-existing BuildInstallURL call-site arity mismatch in Slack handler/tests.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Phase B: ConnectionTypeWebPush const, WebPushSender (fan-out with gone-pruning
+ UpdateChannel callback), registry + channel service allowlist, frontend
ConnectionType/CAPABILITIES/ALL_TYPES/PerTypePanel/channel-icon/locales.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add webpush_test.go covering: all-succeed fan-out, gone-410 pruning with
UpdateChannel callback, no-VAPID early return, empty subscriptions no-op.

Fix pre-existing issues: Slack BuildInstallURL arity, webhook_test govet
shadow, app_settings_test testifylint.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…annel

Phase A: account-notifications spec adds affordance visibility test and
mocked subscribe-flow test. Phase B: channels spec asserts webpush in
group-notify picker and WebPushChannelPanel renders correctly.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Fix PostgreSQL migrations 029 and 032: columns used VARCHAR(36) but FK
  targets are uuid type, causing SQLSTATE=42804 errors. Also fix COALESCE
  of nullable uuid column with a uuid-typed sentinel value.
- Fix scenario test predicates and assertions: webhook payload uses Standard
  Webhooks format {"type":"...", "data":{"incident":{...},"check":{...}}}
  but tests were checking flat {"eventType":"..."} shape that doesn't exist.
- Fix TestAckTimeoutRepeatCycle: send repeatAfterSeconds (not repeatAfterMinutes)
  to match the escalation policy API field name.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…to test button

- ChannelForm: add useEffect to sync local settings state when the initial
  prop changes. Fixes webhook signing secret not updating in the UI after
  a rotation mutation invalidates and refetches the channel query.
- Account notifications: add aria-label="Send test notification" to the
  icon-only test button so Playwright can locate it by accessible name.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
… URL params

- availability-table: stop fetching raw results (not useful for aggregated
  display) and skip any raw rows in computeAvailability so checks with no
  aggregated data yet show "-" instead of a misleading percentage.
- badges: return undefined from validateSearch for components/period/style
  when they equal their defaults ("status"/"30d"/"flat") so TanStack Router
  omits them from the URL rather than round-tripping them back in.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
t.Cleanup runs in LIFO order: cancel(workerCtx) fires first, then
server.Close(). Without waiting for the worker to drain, in-progress
jobs try to update DB status after the connection pool is closed,
producing "database is closed" errors and the webhook never arriving.

Add a workerDone channel so the cleanup blocks until worker.Run returns
(which calls wg.Wait() internally), ensuring all in-flight jobs finish
before the DB is closed.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…is reached

Playwright checks route handlers in LIFO order. The PATCH handler was
registered after the GET handler, so it was consulted first for every
request to the channel URL. For non-PATCH methods it called
route.continue(), which forwarded the GET to the real network and got a
404 for the fake channel UUID. Changed to route.fallback() so the GET
falls through to the earlier GET mock handler.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ct LIFO drain order

t.Cleanup runs in LIFO order, so the last-registered cleanup runs first.
The webhook collector's httptest.Server was registered after the worker
cleanup, which made it close BEFORE the worker drained — causing
notification jobs to fail with "context canceled" when POSTing to the
already-closed webhook URL.

Moving newWebhookCollector before the worker cleanup registration ensures
the worker drains (and delivers notifications) before the webhook server
closes.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…t mid-job abort on shutdown

When the worker's polling context is canceled (during graceful shutdown),
any job that was already mid-execution would fail because its DB queries
and HTTP requests used the same canceled context.

Using context.WithoutCancel for the execution phase lets claimed jobs run
to completion while still stopping the polling loop on cancel.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- account-notifications: fix mock URLs (notification-routes not notification-contacts)
  and switch toggle assertion to retry-based toBeChecked
- testdata: seed test status page so status-update E2E tests have a page to select
- discovery promote: remove client-side slug (let server auto-generate via sanitizeSlug)
  so IP addresses like 127.0.0.1 don't produce digit-leading slugs that fail validation

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ry, status pages

- response-time-chart: handle dot clicks at the chart level. recharts v3 routes
  pointer events through a single top-level surface, so the per-dot onClick
  never fired and the pinned-result preview never opened.
- status-update form: default to the first status page in create mode. The API
  rejects an empty statusPageUid with 404, so the create flow never navigated.
- status pages: point the row Edit (pencil) button at the /edit route, which is
  where the subscribers card lives.
- slack settings: persist a first-time app token. The save guard required
  editingToken, which is false on the initial (no-token-stored) entry, so the
  token PUT was skipped.
- check detail: give the icon-only edit link an accessible name.
- discovery promote: convert the period to ISO 8601 (e.g. "1m" -> "PT1M"); the
  API rejects bare "1m"/"60s".
- discovery e2e: merge the two large-range scan tests. Only one scan per org may
  run, and a stopped scan's running child chunks hold the guard for minutes, so
  a second large scan started seconds later was rejected.
- chart e2e: hover a dot before clicking so recharts has an active point.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@fclairamb
fclairamb merged commit a976856 into main May 27, 2026
17 of 19 checks passed
@fclairamb
fclairamb deleted the feat/bulk branch May 27, 2026 10:29
@fclairamb fclairamb mentioned this pull request May 22, 2026
fclairamb added a commit that referenced this pull request Jun 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](v0.0.0...v0.1.0)
(2026-06-22)


### Features

* add check type registry, sample configs, notification senders, and
observability integrations
([eea049e](eea049e))
* batch — Warning/Degraded statuses, SSL/Docker check upgrades, MCP
OAuth 2.1, config-as-code
([#85](#85))
([936d830](936d830))
* batch spec implementations (dashboard UI, jobs, notifications, SaaS,
perf) ([#78](#78))
([fe003e4](fe003e4))
* bulk feature integration (discovery, web push, badges, webhooks, and
more) ([#73](#73))
([a976856](a976856))
* custom user-agent, refresh checks, vite plugin switch, CI updates
([#1](#1))
([cc00858](cc00858))
* documentation site served at /docs (co-located in web/docs)
([#88](#88))
([27d9ccd](27d9ccd))
* email check frontend (spec 03)
([#30](#30))
([aebd106](aebd106))
* email inbox foundation via JMAP (spec 01)
([#24](#24))
([0f3b0c1](0f3b0c1))
* email passive checks (spec 02)
([#27](#27))
([ba5536f](ba5536f))
* **entitlements:** trim to MaxSSOUsers + MaxChecksPerMinute + status
page history fixes
([#50](#50))
([a007de0](a007de0))
* **entitlements:** trim to MaxSSOUsers + MaxChecksPerMinute, enforce
both ([#49](#49))
([d25cc5f](d25cc5f))
* group incident correlation (spec 04 backend v1)
([#31](#31))
([1883986](1883986))
* **observability:** instrument hot path + add bench harness
([#60](#60))
([c6604cc](c6604cc))
* **oncall:** searchable timezone dropdown + sidebar logo polish
([#46](#46))
([4396898](4396898))
* per-IP HTTP rate limiting and concurrency limiting
([#59](#59))
([f9cc273](f9cc273))
* soften HTTP rate limits with bounded queues + request timeout
([#63](#63))
([025501b](025501b))
* SolidPing — distributed uptime monitoring platform
([eef4383](eef4383))
* **statuspages:** drag-and-drop resource reordering + dash conventions
([#41](#41))
([cf910d4](cf910d4))


### Bug Fixes

* **deps:** update dependency i18next to v26
([#26](#26))
([d5d1b7e](d5d1b7e))
* **deps:** update dependency lucide-react to v1
([#28](#28))
([cdc8e8c](cdc8e8c))
* **deps:** update dependency react-i18next to v17
([#29](#29))
([13135d8](13135d8))
* **deps:** update dependency recharts to v3.8.1
([#14](#14))
([5d95a3b](5d95a3b))
* **deps:** update go dependencies (non-major)
([#16](#16))
([2450f13](2450f13))
* **deps:** update go dependencies (non-major)
([#19](#19))
([f842310](f842310))
* **deps:** update go dependencies (non-major)
([#37](#37))
([c020eca](c020eca))
* **deps:** update go dependencies (non-major)
([#44](#44))
([ff0bcd0](ff0bcd0))
* **deps:** update go dependencies (non-major)
([#52](#52))
([2e3bc28](2e3bc28))
* **deps:** update go dependencies (non-major)
([#69](#69))
([a65ed4c](a65ed4c))
* **deps:** update go dependencies (non-major)
([#77](#77))
([a0920ff](a0920ff))
* **deps:** update go dependencies (non-major) to v1.4.2
([#86](#86))
([1eb7504](1eb7504))
* **deps:** update module github.com/aws/aws-sdk-go-v2/config to
v1.32.18 ([#72](#72))
([6406537](6406537))
* **deps:** update module github.com/aws/aws-sdk-go-v2/service/s3 to
v1.101.0 ([#39](#39))
([f9c9563](f9c9563))
* **deps:** update module github.com/go-webauthn/webauthn to v0.17.3
([#45](#45))
([593931a](593931a))
* **deps:** update module github.com/go-webauthn/webauthn to v0.17.4
([#70](#70))
([fca1c97](fca1c97))
* **deps:** update module github.com/ibm/sarama to v1.48.1
([#47](#47))
([93ccf3a](93ccf3a))
* **deps:** update module github.com/ibm/sarama to v1.48.2
([#54](#54))
([e84d868](e84d868))
* **deps:** update module github.com/ibm/sarama to v1.49.0
([#64](#64))
([fd61bd7](fd61bd7))
* **deps:** update module github.com/oapi-codegen/runtime to v1.4.1
([#65](#65))
([a3a3e9f](a3a3e9f))
* **deps:** update module github.com/prometheus/common to v0.67.5
([#61](#61))
([095dd6f](095dd6f))
* **deps:** update module github.com/slack-go/slack to v0.24.0
([#75](#75))
([6e86d5b](6e86d5b))
* **deps:** update module golang.org/x/sys to v0.44.0
([#42](#42))
([a245730](a245730))
* **deps:** update module golang.org/x/sys to v0.45.0
([#67](#67))
([49c3d90](49c3d90))
* **deps:** update module golang.org/x/term to v0.43.0
([#43](#43))
([4a934f1](4a934f1))
* **deps:** update module google.golang.org/grpc to v1.81.0
([#36](#36))
([1be183a](1be183a))
* **deps:** update module google.golang.org/grpc to v1.81.1
([#55](#55))
([6bfac2d](6bfac2d))
* status lifecycle improvements and created/running result handling
([#5](#5))
([fc64c7d](fc64c7d))
* **status0:** white page header and de-duplicated footer
([#48](#48))
([77506a7](77506a7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
fclairamb added a commit that referenced this pull request Jul 5, 2026
#105)

## Summary

release-please's changelog only sees each squash-merge commit's own
title/body. The v0.1.0 and v0.2.0 batch integration PRs (#73, #78, #85,
#89) each bundled many independently-implemented, independently-audited
specs behind one flattened changelog bullet, hiding most of what
actually shipped.

Expands both releases' changelog entries to list every underlying
feature/fix, sourced from each batch PR's own itemized description
(which already documented them in detail — the changelog just never
surfaced it). No functional/behavioral change, `CHANGELOG.md` only, plus
one unrelated one-line `.gitignore` fix for a local E2E test-server pid
file that kept showing up as untracked.

## Test plan

- [x] Docs-only change, no code touched.
- [x] Cross-checked every expanded bullet against its source PR's own
description (`gh pr view <n>`) rather than reconstructing from raw
commit diffs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
This was referenced Sep 8, 2026
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