From 37f7f9fd1d75c4593ea01d82e5f04cb7003904a9 Mon Sep 17 00:00:00 2001 From: sabaimran <65192171+sabaimran@users.noreply.github.com> Date: Fri, 14 Jul 2023 10:14:07 -0700 Subject: [PATCH] Add additional telemetry for system understanding (#316) * Add additional telemetry in order to understand which data sources are the most useful * Make actions side by side in the configuration page * Restore main run command * Update links to point to wiki pages for Github, Notion integrations * Stanardize nomenclature of the api_type to use _config suffix Remove header fields that aren't actually helpful for understanding config usage --- src/khoj/interface/web/base_config.html | 14 ++ src/khoj/interface/web/config.html | 2 + .../web/content_type_github_input.html | 3 + .../web/content_type_notion_input.html | 3 + src/khoj/routers/api.py | 199 +++++++++++++----- src/khoj/routers/helpers.py | 34 ++- 6 files changed, 195 insertions(+), 60 deletions(-) diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index 76a25eeb..70d4be70 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -51,6 +51,10 @@ body.khoj-configure { padding: 0; } + + div.section { + padding: 12px; + } } img.khoj-logo { @@ -69,6 +73,11 @@ display: grid; justify-self: center; } + + div.instructions { + font-size: large; + } + .section-title { margin: 0; padding: 0 0 16px 0; @@ -162,6 +171,11 @@ max-width: 16px; } + div.finalize-actions { + grid-auto-flow: column; + grid-gap: 24px; + } + @media screen and (max-width: 600px) { .section-cards { grid-template-columns: 1fr; diff --git a/src/khoj/interface/web/config.html b/src/khoj/interface/web/config.html index e69df67e..07ad8189 100644 --- a/src/khoj/interface/web/config.html +++ b/src/khoj/interface/web/config.html @@ -204,6 +204,8 @@
+ +