-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
531 additions
and
643 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
service/src/main/kotlin/app/cash/backfila/ui/DashboardUrls.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package app.cash.backfila.ui | ||
|
||
object DashboardUrls { | ||
fun app(appName: String) = "/app/$appName" | ||
fun createDeploy(appName: String) = "/app/$appName/deploy" | ||
fun deploy(appName: String, deployName: String) = "/app/$appName/deploy/$deployName" | ||
fun setMinimalCommitTimestamp(appName: String) = "/app/$appName/set-minimal-commit-timestamp" | ||
} |
69 changes: 0 additions & 69 deletions
69
service/src/main/kotlin/app/cash/backfila/ui/PathBuilder.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
service/src/main/kotlin/app/cash/backfila/ui/actions/ServiceAutocompleteAction.kt
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
service/src/main/kotlin/app/cash/backfila/ui/actions/ServiceDataHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package app.cash.backfila.ui.actions | ||
|
||
import app.cash.backfila.dashboard.GetServicesAction | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
class ServiceDataHelper @Inject constructor( | ||
private val getServicesAction: GetServicesAction, | ||
) { | ||
fun getFlattenedServices(): Map<String, GetServicesAction.UiService> { | ||
val services = getServicesAction.services().services | ||
return services.flatMap { service -> | ||
service.variants.map { variant -> "${service.name}/$variant" to service } | ||
}.toMap() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
service/src/main/kotlin/app/cash/backfila/ui/components/ServiceAutocomplete.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
service/src/main/kotlin/app/cash/backfila/ui/components/ServiceAutocompleteWrapper.kt
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
service/src/main/kotlin/app/cash/backfila/ui/components/ServiceSearch.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
service/src/main/kotlin/app/cash/backfila/ui/components/ServiceSearchWrapper.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.