Skip to content

DOCS: Document the CleverReach group-fetch hooks - #19

Open
dhrupo wants to merge 1 commit into
mainfrom
docs/cleverreach-integration-hooks
Open

DOCS: Document the CleverReach group-fetch hooks#19
dhrupo wants to merge 1 commit into
mainfrom
docs/cleverreach-integration-hooks

Conversation

@dhrupo

@dhrupo dhrupo commented Sep 1, 2026

Copy link
Copy Markdown
Member

What does this PR do and why?

Two hooks ship with the CleverReach resubscribe work in fluentformpro#278 and are undocumented. This adds both to the integration hook pages.

fluentform/cleverreach_groups_pagination tunes how the feed settings dropdown fetches an account's groups. It needs documenting because the fetch is deliberately additive — CleverReach documents no paging on /v3/groups, so the first request carries no paging parameters and further pages are only probed when a response looks capped — and because probe_from below 1 is the supported way back to a single unpaged request.

fluentform/cleverreach_groups_fetch_incomplete fires when that fetch came back short, which is otherwise indistinguishable from an account that genuinely has few lists. The entry records which endings count as degraded (API error, exception, unreadable rows, max_pages reached) and which are ordinary (short final page, paging ignored), so a listener does not fire on healthy sites.

Related issue: https://lounge.authlab.io/projects#/boards/16/tasks/22501-CleverReach-resubscribe-flow-i

Changes

  • src/hooks/filters/integration.md — adds fluentform/cleverreach_groups_pagination with both config keys, their defaults, and two usage examples.
  • src/hooks/actions/integration.md — adds fluentform/cleverreach_groups_fetch_incomplete with its three arguments and when it does and does not fire.

Both are placed alphabetically and carry the Pro badge, matching the surrounding entries.

How to test

  1. npm run build — completes clean (verified).
  2. Both hooks render into src/.vuepress/dist/hooks/filters/integration/index.html and .../actions/integration/index.html respectively.

Anything the reviewer should know?

Two things I noticed but deliberately left alone:

  • The filter count badge is stale: src/hooks/filters/integration.md reads "27 Filters" but the page had 36 entries before this PR (4 of them Pro-badged), so neither a total nor a free-only reading explains 27. I did not bump or correct it, since I could not tell what it is meant to count. Worth a separate fix once the intent is settled.
  • fluentform/mailerlite_groups_pagination is the same pattern in the same file and is also undocumented. Left out to keep this PR to the hooks it ships with — happy to add it here or separately.

Both hooks ship with the CleverReach resubscribe work in fluentformpro
PR #278 and were undocumented.

fluentform/cleverreach_groups_pagination tunes how the feed settings
dropdown fetches the account's groups. Worth documenting because the
fetch is deliberately additive -- CleverReach documents no paging on
/v3/groups -- and because probe_from below 1 is the supported way back
to a single unpaged request.

fluentform/cleverreach_groups_fetch_incomplete fires when that fetch
came back short, which is otherwise indistinguishable from a small
account. The note records which endings count as degraded and which
are ordinary, so a listener does not fire on healthy sites.

Refs: https://lounge.authlab.io/projects#/boards/16/tasks/22501-CleverReach-resubscribe-flow-i
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying fluentform-developers with  Cloudflare Pages  Cloudflare Pages

Latest commit: caf806f
Status: ✅  Deploy successful!
Preview URL: https://0d052f65.fluentform-developers.pages.dev
Branch Preview URL: https://docs-cleverreach-integration.fluentform-developers.pages.dev

View logs

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