fix(app): shell follows RTL from startup; welcome keeps the keyboard; accessible dialogs and errors
- The rail grows with the longest label (128-200 px); the first-run dialog disables the shell behind it and focuses its chosen option; toasts stay above it; F6 reaches the newest toast. - Confirm and login dialogs are named by their heading, focus the safe button, announce sign-in errors. - Error toasts say what happened only for catalog sentences (ErrorText); other details stay in the log. - Window title, queued-jobs text (plural) and the pause button name come from resources. - Logs, paths and templates in the client styles stay left to right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
12 files changed
+150
-53
No files matched your search
@@ -1,4 +1,6 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using Titano.Ui.Controls;
|
||||
|
||||
namespace Titano.App.Shell;
|
||||
@@ -6,7 +8,7 @@ namespace Titano.App.Shell;
|
||||
/// <summary>
|
||||
/// The login form (BRIEF §12.7). It calls back the connection with the credentials and stays open with the
|
||||
/// error sentence until the sign-in succeeds or the user cancels. The password never leaves the PasswordBox
|
||||
/// except for that call.
|
||||
/// except for that call. A failed sign-in is announced to screen readers and stays as the password box's help text.
|
||||
/// </summary>
|
||||
public sealed partial class LoginDialog : TitanoWindow
|
||||
{
|
||||
@@ -40,6 +42,7 @@ public sealed partial class LoginDialog : TitanoWindow
|
||||
{
|
||||
SignIn.IsEnabled = false;
|
||||
Error.Visibility = Visibility.Collapsed;
|
||||
AutomationProperties.SetHelpText(Password, string.Empty);
|
||||
try
|
||||
{
|
||||
var error = await _signIn(User.Text, Password.Password);
|
||||
@@ -50,8 +53,11 @@ public sealed partial class LoginDialog : TitanoWindow
|
||||
}
|
||||
Error.Text = error;
|
||||
Error.Visibility = Visibility.Visible;
|
||||
AutomationProperties.SetHelpText(Password, error);
|
||||
Password.Clear();
|
||||
Password.Focus();
|
||||
UIElementAutomationPeer.CreatePeerForElement(this)?.RaiseNotificationEvent(
|
||||
AutomationNotificationKind.ActionCompleted, AutomationNotificationProcessing.ImportantMostRecent, error, "Titano.SignIn");
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user