Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon Font tester app #49

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MartinZikmund
Copy link
Member

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@MartinZikmund MartinZikmund marked this pull request as ready for review January 15, 2025 13:52
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. If would be good to build it as part of the CI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeromelaban, @MartinZikmund Even having a wasm static web app link would be helpful as well long term, to easily test the changes

public async void OpenSelectionFolder()
{
var folder = await ApplicationData.Current.LocalFolder.CreateFolderAsync("UnoIconTest", CreationCollisionOption.OpenIfExists);
await Launcher.LaunchFolderAsync(folder);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MartinZikmund I tested the application locally and I am getting some exceptions when trying to use the "Open selection folder" button.

For Desktop for example:

Exception thrown: 'System.NotImplementedException' in Uno.dll
An exception of type 'System.NotImplementedException' occurred in Uno.dll but was not handled in user code
The member IAsyncOperation<bool> Launcher.LaunchFolderAsync(IStorageFolder folder) is not implemented. For more information, visit https://aka.platform.uno/notimplemented#m=IAsyncOperation%3Cbool%3E%20Launcher.LaunchFolderAsync%28IStorageFolder%20folder%29

Copy link
Contributor

@agneszitte agneszitte Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also "Open selection folder" button does not do anything for WASM and exceptions in the console.
image

For more info, I just checked out your branch, restored packages, and launched the app on the different platforms without changing anything else and getting exceptions.

If you can double-check all platforms on your side just in case, please.

Comment on lines +59 to +67
var dialog = new ContentDialog()
{
Title = "Error",
Content = "The selection.json file was not found in the Assets/Fonts/ folder. Add it, and click Refresh to try again.",
CloseButtonText = "Ok",
XamlRoot = XamlRoot
};
await dialog.ShowAsync();
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MartinZikmund I have this exception for Android for example when launching the app locally:

System.InvalidOperationException: 'Trying to set position of the dialog before it is associated with a visual tree. This can happen if the dialog's XamlRoot was not set.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants