From 5ec641837a1c2ca6fe2c9d3ca0e0c5272b013d90 Mon Sep 17 00:00:00 2001 From: sabaimran <65192171+sabaimran@users.noreply.github.com> Date: Sat, 1 Jun 2024 12:44:49 +0530 Subject: [PATCH] Allow automations to be shareable (#790) * Updating the API / UI to support sharing of automations * Allow people to see the automations even when not logged in, and add an overlay effect * Handle unauthenticated users taking actions * Support showing pre-filled automation details on the config automations page * Redirect user to login if they try to add an automation while unauthenticated --- src/khoj/interface/web/base_config.html | 5 +- src/khoj/interface/web/config_automation.html | 124 +++++++++++++++++- src/khoj/routers/api.py | 6 +- src/khoj/routers/auth.py | 4 + src/khoj/routers/web_client.py | 18 ++- 5 files changed, 146 insertions(+), 11 deletions(-) diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index 451f4041..9002d5c1 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -32,7 +32,10 @@