Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
266fdb9
WIP: implemented a static function to determine if pandoc is installe…
Apr 8, 2025
e578796
Included expressive Error Messages if pandoc is not installed or the …
Apr 8, 2025
62a4549
Removed patch level from version requirements and included more expre…
Apr 8, 2025
ca98c55
Added a success event to the message bus for better ux
Apr 10, 2025
f7771d9
added temporary buttons for debugging purposes TODO: Delete
Apr 10, 2025
8a890d2
WIP: included function to download pandoc' latest zip into our data dir
Apr 10, 2025
844e305
added warning messages to the message bus
Apr 14, 2025
b60d23a
Added functions to parse the current latest version from gh latest pa…
Apr 14, 2025
331c6ca
WIP: Change pandocs download function to account for different cpu ar…
Apr 14, 2025
09c9834
WIP: Included a pandoc dialog to check for the availability and to in…
Apr 15, 2025
08c1a54
WIP: Included expressive dialog for automatic and manual installation
Apr 15, 2025
d9fb0de
Introduced a flexible code block that enables to show code examples i…
nilskruthoff May 19, 2025
8031e1b
WIP: Extending dialog content to be very descriptive and beginner fri…
nilskruthoff May 19, 2025
49dc848
WIP: finished manual installation guide
May 26, 2025
cecf777
WIP: Adjusted styling for user experience and added installation with…
May 26, 2025
012b28d
Finished dialog and download of installers and archives
nilskruthoff May 26, 2025
81b276b
Finished dialog; installation and availability check logic
nilskruthoff May 27, 2025
b3108fd
finished pandoc logic; removed warnings
nilskruthoff May 27, 2025
647bc00
removed debugging from about page
nilskruthoff May 27, 2025
11ddaf7
Refactor message types for clarity and consistency
SommerEngineering May 29, 2025
175a3e0
Removed unused imports
SommerEngineering May 29, 2025
314a787
Applied optimizations
SommerEngineering May 29, 2025
18a00c6
Formatting
SommerEngineering May 29, 2025
4239243
Merge branch 'main' into pandoc-ui
SommerEngineering May 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added temporary buttons for debugging purposes TODO: Delete
  • Loading branch information
krut_ni committed Apr 10, 2025
commit f7771d95fc0d47426573d665a12d911ed873a6f3
16 changes: 16 additions & 0 deletions app/MindWork AI Studio/Pages/About.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
<div class="inner-scrolling-context">
<MudText Typo="Typo.h3" Class="mb-2">About MindWork AI Studio</MudText>

<!-- TODO: DELETE FOR DEBUGGING ONLY -->
<MudItem>
<h3>Pandoc Verfügbarkeit prüfen</h3>
<MudButton OnClick="CheckPandoc" Disabled="@isChecking">
@(isChecking ? "Überprüfe..." : "Pandoc überprüfen")
</MudButton>
<p>@statusMessage</p>
</MudItem>

<MudItem Class="my-9">
<h3>Pandoc Installation</h3>
<MudButton OnClick="InstallPandoc">
Install Pandoc
</MudButton>
</MudItem>

<InnerScrolling>
<MudExpansionPanels Class="mb-3" MultiExpansion="@false">
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Layers" HeaderText="Versions" IsExpanded="@true">
Expand Down
26 changes: 26 additions & 0 deletions app/MindWork AI Studio/Pages/About.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,30 @@ private async Task CheckForUpdate()
{
await this.MessageBus.SendMessage<bool>(this, Event.USER_SEARCH_FOR_UPDATE);
}

// TODO: DELETE FOR DEBUGGING ONLY
private bool isChecking;
private string statusMessage = string.Empty;
private async Task CheckPandoc()
{
this.isChecking = true;
this.statusMessage = "Überprüfe die Verfügbarkeit von Pandoc...";
this.StateHasChanged(); // Aktualisiere die UI
var isPandocAvailable = await Pandoc.IsPandocAvailableAsync();
if (isPandocAvailable)
{
this.statusMessage = "Pandoc ist verfügbar und erfüllt die Mindestversion.";
}
else
{
this.statusMessage = "Pandoc ist nicht verfügbar oder die installierte Version ist zu niedrig.";
}
this.isChecking = false;
this.StateHasChanged(); // Aktualisiere die UI
}

private async Task InstallPandoc()
{
var installPandoc = Pandoc.InstallPandocAsync(this.RustService);
}
}