Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ const AddNewSecretForm = () => {
<Input
{...field}
type={showSecretValue ? 'text' : 'password'}
data-1p-ignore
data-lpignore="true"
data-form-type="other"
data-bwignore
actions={
<div className="mr-1">
<Button
Expand Down
10 changes: 9 additions & 1 deletion apps/studio/components/interfaces/Storage/CreateBucketModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,15 @@ export const CreateBucketModal = () => {
labelOptional="Buckets cannot be renamed once created."
>
<FormControl_Shadcn_>
<Input_Shadcn_ id="name" {...field} placeholder="Enter bucket name" />
<Input_Shadcn_
id="name"
data-1p-ignore
data-lpignore="true"
data-form-type="other"
data-bwignore
{...field}
placeholder="Enter bucket name"
/>
</FormControl_Shadcn_>
</FormItemLayout>
)}
Expand Down
1 change: 1 addition & 0 deletions apps/studio/lib/ai/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ export const CHAT_PROMPT = `
## SQL Execution and Display
- To execute SQL, call the \`execute_sql\` tool with the relevant \`sql\` string; the client manages confirmation and display of results.
- Do not show the SQL query before execution; the client will display it to the user.
- Set chartConfig \`view\` to \`chart\` and xAxis/yAxis if the results would be best displayed as a chart e.g. count of items by date
- On execution error, explain succinctly and attempt to correct if possible, validating each outcome briefly (1–2 lines) after execution.
- If a user skips execution, acknowledge and suggest alternatives.
- Use markdown code blocks (\`\`\`sql\`\`\`) for illustrative SQL only if requested by the user or when providing non-executable examples.
Expand Down
7 changes: 7 additions & 0 deletions apps/studio/lib/ai/tools/rendering-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ export const getRenderingTools = () => ({
inputSchema: z.object({
sql: z.string().describe('The SQL statement to execute.'),
label: z.string().describe('A short 2-4 word label for the SQL statement.'),
chartConfig: z
.object({
view: z.enum(['table', 'chart']).describe('How to render the results after execution'),
xAxis: z.string().optional().describe('The column to use for the x-axis of the chart.'),
yAxis: z.string().optional().describe('The column to use for the y-axis of the chart.'),
})
.describe('Chart configuration for rendering the results'),
isWriteQuery: z
.boolean()
.describe(
Expand Down
Loading