Skip to content

Commit

Permalink
Merge pull request #4 from looker-open-source/feat-persist-title
Browse files Browse the repository at this point in the history
(fix): persisting title
  • Loading branch information
jessesherb authored Aug 1, 2024
2 parents 4130505 + 3fb0c5d commit e271022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions query-insights-extension/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ function changeTweetTitle(newTitle) {
if (h2) {
h2.textContent = newTitle;
} else {
container.prepend('h2')
const h2 = document.createElement('h2')
container.prepend(h2)
container.querySelector('h2').textContent = newTitle;
}
} else {
Expand Down Expand Up @@ -100,8 +101,7 @@ watch(() => vizConfig.value?.visConfig, (newVisConfig) => {
root.setProperty('--color-card', cardColor);
root.setProperty('--color-text', textColor);
root.setProperty('--color-shadow', shadowColor);
console.log("Title: ", title)
changeTweetTitle(title)
title !== undefined && changeTweetTitle(title)
}, { deep: true });
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const useLookerVertexMessage = (core40SDK) => {
Instructions:
- use the Type to inform what action to perform
- always return your response in detailed markdown, use the markdown formatting instructions
- make sure there is a few word title (h2) and the remainder of the response returned afterwards
- do not generate headers or headings (h1, h2 h3 etc) just the text summary
- if summarize, use the query metadata to understand the nature of the query and then summarize the returned data
- if sentiment and the data has a lot text data analyze the sentiment of the text
- use the user provided context(if any) to further customize and refine your response
Expand Down Expand Up @@ -201,17 +201,14 @@ export const useLookerVertexMessage = (core40SDK) => {
----------
When summarizing data, follow these guidelines to ensure clear and well-formatted markdown output.
Use appropriate header levels (H1, H2, H3) to organize content hierarchically:
- H1 for the main title, H2 for major sections, H3 for subsections
Format numerical values consistently:
- Use commas for thousands separators (e.g., 1,234,567)
- Round decimals to 2 places unless more precision is necessary
- Include relevant units (e.g., $1,234.56, 45%)
Utilize bold text for emphasis on key points or important data.
Don't use bullet points, numbered lists, code blocks or tables, keep everything as concise paragraph summaries.
Don't use headers or headings, bullet points, numbered lists, code blocks or tables, keep everything as concise paragraph summaries with no headers (h1, h2,h3).
Include blockquotes for notable statements or findings:
- Important quote or key takeaway
Expand Down

0 comments on commit e271022

Please sign in to comment.