mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 23:31:40 +00:00
moved installed assistants into own section on assistant overview page
This commit is contained in:
parent
12881e33b0
commit
003c97f3ad
@ -4531,6 +4531,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2830810750"] = "AI Studio Develop
|
|||||||
-- Generate a job posting for a given job description.
|
-- Generate a job posting for a given job description.
|
||||||
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description."
|
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description."
|
||||||
|
|
||||||
|
-- Installed Assistants
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T295232966"] = "Installed Assistants"
|
||||||
|
|
||||||
-- My Tasks
|
-- My Tasks
|
||||||
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks"
|
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks"
|
||||||
|
|
||||||
|
|||||||
@ -34,20 +34,25 @@
|
|||||||
<AssistantBlock TSettings="SettingsDialogJobPostings" Name="@T("Job Posting")" Description="@T("Generate a job posting for a given job description.")" Icon="@Icons.Material.Filled.Work" Link="@Routes.ASSISTANT_JOB_POSTING"/>
|
<AssistantBlock TSettings="SettingsDialogJobPostings" Name="@T("Job Posting")" Description="@T("Generate a job posting for a given job description.")" Icon="@Icons.Material.Filled.Work" Link="@Routes.ASSISTANT_JOB_POSTING"/>
|
||||||
<AssistantBlock TSettings="SettingsDialogLegalCheck" Name="@T("Legal Check")" Description="@T("Ask a question about a legal document.")" Icon="@Icons.Material.Filled.Gavel" Link="@Routes.ASSISTANT_LEGAL_CHECK"/>
|
<AssistantBlock TSettings="SettingsDialogLegalCheck" Name="@T("Legal Check")" Description="@T("Ask a question about a legal document.")" Icon="@Icons.Material.Filled.Gavel" Link="@Routes.ASSISTANT_LEGAL_CHECK"/>
|
||||||
<AssistantBlock TSettings="SettingsDialogIconFinder" Name="@T("Icon Finder")" Description="@T("Use an LLM to find an icon for a given context.")" Icon="@Icons.Material.Filled.FindInPage" Link="@Routes.ASSISTANT_ICON_FINDER"/>
|
<AssistantBlock TSettings="SettingsDialogIconFinder" Name="@T("Icon Finder")" Description="@T("Use an LLM to find an icon for a given context.")" Icon="@Icons.Material.Filled.FindInPage" Link="@Routes.ASSISTANT_ICON_FINDER"/>
|
||||||
|
|
||||||
@foreach (var assistant in PluginFactory.RunningPlugins.Where(e => e.Type == PluginType.ASSISTANT))
|
|
||||||
{
|
|
||||||
if (assistant is PluginAssistants assistantPlugin)
|
|
||||||
{
|
|
||||||
<AssistantBlock TSettings="SettingsDialogTranslation"
|
|
||||||
Name="@T(assistantPlugin.AssistantTitle)"
|
|
||||||
Description="@T(assistantPlugin.Description)"
|
|
||||||
Icon="@Icons.Material.Filled.FindInPage"
|
|
||||||
Link="@($"{Routes.ASSISTANT_DYNAMIC}?assistantId={assistantPlugin.Id}")"/>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
|
@if (this.AssistantPlugins.Count > 0)
|
||||||
|
{
|
||||||
|
<MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
|
||||||
|
@T("Installed Assistants")
|
||||||
|
</MudText>
|
||||||
|
<MudStack Row="@true" Wrap="@Wrap.Wrap" Class="mb-3">
|
||||||
|
@foreach (var assistantPlugin in this.AssistantPlugins)
|
||||||
|
{
|
||||||
|
<AssistantBlock TSettings="SettingsDialogTranslation"
|
||||||
|
Name="@T(assistantPlugin.AssistantTitle)"
|
||||||
|
Description="@T(assistantPlugin.Description)"
|
||||||
|
Icon="@Icons.Material.Filled.FindInPage"
|
||||||
|
Link="@($"{Routes.ASSISTANT_DYNAMIC}?assistantId={assistantPlugin.Id}")"/>
|
||||||
|
}
|
||||||
|
</MudStack>
|
||||||
|
}
|
||||||
|
|
||||||
<MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
|
<MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
|
||||||
@T("Learning")
|
@T("Learning")
|
||||||
</MudText>
|
</MudText>
|
||||||
|
|||||||
@ -1,5 +1,12 @@
|
|||||||
using AIStudio.Components;
|
using AIStudio.Components;
|
||||||
|
using AIStudio.Tools.PluginSystem;
|
||||||
|
using AIStudio.Tools.PluginSystem.Assistants;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace AIStudio.Pages;
|
namespace AIStudio.Pages;
|
||||||
|
|
||||||
public partial class Assistants : MSGComponentBase;
|
public partial class Assistants : MSGComponentBase
|
||||||
|
{
|
||||||
|
private IReadOnlyCollection<PluginAssistants> AssistantPlugins => PluginFactory.RunningPlugins.OfType<PluginAssistants>().ToList();
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user