feat(developer-portal): integrate docs AI widget and landing updates#687
feat(developer-portal): integrate docs AI widget and landing updates#687
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
- Add i18n to DeviceActionAnimation (7 hardcoded Chinese strings) - Fix Chinese fallback text in PinDialog and PassphraseDialog t() calls - Fix Chinese console.log/error messages in GlobalDialogManager, PinDialog, PassphraseDialog - Fix Chinese default title in UnifiedLogger - Add deviceAction i18n keys to en.ts and zh.ts - Fix malformed code blocks in nip04.decrypt.mdx and nip04.encrypt.mdx - Fix stray code block delimiter in devicesettings.mdx (en + zh) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0bcf166 to
99d2b2d
Compare
The commit hash is already displayed in the bottom corner, so the one in the header is redundant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace streaming <pre> raw-text fallback with ReactMarkdown + disableHighlight during streaming, eliminating the jarring jump from plain text to fully-rendered markdown when a response completes - Remove redundant normalizeMarkdownArtifacts wrapper that duplicated the same replacements already applied by sanitizeDocAIMessageText; pass the pre-sanitized text prop directly to ReactMarkdown - Rename .assistantIcon → .emptyStateIcon to fix a CSS specificity bug where the second .assistantIcon/.avatar rule overrode the empty-state container from 48 px down to 26 px; align the JSX size prop to 22 px to match the CSS .avatarLogo rule - Show the "Generating…" status dots only while status === 'submitted' (waiting for first token) so they disappear once streaming text is visible, removing the redundant double indicator - Remove dead searchCount JSX render and its always-hidden CSS rule - Remove redundant max-height on .panel (height already constrains it) - Remove dead .streamingText CSS class now that the <pre> branch is gone Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ator
- Add transformSourceUrl() to rewrite GitHub developer-portal content
URLs to live docs page URLs via regex, e.g.
github.com/.../developer-portal/content/en/hardware-sdk/foo.mdx
→ {origin}/en/hardware-sdk/foo
No static mapping table needed; works across test and prod origins
automatically via window.location.origin
- Replace status === 'submitted' streaming indicator condition with
isWaitingForContent = isGenerating && no renderable text yet, so the
"Generating…" dots stay visible until the first token actually renders
in the message list, eliminating the blank gap between dot-disappear
and text-appear during the LLM time-to-first-token window
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changes
developer-portaland keep the modal available by defaultNEXT_PUBLIC_DOCS_AI_API_URLto override for local or stagingValidation
yarn build:docsNotes