Skip to content

Commit

Permalink
update: explorer url with proper settings (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel authored Nov 14, 2024
1 parent 55b5b69 commit aec710a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ interface OrganizationConfigInterface {
val ooniRunDashboardUrl: String
get() = "https://run.test.ooni.org"

val explorerUrl: String
get() = "https://explorer.test.ooni.org"

val testDisplayMode: TestDisplayMode

val autorunTaskId: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import ooniprobe.composeapp.generated.resources.measurement
import ooniprobe.composeapp.generated.resources.refresh
import org.intellij.markdown.html.urlEncode
import org.jetbrains.compose.resources.stringResource
import org.ooni.probe.config.OrganizationConfig
import org.ooni.probe.data.models.MeasurementModel
import org.ooni.probe.ui.shared.OoniWebView
import org.ooni.probe.ui.shared.OoniWebViewController
Expand Down Expand Up @@ -86,7 +87,7 @@ fun MeasurementScreen(
}

val inputSuffix = input?.let { "?input=${urlEncode(it)}" } ?: ""
val url = "https://explorer.ooni.org/measurement/${reportId.value}$inputSuffix"
val url = "${OrganizationConfig.explorerUrl}/measurement/${reportId.value}$inputSuffix"
LaunchedEffect(url) {
controller.load(url)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ interface OrganizationConfigInterface {
val ooniRunDashboardUrl: String
get() = "https://run.ooni.org"

val explorerUrl: String
get() = "https://explorer.test.ooni.org"

val testDisplayMode: TestDisplayMode

val autorunTaskId: String
Expand Down

0 comments on commit aec710a

Please sign in to comment.