发布

  • docs: dark mode, navbar polish, scroll reset, platform→dashboard rename (#3465)

    frostbyte_neo 发布于 2026-05-20 07:06:06 +00:00

    Summary

    • Dark/light theme switcher in the navbar. Drops forcedTheme: 'light' so the toggle actually flips themes; sidebar footer toggle
      stays disabled so there's only one switcher.
    • Dark mode color pass. --composio-brand lifts to a muted
      #5B8BF0 (the deep #0007cd brand reads as unlit text on #0f0f0f).
      Card / muted greys nudge to #1c1c1c / #1f1f1f. Borders drop from 10%
      white to 6% so card edges sit back. --border / --sidebar-border
      follow suit.
    • Square navbar. Search input and the new theme toggle render with
      border-radius: 0 to match the rest of the navbar.
    • Welcome-page scroll reset. New ScrollReset client component
      wired into the root layout. Next.js App Router skips its built-in scroll
      reset when the new route resolves to the same dynamic page.tsx segment
      — every link from the welcome page to a /docs/* page hits this case,
      so users were landing mid-page on the new route. Now usePathname()
      change ⇒ window.scrollTo(0, 0) (skips first render and any
      hash-bearing navigation).
    • platform.composio.devdashboard.composio.dev across docs
      content + the direct-execution LLM guardrail (28 files).
      docs/public/openapi*.json left alone — auto-generated, and the
      surviving reference is literally to the legacy dashboard.

    Test plan

    • Toggle theme from the navbar; verify both light and dark render
    • In dark mode, confirm "Docs" nav active state, chip icons,
      "CONNECTED" labels, and Ask AI button read clearly against #0f0f0f
    • Scroll to the bottom of /docs, click any link in HomeResources /
      HomeSurfaces / HomeFeatures — the new page should land at scroll 0
    • Click a TOC #anchor link inside a docs page — should still
      scroll to the anchor (not get clobbered to 0)
    • Spot-check a few rewritten URLs in cookbooks / quickstart — all
      platform.composio.dev should now be dashboard.composio.dev

    🤖 Generated with Claude Code

    下载附件