Repository navigation
docs(angular): Offline Support for the Angular UI Kit - #609
Conversation
Add the Offline Support page for Angular UI Kit v5, an Offline Support section in Core Features, the nav entry after core-features in the Angular v5 Features > Chat group, and the page in llms-angular-v5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WEaVigCRBjkftm78T25MQA
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…I Kit 5.3.0 - Offline Support page: match the kit and SDK as of the latest fixes. Jumps from messages on screen keep them, the reactions list keeps its counts, "Available when online" covers audio and files, the Search component reports through (searchError), your emptyView wins over Connect to search, hideOfflineNotices covers every message list notice, the notice strings and plural keys are listed, a failed edit leaves edit mode and reaches (error), and edits are never queued. Media picked offline is no longer promised. The thread limitation is scoped to Chat SDK 4.3.0. - Methods: setOfflineConfig() next to the other init settings, with an example, and what logout does to the offline cache and open sends. - Integration, Quickstart, Events, Localization, Core Features and the Conversations, Message List, Message Composer and Search pages: short offline notes and links, hideOfflineNotices and retryOfflineRead rows, and the offline events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
The queue-limit, send-promise, logout and hideOfflineNotices wording now covers text and custom messages only, so no page promises that a photo, video or file sent offline goes out on reconnect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Listing "File too large to send offline" read as if smaller files could be sent offline. The strings table and the hideOfflineNotices row no longer name it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
…ine reconnect and searchError wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
…ope has results Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
The release kit (5.3.0, uikit-angular temp-release-offline-v5 @ ef1bdb85) declares @angular/core and @angular/common ">=18.0.0 <23.0.0" (Angular 22 support, uikit-angular #590). The docs still said 17-21 and "Angular 22 is not supported yet"; published 5.2.3 already dropped 17 (">=18.0.0 <22.0.0"). - overview, integration, quickstart: Angular 18-22 from UI Kit 5.3.0, 5.2.x up to 21; scaffold with @angular/cli@22; Node versions per Angular major (Angular 22 engines: ^22.22.3 || ^24.15.0 || >=26.0.0); dompurify peer ^3.4.17. - AppComponent note: "Angular 18-19" (17 is no longer supported). - Zoneless notes: "Angular 21+". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTt1cqFxTDQyroF6wHx
The offline release ships the JavaScript Chat SDK as a patch from the live 4.3.0 (-> 4.3.1), so every Angular page that names the SDK's offline minimum moves with it: offline-support, methods, quickstart, integration and core-features. The Angular UI Kit version in these pages is already 5.3.0, the minor bump from the live 5.2.3, so it needs no change. The UI Kit's ^4.2.0 peer range on the Chat SDK is unchanged and stays as written. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D7Ygtnje2DAqQ4FmgWhYnt
… offline docs Public docs must not mention duplicate messages from offline sends, even indirectly (Aditya, 23 Nov). The Angular page carried the same disclosure as React/RN/iOS, worded "stored twice on the server" instead of "duplicate". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D7Ygtnje2DAqQ4FmgWhYnt
… claims Review fixes on the Angular offline docs, checked against UI Kit 5.3.0 and aligned with the Android pages where Android is the correct reference. - Narrow the auto-reload claim: only the Message List follows connects$, so a cold start with no network leaves the other lists on "Connect to load …" until they are reopened (connection-state.service.ts:167). - Correct "the components make no refresh fetch of their own": Users, Groups and Group Members do re-read page 1 on reconnect, as they do with offline off. - Document that media and custom messages queue, including tray attachments, and add the message_list_file_too_large_offline notice to the texts table and the hideOfflineNotices list. - Complete the ERROR_OFFLINE_MESSAGE_DISCARDED trigger list (the user's Delete and an outbox discard reject too; the reason is never the code). - Say that npm does not enforce the 4.3.1 floor, and why the SDK pages say 4.3.0 (the kit also needs SCHEMA_RESET from 4.3.1). - Add the 5.3.0 browser-connectivity change to the offline-off list, two known issues, and an Offline Support section to troubleshooting. - Add the offline signals to both search-service API tables; Angular 17-20 -> 18-20. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…c1e3df) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…oid and Flutter pages Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…limitations The SDK pages now name 4.3.1 as their minimum, so the "SDK pages name 4.3.0" sentence was wrong. Limitations carries scope only: the thread-replies, 10-second catch-up and unknown-failure-reason items are known issues in the kit's release notes, not docs content. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
…d, Flutter and React Native The rendered id of "What is and isn't encrypted" keeps a typographic apostrophe (verified on the live page: id="what-is-and-isn’t-encrypted"), so the in-page link #what-is-and-isn-t-encrypted never resolved. Android, Flutter and React Native already head this section "What gets encrypted"; the JavaScript and iOS pages now match, with the link text unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
jitvarpatil
left a comment
There was a problem hiding this comment.
🤖 Review Buddy (review-docs-pr)
Recommendation: request changes. Automated review; the final decision stays with a maintainer.
Reviewed head: 8a805cbf0ed1b7d97cdcaf06a8e4d36d86fd8cc5
TL;DR
The build is safe and nothing 404s. The PR adds one page, moves no files, and adds 0 redirects, which is fine because nothing moved. Nav, redirect and link checks are clean. The new Offline Support page is thorough and matches itself. Three P1s remain, all content consistency: a summary row that contradicts the guide on what gets queued, an Angular version range left at 17–21 in integration.mdx, and an anchor that only resolves after #611 merges. All three are small fixes.
P0: none
P1: fix before merge
- Core Features says the composer queues text only, but the guide says text, media and custom.
ui-kit/angular/core-features.mdx:287says "Queues text messages sent while offline."offline-support.mdx:33,core-features.mdx(the intro paragraph of the same section) andcometchat-message-composer.mdx:49say text, media and custom messages, including tray attachments. The 24 Nov commit0f0d2ca0updated the guide, but this row is still the 19 Nov wording. Suggested fix: "Queues text, media and custom messages sent while offline." - Leftover Angular range on the Integration page.
ui-kit/angular/integration.mdx:73still says "anERESOLVEhere almost always means the Angular major is outside 17–21". The same page says 18–22 at lines 12 and 39, and so do the Overview and Quickstart. With UI Kit 5.3.0 this sentence is wrong at both ends. Suggested fix: "outside 18–22 (18–21 for UI Kit 5.2.x)". - Encryption anchor only works after #611 merges.
ui-kit/angular/offline-support.mdx:453links to/sdk/javascript/offline-encryption#what-gets-encrypted. On this branch and onmain, that heading is still## What is and isn't encrypted(sdk/javascript/offline-encryption.mdx:148). The rename lives in #611 (React UI Kit offline, still open). This PR does not changesdk/javascript/*, even though commit8a805cbfsays the JavaScript page "now matches". If this PR merges first, the link lands at the top of the page. Either merge #611 first or note the dependency in the PR. The link text ("What is and isn't encrypted") should also match the new heading.
P2: nits
ui-kit/angular/offline-support.mdx:255: the code comment// logout or cache resetis narrower than the list at line 244, which also includes the user's Delete and the outbox discarding the message. Suggested comment:// removed before sending (logout, cache reset, Delete, outbox discard).ui-kit/angular/offline-support.mdx:22/:244: "The reason behind the removal is never the rejection's code" is hard to follow. Suggested wording: "the code is alwaysERROR_OFFLINE_MESSAGE_DISCARDED, whatever the reason; the reason is not exposed on the rejection."- The PR description contradicts the current diff. The "Update 19 Nov" section still says only text and custom messages are described as queued and that File too large to send offline was removed. Commit
0f0d2ca0restored both (offline-support.mdx:33,:200,:349). Strike or update that section so reviewers don't check against outdated statements.
What passed
- Build safety: 0 unresolved navigation refs.
docs.jsonaddsui-kit/angular/offline-supportaftercore-features, and the page exists. - Redirects: 0 files removed or renamed, so no redirects are needed (redirect delta +0).
- Links: 0 broken internal links across 109 scanned files in
ui-kit/angular/. The anchor in P1-3 is outside the script's checks and was found by reading the page. - Orphans: 2 (
ui-kit/angular/2.0/javascript-2-0-overview,ui-kit/angular/llms-angular-v5). Both are already orphaned onmain, and llms pages are meant to sit outside the nav. - Versions: UI Kit
5.3.0and Chat SDK4.3.1are the same across offline-support, methods, quickstart, integration, core-features and troubleshooting. No4.3.0minimum is left. Every AngularAppComponentnote says 18–19. - Placeholders: no TODO, FIXME, TBD or "coming soon" in the new page.
- Search service pages: both now say the services are component-provided, and both samples add
providers. - Skipped: no images were added, so there was nothing to check. Mintlify preview is 🟢 Ready. I did not render it.
jitvarpatil
left a comment
There was a problem hiding this comment.
✅ Approved via Review Buddy after an automated review (P0: 0 · P1: 3 · P2: 3).
Findings: #609 (review)
…nd wording Review feedback on #609: - core-features.mdx still carried the 19 Nov composer row, "Queues text messages sent while offline", contradicting the guide and the composer page, which both say text, media and custom messages including tray attachments. - integration.mdx said an ERESOLVE means the Angular major is outside 17-21. The same page, the Overview and the Quickstart all say 18-22 for UI Kit 5.3.0, with 5.2.x capped at 21. - The encryption link text still read "What is and isn't encrypted" at the heading renamed to "What gets encrypted". - The discard example's comment named only logout and cache reset, while the list above it also covers the user's Delete and an outbox discard. - Reworded the quiet-rejection sentence: the code is always ERROR_OFFLINE_MESSAGE_DISCARDED and the reason is not exposed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTu9in5yKt5CNV4rjXF
|
All six review findings addressed in P1-1 On P1-3: the anchor itself is correct, but it only resolves once #611 merges, since the heading rename lives there. #611 needs to merge before this PR — flagged at the top of the description. Checks: 🤖 Generated with Claude Code |
jitvarpatil
left a comment
There was a problem hiding this comment.
🤖 Review Buddy (review-docs-pr)
Recommendation: approve. Merge #611 first. Automated review; the final decision stays with a maintainer.
Reviewed head: f6f7f2e2328992f6b2686580e70f44fcccbf4d57 (re-review; the previous review was at 8a805cbf)
TL;DR
All six findings from the previous review are fixed in f6f7f2e2, and the fix commit changes nothing else (3 files, 5 lines). The build is safe, nothing 404s, and the redirect, nav and link checks are all clean. The facts that matter are now the same on every Angular page: what the composer queues (text, media and custom), the Angular range (18–22, or 18–21 for UI Kit 5.2.x), and the minimum versions (UI Kit 5.3.0, Chat SDK 4.3.1). One merge-order condition is left, and the PR description now flags it.
P0: none
P1: none
P2: merge condition
- Merge #611 before this PR.
ui-kit/angular/offline-support.mdx:453links to/sdk/javascript/offline-encryption#what-gets-encrypted. On this branch and onmain, the heading is still## What is and isn't encrypted(sdk/javascript/offline-encryption.mdx:148). The rename is in #611, which is still open. If this PR merges first, the link opens at the top of the page, not at that section. Nothing breaks, and the PR description already says so. This is a merge-order note, not a requested change.
Previous findings, all fixed
- P1-1
core-features.mdx:287composer row now reads "text, media and custom messages … including attachments picked in the tray" ✅ - P1-2
integration.mdx:73ERESOLVE sentence now reads "18–22 (18–21 for UI Kit 5.2.x)" ✅. No 17–21 or "Angular 17" is left anywhere underui-kit/angular/. - P1-3 Link text now reads "What gets encrypted" ✅. The anchor itself depends on #611 (see P2-1 above).
- P2-4 The discard example's comment now lists logout, cache reset, Delete and outbox discard ✅
- P2-5 The quiet-rejection sentence is reworded and clear ✅
- P2-6 The PR description marks the 19 Nov attachments bullet as superseded ✅
What passed
- Build safety: 0 unresolved navigation refs.
docs.jsonaddsui-kit/angular/offline-support, and the page exists. - Redirects: no files were removed or renamed (redirect delta +0), so none are needed.
- Links: 0 broken internal links in the 109 files scanned under
ui-kit/angular/. - Orphans: 2 (
ui-kit/angular/2.0/javascript-2-0-overview,ui-kit/angular/llms-angular-v5). Both are already orphaned onmain. - Versions: offline-support, methods, integration, quickstart, core-features and troubleshooting all give UI Kit 5.3.0 and Chat SDK 4.3.1. The
^4.2.0peer caveat is stated the same way everywhere. - Placeholders: no TODO, FIXME, TBD or "coming soon" text.
- Skipped: this PR adds no images, so there were none to check. The Mintlify preview shows 🟢 Ready, but I did not open the rendered pages.
jitvarpatil
left a comment
There was a problem hiding this comment.
✅ Approved via Review Buddy after an automated review (P0: 0 · P1: 0 · P2: 1).
Findings: #609 (review)
Update 24 Nov (second review follow-up,
f6f7f2e2)Applied every finding from the automated review on this PR.
P1
ui-kit/angular/core-features.mdxcomposer row still carried the 19 Nov wording, "Queues text messages sent while offline", which contradicted the guide and the composer page. It now reads text, media and custom messages, including attachments picked in the tray.ui-kit/angular/integration.mdxsaid anERESOLVEmeans the Angular major is outside 17–21. Corrected to 18–22 (18–21 for UI Kit 5.2.x), matching lines 12 and 39 of the same page, the Overview and the Quickstart.offline-support.mdxstill read "What is and isn't encrypted" while pointing at the renamed#what-gets-encryptedheading. Link text fixed.P2
ERROR_OFFLINE_MESSAGE_DISCARDEDwhatever the reason, and the reason is not exposed on the rejection.Superseded: the "Update 19 Nov" section below says only text and custom messages are described as queued, and that the File too large to send offline string and the Media attachments bullet were removed. Commit
0f0d2ca0on 24 Nov restored all three (offline-support.mdx:33,:200,:349). Read that bullet as out of date — the page now documents tray attachments as queued, subject to the offline media budget.Update 24 Nov (review follow-up)
main(ec1e3dfe) by merging it in, not rebasing, so the signed history is kept.SCHEMA_RESETcache-reset reason).#what-gets-encrypted, matching the section renamed on the JavaScript SDK page in docs(ENG-57590): Offline Support for the React UI Kit #611 (its old anchor never resolved).Resolved from "Needs confirmation": Angular UI Kit 5.3.0 and JavaScript Chat SDK 4.3.1 are both released, so the versions on the page are final. Still open: whether the Angular composer should document queued attachments (the React page now does).
Checks:
analyze_docs_pr.py --pr 609 --scope ui-kit/angular/— 0 missing redirects, 0 chained 404s, 0 unresolved nav refs (no build break), 0 broken internal links in 109 scanned files; the 2 orphans are onmaintoo.Update 19 Nov (ENG-57591)
Re-checked every claim against the Angular UI Kit 5.3.0 release candidate (
ef1bdb85) and the JavaScript Chat SDK release candidate (57f98889), which include the 19 Nov fixes. Also added offline notes to the other Angular reference pages. Commits72a7fe0e,5a0e7819andae8a1db5.Review round 1 (commits
624d5cd7,df2ebe00)SearchConversationsServiceandSearchMessagesServiceare now documented as component-provided, notprovidedIn: 'root'. Add them to your component'sproviders(CometChatSearchprovides its own). Fixed in the "Injected with" rows, both usage samples (addedproviders) and the services overview (api-reference/introduction.mdx).(searchError)fires only for a scope that failed for a real reason, not for a scope that failed only because it was offline.Offline Support page (corrected)
(error)once.mediaCaching(defaultAUTO).(error). Edits, deletes and reactions are never queued.(searchError). YouremptyView,errorViewandhideErrortake precedence over the offline states.hideOfflineNoticescovers every message list notice. The notice strings and their plural keys are listed.ERROR_OFFLINE_MESSAGE_DISCARDEDrejection is scoped tosendTextMessage()/sendCustomMessage().hideDeleteMessageOptionalso hides Delete on unsent messages. Retry or Delete on a message the SDK no longer holds removes it from the screen.^5.3.0/^4.3.0.Other Angular pages
setOfflineConfig()in theUIKitSettingsBuildertable and a new Offline Support section with an example. Logout deletes the offline cache and settles queued sends withERROR_OFFLINE_MESSAGE_DISCARDED..setOfflineConfig({ enabled: true })line and its version requirements.ccMessageSendStateChanged,ccOfflineCacheReset, and group events that can come from catch-up.hideOfflineNoticesinput rows and theretryOfflineRead()method row.accessibility#search).Checks (19 Nov)
docs.jsonparses, and the Angular nav entries resolve.mint broken-linksreports the same 3 links as onmain(/llms.txtand/llms-full.txtindesign-system.mdxandllms-index.mdx). None is in a changed file.Needs confirmation (added)
integration.mdxandoverview.mdxstill say Angular 17–21, while the kit's peer range is>=18.0.0 <23.0.0. Those pages are not changed here.What's added (original draft)
ui-kit/angular/offline-support.mdx(Offline Support), covering:UIKitSettingsBuilder.setOfflineConfig();(error)output rule, quietERROR_OFFLINE_MESSAGE_DISCARDEDsend rejections,ccMessageSendStateChanged/ccOfflineCacheReset, group events from catch-up, and theconnectToSearch/searchFailed/reconnectSearchError$service signals;hideOfflineNotices, custom error and empty views,retryOfflineRead(), the Retry/Delete option ids, and CSS variables;docs.json, Angular v5 → Features → Chat, right aftercore-features.llms-angular-v5.mdx: a link to the new page.Links go to the existing JavaScript SDK pages (
sdk/javascript/offline-*). The page doesn't repeat what those pages cover.Source
Originally written against the Angular UI Kit at
8284a6df; re-checked atef1bdb85on 19 Nov (see the update above). Sources:5.3.0;docs/release-notes/5.3.0-offline.md;api/cometchat-uikit.api.md;projects/cometchat-uikit/src/public-api.ts.This replaces the outdated Angular draft from closed PR #566.
Checks
python3 -m json.tool docs.jsonpasses..mdxfile and heading.mint broken-linksfinds 3 broken links in 2 files:/llms.txtand/llms-full.txtindesign-system.mdxandllms-index.mdx. All 3 are also onmain, and none is in the changed files.Needs confirmation
package.jsonand the draft release notes, which are not released yet.Search service API reference is out of date.Fixed in review round 1: both pages now say the services are component-provided.MessageListService.retryOfflineRead(direction?)is public in the API report. The page doesn't document it, because each message list provides its ownMessageListServiceinternally. The page documents only the component methodCometChatMessageListComponent.retryOfflineRead().notifications_offline_banner). It isn't clear whether it belongs to this feature, so the page leaves it out.initFromSettingsoffline parameter.CometChatUIKit.initFromSettings(settings, offlineConfig?)also takes an offline config, but it is marked@internal. The page leaves it out.Update 19 Nov: Angular version range (
a1476f7)The release kit (5.3.0,
uikit-angular@ef1bdb85) declares@angular/core/@angular/common>=18.0.0 <23.0.0, which adds Angular 22 (uikit-angular #590). The docs said 17–21 and "Angular 22 is not supported yet". Published 5.2.3 had already dropped 17.@angular/cli@22. Node versions are listed per Angular major. Thedompurifypeer is^3.4.17.AppComponentnote: "Angular 18–19". Zoneless notes: "Angular 21+".🤖 Generated with Claude Code
Agent-built with Claude Code, to be reviewed by Raj Dubey.