Repository navigation
chore(skills): snapshot the 3.x Android, 3.x iOS and 5.x Flutter flag, error tracking and logs pages - #471
Conversation
The Android flag variants install posthog-android 3.x, but read the live flag code page and the Android flag install page, which move to 4.0 on release day. They now read 2026-11-04 snapshots of both pages. The flag code page is a group shared doc, so a variant's own shared_docs entry now replaces the group's one with the same file name. Every other variant still reads it live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a wizard branch:
Add Results will be posted here when complete. |
#478) * chore(skills): snapshot the 3.x iOS flag, error tracking and logs pages posthog-ios 4.0 moves the iOS install snippets to SPM `from: "4.0.0"` and drops CocoaPods (posthog.com#21807, posthog#129618), and changes the iOS section of the flag code page. The iOS variants install 3.x, so they read copies taken while the pages still describe it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: name the logs snapshot's 3.59.3 pin in the README --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…g, logs and flag pages The Android error tracking, logs and upload mappings pages and the Flutter feature flag, error tracking and logs install pages reuse the product analytics onboarding steps that the posthog-android 4.0 and posthog_flutter 6.0 onboarding changes rewrite. The variants install 3.x/5.x, so they read copies taken while the pages still describe those majors.
|
This is stacked on #454, which won't land: the Wizard team is replacing that approach. Can you rebase it onto |
I think this will go away too. Leaving for the @PostHog/team-wizard-docs to reference, merge or close. |
johncwaters
left a comment
There was a problem hiding this comment.
LGTM, one med item
Note
Automated review by Glimmervoid, not written by a human. Approved by hand after checking it.
| - https://posthog.com/docs/feature-flags/installation/elixir.md | ||
| - https://posthog.com/docs/feature-flags/installation/android.md | ||
| - https://posthog.com/docs/feature-flags/installation/ios.md | ||
| - context/docs-snapshots/legacy/feature-flags/android.md |
There was a problem hiding this comment.
Note
Automated review. Not written by a human.
[code/consistency] MEDIUM
This skill now reads the 3.x Android and iOS install snapshots, but its group shared_docs (line 8) still reads the live adding-feature-flag-code.md. After the SDK releases it pairs 3.x install steps with 4.0 flag code, which is what the standalone and integration-v2 variants were changed to avoid.
The description says that's fine for Android because the 4.0 snippet has a note for 3.x readers. Does posthog.com#21807 add the same kind of note for iOS (the 3.x reloadFeatureFlags block and didReceiveFeatureFlags fallback the README mentions)? If not, the omnibus probably needs the snapshot too. Nothing tests this skill's flag code page either way.
Problem
The Android feature flag variants install posthog-android 3.x, but they read two pages live:
feature-flags/adding-feature-flag-code.md(a groupshared_docsentry) andfeature-flags/installation/android.md. When posthog-android 4.0 ships, PostHog/posthog.com#21808 changes the Android snippet on the first page toPostHog.onFeatureFlags { loaded -> … }, which 3.x doesn't have. The second page renders the in-app onboarding, which moves toprojectTokenandposthog-android:4.+. The next build after that would hand 3.x installs 4.0-only code.The same goes for iOS (PostHog/posthog.com#21807, merged in from #478), and for the Android error tracking, logs and upload mappings pages and the Flutter feature flag, error tracking and logs install pages. Those reuse the product analytics onboarding steps that the posthog-android 4.0 and posthog_flutter 6.0 onboarding changes rewrite, so they must stay at 3.x/5.x.
Stacked on #454, which adds the legacy snapshots and repo-file
docs_urls. Like #454, it must be released before those pages change.Changes
context/docs-snapshots/legacy/feature-flags/: copies of both pages, taken 2026-11-04 while they still describe 3.x (apiKey,posthog-android:3.+, theonFeatureFlagsconfig option). They sit in a subfolder so the install page keeps itsandroid.mdreference name next to the library page snapshot. The README lists them.integration-v2step and omnibus skills):feature-flags/ios.md,error-tracking/ios.md,logs-installation/ios.md, and the iOS flag variants read the flag code page snapshot.error-tracking/android.md,logs-installation/android.md,upload-mappings/android.md(also read by the Flutter upload variant). Taken 2026-11-06 (posthog-android:3.+,apiKey).feature-flags/flutter.md,error-tracking/flutter.md,logs-installation/flutter.md. Taken 2026-11-06 (posthog_flutter: ^5.x).shared_docsentry now replaces the group's entry that writes the same reference file, in place. Before, both were fetched and the later one overwrote the file. No variant declaresshared_docstoday, so nothing else changes.feature-flagsandintegration-v2/feature-flags-step: theandroidvariant reads both snapshots. All other variants still read the flag code page live.omnibus/instrument-feature-flags: reads the Android install page snapshot. It keeps the live flag code page, because that one skill covers every platform. The 4.0 Android snippet on that page has a note for 3.x readers.Test plan
pnpm test: 228 passed. New tests cover the in-place replacement and that both Android flag variants get the snapshot instead of the live page. Every snapshotted page is in the list of pages no config may fetch live.feature-flags-android,integration-v2-feature-flags-step-androidandomnibus-instrument-feature-flags. Both Android skills'adding-feature-flag-code.mdreference is byte-identical to the snapshot. The snapshots match the live pages today, so the output is unchanged until the pages move.LLM context
Written with Claude Code (Opus 5.5) at the request of the posthog-android maintainer.
🤖 Generated with Claude Code