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

show website animation and colors in RunningScreen #289

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Conversation

aanorbel
Copy link
Member

Closes #274

@aanorbel aanorbel requested a review from sdsantos November 19, 2024 12:03
if (!inputs.isNullOrEmpty() || test !is TestType.WebConnectivity) return inputs

setRunBackgroundState {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This sort of assumes that the Websites descriptor will always be the first one to run. It's true for now, but we need to be careful.

Copy link
Member Author

Choose a reason for hiding this comment

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

This does not assume for the most part. If the website is not the first to run, the code above exits before it get here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We are looping through all descriptors and tests. There's no check if it's the first one I believe.

Copy link
Member Author

Choose a reason for hiding this comment

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

Here we are looping through and returning inputs or downloading URLs.

  • the code exits if the test has inputs or its not web connectivity.
  • when the condition to download URLs is met, the new state is emitted with the current test that is performing the action.
  • I can clear the descriptor and test type post-download if that makes it better.

@aanorbel aanorbel merged commit e65b678 into main Nov 20, 2024
7 checks passed
@aanorbel aanorbel deleted the issues/274 branch November 20, 2024 15:09
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.

show website animation and colors in RunningScreen while URLs are being downloaded
2 participants