mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-17 04:10:47 -04:00
Redesign discover screen
removes category groups and uses featured categories instead
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.fdroid.ui.screenshots
|
||||
|
||||
import java.text.Collator
|
||||
import org.fdroid.ui.discover.Discover
|
||||
import org.fdroid.ui.discover.LoadedDiscoverModel
|
||||
import org.junit.Test
|
||||
@@ -16,12 +17,16 @@ class DiscoverScreenshotTest(localeName: String) : LocalizedScreenshotTest(local
|
||||
@Test
|
||||
fun appDetails() =
|
||||
screenshotTest("1_Discover") { localeList ->
|
||||
val collator = Collator.getInstance(localeList.get(0))
|
||||
val model =
|
||||
LoadedDiscoverModel(
|
||||
newApps = getNewApps(localeList),
|
||||
recentlyUpdatedApps = getRecentlyUpdatedApps(localeList),
|
||||
mostDownloadedApps = getMostDownloadedApps(localeList),
|
||||
categories = getCategoryItems(localeList).groupBy { it.group },
|
||||
categories =
|
||||
getCategoryItems(localeList).filter { it.featured }.sortedWith { c1, c2 ->
|
||||
collator.compare(c1.name, c2.name)
|
||||
},
|
||||
hasRepoIssues = false,
|
||||
)
|
||||
Discover(discoverModel = model, onListTap = {}, onAppTap = {}, onNav = {})
|
||||
|
||||
Reference in New Issue
Block a user