From 87318535b265ef706842a1d4082e99d65d1625ba Mon Sep 17 00:00:00 2001 From: Ho Duc Hieu <150573299+hieu-jan@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:48:34 +0700 Subject: [PATCH 1/6] docs: fix algolia configuration --- docs/docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index f65074bbe..f443a4e48 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -151,13 +151,13 @@ const config = { autoCollapseCategories: false, }, }, - // Agolia DocSearch + // Algolia Search Configuration algolia: { appId: process.env.ALGOLIA_APP_ID || "XXX", apiKey: process.env.ALGOLIA_API_KEY || "XXX", indexName: "jan", + contextualSearch: false, insights: true, - debug: false, }, // SEO Docusarus metadata: [ From c64d0038f30efde1249c598ef3c1f66b7c97b5ae Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 11 Jan 2024 11:36:17 +0700 Subject: [PATCH 2/6] fix: reduce hub header panel contrast color button and badge --- uikit/src/badge/index.tsx | 1 + uikit/src/badge/styles.scss | 4 ++++ uikit/src/button/styles.scss | 2 +- .../ExploreModels/ExploreModelItemHeader/index.tsx | 8 ++++---- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/uikit/src/badge/index.tsx b/uikit/src/badge/index.tsx index 387932ff0..2b904432d 100644 --- a/uikit/src/badge/index.tsx +++ b/uikit/src/badge/index.tsx @@ -6,6 +6,7 @@ const badgeVariants = cva('badge', { variants: { themes: { primary: 'badge-primary', + warning: 'badge-warning', success: 'badge-success', secondary: 'badge-secondary', danger: 'badge-danger', diff --git a/uikit/src/badge/styles.scss b/uikit/src/badge/styles.scss index 77feb0769..b777892d7 100644 --- a/uikit/src/badge/styles.scss +++ b/uikit/src/badge/styles.scss @@ -21,6 +21,10 @@ @apply border-transparent bg-red-100 text-red-700; } + &-warning { + @apply border-transparent bg-yellow-100 text-yellow-700; + } + &-outline { @apply text-foreground border-border border; } diff --git a/uikit/src/button/styles.scss b/uikit/src/button/styles.scss index 2b1e239a5..9c634e67e 100644 --- a/uikit/src/button/styles.scss +++ b/uikit/src/button/styles.scss @@ -8,7 +8,7 @@ } &-secondary-blue { - @apply bg-blue-200 text-blue-900 hover:bg-blue-500/80; + @apply bg-blue-200 text-blue-600 hover:bg-blue-500/80; } &-danger { diff --git a/web/screens/ExploreModels/ExploreModelItemHeader/index.tsx b/web/screens/ExploreModels/ExploreModelItemHeader/index.tsx index c35e480f2..2ec57183f 100644 --- a/web/screens/ExploreModels/ExploreModelItemHeader/index.tsx +++ b/web/screens/ExploreModels/ExploreModelItemHeader/index.tsx @@ -71,7 +71,7 @@ const ExploreModelItemHeader: React.FC = ({ model, onClick, open }) => { if (isDownloaded) { downloadButton = (