You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* show thinking if last message is empty
* sql toggle copy and border fix
* add table and schema context
* add suggestions for policy
* Add snippet content to ai assistant if on sql editor and assistant is open
---------
Co-authored-by: Joshen Lim <[email protected]>
Copy file name to clipboardExpand all lines: apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,14 @@ const PolicyRow = ({
118
118
open: true,
119
119
sqlSnippets: [sql],
120
120
initialInput: `Update the policy with name "${policy.name}" in the ${policy.schema} schema on the ${policy.table} table. It should...`,
121
+
suggestions: {
122
+
title: `I can help you make a change to the policy "${policy.name}" in the ${policy.schema} schema on the ${policy.table} table, here are a few example prompts to get you started:`,
- First look at the list of provided schemas and if needed, get more information about a schema. You will almost always need to retrieve information about the public schema before answering a question. If the question is about users, also retrieve the auth schema.
110
110
111
111
Here are the existing database schema names you can retrieve: ${schemas}
112
+
113
+
${schema!==undefined ? `The user is currently looking at the ${schema} schema.` : ''}
114
+
${table!==undefined ? `The user is currently looking at the ${table} table.` : ''}
0 commit comments