Skip to content

Commit

Permalink
fix feedback payload and style
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Aug 22, 2024
1 parent 33b328e commit 74dc163
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion js/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vue": "^3.4.35"
},
"dependencies": {
"@getcanary/web": "^0.0.90",
"@getcanary/web": "^0.0.91",
"@vercel/analytics": "^1.3.1",
"chart.js": "^4.4.3",
"timeago.js": "^4.0.2",
Expand Down
4 changes: 2 additions & 2 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcanary/web",
"version": "0.0.90",
"version": "0.0.91",
"type": "module",
"main": "dist/components/canary-root.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions js/packages/web/src/components/canary-feedback-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class CanaryFeedbackPage extends LitElement {
) => {
const response = await fetch(`${endpoint}/api/v1/feedback/page`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ key, url, score }),
headers: { "Content-Type": "application/json", "Authorization": `Bearer ${key}` },
body: JSON.stringify({ url, score }),
signal: withTimeout(signal, 2500),
});

Expand Down
11 changes: 8 additions & 3 deletions js/packages/web/src/components/canary-search-suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ export class CanarySearchSuggestions extends LitElement {
.container {
display: flex;
flex-direction: column;
font-size: 0.875rem;
color: var(--canary-color-gray-10);
}
button {
Expand Down Expand Up @@ -84,6 +81,14 @@ export class CanarySearchSuggestions extends LitElement {
.item:hover .arrow {
opacity: 0.6;
}
.message {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.875rem;
}
`,
];
}
Expand Down

0 comments on commit 74dc163

Please sign in to comment.