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

Full Rewrite/Refactor #119

Merged
merged 68 commits into from
Feb 1, 2025
Merged

Full Rewrite/Refactor #119

merged 68 commits into from
Feb 1, 2025

Conversation

beebls
Copy link
Collaborator

@beebls beebls commented Jun 29, 2024

This rewrite

  • Extracts all platform agnostic logic (api/backend interop and theme state) into src/backend, which eventually will be published as a separate npm package so that it can be shared between decky and desktop
    • ServerAPI calls (toast/backend method call) are now contained in a "repository" which can be dependency injected to use either decky's serverapi, or the desktop's fetch and react-toastify based solutions
    • Switched to a global zustand store that stores all theme data
    • Use reducer style zustand actions (eg: toggleTheme, changePreset) to take logic out of components
  • Switches to using zustand stores for all cross-component state
  • Adopts the new Decky Websocket API
  • Switches to using classname based styling instead of inline styles
  • Removes all old css/js hacks that no longer apply to the latest steam stable/beta
  • Moves all .then/.catch logic to async await and try catch
  • Moves to using @ style imports in components

Progress

  • QAM Tab
  • Theme Browser (In Progress)
  • Expanded View
  • Theme Settings
  • Preset Settings
  • Plugin Settings (Decky Patches included)
  • Credits Page

@beebls beebls marked this pull request as draft June 29, 2024 22:41
@beebls beebls changed the title [WIP] Full Rewrite/Refactor Full Rewrite/Refactor Feb 1, 2025
@beebls beebls marked this pull request as ready for review February 1, 2025 20:27
@beebls
Copy link
Collaborator Author

beebls commented Feb 1, 2025

baller. whoever did this is pretty smart

@beebls beebls merged commit 5526c4b into dev Feb 1, 2025
4 checks passed
@EMERALD0874
Copy link
Collaborator

image

@beebls
Copy link
Collaborator Author

beebls commented Feb 2, 2025

image

image
ezgif-4bbe68ec4f46c

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.

3 participants