Repository navigation
docs(flutter): Chat SDK 5.1.2 changes and version bump - #628
adityagokula2210 wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ketanyekale
left a comment
There was a problem hiding this comment.
LGTM. Approving. Hold the merge until Flutter Chat SDK 5.1.2 is on pub.dev, as the description says.
Checked:
- Build is safe: no files removed or renamed, 0 unresolved nav refs, 0 broken internal links in the changed files. Mintlify deployment and link-rot checks pass.
- No
cometchat_sdk: ^5.1.0pins left undersdk/flutter/. The 5.1.0 minimum is kept. - No "fired on the acting device" or "fans them out locally" wording left. Pin, save, conversation-pin and the real-time-listeners tables are consistent.
schemaResetwas added to every list of reset reasons (offline-sync,offline-encryption,offline-reference). There are noswitchsamples in the docs that would now be non-exhaustive.- The
fetchPreviouslistener change matches acrossreactions,offline-cached-dataandoffline-reference. The old "fetchPrevious does not take a listener" lines are gone.
Non-blocking nits:
pin-conversation.mdx:171: "They never fire because another user pinned their own list." now comes after the UI Kit upgrade sentence, so it reads as disconnected. Consider moving it up to follow the first sentence.offline-encryption.mdx:155says howpendingMessagesLostis reported forencryptionChanged(exact count) and for key or corruption resets (null), but not for the newschemaReset. One clause would close that gap.- The Flutter UI Kit pages still pin
cometchat_chat_uikit: ^6.3.0, while these pages say 6.4.0 requires SDK 5.1.2. Worth a follow-up bump when UI Kit 6.4.0 ships.
jitvarpatil
left a comment
There was a problem hiding this comment.
🤖 Review Buddy (review-docs-pr)
Recommendation: request changes. This is an automated review; a maintainer makes the final decision.
TL;DR: The PR is structurally safe: it modifies 15 files and moves, renames or deletes none. No redirects are needed, all navigation refs resolve, and no links break. I checked every SDK behaviour change against the v5.1.2 tag of chat-sdk-flutter (its CHANGELOG and source), and all of them are accurate: the listener no longer fires on the device that made the change, schemaReset, the ReactionsRequest.fetchPrevious(listener:) addition, the media budget no longer counting queued media and evicting least recently used media before byteOverflow, the empty list from an in-flight fetchNext(), and WASM support. Flutter SDK 5.1.2 is live on pub.dev, so the PR's own merge condition is met. One thing blocks merge: four pages tell readers to upgrade to Flutter UI Kit 6.4.0, but pub.dev's latest version is 6.3.0.
P0
None.
P1
- The pages point readers to a UI Kit version that isn't published yet. "upgrade it to 6.4.0" / "the Flutter UI Kit 6.4.0 requires it" appears at
sdk/flutter/pin-message.mdx:175,sdk/flutter/pin-conversation.mdx:171,sdk/flutter/save-message.mdx:163,sdk/flutter/setup.mdx:46andsdk/flutter/offline-enable.mdx:43.cometchat_chat_uikiton pub.dev is at 6.3.0. If this merges now, UI Kit users who move to SDK 5.1.2 lose the pin/save/conversation-pin updates on the device that made the change, and the version the docs tell them to install doesn't exist. Either hold the merge until UI Kit 6.4.0 is published (and add that to the PR's merge condition), or reword these lines to "upgrade to the UI Kit release that supports SDK 5.1.2 (6.4.0, coming soon)".
P2
sdk/flutter/offline-media-caching.mdx:162: the sentence "Because protected media is never evicted, the cache can briefly exceedmaxMediaCacheSize" no longer fits the new wording. The same paragraph now says protected (queued or uploading) media doesn't count toward the budget, so the budget itself isn't exceeded; only the total on-disk size can be larger than it. Suggested wording: "…so the total media on disk can be larger thanmaxMediaCacheSize."sdk/flutter/offline-send.mdx:188and:290describebyteOverflowas "its file is larger thanmaxMediaCacheSize". For a multi-file send, the SDK refuses when the files together exceed the budget (_copyOutgoingFilesinoffline_runtime.dart). Suggested wording: "its file (or, for a multi-file message, its files together)".sdk/flutter/pin-conversation.mdx:171: the UI Kit upgrade sentence sits between two statements about when the events fire. "They never fire because another user pinned their own list" now reads as a stray sentence. Move the UI Kit sentence to the end of the paragraph.
What passed
- Redirects: 0 files removed or renamed, so none are needed (927 → 927).
- Build: 0 dangling navigation refs.
- In-content links: 0 broken across 113 scanned
sdk/flutter/files. - Version consistency: every v5 install snippet is
^5.1.2, the "5.1.0 minimum for offline" statements are unchanged and correct, and the v4 pages still pin^4.0.33. - No stale text about the listener firing on the device that made the change remains anywhere in the repo.
schemaResetis documented the same way on all three pages (sync, encryption, reference).- Pre-existing, not from this PR:
/sdk/flutter/llms-flutter-v5is not in navigation. - Skipped: the Mintlify preview wasn't checked visually. The Mintlify bot reports the preview build as 🟢 Ready.
jitvarpatil
left a comment
There was a problem hiding this comment.
✅ Approved via Review Buddy after an automated review (P0: 0 · P1: 1 · P2: 3).
Findings: #628 (review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4e61f49
|
Combined into #635 now that Flutter Chat SDK 5.1.2 and UI Kit 6.4.0 are both live. |
Brings the Flutter Chat SDK v5 pages in line with SDK 5.1.2.
onSuccess. Flutter UI Kit 6.3.0-or-earlier users upgrade to 6.4.0 with SDK 5.1.2.OfflineCacheResetReason.schemaReset(cache written by a newer SDK version, e.g. after an app rollback, rebuilt; not encryption-related), and aswitchwithoutdefaultmust handle it.ReactionsRequest.fetchPrevious()takes an optionalReactionFetchListener(cached first, then server).byteOverflowonly if the file still cannot fit.fetchNext()onConversationsRequest/BlockedUsersRequeststarted while one is loading completes at once with an empty list.^5.1.2(recommended; Flutter UI Kit 6.4.0 requires it). The 5.1.0 minimum is unchanged.Merge when Flutter UI Kit 6.4.0 is published on pub.dev (Flutter Chat SDK 5.1.2 already is). These pages tell UI Kit users to upgrade to 6.4.0.
🤖 Generated with Claude Code