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

Feat: OONI Run v2 API Bootstrap #582

Closed
wants to merge 46 commits into from
Closed

Feat: OONI Run v2 API Bootstrap #582

wants to merge 46 commits into from

Conversation

aanorbel
Copy link
Member

@aanorbel aanorbel commented Jul 10, 2023

Fixes: ooni/probe#2471

CLI : ooni/probe-cli#1176

Testing Guide

Ensure OONI Run v1 is working properly.

OONI Run v2 tests

  • Check that tapping on the following link does the following https://run.test.ooni.org/view/95746934202
    • Open a different view from the OONI Run V1 view
    • Displays properties specific to v2 link.
      • Icon
      • Author
      • Name
      • Short Description
      • Description
      • Full list of nettests.
      • Arguments (URLS) for WebConnectivity test
      • Option to enable Automatic Updates for the descriptor
      • Option to enable Automated testing for the descriptor
      • Action button is Install
    • Installing the link takes you to the Test overview screen
    • Test can be run from the Test overview screen
    • The installed test can be seen on the Dashboard screen
    • On test completion, the Test result screen shows a row with the test name.

Comment on lines 44 to 46
viewHolder.name.setText(extra.getTestSuite().getTitle());
viewHolder.icon.setImageDrawable(viewHolder.itemView.getContext().getDrawable(extra.getTestSuite().getIconGradient()));
viewHolder.icon.setColorFilter(viewHolder.itemView.getResources().getColor(R.color.color_gray7));
Copy link
Member Author

Choose a reason for hiding this comment

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

Updates the result row to display Icon provided by the descriptor.

Comment on lines +80 to +87
return (icon > 0) ? icon : R.drawable.ooni_empty_state;
}

public int getIconGradient() {
if(Build.VERSION.SDK_INT <= Build.VERSION_CODES.M){
return icon;
return (icon > 0) ? icon : R.drawable.ooni_empty_state;
}else{
return icon_24;
return (icon_24 > 0) ? icon_24 : R.drawable.ooni_empty_state;
Copy link
Member Author

Choose a reason for hiding this comment

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

Set default drawable for descriptors that dont provide one.

Comment on lines +149 to +153
## Importing Icons

```shell
./scripts/import_icons.sh ~/Downloads/react-icons-xmls
```
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

. .
Screenshot_20230804_145522 Screenshot_20230804_145538
Screenshot_20230804_145549 Screenshot_20230804_145603
Screenshot_20230804_145649 .

@aanorbel aanorbel changed the title start sketching with oonirun v2 API Feat: OONI Run v2 API Bootstrao Aug 6, 2023
@aanorbel aanorbel changed the title Feat: OONI Run v2 API Bootstrao Feat: OONI Run v2 API Bootstrap Aug 9, 2023
aanorbel and others added 21 commits August 10, 2023 07:13
…-options

Feat Run V2: Implement auto run and auto update
…urementDetailActivity`

- Customize xml with new attributes for color and animation
…nimation

Feat OONI Run V2: Add support for `color` and `animation`
@aanorbel aanorbel mentioned this pull request Nov 28, 2023
@aanorbel aanorbel closed this Jun 21, 2024
@aanorbel aanorbel deleted the xoonirun branch October 21, 2024 09:05
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.

probe-mobile-Android: add UI support for displaying OONI Run link descriptors
1 participant