Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
ab92726
first step to new import view
NeoCoderMatrix86 Jan 9, 2026
abbce37
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 12, 2026
9061cfc
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 12, 2026
c9f793b
Update ImportManager.cs
NeoCoderMatrix86 Jan 13, 2026
707ea18
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 13, 2026
a09b1c1
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 13, 2026
9c0b365
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 13, 2026
93caa2a
Update NewViewModeImport.razor
NeoCoderMatrix86 Jan 14, 2026
2791d42
add new input TextField
NeoCoderMatrix86 Jan 14, 2026
da7f1de
move new view to existing one
NeoCoderMatrix86 Jan 14, 2026
7c497ab
add import profiles to import
NeoCoderMatrix86 Jan 14, 2026
2ca9850
implement import logic
NeoCoderMatrix86 Jan 14, 2026
86ebc36
Update ViewModeImport.razor
NeoCoderMatrix86 Jan 14, 2026
dfbe3d9
Update TextField.razor
NeoCoderMatrix86 Jan 14, 2026
579bc6b
save import view state
NeoCoderMatrix86 Jan 15, 2026
f1c93c9
added file upload
NeoCoderMatrix86 Jan 15, 2026
ca87826
added display of import errors
NeoCoderMatrix86 Jan 15, 2026
f971c67
moved saving of import tab to sessionstatecontainer
NeoCoderMatrix86 Jan 15, 2026
d8ff8e2
Update DisplayAnalyzedResult.razor
NeoCoderMatrix86 Jan 15, 2026
87a099e
fix styling
NeoCoderMatrix86 Jan 15, 2026
f6c1359
move basics to top razor
NeoCoderMatrix86 Jan 19, 2026
2d68e7f
add basic dropping of files
NeoCoderMatrix86 Jan 21, 2026
9141dee
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 21, 2026
c4dad8b
Update SelectFileDialog.razor
NeoCoderMatrix86 Jan 21, 2026
6dc3bd8
process uploaded files
NeoCoderMatrix86 Jan 22, 2026
e8ae51b
Update Index.razor
NeoCoderMatrix86 Jan 27, 2026
246578c
Update Index.razor
NeoCoderMatrix86 Jan 27, 2026
4e3d9b1
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 27, 2026
ace4e43
Update Index.razor
NeoCoderMatrix86 Jan 27, 2026
cbcd883
made upload of file from menu
NeoCoderMatrix86 Jan 27, 2026
1e681bc
add unit tests
NeoCoderMatrix86 Jan 27, 2026
2e4dcfa
Update TextField.razor
NeoCoderMatrix86 Jan 27, 2026
35a194e
Update ImportManager.cs
NeoCoderMatrix86 Jan 27, 2026
c35b362
Update FileInputManager.cs
NeoCoderMatrix86 Jan 27, 2026
96387c2
Update FileInput.razor
NeoCoderMatrix86 Jan 28, 2026
9d73925
Update CuesheetData.razor
NeoCoderMatrix86 Jan 28, 2026
e241bae
Allow dropping of audiofiles
NeoCoderMatrix86 Jan 28, 2026
9e93f91
Update EditSections.razor
NeoCoderMatrix86 Jan 28, 2026
101e487
Update EditSections.razor
NeoCoderMatrix86 Jan 28, 2026
f849187
removed dropping of files to fileinput
NeoCoderMatrix86 Jan 28, 2026
8fb223d
fix loading of import text
NeoCoderMatrix86 Jan 28, 2026
404bfab
Update IImportfile.cs
NeoCoderMatrix86 Jan 28, 2026
8d0c0b6
make analyzed content only visible if already analyzed
NeoCoderMatrix86 Jan 28, 2026
d812da0
added localizations
NeoCoderMatrix86 Jan 28, 2026
5ef244d
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 28, 2026
800e584
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 28, 2026
dc338b1
Update Importprofiles.razor
NeoCoderMatrix86 Jan 28, 2026
c6ac88d
bugfix overflow
NeoCoderMatrix86 Jan 28, 2026
94839ec
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 28, 2026
7c5b6fb
Update FileDropOverlay.razor
NeoCoderMatrix86 Jan 28, 2026
8606fe3
added TODOs
NeoCoderMatrix86 Jan 29, 2026
968b0cd
fix identifier
NeoCoderMatrix86 Jan 29, 2026
f889b1f
fix tests
NeoCoderMatrix86 Jan 29, 2026
3ef8d8e
fix tests
NeoCoderMatrix86 Jan 29, 2026
a590b3b
fix tests
NeoCoderMatrix86 Jan 29, 2026
349cd7e
added TODOs
NeoCoderMatrix86 Jan 29, 2026
3a35734
fix tests
NeoCoderMatrix86 Jan 29, 2026
1000410
fix tests
NeoCoderMatrix86 Jan 29, 2026
7d80d91
Update ViewModeImport.razor
NeoCoderMatrix86 Jan 30, 2026
74a8238
fix tests
NeoCoderMatrix86 Jan 30, 2026
95995cc
fix dialogmanager
NeoCoderMatrix86 Jan 30, 2026
4385647
Update ViewModeImport.razor
NeoCoderMatrix86 Jan 30, 2026
745dc70
added text import tests
NeoCoderMatrix86 Jan 30, 2026
5ad558d
Update ImportView.cs
NeoCoderMatrix86 Jan 30, 2026
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
3 changes: 1 addition & 2 deletions AudioCuesheetEditor.End2EndTests/Models/AppBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ internal async Task RedoAsync()
internal async Task OpenFileAsync(string file)
{
await OpenFileDialogAsync();
await _page.Locator("#dropFileInputId_SelectFileDialog").GetByRole(AriaRole.Button, new() { Name = "Choose File" }).ClickAsync();
await _page.Locator("#dropFileInputId_SelectFileDialog").GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFilesAsync(file);
await _page.GetByLabel("Open file upload").SetInputFilesAsync(file);
}

internal async Task OpenFileDialogAsync()
Expand Down
25 changes: 22 additions & 3 deletions AudioCuesheetEditor.End2EndTests/Models/ImportView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@

namespace AudioCuesheetEditor.End2EndTests.Models
{
partial class ImportView(IPage page)
partial class ImportView(IPage page, bool mobile)
{
[GeneratedRegex("^Scheme common data$")]
private static partial Regex SchemeCommonData();

internal const string BaseUrl = "http://localhost:5132/";

private readonly IPage _page = page;
private readonly bool _isMobile = mobile;

internal ILocator CuesheetArtistInput => _page.GetByRole(AriaRole.Textbox, new() { Name = "Cuesheet artist" });

Expand All @@ -43,12 +44,30 @@ internal async Task GotoAsync()

internal async Task ImportFileAsync(string filepath)
{
await _page.GetByRole(AriaRole.Button, new() { Name = "Choose File" }).SetInputFilesAsync(filepath);
await _page.GetByLabel("TextField file upload").SetInputFilesAsync(filepath);
}

internal async Task ImportTextAsync(string text)
{
await _page.GetByRole(AriaRole.Textbox, new() { Name = "Please enter text or upload a" }).FillAsync(text);
}

internal async Task Analyze()
{
await _page.GetByRole(AriaRole.Button, new() { Name = "Analyze" }).ClickAsync();
}

internal async Task CompleteImportAsync()
{
await _page.GetByRole(AriaRole.Button, new() { Name = "Complete" }).ClickAsync();
if (_isMobile)
{
await _page.Locator(".mud-button-root.mud-fab").ClickAsync();
await _page.GetByText("Import data").ClickAsync();
}
else
{
await _page.GetByRole(AriaRole.Button, new() { Name = "Import data" }).ClickAsync();
}
}

internal async Task SelectTracksAsync(IEnumerable<int> trackTablePositions, Boolean uncheck = false)
Expand Down
3 changes: 0 additions & 3 deletions AudioCuesheetEditor.End2EndTests/Tests/Desktop/BasicTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ public async Task KeyboardCommands_ShouldControlDialogs_WhenUsingEnterOrEscapeAs
var bar = new AppBar(TestPage);
var detailView = new DetailView(TestPage, DeviceName != null);
await detailView.GotoAsync();
await bar.OpenFileDialogAsync();
await Expect(TestPage.GetByRole(AriaRole.Dialog)).ToBeVisibleAsync();
await TestPage.Keyboard.PressAsync("Escape");
await TestPage.GetByRole(AriaRole.Dialog).WaitForAsync(new() { State = WaitForSelectorState.Detached });
await bar.OpenExportDialogAsync("Cuesheet");
await Expect(TestPage.GetByRole(AriaRole.Dialog)).ToBeVisibleAsync();
Expand Down
245 changes: 239 additions & 6 deletions AudioCuesheetEditor.End2EndTests/Tests/Desktop/ImportTest.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,12 @@ await Expect(TestPage.GetByRole(AriaRole.Table)).ToMatchAriaSnapshotAsync(@"- ta
public async Task UndoRedo_ShouldRestoreCuesheet_WhenUsingImport()
{
var bar = new AppBar(TestPage);
var importView = new ImportView(TestPage);
var importView = new ImportView(TestPage, DeviceName != null);
await importView.GotoAsync();
await importView.ImportFileAsync("Textimport with Cuesheetdata.txt");
await importView.SetSchemeCommonDataAsync("Artist - Title - ");
await importView.SelectSchemeCommonDataPlaceholderAsync("Cataloguenumber");
await importView.Analyze();
await Expect(bar.UndoButton).ToBeDisabledAsync();
await Expect(bar.RedoButton).ToBeDisabledAsync();
await importView.CompleteImportAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ public async Task KeyboardCommands_ShouldControlDialogs_WhenUsingEnterOrEscapeAs
var bar = new AppBar(TestPage);
var detailView = new DetailView(TestPage, DeviceName != null);
await detailView.GotoAsync();
await bar.OpenFileDialogAsync();
await Expect(TestPage.GetByRole(AriaRole.Dialog)).ToBeVisibleAsync();
await TestPage.Keyboard.PressAsync("Escape");
await TestPage.GetByRole(AriaRole.Dialog).WaitForAsync(new() { State = WaitForSelectorState.Detached });
await bar.OpenExportDialogAsync("Cuesheet");
await Expect(TestPage.GetByRole(AriaRole.Dialog)).ToBeVisibleAsync();
Expand Down
Loading