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

[Rebase] Warn users on possible risks on installing third party unvetted plugins #676

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RodoMa92
Copy link
Contributor

@RodoMa92 RodoMa92 commented Aug 9, 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 PR implements proper warning messages for third party install outside our store to warn users of potential malicious code outside our ecosystem.

// save intervalId to clear the interval when the
// component re-renders
const intervalId = setInterval(() => {
setWaitTimer(waitTimer - 1);
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't set timeout work better for this then? Unless I'm misunderstanding?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, fair enough. Not really that skilled with react.

Copy link
Member

Choose a reason for hiding this comment

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

@AAGaming00 current solution isn't ideal but should it be changed or can this PR go ahead?

Copy link
Contributor Author

@RodoMa92 RodoMa92 Aug 10, 2024

Choose a reason for hiding this comment

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

Rereading this now, no, because I'm referencing the timeout on the translation on line 58 to show the remaining time ticking down to give additional feedback to the user, so I can't see how I would be doing this with one single timeout tick compared to one for each second. It was like 6 months from when I wrote this, so I was not that sure why I did stuff at the time, sorry XD. Let me know if I'm missing something.

@TrainDoctor TrainDoctor added the enhancement New feature or request label Aug 10, 2024
@RodoMa92 RodoMa92 requested a review from AAGaming00 August 10, 2024 07:37
@RodoMa92 RodoMa92 changed the title [Feature] [Rebase] Warn users on possible risks on installing third party unvetted plugins [Rebase] Warn users on possible risks on installing third party unvetted plugins Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

3 participants