Skip to content

Conversation

@samcday
Copy link
Owner

@samcday samcday commented Feb 13, 2025

Cleaned up a few parts of the lockscreen code to be more readable and better annotated, since there's a lot of dragons in that area. Fixed the issue with inactivity bouncing a user back to user/session page (so this closes #97), and hopefully made the interactions more robust and more user-friendly overall.

I vaguely recall trying to do this in the past and it exploded in really
weird and hard to diagnose ways. But now I can't seem to replicate that
and all the tests pass, so ...

Signed-off-by: Sam Day <me@samcday.com>
Useful (hopefully) comments and less insane handling of USP variable.

Also removed the unnecessary weak-allow-none usage and replaced it with
owned clones or @watch usage where applicable.

Reading this function makes my eyes bleed 85% less. #winning #tigerblood

Signed-off-by: Sam Day <me@samcday.com>
The default "Enter Passcode" isn't useful for phrog's use case

Signed-off-by: Sam Day <me@samcday.com>
Signed-off-by: Sam Day <me@samcday.com>
This way, pressing escape or hitting the Phosh.Lockscreen idle timer
doesn't boop the user back to the user session page.

Because we manage the default page state from a notify::page handler, we
don't need to also set the default page in trivial flow anymore.

Signed-off-by: Sam Day <me@samcday.com>
Remove some unnecessary WARN level logs in the cases where we're already
clearly communicating something to the user via the UI.

Use the unlock status better by improving the language in these
messages.

Ensure that resetting the greetd session in response to an auth failure
is robust.

Signed-off-by: Sam Day <me@samcday.com>
Signed-off-by: Sam Day <me@samcday.com>
@github-actions
Copy link

The CI build recorded and generated some videos

Demo video (shown on README and release notes)

accent-colours

emergency-calls

first-run

keypad-shuffle

simple-flow

trivial-flow

@samcday
Copy link
Owner Author

samcday commented Feb 13, 2025

Tests all look good, going to yolo this straight into main now so I can dogfood it a bit over the next couple of days before a 0.45 release candidate

@samcday samcday merged commit 10e74b3 into main Feb 13, 2025
3 checks passed
@samcday samcday deleted the pin-keypad branch February 14, 2025 11:59
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.

Pin lockscreen to keypad when greetd session is active

2 participants