diff --git a/src/interface/web/app/common/iconUtils.tsx b/src/interface/web/app/common/iconUtils.tsx index 484e4b4f..d2c0ba63 100644 --- a/src/interface/web/app/common/iconUtils.tsx +++ b/src/interface/web/app/common/iconUtils.tsx @@ -24,6 +24,8 @@ import { BowlFood, Lectern, Wallet, + PencilLine, + Chalkboard, } from "@phosphor-icons/react"; import { Markdown, OrgMode, Pdf, Word } from "@/app/components/logo/fileLogo"; @@ -95,6 +97,12 @@ const iconMap: IconMap = { Wallet: (color: string, width: string, height: string) => ( ), + PencilLine: (color: string, width: string, height: string) => ( + + ), + Chalkboard: (color: string, width: string, height: string) => ( + + ), }; function getIconFromIconName( diff --git a/src/khoj/database/migrations/0055_alter_agent_style_icon.py b/src/khoj/database/migrations/0055_alter_agent_style_icon.py new file mode 100644 index 00000000..4cc5c857 --- /dev/null +++ b/src/khoj/database/migrations/0055_alter_agent_style_icon.py @@ -0,0 +1,37 @@ +# Generated by Django 5.0.7 on 2024-08-05 11:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("database", "0054_alter_agent_style_color"), + ] + + operations = [ + migrations.AlterField( + model_name="agent", + name="style_icon", + field=models.CharField( + choices=[ + ("Lightbulb", "Lighbulb"), + ("Health", "Health"), + ("Robot", "Robot"), + ("Aperture", "Aperture"), + ("GraduationCap", "Graduation Cap"), + ("Jeep", "Jeep"), + ("Island", "Island"), + ("MathOperations", "Math Operations"), + ("Asclepius", "Asclepius"), + ("Couch", "Couch"), + ("Code", "Code"), + ("Atom", "Atom"), + ("ClockCounterClockwise", "Clock Counter Clockwise"), + ("PencilLine", "Pencil Line"), + ("Chalkboard", "Chalkboard"), + ], + default="Lightbulb", + max_length=200, + ), + ), + ] diff --git a/src/khoj/database/models/__init__.py b/src/khoj/database/models/__init__.py index 76ef5ab0..13340649 100644 --- a/src/khoj/database/models/__init__.py +++ b/src/khoj/database/models/__init__.py @@ -135,6 +135,8 @@ class Agent(BaseModel): CODE = "Code" ATOM = "Atom" CLOCK_COUNTER_CLOCKWISE = "ClockCounterClockwise" + PENCIL_LINE = "PencilLine" + CHALKBOARD = "Chalkboard" creator = models.ForeignKey( KhojUser, on_delete=models.CASCADE, default=None, null=True, blank=True