|
| 1 | +import { executeRequestInAsync } from "@modules/app/requestExecutor"; |
| 2 | +import { Button } from "@uicore"; |
| 3 | + |
| 4 | +const DOCS_URL = "https://docs.myaltimate.com/teammates/altimate-code/"; |
| 5 | + |
1 | 6 | const HelpContent = (): JSX.Element => { |
| 7 | + const openChat = () => { |
| 8 | + executeRequestInAsync("openAltimateCodeChat", {}); |
| 9 | + }; |
| 10 | + |
| 11 | + const openDocs = () => { |
| 12 | + executeRequestInAsync("openUrl", { url: DOCS_URL }); |
| 13 | + }; |
| 14 | + |
2 | 15 | return ( |
3 | | - <div> |
4 | | - <h2>Previewing Query</h2> |
5 | | - <p> |
6 | | - Press Cmd+Enter (Mac) or Control+Enter (Windows/Linux) to run a query. |
7 | | - Highlight part of a query to preview only selection |
8 | | - </p> |
9 | | - <h2>Default Query Limit</h2> |
10 | | - <p> |
11 | | - Query preview is limited to 500 rows by default, this can be configured |
12 | | - in Settings -> dbt Power User or via changing the input to the left |
13 | | - which is synchronized with the VS Code setting |
| 16 | + <div style={{ maxWidth: 640 }}> |
| 17 | + <p style={{ fontSize: 13, lineHeight: 1.55, marginBottom: "0.75rem" }}> |
| 18 | + We recently launched <strong>Altimate Code</strong> — chat with it right |
| 19 | + inside VS Code. |
14 | 20 | </p> |
15 | | - <h2>Dispatched SQL</h2> |
16 | | - <p> |
17 | | - This tab displays the compiled query sent to the database. You can copy |
18 | | - to run directly in your database. |
| 21 | + <div style={{ display: "flex", gap: "0.5rem", marginBottom: "0.75rem" }}> |
| 22 | + <Button color="primary" onClick={openChat}> |
| 23 | + Open chat |
| 24 | + </Button> |
| 25 | + <Button color="secondary" onClick={openDocs}> |
| 26 | + Learn More |
| 27 | + </Button> |
| 28 | + </div> |
| 29 | + <p style={{ fontSize: 12, opacity: 0.75, margin: 0 }}> |
| 30 | + #1 on ADE-Bench · 10M free tokens across GPT-5.4, Opus 4.6 & Sonnet |
| 31 | + 4.6. |
19 | 32 | </p> |
20 | 33 | </div> |
21 | 34 | ); |
|
0 commit comments