Skip to content

Feature/v2 password reset#42

Open
ranjinikrishnan wants to merge 29 commits into
mainfrom
feature/v2-password-reset
Open

Feature/v2 password reset#42
ranjinikrishnan wants to merge 29 commits into
mainfrom
feature/v2-password-reset

Conversation

@ranjinikrishnan
Copy link
Copy Markdown

New scope of password reset feature and code refactor.

ranjinikrishnan and others added 25 commits March 4, 2026 12:02
Co-authored-by: Mitchell Rysavy <mitchell.rysavy@gmail.com>
Co-authored-by: Mitchell Rysavy <mitchell.rysavy@gmail.com>
feat: tools window with supervisor verification for password reset
feat: Addded update button for file selection, progress window and data backup
@ranjinikrishnan ranjinikrishnan requested a review from mrysav March 31, 2026 20:23
Comment on lines +172 to +175
if (success)
SuccessMessage = $"Password for '{Username}' was reset successfully.";
else
ErrorMessage = "Failed to reset password. Please check the username and try again.";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This was discussed in the field evaluation, and is not a blocker for merging this PR, but this form should close after successfully resetting a password to prevent confusion (maybe there can be a popup or other message that indicates success, outside of the form)

Comment on lines +142 to +143
if (Avalonia.Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop
&& desktop.MainWindow != null)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why can't the injected lifetime be used here? (Not sure who these changes are by - @luqmanrashad I think?)

HorizontalAlignment="Center"
FontSize="14"
Foreground="{Binding StatusColor}"/>
</StackPanel>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One thing I noticed is that if there is an error message that gets displayed here, such as when an invalid zip file is passed, this cuts off the text. Maybe make it bigger, or make it wrap the text?

Comment thread App.axaml.cs
{
collection.AddSingleton(ApplicationLifetime);
collection.AddSingleton(desktopLifetime);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a bit weird since I think ApplicationLifetime and desktopLifetime would refer to the same underlying variable here, so it's effectively just being added twice under different types/interfaces. I'm not saying it shouldn't happen, but is there a reason it's doing both and not just one of them?

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.

4 participants