mirror of
https://github.com/ComposioHQ/composio.git
synced 2026-09-22 11:46:35 +08:00
9acfa852b2
## Summary Three small docs polishes: - **Hide the disgusting "Ask AI" side tab.** The Decimal widget renders its own `.decimal-widget-sidebar-tab` launcher (vertical pill with sideways text) on every page. We already trigger the widget from our own "Ask AI" button in the nav, so the third-party launcher is redundant *and* ugly. Hidden via CSS in `app/global.css`. - **Fix the Playground nav link.** It pointed at `platform.composio.dev/auth?next_page=/tool-router` — which (a) hits a dead host now that platform has moved to `dashboard.composio.dev`, and (b) lost the playground's connect check on the redirect. Repointed to `https://dashboard.composio.dev/~/project/playground`, which is the dashboard's smart-resolver route: it handles login (`?next=`), looks up `last_visited` / default org+project, and lands the user on `/{org}/{project}/playground` with the connect step intact. Same fix applied to the toolkits landing CTA and the welcome-page Playground card. - **Trim the welcome page.** Dropped the duplicated intro Cards row, the "Get Started" / "Explore" / "Features" / "Community" headers, and the secondary Features grid. Now it's: intro → AIToolsBanner → Quickstart → Toolkits + Playground → Providers. Much cleaner. ## Test plan - [ ] `bun run scripts/validate-links.ts` passes (already verified locally — 0 errors) - [ ] On preview deploy, the side "Ask AI" tab is gone - [ ] Clicking "Playground" in the nav (logged out) lands on login → playground; (logged in) lands on `/{org}/{project}/playground` - [ ] Welcome page renders without missing-icon errors 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { Edit } from 'lucide-react';
|
|
|
|
interface EditOnGitHubProps {
|
|
/**
|
|
* File path relative to the repository root, e.g. `docs/content/docs/index.mdx`
|
|
* or `docs/components/toolkits/toolkit-detail.tsx`.
|
|
*/
|
|
path: string;
|
|
/** Defaults to the `next` branch. */
|
|
sha?: string;
|
|
}
|
|
|
|
/**
|
|
* "Edit this page on GitHub" link, rendered at the bottom of each docs page.
|
|
* Links to the source file in the public Composio repo on the configured branch.
|
|
*/
|
|
export function EditOnGitHub({ path, sha = 'next' }: EditOnGitHubProps) {
|
|
const href = `https://github.com/ComposioHQ/composio/blob/${sha}/${path}`;
|
|
return (
|
|
<div className="not-prose mt-12 flex justify-start border-t border-fd-border/60 pt-6">
|
|
<a
|
|
href={href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="inline-flex items-center gap-1.5 text-xs font-medium text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
<Edit className="size-3.5" aria-hidden="true" />
|
|
<span>Edit this page on GitHub</span>
|
|
</a>
|
|
</div>
|
|
);
|
|
}
|