-
-
Notifications
You must be signed in to change notification settings - Fork 403
Tighten the AI landing page and make the typesafe model demo real #1232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
47d6d89
Reframe TanStack AI messaging around who owns what
tombeckenham 79ae06f
Replace AI hero graphic with a wireframe placeholder
tombeckenham c46ffa6
Add write-once hero, compiler visual, and request path to AI landing
tombeckenham 9681869
Drop the SDK wording from the AI headline
tombeckenham 634b9ef
Stop layout shift on the AI landing page
tombeckenham 3563af0
Add the TanStack AI coverage page
tombeckenham 587be09
Move AI coverage to /ai/coverage and rebuild it as a component
tombeckenham b48a8ec
Add an Adapters tab to the AI docs nav with a runtime adapter list
tombeckenham d587b04
Replace the AI adapters page with a docs nav tab
tombeckenham 3a68503
Tighten the AI landing page and make the typesafe model demo real
tombeckenham ead5a12
Fix the typesafe workbench on narrow screens
tombeckenham a977726
Address review comments on the AI landing page
tombeckenham 7c5deae
Use canonical Tailwind v4 class forms on the landing components
tombeckenham 888c2e7
Match the AI catalog copy to the landing hero and drop the unused ai.tsx
tombeckenham 116aa08
Tighten landing copy and match the Omni note to its snippet
tombeckenham 9b45ede
Make the AI landing graphics interactive
tombeckenham fd87ff5
Make the persistence backends clickable
tombeckenham ebdb531
Tweak the AI landing headline and start-here title
tombeckenham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { CheckCircleIcon } from '@phosphor-icons/react/CheckCircle' | ||
| import { CopyIcon } from '@phosphor-icons/react/Copy' | ||
| import { useCopyButton } from '~/components/CopyMarkdownButton' | ||
| import { copyTextToClipboard } from '~/utils/browser-effects' | ||
|
|
||
| export function LandingPromptBox({ | ||
| heading, | ||
| prompt, | ||
| }: { | ||
| heading: string | ||
| prompt: string | ||
| }) { | ||
| const [copied, onCopy] = useCopyButton(() => copyTextToClipboard(prompt)) | ||
|
|
||
| return ( | ||
| <div className="mt-6 w-full max-w-136 rounded-lg border border-border-default bg-background-surface px-4 py-3"> | ||
| <div className="flex items-start gap-3"> | ||
| <p className="min-w-0 flex-1 font-ds-mono text-ds-mono-caps-xs uppercase text-text-primary/65"> | ||
| {heading} | ||
| </p> | ||
| <button | ||
| type="button" | ||
| onClick={onCopy} | ||
| className="inline-flex shrink-0 items-center gap-1.5 font-ds-mono text-ds-mono-caps-xs uppercase text-text-secondary transition-colors hover:text-text-primary" | ||
| > | ||
| {copied ? ( | ||
| <CheckCircleIcon size={16} aria-hidden="true" /> | ||
| ) : ( | ||
| <CopyIcon size={16} aria-hidden="true" /> | ||
| )} | ||
| {copied ? 'Copied' : 'Copy prompt'} | ||
| </button> | ||
| </div> | ||
| <p className="mt-2 text-ds-body-sm text-text-primary sm:text-ds-body-md"> | ||
| {prompt} | ||
| </p> | ||
| </div> | ||
| ) | ||
| } | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.