Commit Graph

258 Commits

Author SHA1 Message Date
AAGaming
9c8db576f5 error boundary now properly reports steam errors 2024-05-27 17:21:27 -04:00
AAGaming
a84a13c76d Custom error handler and some misc fixes 2024-05-25 19:14:54 -04:00
AAGaming
96cc72f2ca chore: fetch -> fetchNoCors 2024-05-24 23:26:39 -04:00
Party Wumpus
372771a228 plugin install progress (#614)
* Frontend progress bars

* Backend bit

* closure is stale i think so no closure for you

* Fix formatting of the progress svgs

* Reset progress bar when new plugin starts downloading
2024-05-13 14:42:55 +01:00
AAGaming
0b1c069448 port to @decky/ui
TODO: update package.json to match once @decky/ui is on NPM
2024-05-12 15:47:08 -04:00
AAGaming
14ea7b964f implement fetch and external resource request apis 2024-05-04 22:39:30 -04:00
AAGaming
6b06bae250 fix: support new minified class names
bumps decky-frontend-lib to 3.25.0
can't stop us THAT easily :P
2024-04-22 13:18:33 -04:00
Party Wumpus
f9ff518e6d attempt to add plugin events to the plugin frontend api.
unable to test right now though
2024-04-09 15:54:48 +01:00
Party Wumpus
11b743a792 Add loading bar to testing page and make downloading more robust 2024-03-01 23:07:51 +00:00
Party Wumpus
637e3c566e what if the error message was better 2024-02-22 17:37:20 +00:00
Party Wumpus
89a4a69f6d make frontend -> backend errors actually work 2024-02-22 16:38:50 +00:00
AAGaming
a449181802 hook up the backend api 2024-02-21 17:39:13 -05:00
AAGaming
6d2e9365c0 more major websocket progress 2024-02-21 01:08:25 -05:00
Party Wumpus
39e752e4e2 Appease prettier
i must have done a great deal of harm in a past life to deserve this mistreatment by formatting tools. why do they hate me.
2024-02-20 21:42:37 +00:00
Party Wumpus
992e2e2ad3 fix finding qam root node for feb 14th beta 2024-02-20 21:40:01 +00:00
Andrew Moore
c2ebc78836 [Feature] Freeze updates for devs (#582) 2024-02-20 21:39:43 +00:00
Party Wumpus
35f6f041c1 Testing PRs from within decky (#496)
* git no work so manually uploading files :(

* argh i wish git was working

* ok next time i'll make git work

* Update updater.py

* git please work next time this took ages without you

* fix me locales

* Update updater.py

* Update en-US.json

* Update updater.py

* Update updater.py

* i wish my python LSP stuff was working

* fix it

* Update updater.py

* Update updater.py

* Only show testing branch as an option if it is already selected

* Initial implementation for fetching the open PRs. Still need testing and a token to complete this.

* Wrong filter capitalization

* Fix a couple of typos in the python backend updater.

* Fix typos pt 3

* This should be the last one

* Prepend the PR version number with PR- to make it clearer that's the PR number.

* Update prettier to the latest version otherwise it will never be happy with the formatting.

* fix merge mistake

* fix pyright errors & type hint most new code

* fix strict pyright errors...

* not sure why my local linter didn't catch this

* Reimplement the logic between PR and artifact build to limit API calls

* Fix pyright errors

* use nightly.link for downloads

* remove accidental dollar sign

* fix various logical errors. the code actually works now.

* set branch to testing when user downloads a testing version

---------

Co-authored-by: Marco Rodolfi <marco.rodolfi@tuta.io>
2024-02-20 21:33:41 +00:00
AAGaming
7e3f9edacf clean up updater logic 2024-02-19 23:42:24 -05:00
AAGaming
22b732bab4 clean up deranged react triple-import in Updater.tsx 2024-02-19 23:34:01 -05:00
Party Wumpus
61b984bfa1 what if the error handling worked for async event listeners
the anonymous async function is made so the event handlers can each be started in parallel, just in case there's a long running function
2024-02-16 13:35:08 +00:00
Party Wumpus
867ce63f7b Add event handler 2024-02-15 22:28:36 +00:00
AAGaming
9db3f3f20e bump dfl 2024-02-14 17:49:10 -05:00
Party Wumpus
ec41c61219 Refactor plugin store and add sorting by downloads and release date (#547)
* untested first commit

* fix types & names

* comment out built in sorting for now

* rerun search when sort changes

* fix ts complaints

* use prettier

* stop switch-case fall through

* move spinner

* use locale instead of hardcoded string

* fix typo

* add sorting by downloads & try using the data field in the dropdown for data

* fix typing error

* fix asc/desc in dropdown

* fix asc/desc again. asc = smaller one go first aaaaa

* I don't think i know what ascending means maybe

* use props instead of children, like a normal component
2024-02-14 16:43:30 -05:00
AAGaming
e8add28797 fix: use findInReactTree to find correct errorboundary for toaster
fixes toaster error on latest beta
2024-02-14 16:42:14 -05:00
Beebles
063961d36a fix: Fix on Chromium 109 beta (#576)
* Add new user agent to do not close tabs list

* fix: bump DFL to fix chromium 109 beta

---------

Co-authored-by: Sims <38142618+suchmememanyskill@users.noreply.github.com>
2024-01-21 16:49:52 -05:00
AAGaming
40c7c1b515 port updater to ws, also small refactoring 2023-12-30 21:32:23 -05:00
AAGaming
70104065e2 chore: get rid of useless old tabs hook 2023-12-30 18:06:07 -05:00
AAGaming
6522ebf0ca Implement legacy & modern plugin method calls over WS
This version builds fine and runs all of the 14 plugins I have installed perfectly, so we're really close to having this done.
2023-12-30 00:46:59 -05:00
AAGaming
3a38cf8074 fix(developer): add back valve internal on beta
look i was tired when writing yesterday's fix okay
2023-12-29 18:40:53 -05:00
AAGaming
4f40b97f53 fix: idiotic formatting error i should have noticed 2023-12-29 18:40:52 -05:00
AAGaming
5fd5b2f08c fix: Adjust tabs and toaster hooks to work on react 18, also half-fix Valve Internal 2023-12-29 18:40:52 -05:00
Party Wumpus
87d7e15951 bump dfl 2023-12-29 18:40:52 -05:00
AAGaming
5e1e035bc2 more progress on websockets 2023-11-14 00:04:56 +02:00
AAGaming
34d1a34b10 Migrate most of frontend callServerMethod usage over to websocket 2023-11-14 00:04:56 +02:00
AAGaming
1921e7ec56 JS -> Python WS now functional 2023-11-14 00:04:56 +02:00
AAGaming
05b41b3410 more progress on WS router 2023-11-14 00:03:47 +02:00
AAGaming
18d89e76fd more work on websockets 2023-11-14 00:03:47 +02:00
K900
5a633fdd82 Packaging rework (#531)
* fix: get rid of title view jank on latest beta

* Count the number of installs for each plugin (#557)

* Bump aiohttp from 3.8.4 to 3.8.5 in /backend (#558)

* fix: include Decky version in request for index.js

This avoids the If-Modified-Since logic in aiohttp and ensures Steam doesn't cache old JS,
even if the timestamps are normalized.

* fix: clean up shellcheck warnings in act runner script

* fix: gitignore settings/

* fix: ensure state directories exist when running without the installer

* feat: determine root directory correctly when running from in-tree

* fix: fix typo in CI script

* refactor: build a proper Python package with poetry

* refactor: move decky_plugin under the poetry structure

There's no need to special case it anymore, just treat it like any other Python module.

* sandboxed_plugin: better fix, attempt 2

---------

Co-authored-by: AAGaming <aagaming@riseup.net>
Co-authored-by: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 23:40:37 +02:00
marios8543
268311c482 Add message emit mechanism 2023-10-31 23:18:31 +02:00
Party Wumpus
f508d1dfce fix logical error when no store was set 2023-10-31 23:18:30 +02:00
marios8543
da9217ac4a Fix type error on store.tsx 2023-10-31 23:17:57 +02:00
marios8543
39f64ca666 Drop support for legacy plugins 2023-10-31 23:17:49 +02:00
TrainDoctor
a7669799bc Merge aa/type-cleanup-py (work by marios, aa, wolv) 2023-10-25 19:47:33 -07:00
dependabot[bot]
f94a1f97df Bump @babel/traverse from 7.22.5 to 7.23.2 in /frontend (#550) 2023-10-20 13:58:00 +00:00
Party Wumpus
f53a3f383d fix typo
this is what i get for commiting to main 😔
2023-10-17 13:52:11 +01:00
Party Wumpus
407e647993 fix logical error when no store was set 2023-10-17 13:44:44 +01:00
Beebles
c7e4eb1b3f Add Custom TitleView (#512)
* feat(titleView): Add Custom TitleView support

* fix: wrap TitleView in Focusable

* fix: remove root div on TitleView
2023-07-27 14:58:21 +01:00
EMERALD
6d086fb5d5 Add testing store info to browse tab (#504) 2023-07-12 16:52:32 -07:00
fero
7c805e9b80 Add descriptions to Decky titleview DialogButtons (#502)
* chore: add onOKActionDescriptions to decky titleview

This is in preparation for beebles' custom titleview. Since plugins may reuse the same icons in their custom titleviews, it will be a good practice to disambiguate their meanings. In the Steam UI, any icon button has a matching description.

* chore: implement it using the translation framework

---------

Co-authored-by: Marco Rodolfi <marco.rodolfi@tuta.io>
2023-07-09 09:43:00 +01:00
AAGaming
dea08868d3 fix router hook recursively wrapping routes when patched multiple times 2023-07-03 23:57:53 -04:00