From 9a536894ab5e404c27bd0f4135bd217bf4eea35d Mon Sep 17 00:00:00 2001 From: yujonglee <yujonglee.dev@gmail.com> Date: Mon, 28 Oct 2024 19:48:21 +0900 Subject: [PATCH] small fixes --- core/lib/canary/index/trieve/client.ex | 2 +- core/lib/canary/workers/job_reporter.ex | 3 +++ core/lib/canary_web/live/example_live/examples.ex | 3 ++- core/lib/canary_web/live/projects_live/index.ex | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/lib/canary/index/trieve/client.ex b/core/lib/canary/index/trieve/client.ex index b669616a..de332e2b 100644 --- a/core/lib/canary/index/trieve/client.ex +++ b/core/lib/canary/index/trieve/client.ex @@ -227,7 +227,7 @@ defmodule Canary.Index.Trieve.Actual do %{ highlight_window: 12, highlight_max_length: 6, - highlight_threshold: 0.8, + highlight_threshold: 0.4, highlight_strategy: :v1 } diff --git a/core/lib/canary/workers/job_reporter.ex b/core/lib/canary/workers/job_reporter.ex index 48b290a7..3049e2a8 100644 --- a/core/lib/canary/workers/job_reporter.ex +++ b/core/lib/canary/workers/job_reporter.ex @@ -54,6 +54,9 @@ defmodule Canary.Workers.JobReporter do rescue e -> Logger.info(Exception.format(:error, e, __STACKTRACE__)) + catch + e -> + Logger.info(Exception.format(:error, e, __STACKTRACE__)) end end diff --git a/core/lib/canary_web/live/example_live/examples.ex b/core/lib/canary_web/live/example_live/examples.ex index 2b198f19..17765e14 100644 --- a/core/lib/canary_web/live/example_live/examples.ex +++ b/core/lib/canary_web/live/example_live/examples.ex @@ -91,7 +91,8 @@ defmodule CanaryWeb.ExampleLive.Examples do if(has_webpage and has_github, do: %{ name: "Search with tabs", - description: "Can create any number of tabs using glob patterns.", + description: + "Can create any number of tabs using glob patterns. e.g. Docs / Blog / GitHub / API / etc.", code: """ <canary-root query="#{assigns.current_project.name}"> <canary-provider-cloud project-key="#{assigns.current_project.public_key}" api-base="#{CanaryWeb.Endpoint.url()}"> diff --git a/core/lib/canary_web/live/projects_live/index.ex b/core/lib/canary_web/live/projects_live/index.ex index 81e17aa7..192e7a9f 100644 --- a/core/lib/canary_web/live/projects_live/index.ex +++ b/core/lib/canary_web/live/projects_live/index.ex @@ -49,7 +49,7 @@ defmodule CanaryWeb.ProjectsLive.Index do </div> </div> - <Primer.box is_scrollable style="max-height: 400px; margin-top: 18px"> + <Primer.box is_scrollable style="max-height: 600px; margin-top: 18px"> <:row :for={project <- @current_account.projects}> <div class="flex flex-row items-center justify-between"> <span><%= project.name %></span>