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

Rewrite router/tabs/toaster hooks #661

Merged
merged 29 commits into from
Aug 5, 2024
Merged

Rewrite router/tabs/toaster hooks #661

merged 29 commits into from
Aug 5, 2024

Conversation

AAGaming00
Copy link
Member

@AAGaming00 AAGaming00 commented Jul 18, 2024

Please tick as appropriate:

  • I have tested this code on a steam deck or on a PC
  • My changes generate no new errors/warnings
  • This is a bugfix/hotfix
  • This is a new feature

Description

This fixes many issues with the current router/toaster/tabs hooks (such as toasts breaking after exiting sleep), adds desktop BPM support to the router/toaster/tabs hooks, adds desktop support to the toaster hook, and adds preliminary support for a future desktop UI router hook.

The new toaster hook also supports displaying toasts in the QAM's notification tray.

Current blocking issues:
- [x] Investigate occasional react error when injecting into the router too early I can't reproduce this anymore.

  • Make proper UI for toasts in the tray
  • Support desktop BPM in Navigation API (probably very easy)

Here's an example of toasts working in the tray (UI is WIP)
toasts in the QAM

Potentially breaking changes

  • Decky and plugins now load when the desktop Steam UI starts, as they would remain loaded after switching out of Big Picture anyway. I haven't observed any breakage due to this.
  • Decky and plugin toasts now show in desktop mode

@AAGaming00 AAGaming00 added enhancement New feature or request javascript Pull requests that update Javascript code labels Jul 18, 2024
@AAGaming00 AAGaming00 self-assigned this Jul 18, 2024
@AAGaming00 AAGaming00 linked an issue Jul 18, 2024 that may be closed by this pull request
4 tasks
@AAGaming00 AAGaming00 force-pushed the aa/new-hooks branch 2 times, most recently from af93263 to 8d3c6cb Compare July 26, 2024 18:36
@AAGaming00 AAGaming00 marked this pull request as ready for review July 28, 2024 22:25
@AAGaming00 AAGaming00 changed the title Implement new router/tabs/toaster hooks Rewrite router/tabs/toaster hooks Jul 28, 2024
@AAGaming00
Copy link
Member Author

The tabs hook silently failed once when testing this, but i haven't been able to replicate it yet. Could use some help testing.

@AAGaming00
Copy link
Member Author

Should be ready for review and testing now.

@AAGaming00 AAGaming00 requested a review from a team July 29, 2024 00:33
Copy link
Contributor

@suchmememanyskill suchmememanyskill left a comment

Choose a reason for hiding this comment

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

Python changes look fine to me.

backend/decky_loader/main.py Outdated Show resolved Hide resolved
backend/decky_loader/utilities.py Show resolved Hide resolved
@AAGaming00

This comment was marked as outdated.

@AAGaming00 AAGaming00 added the on-hold This pull request must wait until it can be merged label Jul 31, 2024
@AAGaming00 AAGaming00 requested a review from a team August 3, 2024 18:05
@AAGaming00 AAGaming00 removed the on-hold This pull request must wait until it can be merged label Aug 3, 2024
@AAGaming00 AAGaming00 merged commit 131f096 into main Aug 5, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] toast notifications do not show after waking the deck from sleep
2 participants