Repository navigation
[T2] docs audit + top-5 high-severity fixes (closes #1117) - #1122
Conversation
Spec: docs/specs/2026-04-18-docs-audit.md Report: docs/_audit-2026-04-18.md Audits all 65 non-deprecated *.mdx pages against the Mintlify doc-author skill and the InsForge overlay. 12 findings total: 5 high, 4 medium, 3 low. Top 5 high-severity rows will be fixed in follow-up commits in this same PR; medium/low go to follow-up tickets. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…utter SDK Audit rows #1 and #4 from docs/_audit-2026-04-18.md. Row #1: remove sdks/typescript/ui-components/{react,nextjs,customization} from navigation — none of these .mdx files exist on disk, so the entire UI Components group was breaking Mintlify nav rendering. Re-add if/when the pages land via a follow-up ticket. Skill §"Internal links": only to pages that actually exist. Row #4: add Flutter group under SDK & Examples tab. Six Flutter SDK pages (overview/database/auth/storage/realtime/ai) exist on disk but had zero nav entries — they were unreachable from the site. Ordering mirrors the Swift/Kotlin groups. Flutter has no functions.mdx so the group intentionally has six pages instead of seven. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…erview Audit row #2 from docs/_audit-2026-04-18.md. Body prose linked to /sdks/typescript/ui-components/react and /sdks/typescript/ui-components/nextjs which are now 404s (confirmed in row #1 — the files don't exist on disk). Skill §"Internal links": only to pages that actually exist. Deleting the Framework-Specific Packages section wholesale rather than leaving a stub — the section's only content was the two dead links. Re-add when the UI-components pages land via a follow-up ticket. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… to /sdks/typescript/* Audit row #3 from docs/_audit-2026-04-18.md. The changelog linked to seven obsolete /core-concepts/{ai,email,authentication,database}/sdk routes that never existed — SDK references live at /sdks/typescript/* per docs.json:110-141. Repointed to the canonical locations: /core-concepts/ai/sdk → /sdks/typescript/ai (×3) /core-concepts/email/sdk → /sdks/typescript/email (×1) /core-concepts/authentication/sdk → /sdks/typescript/auth (×2) /core-concepts/realtime/sdk → /sdks/typescript/realtime (×1) /core-concepts/database/sdk → /sdks/typescript/database (×1) Also dropped the "View Auth Components docs →" link line (line 150 in the Nov 2025 entry) — target route /core-concepts/authentication/ui- components/react has no replacement on disk. Kept the surrounding section copy + Frame so the changelog entry still reads naturally. Skill §"Internal links": only to pages that actually exist. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ing> Audit row #5 from docs/_audit-2026-04-18.md. Private-preview is a stability signal, not neutral context, so <Warning> is the correct component per INSFORGE.md overlay ("<Warning> at top for experimental features") — mirrors how docs/core-concepts/email/architecture.mdx:6-8 and docs/core-concepts/deployments/architecture.mdx:6-8 already mark the same feature class. Also added "APIs and behavior may change." so the callout body matches the wording used on the architecture pages for the same experimental tier. Minimal-diff: no other content changed. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
WalkthroughThis PR executes a documentation audit to remove Flutter SDK documentation pages (marked as "coming soon" but no longer being developed), removes TypeScript UI Components from navigation, updates links to point to new SDK routes, and adds audit reports documenting findings and fixes applied. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
tonychang04
left a comment
There was a problem hiding this comment.
Commander review — pass with one concern worth addressing before merge.
Scope check (docs-only, 5 commits, 6 files): clean. .mdx + docs.json + new audit/spec files only. No source code.
Blockers
None.
Concerns
Missed broken-link cluster in docs/core-concepts/authentication/architecture.mdx (lines 365/369/373). Three <Card href="/sdks/typescript/ui-components/{react,nextjs,customization}"> entries still point at the same dead targets that audit rows #1 and #2 correctly flag as high-severity. The audit systematically removed those targets from docs.json nav and from sdks/typescript/overview.mdx, but this CardGroup on the authentication architecture page has the same 404 fingerprint and is not in the audit table. By the audit's own severity rubric ("readers will hit 404") this is high, not med/low, so deferring it to the #1121 catch-all is a coverage gap rather than a scoping decision. Recommend either: (a) one more commit in this PR deleting the CardGroup wrapper (mirrors the overview.mdx fix — 17 lines), or (b) explicitly file a dedicated follow-up issue acknowledging the miss rather than folding into #1121.
Nits
docs/sdks/typescript/email.mdx<Warning>body uses**Private Preview**bold-prefix; reference pagescore-concepts/{email,deployments}/architecture.mdxuse subject-first phrasing ("Email is an experimental feature."). Both valid; flagging for consistency consideration.- Audit report row #3 lists seven broken changelog links but the commit repointed 7 and dropped 1 (8 total changes). Off-by-one in the description, fix is correct.
Verification performed
- Every repointed link resolves:
docs/sdks/typescript/{ai,email,auth,realtime,database}.mdxall exist on disk ✓ - Flutter group: all six pages exist on disk, ordering matches Swift/Kotlin pattern ✓
ui-components/directory confirmed absent undersdks/typescript/— deletions are correct ✓docs.jsonpassesjq empty✓<Warning>block shape in email.mdx matches the<Warning>\n text\n</Warning>pattern on the two reference architecture pages ✓- Minimal-diff rule: changelog 8.6%, overview.mdx 12.7%, email.mdx 7.3%, docs.json 6.6% — all well under the 30% ceiling ✓
- Skill citations: all 5 fix commits cite the rule they enforce (
Skill §"Internal links"× 4,INSFORGE.md overlay "<Warning> at top for experimental features"× 1) ✓ - Audit report is a concrete 12-row table with severity key, methodology, and summary — not a prose essay ✓
Signed-off by
commander-review (skills invoked: superpowers:requesting-code-review)
…tecture.mdx Reviewer feedback on PR #1122: the audit sweep missed three Card hrefs at lines 365/369/373 pointing at /sdks/typescript/ui-components/react, /nextjs, and /customization — same class as audit rows #1 and #2, same 404 outcome. Removing the whole "### UI Components (TypeScript)" section wholesale, mirroring commit 64e839e: every link in the section was dead, no replacement target exists on disk (see ls docs/sdks/typescript/ — no ui-components/ dir). Re-add when the UI-components pages land via a follow-up ticket. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
tonychang04
left a comment
There was a problem hiding this comment.
Commander review (cycle 2 — post Flutter-delete + architecture fix)
Re-reviewed the two commits added since the cycle-1 clean verdict:
a37a8a2— removed 3 deadui-components/*Cards fromcore-concepts/authentication/architecture.mdx(closes auth-concern from cycle 1)37bc6a4— deleteddocs/sdks/flutter/(6 files, 2159 lines), removed Flutter nav entry, cleaned 8 cross-references across 5core-concepts/*/architecture.mdxCards + 2 prose mentions incore-concepts/email/architecture.mdxandcore-concepts/functions/architecture.mdx
Verification
All five checks pass cleanly:
jq empty docs/docs.json→ PASS. JSON parses. Nav now hasTypeScript / Swift / Kotlin / REST API / Examplesgroups under the SDK tab — consistent with filesystem.grep -rn '/sdks/flutter' docs/→ onlydocs/_audit-2026-04-18.md:25(historical audit artifact, not in nav). All runtime-facing references gone.grep -rni 'flutter' docs/→ same single hit. Complete removal from nav, Cards, and prose.<CardGroup>integrity → all 5 touched architecture.mdx files have balanced tags (3 opens / 3 closes / 15 Card tags each). No empty groups. No trailing commas.cols={2}preserved throughout.- Prose context → the "UI Components (TypeScript)" H3 section in
authentication/architecture.mdxis removed cleanly along with its intro sentence. No dangling prose. The "Mobile SDKs (Swift, Kotlin)" lines inemail/architecture.mdx:114andfunctions/architecture.mdx:192read correctly after dropping "Flutter".
Spot-checks of cycle-1 fixes all still intact: <Warning> callout in sdks/typescript/email.mdx, repointed changelog links (/sdks/typescript/* — 0 remaining /core-concepts/*/sdk hits), cleaned ui-components references in docs.json and sdks/typescript/overview.mdx.
Blockers
None.
Concerns
None.
Nits
docs/_audit-2026-04-18.md:25row #4's "Recommended fix" column still reads "Add a Flutter group under SDK & Examples..." — which is now stale since the shipped fix was the opposite (delete the Flutter SDK entirely). The audit file is an internal artifact (underscore prefix, not in nav) so readers won't see it, but future auditors reading the report will be confused. Optional follow-up: append a**Note (2026-04-18):** operator decision changed to delete, not nav-add — Flutter SDK was a "Coming Soon" stub.line under row #4.- The SDK References
<CardGroup cols={2}>in the 5 architecture.mdx files now renders 2+1 instead of the prior 2+2 — Kotlin sits alone on the second row. Purely cosmetic Mintlify layout quirk, not a content issue. Left as-is.
Verdict
Clean. Label commander-review-clean remains applied (idempotent re-add).
Signed-off by: commander-review
Skills invoked: superpowers:requesting-code-review (manual Mintlify/JSON structural checks against the PR head; no Flutter refs or docs.json breakage to hand off to /codex)
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
docs/changelog.mdx (1)
202-202: Use canonical GitHub repository URL for consistency.The current URL should work, but normalizing to the canonical repository path avoids ambiguity in docs/link audits.
Suggested minimal diff
- [GitHub](https://github.com/InsForge/InsForge-sdk-js) · [Database SDK →](/sdks/typescript/database) + [GitHub](https://github.com/insforge/insforge-sdk-js) · [Database SDK →](/sdks/typescript/database)Based on learnings: The InsForge JavaScript SDK repository is named "insforge-sdk-js" and is located at https://github.com/insforge/insforge-sdk-js.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/changelog.mdx` at line 202, Update the GitHub link in docs/changelog.mdx to use the canonical repository URL by replacing "https://github.com/InsForge/InsForge-sdk-js" with the lowercase canonical path "https://github.com/insforge/insforge-sdk-js" in the line that renders the [GitHub] link so docs and link audits point to the correct repo.docs/core-concepts/email/architecture.mdx (1)
114-114: Minor wording cleanup for readability.The sentence is accurate but reads awkwardly; swapping clause order is clearer.
Suggested minimal diff
-Email SDK is currently only available for TypeScript as part of the TypeScript SDK. Mobile SDKs (Swift, Kotlin) support for email is coming soon. +Email SDK is currently only available for TypeScript as part of the TypeScript SDK. Email support for mobile SDKs (Swift, Kotlin) is coming soon.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/core-concepts/email/architecture.mdx` at line 114, Reword the sentence "Email SDK is currently only available for TypeScript as part of the TypeScript SDK. Mobile SDKs (Swift, Kotlin) support for email is coming soon." to improve readability by swapping the clause order so it reads like "The Email SDK is currently available only for TypeScript; support for mobile SDKs (Swift, Kotlin) is coming soon." — update the sentence in the document to this clearer phrasing.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/_audit-2026-04-18.md`:
- Line 31: The audit note at the table row referencing `docs/quickstart.mdx`
contains the lowercase term "markdown" on the description (the phrase "Uses
markdown numbered list..."); update it to the proper noun "Markdown" to ensure
consistency—search for the table row text or the phrase "Uses markdown numbered
list `1. 2. 3.`" (under "Step 1") and change "markdown" to "Markdown".
---
Nitpick comments:
In `@docs/changelog.mdx`:
- Line 202: Update the GitHub link in docs/changelog.mdx to use the canonical
repository URL by replacing "https://github.com/InsForge/InsForge-sdk-js" with
the lowercase canonical path "https://github.com/insforge/insforge-sdk-js" in
the line that renders the [GitHub] link so docs and link audits point to the
correct repo.
In `@docs/core-concepts/email/architecture.mdx`:
- Line 114: Reword the sentence "Email SDK is currently only available for
TypeScript as part of the TypeScript SDK. Mobile SDKs (Swift, Kotlin) support
for email is coming soon." to improve readability by swapping the clause order
so it reads like "The Email SDK is currently available only for TypeScript;
support for mobile SDKs (Swift, Kotlin) is coming soon." — update the sentence
in the document to this clearer phrasing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: aa71f3cc-6fe8-4d91-9b5e-7192440bf32f
📒 Files selected for processing (19)
docs/_audit-2026-04-18.mddocs/changelog.mdxdocs/core-concepts/ai/architecture.mdxdocs/core-concepts/authentication/architecture.mdxdocs/core-concepts/database/architecture.mdxdocs/core-concepts/email/architecture.mdxdocs/core-concepts/functions/architecture.mdxdocs/core-concepts/realtime/architecture.mdxdocs/core-concepts/storage/architecture.mdxdocs/docs.jsondocs/sdks/flutter/ai.mdxdocs/sdks/flutter/auth.mdxdocs/sdks/flutter/database.mdxdocs/sdks/flutter/overview.mdxdocs/sdks/flutter/realtime.mdxdocs/sdks/flutter/storage.mdxdocs/sdks/typescript/email.mdxdocs/sdks/typescript/overview.mdxdocs/specs/2026-04-18-docs-audit.md
💤 Files with no reviewable changes (12)
- docs/core-concepts/storage/architecture.mdx
- docs/core-concepts/realtime/architecture.mdx
- docs/sdks/flutter/storage.mdx
- docs/sdks/typescript/overview.mdx
- docs/core-concepts/database/architecture.mdx
- docs/docs.json
- docs/core-concepts/authentication/architecture.mdx
- docs/sdks/flutter/ai.mdx
- docs/sdks/flutter/overview.mdx
- docs/sdks/flutter/database.mdx
- docs/sdks/flutter/realtime.mdx
- docs/sdks/flutter/auth.mdx
| | 7 | `docs/core-concepts/realtime/sdk.mdx` and `docs/core-concepts/storage/sdk.mdx` | Both pages exist on disk but are NOT in `docs/docs.json` navigation — they're orphaned. They also duplicate content that lives at `/sdks/typescript/realtime` and `/sdks/typescript/storage` (the canonical SDK-tab pages). Deprecated-API smell: the SDK-tab pages are canonical, the core-concepts pages are the older location. | med | Follow-up ticket: either delete both (canonical SDK docs live under `/sdks/typescript/*` per docs.json:110-141) or add them to nav. Audit recommends deletion; `changelog.mdx:106` still links to `/core-concepts/realtime/sdk` so a link rewrite is part of the same ticket. | | ||
| | 8 | `docs/sdks/rest/storage.mdx` (sections at lines 154, 196, 289) | Three H2 sections titled "Upload Object (Deprecated)", "Upload with Auto-Generated Key (Deprecated)", "Download Object (Deprecated)". The parenthetical label works, but a `<Warning>` callout inside each section would make the status machine-readable (skill §"Callouts / `<Warning>` — something potentially destructive"). | med | Follow-up ticket: prepend a `<Warning>These endpoints are deprecated. Use [...] instead.</Warning>` callout at the top of each of the three sections; do not remove the content (REST reference is intentionally complete). | | ||
| | 9 | `docs/sdks/typescript/database.mdx` (line 379) | Example imports `@insforge/react` with an inline comment `// or '@insforge/react-router'`. No `/sdks/typescript/ui-components/*` page exists (see #1) to explain when you'd pick which — the reader has nowhere to go. | med | Follow-up ticket: after UI-components pages are restored (#1), add a cross-link here. Standalone fix not useful. | | ||
| | 10 | `docs/quickstart.mdx` (lines 13-15) | Uses markdown numbered list `1. 2. 3.` for a three-action sequence inside "Step 1" (which is itself an H2). Skill §"Steps for sequential procedures: use the `<Steps>` component". Impact is small — the page is already readable. | low | Deferred. Minimal-diff conversion is ~20 lines for a 5-line list; not worth this PR. Folded into catch-all follow-up. | |
There was a problem hiding this comment.
Capitalize “Markdown” for consistency.
Line 31 should use the proper noun form.
Suggested minimal fix
-| 10 | `docs/quickstart.mdx` (lines 13-15) | Uses markdown numbered list `1. 2. 3.` for a three-action sequence inside "Step 1" (which is itself an H2). Skill §"Steps for sequential procedures: use the `<Steps>` component". Impact is small — the page is already readable. | low | Deferred. Minimal-diff conversion is ~20 lines for a 5-line list; not worth this PR. Folded into catch-all follow-up. |
+| 10 | `docs/quickstart.mdx` (lines 13-15) | Uses Markdown numbered list `1. 2. 3.` for a three-action sequence inside "Step 1" (which is itself an H2). Skill §"Steps for sequential procedures: use the `<Steps>` component". Impact is small — the page is already readable. | low | Deferred. Minimal-diff conversion is ~20 lines for a 5-line list; not worth this PR. Folded into catch-all follow-up. |📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| | 10 | `docs/quickstart.mdx` (lines 13-15) | Uses markdown numbered list `1. 2. 3.` for a three-action sequence inside "Step 1" (which is itself an H2). Skill §"Steps for sequential procedures: use the `<Steps>` component". Impact is small — the page is already readable. | low | Deferred. Minimal-diff conversion is ~20 lines for a 5-line list; not worth this PR. Folded into catch-all follow-up. | | |
| | 10 | `docs/quickstart.mdx` (lines 13-15) | Uses Markdown numbered list `1. 2. 3.` for a three-action sequence inside "Step 1" (which is itself an H2). Skill §"Steps for sequential procedures: use the `<Steps>` component". Impact is small — the page is already readable. | low | Deferred. Minimal-diff conversion is ~20 lines for a 5-line list; not worth this PR. Folded into catch-all follow-up. | |
🧰 Tools
🪛 LanguageTool
[uncategorized] ~31-~31: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...cs/quickstart.mdx(lines 13-15) | Uses markdown numbered list1. 2. 3.` for a three-ac...
(MARKDOWN_NNP)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/_audit-2026-04-18.md` at line 31, The audit note at the table row
referencing `docs/quickstart.mdx` contains the lowercase term "markdown" on the
description (the phrase "Uses markdown numbered list..."); update it to the
proper noun "Markdown" to ensure consistency—search for the table row text or
the phrase "Uses markdown numbered list `1. 2. 3.`" (under "Step 1") and change
"markdown" to "Markdown".
Closes #1117
Summary
Audits all 65 non-deprecated
.mdxfiles underdocs/against theMintlify
doc-authorskill + InsForge overlay vendored in #1119.Publishes the full findings at
docs/_audit-2026-04-18.md(12 rows:5 high / 4 med / 3 low) and applies minimal-diff fixes to the five
high-severity rows in the same PR, each commit citing the skill /
overlay section it enforces.
Follow-up tickets are already filed:
Implements:
docs/specs/2026-04-18-docs-audit.mdFixes applied (high-severity only)
e2e5b542docs.jsonnav pointed atsdks/typescript/ui-components/{react,nextjs,customization}— none of those.mdxfiles exist. Removed the dead group.e2e5b542Fluttergroup mirroring Swift/Kotlin.64e839e6docs/sdks/typescript/overview.mdx:38-39linked to the same dead ui-components routes. Removed the "Framework-Specific Packages" section.b1848a21docs/changelog.mdxhad 7 broken/core-concepts/*/sdklinks + 1 deadui-components/reactlink. Repointed 7 to/sdks/typescript/*; dropped the 1 with no valid target.bffb0007docs/sdks/typescript/email.mdx:6used<Note>for private-preview; INSFORGE.md overlay requires<Warning>for experimental features.Test plan
grep -nE 'core-concepts/(ai|email|authentication|database)/(sdk|ui-components)' docs/changelog.mdx— no hits).docs.jsonis valid JSON after edits (jq empty docs/docs.jsonpasses).<Warning>components match the existing pattern indocs/core-concepts/{email,deployments}/architecture.mdx.(delegated to repo maintainer — out of scope for this PR).
longer appears (delegated — same reason).
Scope notes
docs/deprecated/untouched per ticket rules.reviewable.
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes