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

Fix GUI bugs #707

Merged
merged 4 commits into from
Jun 7, 2023
Merged

Fix GUI bugs #707

merged 4 commits into from
Jun 7, 2023

Conversation

ImUrX
Copy link
Member

@ImUrX ImUrX commented Jun 3, 2023

  • Fixed updates being announced when it was a older update
  • Fixed updates including pre-releases
  • Fixed reset tutorial not showing continue button one curIndex before
  • Fixed F1 not working for opening docs page

@ImUrX ImUrX added Type: Bug Something isn't working Area: GUI Related to the GUI labels Jun 3, 2023
@ImUrX ImUrX requested a review from loucass003 as a code owner June 3, 2023 00:14
gui/src/App.tsx Outdated
).then((res) => res.json());
)
.then((res) => res.json())
.then((json: Release[]) => json.filter((rl) => !rl.prerelease));
Copy link
Member

Choose a reason for hiding this comment

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

It'd be smart if we were to actually validate the objects here, for example with zod.

Copy link
Member Author

Choose a reason for hiding this comment

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

validated :p

document.addEventListener('keypress', onKeyboard);
return () => document.removeEventListener('keypress', onKeyboard);
document.addEventListener('keyup', onKeyboard);
return () => document.removeEventListener('keyup', onKeyboard);
Copy link
Member

Choose a reason for hiding this comment

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

Please just move this into a different PR...

Copy link
Member Author

Choose a reason for hiding this comment

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

makes 4 branches

).then((res) => res.json());
)
.then((res) => res.json())
.then((json: any[]) => json.filter((rl) => rl?.prerelease === false));
Copy link
Member

Choose a reason for hiding this comment

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

no.

Copy link
Member Author

Choose a reason for hiding this comment

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

its better than bringing a whole dependency for one type check

Comment on lines +153 to +155
__VERSION_TAG__ &&
typeof releases[0].tag_name === 'string' &&
semver.gt(releases[0].tag_name, __VERSION_TAG__)
Copy link
Member

Choose a reason for hiding this comment

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

very cursed, no thank you.

@Eirenliel Eirenliel merged commit 4ba2bb0 into SlimeVR:main Jun 7, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: GUI Related to the GUI Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants