From e81939b32dca807abb59a987e33c739751550e30 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:29:00 +0530 Subject: [PATCH 001/175] fix: capture startup crashes before AndroidX providers --- app/src/main/AndroidManifest.xml | 1 + .../currentlens/CurrentLensApplication.kt | 23 +++ .../currentlens/LaunchCrashDiagnostics.kt | 120 ++++++++++--- .../mangoloads/currentlens/MainActivity.kt | 158 +++++++++++------- .../currentlens/LaunchCrashDiagnosticsTest.kt | 12 +- 5 files changed, 234 insertions(+), 80 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6e087057..bec0a68d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,7 @@ runCatching { - File(appContext.filesDir, REPORT_NAME) - .writeText(formatReport(thread.name, throwable), Charsets.UTF_8) + writeCrashReport(appContext, thread.name, throwable) } - if (previous != null) previous.uncaughtException(thread, throwable) - else { + if (current != null) { + current.uncaughtException(thread, throwable) + } else { Process.killProcess(Process.myPid()) exitProcess(10) } @@ -37,25 +50,92 @@ internal object LaunchCrashDiagnostics { } } + /** Record the last completed startup boundary for the next crash report. */ + fun recordStage(context: Context, stage: String) { + if (stage.isBlank()) return + runCatching { + File(context.applicationContext.filesDir, STAGE_NAME) + .writeText(Instant.now().toString() + " | " + stage.take(240), Charsets.UTF_8) + } + } + + /** A launch is considered healthy only after the first several Compose frames. */ + fun markHealthy(context: Context) { + val directory = context.applicationContext.filesDir + runCatching { File(directory, REPORT_NAME).delete() } + recordStage(context, "First Compose frames completed") + } + fun read(context: Context): String? = runCatching { - File(context.filesDir, REPORT_NAME).takeIf { it.isFile } - ?.readText(Charsets.UTF_8)?.take(MAX_REPORT_CHARS) + File(context.applicationContext.filesDir, REPORT_NAME) + .takeIf { it.isFile } + ?.readText(Charsets.UTF_8) + ?.take(MAX_REPORT_CHARS) }.getOrNull() - fun clear(context: Context): Boolean = runCatching { - val file = File(context.filesDir, REPORT_NAME) - !file.exists() || file.delete() - }.getOrDefault(false) + fun clear(context: Context): Boolean { + val directory = context.applicationContext.filesDir + val reportDeleted = runCatching { + val file = File(directory, REPORT_NAME) + !file.exists() || file.delete() + }.getOrDefault(false) + val tempDeleted = runCatching { File(directory, REPORT_TEMP_NAME).delete() }.getOrDefault(false) + runCatching { File(directory, STAGE_NAME).delete() } + return reportDeleted && (tempDeleted || !File(directory, REPORT_TEMP_NAME).exists()) + } + + private fun writeCrashReport(context: Context, threadName: String, throwable: Throwable) { + val directory = context.filesDir + val stage = runCatching { + File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) + }.getOrNull() + val versionName = runCatching { + context.packageManager.getPackageInfo(context.packageName, 0).versionName + }.getOrNull() + val report = formatReport( + threadName = threadName, + throwable = throwable, + lastCompletedStage = stage, + versionName = versionName + ) + val destination = File(directory, REPORT_NAME) + val temporary = File(directory, REPORT_TEMP_NAME) + + // Flush the report to storage before delegating to Android's process-kill handler. + FileOutputStream(temporary, false).use { stream -> + stream.write(report.toByteArray(Charsets.UTF_8)) + stream.fd.sync() + } + if (!temporary.renameTo(destination)) { + FileOutputStream(destination, false).use { stream -> + stream.write(report.toByteArray(Charsets.UTF_8)) + stream.fd.sync() + } + temporary.delete() + } + } - internal fun formatReport(threadName: String, throwable: Throwable): String { + internal fun formatReport( + threadName: String, + throwable: Throwable, + lastCompletedStage: String? = null, + versionName: String? = null + ): String { val writer = StringWriter() throwable.printStackTrace(PrintWriter(writer)) return buildString { - appendLine("CurrentLens local crash report") - appendLine("Device: ${Build.MANUFACTURER} ${Build.MODEL}") - appendLine("Android: ${Build.VERSION.RELEASE} (API ${Build.VERSION.SDK_INT})") - appendLine("Thread: $threadName") - appendLine("Exception: ${throwable.javaClass.name}") + appendLine("CurrentLens local startup crash report") + appendLine("Timestamp: " + Instant.now().toString()) + appendLine("App: " + versionName.orEmpty()) + appendLine("Package: com.mangoloads.currentlens") + appendLine("Device: " + Build.MANUFACTURER + " " + Build.BRAND + " " + Build.MODEL) + appendLine("Device code: " + Build.DEVICE) + appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") + appendLine("Build fingerprint: " + Build.FINGERPRINT) + appendLine("Process id: " + Process.myPid()) + appendLine("Thread: " + threadName) + appendLine("Last completed startup stage: " + (lastCompletedStage ?: "unknown")) + appendLine("Exception: " + throwable.javaClass.name) appendLine() append(writer.toString()) }.take(MAX_REPORT_CHARS) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 59c2f050..a78cc4de 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -208,8 +208,13 @@ private const val INDIA_ZONE = "Asia/Kolkata" class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: android.os.Bundle?) { super.onCreate(savedInstanceState) - LaunchCrashDiagnostics.install(applicationContext) + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.onCreate entered") val previousCrashReport = LaunchCrashDiagnostics.read(this) + if (previousCrashReport != null) { + showCrashRecoveryScreen(previousCrashReport) + return + } + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity preparing Compose content") setContent { val dark = isSystemInDarkTheme() val colors = if (dark) { @@ -268,67 +273,103 @@ class MainActivity : ComponentActivity() { } } MaterialTheme(colorScheme = colors) { - if (previousCrashReport != null) { - Surface( - modifier = Modifier.fillMaxSize(), - color = colors.background, - contentColor = colors.onBackground - ) { - CrashRecoveryScreen( - report = previousCrashReport, - onRetry = { - LaunchCrashDiagnostics.clear(this@MainActivity) - recreate() - } - ) - } - } else { - Surface( - modifier = Modifier.fillMaxSize(), - color = colors.background, - contentColor = colors.onBackground - ) { BrrrNewsApp() } - } + Surface( + modifier = Modifier.fillMaxSize(), + color = colors.background, + contentColor = colors.onBackground + ) { BrrrNewsApp() } } } + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.setContent returned") } } -@Composable -private fun CrashRecoveryScreen(report: String, onRetry: () -> Unit) { - val context = LocalContext.current - Column( - Modifier.fillMaxSize().verticalScroll(rememberScrollState()) - .padding(horizontal = 22.dp, vertical = 28.dp), - verticalArrangement = Arrangement.spacedBy(14.dp) - ) { - Text("brrrNews could not complete its previous launch", - style = MaterialTheme.typography.headlineSmall, fontWeight = FontWeight.Bold) - Text( - "A local crash report has been saved on this device. Copy it and send it with your next message so the exact failure can be fixed instead of guessed.", - style = MaterialTheme.typography.bodyMedium, - color = MaterialTheme.colorScheme.onSurfaceVariant +/** + * Uses framework Views deliberately: this screen must remain available if Compose or + * the Prismal graphics pipeline caused the preceding startup failure. + */ +private fun MainActivity.showCrashRecoveryScreen(report: String) { + val density = resources.displayMetrics.density + fun dp(value: Int): Int = (value * density).toInt() + + val root = android.widget.LinearLayout(this).apply { + orientation = android.widget.LinearLayout.VERTICAL + setPadding(dp(22), dp(28), dp(22), dp(20)) + setBackgroundColor(android.graphics.Color.rgb(13, 17, 24)) + } + val title = android.widget.TextView(this).apply { + text = "brrrNews could not complete its previous launch" + textSize = 24f + setTextColor(android.graphics.Color.WHITE) + typeface = android.graphics.Typeface.DEFAULT_BOLD + } + val description = android.widget.TextView(this).apply { + text = "A local crash report was saved on this device. Copy it and send it here so the failure can be traced to its exact stack frame." + textSize = 15f + setTextColor(android.graphics.Color.rgb(205, 215, 228)) + setPadding(0, dp(12), 0, dp(14)) + } + val reportLabel = android.widget.TextView(this).apply { + text = "LOCAL STARTUP DIAGNOSTICS" + textSize = 12f + setTextColor(android.graphics.Color.rgb(150, 190, 255)) + typeface = android.graphics.Typeface.DEFAULT_BOLD + setPadding(0, dp(14), 0, dp(8)) + } + val reportText = android.widget.TextView(this).apply { + text = report.take(LaunchCrashDiagnostics.MAX_REPORT_CHARS) + textSize = 11f + setTextColor(android.graphics.Color.rgb(220, 226, 235)) + typeface = android.graphics.Typeface.MONOSPACE + setTextIsSelectable(true) + setPadding(dp(10), dp(10), dp(10), dp(10)) + setBackgroundColor(android.graphics.Color.rgb(25, 33, 45)) + } + val reportScroll = android.widget.ScrollView(this).apply { + isFillViewport = true + addView(reportText) + } + val actions = android.widget.LinearLayout(this).apply { + orientation = android.widget.LinearLayout.HORIZONTAL + gravity = android.view.Gravity.CENTER_VERTICAL + } + val copyButton = android.widget.Button(this).apply { + text = "Copy crash report" + setOnClickListener { + val clipboard = getSystemService(android.content.Context.CLIPBOARD_SERVICE) + as? android.content.ClipboardManager + clipboard?.setPrimaryClip( + android.content.ClipData.newPlainText("brrrNews crash report", report) + ) + android.widget.Toast.makeText( + this@MainActivity, + "Crash report copied", + android.widget.Toast.LENGTH_LONG + ).show() + } + } + val retryButton = android.widget.Button(this).apply { + text = "Try normal launch" + setOnClickListener { + LaunchCrashDiagnostics.clear(this@MainActivity) + recreate() + } + } + actions.addView(copyButton, android.widget.LinearLayout.LayoutParams(0, dp(54), 1f)) + actions.addView(retryButton, android.widget.LinearLayout.LayoutParams(0, dp(54), 1f)) + root.addView(title) + root.addView(description) + root.addView(actions) + root.addView(reportLabel) + root.addView( + reportScroll, + android.widget.LinearLayout.LayoutParams( + android.widget.LinearLayout.LayoutParams.MATCH_PARENT, + 0, + 1f ) - Row(horizontalArrangement = Arrangement.spacedBy(10.dp)) { - Button( - onClick = { - val clipboard = context.getSystemService(android.content.Context.CLIPBOARD_SERVICE) - as? android.content.ClipboardManager - clipboard?.setPrimaryClip( - android.content.ClipData.newPlainText("brrrNews crash report", report) - ) - android.widget.Toast.makeText(context, "Crash report copied", android.widget.Toast.LENGTH_SHORT).show() - }, - modifier = Modifier.weight(1f) - ) { Text("Copy crash report") } - OutlinedButton(onClick = onRetry, modifier = Modifier.weight(1f)) { Text("Try again") } - } - Text("LOCAL DIAGNOSTICS", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold, letterSpacing = 1.sp) - Text(report.take(12_000), style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.onSurfaceVariant, - fontFamily = androidx.compose.ui.text.font.FontFamily.Monospace) - } + ) + setContentView(root) } private enum class YouPage { DASHBOARD, SAVED, READING_STATS, QUIZ_STATS } @@ -344,6 +385,11 @@ private data class LocalAppSnapshot( @Composable private fun BrrrNewsApp() { val context = LocalContext.current + LaunchedEffect(Unit) { + LaunchCrashDiagnostics.recordStage(context, "BrrrNewsApp composition started") + repeat(3) { withFrameNanos { } } + LaunchCrashDiagnostics.markHealthy(context) + } val backdrop = rememberPrismalGlassLayer() val dark = isSystemInDarkTheme() // Restore larger persisted collections after the first frame; parsing 5,000 diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index d6e51177..2cedf8c1 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -5,16 +5,20 @@ import org.junit.Test class LaunchCrashDiagnosticsTest { @Test - fun reportContainsDeviceThreadAndExceptionDetails() { + fun reportContainsDeviceThreadExceptionAndStartupStage() { val report = LaunchCrashDiagnostics.formatReport( threadName = "main", - throwable = IllegalStateException("first composition failed") + throwable = IllegalStateException("first composition failed"), + lastCompletedStage = "Application.attachBaseContext completed", + versionName = "0.2.0" ) - assertTrue(report.contains("CurrentLens local crash report")) + assertTrue(report.contains("CurrentLens local startup crash report")) assertTrue(report.contains("Thread: main")) assertTrue(report.contains("IllegalStateException")) assertTrue(report.contains("first composition failed")) + assertTrue(report.contains("Application.attachBaseContext completed")) + assertTrue(report.contains("0.2.0")) } @Test @@ -23,6 +27,6 @@ class LaunchCrashDiagnosticsTest { threadName = "main", throwable = IllegalStateException("x".repeat(60_000)) ) - assertTrue(report.length <= 30_000) + assertTrue(report.length <= LaunchCrashDiagnostics.MAX_REPORT_CHARS) } } From 356515458e9b689ac152a0f202113dfac324c365 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:32:00 +0530 Subject: [PATCH 002/175] fix: make early crash records safe for unit tests --- .../currentlens/LaunchCrashDiagnostics.kt | 18 ++++++++++-------- .../com/mangoloads/currentlens/MainActivity.kt | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index f0941f80..64019cff 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -33,7 +33,7 @@ internal object LaunchCrashDiagnostics { val current = Thread.getDefaultUncaughtExceptionHandler() if (current != null && current === installedHandler) return - val appContext = context.applicationContext + val appContext = context.applicationContext ?: context val handler = Thread.UncaughtExceptionHandler { thread, throwable -> runCatching { writeCrashReport(appContext, thread.name, throwable) @@ -54,27 +54,27 @@ internal object LaunchCrashDiagnostics { fun recordStage(context: Context, stage: String) { if (stage.isBlank()) return runCatching { - File(context.applicationContext.filesDir, STAGE_NAME) + File((context.applicationContext ?: context).filesDir, STAGE_NAME) .writeText(Instant.now().toString() + " | " + stage.take(240), Charsets.UTF_8) } } /** A launch is considered healthy only after the first several Compose frames. */ fun markHealthy(context: Context) { - val directory = context.applicationContext.filesDir + val directory = (context.applicationContext ?: context).filesDir runCatching { File(directory, REPORT_NAME).delete() } recordStage(context, "First Compose frames completed") } fun read(context: Context): String? = runCatching { - File(context.applicationContext.filesDir, REPORT_NAME) + File((context.applicationContext ?: context).filesDir, REPORT_NAME) .takeIf { it.isFile } ?.readText(Charsets.UTF_8) ?.take(MAX_REPORT_CHARS) }.getOrNull() fun clear(context: Context): Boolean { - val directory = context.applicationContext.filesDir + val directory = (context.applicationContext ?: context).filesDir val reportDeleted = runCatching { val file = File(directory, REPORT_NAME) !file.exists() || file.delete() @@ -96,7 +96,8 @@ internal object LaunchCrashDiagnostics { threadName = threadName, throwable = throwable, lastCompletedStage = stage, - versionName = versionName + versionName = versionName, + processId = Process.myPid() ) val destination = File(directory, REPORT_NAME) val temporary = File(directory, REPORT_TEMP_NAME) @@ -119,7 +120,8 @@ internal object LaunchCrashDiagnostics { threadName: String, throwable: Throwable, lastCompletedStage: String? = null, - versionName: String? = null + versionName: String? = null, + processId: Int? = null ): String { val writer = StringWriter() throwable.printStackTrace(PrintWriter(writer)) @@ -132,7 +134,7 @@ internal object LaunchCrashDiagnostics { appendLine("Device code: " + Build.DEVICE) appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") appendLine("Build fingerprint: " + Build.FINGERPRINT) - appendLine("Process id: " + Process.myPid()) + appendLine("Process id: " + (processId?.toString() ?: "unavailable")) appendLine("Thread: " + threadName) appendLine("Last completed startup stage: " + (lastCompletedStage ?: "unknown")) appendLine("Exception: " + throwable.javaClass.name) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a78cc4de..81550cc9 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -211,7 +211,7 @@ class MainActivity : ComponentActivity() { LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.onCreate entered") val previousCrashReport = LaunchCrashDiagnostics.read(this) if (previousCrashReport != null) { - showCrashRecoveryScreen(previousCrashReport) + this.showCrashRecoveryScreen(previousCrashReport) return } LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity preparing Compose content") From d70caac2dd0f2247667df12226c2ff3cc845222b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:33:40 +0530 Subject: [PATCH 003/175] fix: detect startup termination without a Java exception --- .../currentlens/CurrentLensApplication.kt | 2 +- .../currentlens/LaunchCrashDiagnostics.kt | 54 +++++++++++++++++++ .../currentlens/LaunchCrashDiagnosticsTest.kt | 13 +++++ 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index 57f15cb4..3d80a439 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -13,7 +13,7 @@ class CurrentLensApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) LaunchCrashDiagnostics.install(base) - LaunchCrashDiagnostics.recordStage(base, "Application.attachBaseContext completed") + LaunchCrashDiagnostics.beginStartup(base) } override fun onCreate() { diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 64019cff..bd446194 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -50,6 +50,25 @@ internal object LaunchCrashDiagnostics { } } + /** + * Called from Application.attachBaseContext before ContentProviders start. + * If the prior process never reached its first stable Compose frames, preserve + * that fact even when Android killed it without a Java/Kotlin exception. + */ + fun beginStartup(context: Context) { + val directory = context.applicationContext?.filesDir ?: context.filesDir + val previousStage = runCatching { + File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) + }.getOrNull() + val reportFile = File(directory, REPORT_NAME) + if (!reportFile.isFile && !previousStage.isNullOrBlank() && + !previousStage.contains("First Compose frames completed") + ) { + writeInterruptedStartupReport(context, previousStage) + } + recordStage(context, "Application.attachBaseContext completed") + } + /** Record the last completed startup boundary for the next crash report. */ fun recordStage(context: Context, stage: String) { if (stage.isBlank()) return @@ -84,6 +103,37 @@ internal object LaunchCrashDiagnostics { return reportDeleted && (tempDeleted || !File(directory, REPORT_TEMP_NAME).exists()) } + internal fun formatInterruptedStartupReport( + lastCompletedStage: String, + versionName: String? = null + ): String = buildString { + appendLine("CurrentLens startup interruption report") + appendLine("Timestamp: " + Instant.now().toString()) + appendLine("App: " + versionName.orEmpty()) + appendLine("Package: com.mangoloads.currentlens") + appendLine("Device: " + Build.MANUFACTURER + " " + Build.BRAND + " " + Build.MODEL) + appendLine("Device code: " + Build.DEVICE) + appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") + appendLine("Build fingerprint: " + Build.FINGERPRINT) + appendLine("Process id: " + runCatching { Process.myPid().toString() }.getOrDefault("unavailable")) + appendLine("Report type: startup interrupted; no uncaught Java/Kotlin exception was captured") + appendLine("Last completed startup stage: " + lastCompletedStage) + appendLine() + appendLine("The previous process ended before confirming the first stable Compose frames.") + appendLine("This can indicate a native/render-thread crash, abrupt process termination,") + appendLine("or a force-stop during launch. It is not a Java/Kotlin stack trace.") + }.take(MAX_REPORT_CHARS) + + private fun writeInterruptedStartupReport(context: Context, lastCompletedStage: String) { + val versionName = runCatching { + context.packageManager.getPackageInfo(context.packageName, 0).versionName + }.getOrNull() + writeReportFile( + context.filesDir, + formatInterruptedStartupReport(lastCompletedStage, versionName) + ) + } + private fun writeCrashReport(context: Context, threadName: String, throwable: Throwable) { val directory = context.filesDir val stage = runCatching { @@ -99,6 +149,10 @@ internal object LaunchCrashDiagnostics { versionName = versionName, processId = Process.myPid() ) + writeReportFile(directory, report) + } + + private fun writeReportFile(directory: File, report: String) { val destination = File(directory, REPORT_NAME) val temporary = File(directory, REPORT_TEMP_NAME) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index 2cedf8c1..b92d4ad0 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -21,6 +21,19 @@ class LaunchCrashDiagnosticsTest { assertTrue(report.contains("0.2.0")) } + @Test + fun interruptionReportDoesNotPretendToContainAnExceptionStackTrace() { + val report = LaunchCrashDiagnostics.formatInterruptedStartupReport( + lastCompletedStage = "MainActivity.setContent returned", + versionName = "0.2.0" + ) + + assertTrue(report.contains("startup interrupted")) + assertTrue(report.contains("no uncaught Java/Kotlin exception was captured")) + assertTrue(report.contains("MainActivity.setContent returned")) + assertTrue(report.contains("This is not a Java/Kotlin stack trace.")) + } + @Test fun reportIsBoundedForSafeLocalDisplay() { val report = LaunchCrashDiagnostics.formatReport( From e865c60473a19809a71d916bc7792bfd6861537a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:34:55 +0530 Subject: [PATCH 004/175] test: avoid Android process APIs in report formatters --- .../com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index bd446194..45acd018 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -105,7 +105,8 @@ internal object LaunchCrashDiagnostics { internal fun formatInterruptedStartupReport( lastCompletedStage: String, - versionName: String? = null + versionName: String? = null, + processId: Int? = null ): String = buildString { appendLine("CurrentLens startup interruption report") appendLine("Timestamp: " + Instant.now().toString()) @@ -115,7 +116,7 @@ internal object LaunchCrashDiagnostics { appendLine("Device code: " + Build.DEVICE) appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") appendLine("Build fingerprint: " + Build.FINGERPRINT) - appendLine("Process id: " + runCatching { Process.myPid().toString() }.getOrDefault("unavailable")) + appendLine("Process id: " + (processId?.toString() ?: "unavailable")) appendLine("Report type: startup interrupted; no uncaught Java/Kotlin exception was captured") appendLine("Last completed startup stage: " + lastCompletedStage) appendLine() @@ -130,7 +131,7 @@ internal object LaunchCrashDiagnostics { }.getOrNull() writeReportFile( context.filesDir, - formatInterruptedStartupReport(lastCompletedStage, versionName) + formatInterruptedStartupReport(lastCompletedStage, versionName, Process.myPid()) ) } From d5e0bd8c42d1cec6f4707ef550340162493acc7c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:36:43 +0530 Subject: [PATCH 005/175] fix: keep startup diagnostics from aborting launch --- .../java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 45acd018..ce047aaf 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -64,7 +64,7 @@ internal object LaunchCrashDiagnostics { if (!reportFile.isFile && !previousStage.isNullOrBlank() && !previousStage.contains("First Compose frames completed") ) { - writeInterruptedStartupReport(context, previousStage) + runCatching { writeInterruptedStartupReport(context, previousStage) } } recordStage(context, "Application.attachBaseContext completed") } From 28a6950fe9e1c0e53f48deacc92cbcd7e89dc4e8 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:40:47 +0530 Subject: [PATCH 006/175] test: align interruption report assertion with wording --- .../com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index b92d4ad0..42f29316 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -31,7 +31,7 @@ class LaunchCrashDiagnosticsTest { assertTrue(report.contains("startup interrupted")) assertTrue(report.contains("no uncaught Java/Kotlin exception was captured")) assertTrue(report.contains("MainActivity.setContent returned")) - assertTrue(report.contains("This is not a Java/Kotlin stack trace.")) + assertTrue(report.contains("It is not a Java/Kotlin stack trace.")) } @Test From b66315c2f82f7785e7dfd96577d83d203770faad Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 17:49:39 +0530 Subject: [PATCH 007/175] fix: keep startup crash diagnostics best-effort --- .../currentlens/CurrentLensApplication.kt | 4 ++-- .../currentlens/LaunchCrashDiagnostics.kt | 24 +++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index 3d80a439..d60116ce 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -12,8 +12,8 @@ import android.content.Context class CurrentLensApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) - LaunchCrashDiagnostics.install(base) - LaunchCrashDiagnostics.beginStartup(base) + runCatching { LaunchCrashDiagnostics.install(base) } + runCatching { LaunchCrashDiagnostics.beginStartup(base) } } override fun onCreate() { diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index ce047aaf..72ed547f 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -56,17 +56,21 @@ internal object LaunchCrashDiagnostics { * that fact even when Android killed it without a Java/Kotlin exception. */ fun beginStartup(context: Context) { - val directory = context.applicationContext?.filesDir ?: context.filesDir - val previousStage = runCatching { - File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) - }.getOrNull() - val reportFile = File(directory, REPORT_NAME) - if (!reportFile.isFile && !previousStage.isNullOrBlank() && - !previousStage.contains("First Compose frames completed") - ) { - runCatching { writeInterruptedStartupReport(context, previousStage) } + // Diagnostics must never become a new launch blocker if app-private storage + // is unavailable or the device is in an unusual early-boot state. + runCatching { + val directory = context.applicationContext?.filesDir ?: context.filesDir + val previousStage = runCatching { + File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) + }.getOrNull() + val reportFile = File(directory, REPORT_NAME) + if (!reportFile.isFile && !previousStage.isNullOrBlank() && + !previousStage.contains("First Compose frames completed") + ) { + runCatching { writeInterruptedStartupReport(context, previousStage) } + } + recordStage(context, "Application.attachBaseContext completed") } - recordStage(context, "Application.attachBaseContext completed") } /** Record the last completed startup boundary for the next crash report. */ From 7d812292cf9a03512fe576af28c3f4bbb469e3ee Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:07:16 +0530 Subject: [PATCH 008/175] fix: stabilize startup rendering and consolidate network guards --- .github/workflows/build-apk.yml | 13 ++- app/build.gradle.kts | 6 +- .../currentlens/ArticleReaderRepository.kt | 58 ++++++++-- .../currentlens/CurrentLensApplication.kt | 10 ++ .../mangoloads/currentlens/NewsRepository.kt | 90 +++++++++++++--- .../currentlens/PublisherHostPolicy.kt | 29 ++++- .../currentlens/StartupRenderPolicy.kt | 15 +++ .../currentlens/PublisherHostPolicyTest.kt | 102 ++++++++++++++++++ .../currentlens/StartupRenderPolicyTest.kt | 20 ++++ 9 files changed, 308 insertions(+), 35 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 37197497..132a9199 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -2,7 +2,9 @@ name: Build Android APK on: push: - branches: [ main ] + branches: + - main + - fix/early-startup-crash-diagnostics-2026-11-06 permissions: contents: write @@ -64,18 +66,19 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.0-debug-apk + name: CurrentLens-v0.2.1-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 - name: Publish direct APK download in GitHub Releases + if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.0-build-${{ github.run_number }} - name: CurrentLens v0.2.0 (Build ${{ github.run_number }}) + tag_name: v0.2.1-build-${{ github.run_number }} + name: CurrentLens v0.2.1 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.0 testing build. + CurrentLens v0.2.1 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7f89445f..4924f9df 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,8 +11,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 2 - versionName = "0.2.0" + versionCode = 3 + versionName = "0.2.1" } compileOptions { @@ -36,7 +36,7 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0") implementation("org.jsoup:jsoup:1.23.2") - implementation("com.github.styropyr0:PrismalAGSL:v1.0.4") + implementation("com.github.styropyr0:PrismalAGSL:v1.0.6") testImplementation("junit:junit:4.13.2") diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleReaderRepository.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleReaderRepository.kt index bdbe7bc7..968e9223 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ArticleReaderRepository.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleReaderRepository.kt @@ -2,6 +2,7 @@ package com.mangoloads.currentlens import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext +import org.jsoup.Connection import org.jsoup.Jsoup import org.jsoup.nodes.Document import org.jsoup.safety.Safelist @@ -54,21 +55,18 @@ internal fun sanitizeArticleHtml(bodyHtml: String, baseUri: String): String? = r }.getOrNull() +private val PUBLISHER_REDIRECT_STATUS_CODES = setOf(301, 302, 303, 307, 308) + object ArticleReaderRepository { suspend fun extractAccessibleArticle(url: String, source: String): String? = withContext(Dispatchers.IO) { try { if (!PublisherHostPolicy.allows(source, url)) { null } else { - val response = Jsoup.connect(url) - .userAgent("CurrentLens/0.2 (Android; public article reader)") - .timeout(12_000) - .followRedirects(true) - .ignoreHttpErrors(true) - .maxBodySize(2 * 1024 * 1024) - .execute() - - if (response.statusCode() !in 200..299 || + val response = fetchAllowedPublisherResponse(url, source) + + if (response == null || + response.statusCode() !in 200..299 || !PublisherHostPolicy.allows(source, response.url().toExternalForm()) ) { null @@ -124,6 +122,48 @@ object ArticleReaderRepository { } } + private fun fetchAllowedPublisherResponse( + initialUrl: String, + source: String + ): Connection.Response? { + var currentUrl = initialUrl + var redirectsFollowed = 0 + + while (true) { + // Validate before every request. Automatic redirects are deliberately disabled. + if (!PublisherHostPolicy.allows(source, currentUrl)) return null + + val response = Jsoup.connect(currentUrl) + .userAgent("CurrentLens/0.2 (Android; public article reader)") + .timeout(12_000) + .followRedirects(false) + .ignoreHttpErrors(true) + .maxBodySize(2 * 1024 * 1024) + .execute() + + if (response.statusCode() in PUBLISHER_REDIRECT_STATUS_CODES) { + val location = response.header("Location")?.takeIf { it.isNotBlank() } ?: return null + val nextUrl = PublisherRedirectPolicy.resolveAllowedTarget( + source = source, + currentUrl = currentUrl, + location = location, + redirectsFollowed = redirectsFollowed + ) ?: return null + + currentUrl = nextUrl + redirectsFollowed += 1 + continue + } + + if (response.statusCode() !in 200..299 || + !PublisherHostPolicy.allows(source, response.url().toExternalForm()) + ) { + return null + } + return response + } + } + private fun findArticleBody(document: Document) = document.select( "article,[itemprop=articleBody],.articlebodycontent,.story_details,.article-body," + diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index d60116ce..2fc91ab4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -2,6 +2,8 @@ package com.mangoloads.currentlens import android.app.Application import android.content.Context +import android.os.Build +import com.styropyr0.prismal.PrismalGlass /** * Installs crash diagnostics before AndroidX Startup ContentProviders are created. @@ -12,6 +14,14 @@ import android.content.Context class CurrentLensApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) + // Disable the API 33+ AGSL renderer during launch stabilisation. Standard keeps + // RenderEffect blur while avoiding the Liquid/AGSL shader path on affected GPUs. + runCatching { + StartupRenderPolicy.overrideFor(Build.VERSION.SDK_INT)?.let { tier -> + PrismalGlass.pipelineOverride = tier + LaunchCrashDiagnostics.recordStage(base, "Prismal pipeline forced to " + tier.name) + } + } runCatching { LaunchCrashDiagnostics.install(base) } runCatching { LaunchCrashDiagnostics.beginStartup(base) } } diff --git a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt index 78abff22..3866f84a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt +++ b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt @@ -36,6 +36,8 @@ data class FeedSource( val weekendRead: Boolean = false ) +private val FEED_REDIRECT_STATUS_CODES = setOf(301, 302, 303, 307, 308) + object NewsRepository { private val feeds = listOf( // Section feeds precede broad feeds so duplicate URLs keep useful labels. @@ -64,26 +66,80 @@ object NewsRepository { .take(250) } - private fun fetchOne(source: FeedSource): List
= try { - val connection = (URL(source.url).openConnection() as HttpURLConnection).apply { - connectTimeout = 8000 - readTimeout = 10000 - requestMethod = "GET" - setRequestProperty("User-Agent", "CurrentLens/0.2 RSS reader") - setRequestProperty("Accept", "application/rss+xml, application/atom+xml, application/xml, text/xml") + private fun fetchOne(source: FeedSource): List
{ + return try { + val connection = openAllowedFeedConnection(source) ?: return emptyList() + try { + if (connection.contentLengthLong > NetworkLimits.MAX_RSS_BYTES) { + emptyList() + } else { + connection.inputStream.use { input -> + parse(source, NetworkLimits.readUtf8Limited(input, NetworkLimits.MAX_RSS_BYTES)) + } + } + } finally { + connection.disconnect() + } + } catch (_: Exception) { + emptyList() } - try { - val tooLarge = connection.contentLengthLong > NetworkLimits.MAX_RSS_BYTES - val status = if (tooLarge) -1 else connection.responseCode - if (tooLarge || status !in 200..299) emptyList() - else connection.inputStream.use { input -> - parse(source, NetworkLimits.readUtf8Limited(input, NetworkLimits.MAX_RSS_BYTES)) + } + + /** + * RSS feeds are network inputs too: disable automatic redirects and validate each + * destination against the feed's publisher before issuing the next request. + */ + private fun openAllowedFeedConnection(source: FeedSource): HttpURLConnection? { + var currentUrl = source.url + var redirectsFollowed = 0 + + while (true) { + if (!PublisherHostPolicy.allows(source.name, currentUrl)) return null + + val connection = (URL(currentUrl).openConnection() as HttpURLConnection).apply { + connectTimeout = 8000 + readTimeout = 10000 + requestMethod = "GET" + instanceFollowRedirects = false + setRequestProperty("User-Agent", "CurrentLens/0.2 RSS reader") + setRequestProperty( + "Accept", + "application/rss+xml, application/atom+xml, application/xml, text/xml" + ) } - } finally { - connection.disconnect() + + val status = try { + connection.responseCode + } catch (error: Exception) { + connection.disconnect() + throw error + } + + if (status in FEED_REDIRECT_STATUS_CODES) { + val nextUrl = connection.getHeaderField("Location")?.let { location -> + PublisherRedirectPolicy.resolveAllowedTarget( + source = source.name, + currentUrl = currentUrl, + location = location, + redirectsFollowed = redirectsFollowed + ) + } + connection.disconnect() + if (nextUrl == null) return null + currentUrl = nextUrl + redirectsFollowed += 1 + continue + } + + if (status !in 200..299 || + !PublisherHostPolicy.allows(source.name, connection.url.toExternalForm()) + ) { + connection.disconnect() + return null + } + + return connection } - } catch (_: Exception) { - emptyList() } private fun clean(value: String): String = diff --git a/app/src/main/java/com/mangoloads/currentlens/PublisherHostPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/PublisherHostPolicy.kt index 79f0fd9e..696905dd 100644 --- a/app/src/main/java/com/mangoloads/currentlens/PublisherHostPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/PublisherHostPolicy.kt @@ -11,7 +11,7 @@ internal object PublisherHostPolicy { private val domains = mapOf( "the hindu" to setOf("thehindu.com"), "indian express" to setOf("indianexpress.com"), - "bbc" to setOf("bbc.com", "bbc.co.uk"), + "bbc" to setOf("bbc.com", "bbc.co.uk", "bbci.co.uk"), "dw" to setOf("dw.com"), "al jazeera" to setOf("aljazeera.com") ) @@ -20,7 +20,34 @@ internal object PublisherHostPolicy { val permitted = domains[source.trim().lowercase(Locale.ROOT)] ?: return false val uri = runCatching { URI(url) }.getOrNull() ?: return false if (!uri.scheme.equals("https", ignoreCase = true) || uri.userInfo != null) return false + if (uri.port != -1 && uri.port != 443) return false val host = uri.host?.lowercase(Locale.ROOT)?.trimEnd('.') ?: return false return permitted.any { domain -> host == domain || host.endsWith(".$domain") } } } + + +/** + * Resolves a redirect only when the next request remains inside the same publisher + * allowlist. Callers must use the returned URL before issuing the next network request. + */ +internal object PublisherRedirectPolicy { + const val MAX_REDIRECTS = 5 + + fun resolveAllowedTarget( + source: String, + currentUrl: String, + location: String, + redirectsFollowed: Int + ): String? { + if (redirectsFollowed < 0 || redirectsFollowed >= MAX_REDIRECTS || location.isBlank()) { + return null + } + if (!PublisherHostPolicy.allows(source, currentUrl)) return null + + val base = runCatching { URI(currentUrl) }.getOrNull() ?: return null + val reference = runCatching { URI(location.trim()) }.getOrNull() ?: return null + val target = runCatching { base.resolve(reference).toASCIIString() }.getOrNull() ?: return null + return target.takeIf { PublisherHostPolicy.allows(source, it) } + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt new file mode 100644 index 00000000..989f5dce --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt @@ -0,0 +1,15 @@ +package com.mangoloads.currentlens + +import com.styropyr0.prismal.PrismalGlassPipeline + +/** + * Startup renderer safety policy. + * + * API 33+ devices default to Prismal's Liquid/AGSL tier. During launch stabilisation, + * force Standard so blur remains available through RenderEffect but AGSL shaders are + * not selected or initialised. Older devices retain their normal automatic tier. + */ +internal object StartupRenderPolicy { + fun overrideFor(apiLevel: Int): PrismalGlassPipeline? = + if (apiLevel >= 33) PrismalGlassPipeline.Standard else null +} diff --git a/app/src/test/java/com/mangoloads/currentlens/PublisherHostPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/PublisherHostPolicyTest.kt index 7fccd679..ca52e593 100644 --- a/app/src/test/java/com/mangoloads/currentlens/PublisherHostPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/PublisherHostPolicyTest.kt @@ -1,6 +1,8 @@ package com.mangoloads.currentlens +import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse +import org.junit.Assert.assertNull import org.junit.Assert.assertTrue import org.junit.Test @@ -14,6 +16,106 @@ class PublisherHostPolicyTest { assertTrue(PublisherHostPolicy.allows("Al Jazeera", "https://www.aljazeera.com/news/story")) } + @Test + fun allowsConfiguredRssFeedHostsIncludingTheOfficialBbcFeedHost() { + val feeds = listOf( + "The Hindu" to "https://www.thehindu.com/business/Economy/feeder/default.rss", + "Indian Express" to "https://indianexpress.com/section/india/feed/", + "BBC" to "https://feeds.bbci.co.uk/news/world/rss.xml", + "DW" to "https://rss.dw.com/rdf/rss-en-all", + "Al Jazeera" to "https://www.aljazeera.com/xml/rss/all.xml" + ) + + feeds.forEach { (source, url) -> + assertTrue("$source feed host should be allowed", PublisherHostPolicy.allows(source, url)) + } + } + + @Test + fun resolvesRelativeRedirectsOnTheOfficialBbcFeedHost() { + assertEquals( + "https://feeds.bbci.co.uk/news/world/rss-v2.xml", + PublisherRedirectPolicy.resolveAllowedTarget( + source = "BBC", + currentUrl = "https://feeds.bbci.co.uk/news/world/rss.xml", + location = "rss-v2.xml", + redirectsFollowed = 0 + ) + ) + } + + @Test + fun rejectsOffPublisherRssRedirectsBeforeFollowing() { + val current = "https://feeds.bbci.co.uk/news/world/rss.xml" + listOf( + "https://attacker.example/collect", + "http://feeds.bbci.co.uk/news/world/rss.xml", + "https://feeds.bbci.co.uk.attacker.test/rss.xml", + "https://user@feeds.bbci.co.uk/rss.xml", + "https://feeds.bbci.co.uk:8443/rss.xml" + ).forEach { location -> + assertNull( + PublisherRedirectPolicy.resolveAllowedTarget( + source = "BBC", + currentUrl = current, + location = location, + redirectsFollowed = 0 + ) + ) + } + } + + @Test + fun rejectsNonDefaultHttpsPorts() { + assertFalse(PublisherHostPolicy.allows("The Hindu", "https://www.thehindu.com:8443/news/story")) + assertTrue(PublisherHostPolicy.allows("The Hindu", "https://www.thehindu.com:443/news/story")) + } + + @Test + fun resolvesRelativeRedirectsInsideTheSamePublisher() { + assertEquals( + "https://www.thehindu.com/news/next", + PublisherRedirectPolicy.resolveAllowedTarget( + source = "The Hindu", + currentUrl = "https://www.thehindu.com/news/story", + location = "next", + redirectsFollowed = 0 + ) + ) + } + + @Test + fun rejectsOffHostDowngradeLookalikeAndCredentialRedirectsBeforeFollowing() { + val current = "https://www.thehindu.com/news/story" + listOf( + "https://attacker.example/collect", + "http://www.thehindu.com/news/story", + "https://thehindu.com.attacker.test/story", + "https://user@www.thehindu.com/story" + ).forEach { location -> + assertNull( + PublisherRedirectPolicy.resolveAllowedTarget( + source = "The Hindu", + currentUrl = current, + location = location, + redirectsFollowed = 0 + ) + ) + } + } + + @Test + fun stopsFollowingAfterFiveRedirects() { + assertNull( + PublisherRedirectPolicy.resolveAllowedTarget( + source = "The Hindu", + currentUrl = "https://www.thehindu.com/news/story", + location = "next", + redirectsFollowed = PublisherRedirectPolicy.MAX_REDIRECTS + ) + ) + } + @Test fun rejectsLookalikeHostsWrongPublishersAndUnsafeSchemes() { assertFalse(PublisherHostPolicy.allows("The Hindu", "https://thehindu.com.attacker.test/story")) diff --git a/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt new file mode 100644 index 00000000..7bf72443 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt @@ -0,0 +1,20 @@ +package com.mangoloads.currentlens + +import com.styropyr0.prismal.PrismalGlassPipeline +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNull +import org.junit.Test + +class StartupRenderPolicyTest { + @Test + fun android13AndNewerUseStandardRendererDuringStabilisation() { + assertEquals(PrismalGlassPipeline.Standard, StartupRenderPolicy.overrideFor(33)) + assertEquals(PrismalGlassPipeline.Standard, StartupRenderPolicy.overrideFor(35)) + } + + @Test + fun olderAndroidVersionsKeepTheirNativePipelineSelection() { + assertNull(StartupRenderPolicy.overrideFor(32)) + assertNull(StartupRenderPolicy.overrideFor(26)) + } +} From 319105b1bcccf75b7eae4543e18452066b604b33 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:09:44 +0530 Subject: [PATCH 009/175] fix: correct activity receiver in startup recovery screen --- .../java/com/mangoloads/currentlens/MainActivity.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 81550cc9..de00c812 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -289,6 +289,7 @@ class MainActivity : ComponentActivity() { * the Prismal graphics pipeline caused the preceding startup failure. */ private fun MainActivity.showCrashRecoveryScreen(report: String) { + val activity = this val density = resources.displayMetrics.density fun dp(value: Int): Int = (value * density).toInt() @@ -336,13 +337,13 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { val copyButton = android.widget.Button(this).apply { text = "Copy crash report" setOnClickListener { - val clipboard = getSystemService(android.content.Context.CLIPBOARD_SERVICE) + val clipboard = activity.getSystemService(android.content.Context.CLIPBOARD_SERVICE) as? android.content.ClipboardManager clipboard?.setPrimaryClip( android.content.ClipData.newPlainText("brrrNews crash report", report) ) android.widget.Toast.makeText( - this@MainActivity, + activity, "Crash report copied", android.widget.Toast.LENGTH_LONG ).show() @@ -351,8 +352,8 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { val retryButton = android.widget.Button(this).apply { text = "Try normal launch" setOnClickListener { - LaunchCrashDiagnostics.clear(this@MainActivity) - recreate() + LaunchCrashDiagnostics.clear(activity) + activity.recreate() } } actions.addView(copyButton, android.widget.LinearLayout.LayoutParams(0, dp(54), 1f)) @@ -3100,7 +3101,7 @@ private fun DefinitionGlassOverlay( onCopy = { definition?.let { current -> val copiedText = DictionaryMeaningPolicy.copyText(word, current.meanings, current.synonyms) - val clipboard = context.getSystemService(android.content.Context.CLIPBOARD_SERVICE) + val clipboard = context.activity.getSystemService(android.content.Context.CLIPBOARD_SERVICE) as? android.content.ClipboardManager clipboard?.setPrimaryClip(android.content.ClipData.newPlainText("Definition of $word", copiedText)) android.widget.Toast.makeText(context, "Definition copied", android.widget.Toast.LENGTH_SHORT).show() From 30da801a5f659839f8695fc9135474bf8ddcb2d4 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:11:48 +0530 Subject: [PATCH 010/175] fix: keep activity context edits scoped to recovery UI --- app/src/main/java/com/mangoloads/currentlens/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index de00c812..f7758b6c 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -3101,7 +3101,7 @@ private fun DefinitionGlassOverlay( onCopy = { definition?.let { current -> val copiedText = DictionaryMeaningPolicy.copyText(word, current.meanings, current.synonyms) - val clipboard = context.activity.getSystemService(android.content.Context.CLIPBOARD_SERVICE) + val clipboard = context.getSystemService(android.content.Context.CLIPBOARD_SERVICE) as? android.content.ClipboardManager clipboard?.setPrimaryClip(android.content.ClipData.newPlainText("Definition of $word", copiedText)) android.widget.Toast.makeText(context, "Definition copied", android.widget.Toast.LENGTH_SHORT).show() From e7636971b0507c462e5503da8a4c50ae4acf7247 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:17:45 +0530 Subject: [PATCH 011/175] build: make stability APK install alongside existing app --- .github/workflows/build-apk.yml | 9 ++++++++- app/build.gradle.kts | 12 ++++++++++++ app/src/main/AndroidManifest.xml | 2 +- .../mangoloads/currentlens/LaunchCrashDiagnostics.kt | 12 +++++++----- .../currentlens/LaunchCrashDiagnosticsTest.kt | 10 ++++++++++ 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 132a9199..23f865e7 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -61,7 +61,14 @@ jobs: test -s app/src/main/assets/wordnet.db - name: Compile APK - run: gradle --no-daemon --stacktrace :app:testDebugUnitTest :app:assembleDebug + shell: bash + run: | + set -euo pipefail + if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then + gradle --no-daemon --stacktrace :app:testDebugUnitTest :app:assembleDebug + else + gradle --no-daemon --stacktrace -PstabilityTest=true :app:testDebugUnitTest :app:assembleDebug + fi - name: Upload installable APK artifact uses: actions/upload-artifact@v4 diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4924f9df..e2eeeffb 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,5 @@ +val stabilityTestBuild = providers.gradleProperty("stabilityTest").orNull == "true" + plugins { id("com.android.application") id("org.jetbrains.kotlin.plugin.compose") @@ -13,6 +15,16 @@ android { targetSdk = 35 versionCode = 3 versionName = "0.2.1" + manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" + } + + buildTypes { + getByName("debug") { + if (stabilityTestBuild) { + applicationIdSuffix = ".stability" + versionNameSuffix = "-stability" + } + } } compileOptions { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bec0a68d..1d8eef15 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -4,7 +4,7 @@ Date: Fri, 6 Nov 2026 18:18:57 +0530 Subject: [PATCH 012/175] fix: correct stability build configuration and diagnostic package id --- app/build.gradle.kts | 4 ++-- .../java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e2eeeffb..3fdcae97 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,10 +1,10 @@ -val stabilityTestBuild = providers.gradleProperty("stabilityTest").orNull == "true" - plugins { id("com.android.application") id("org.jetbrains.kotlin.plugin.compose") } +val stabilityTestBuild = providers.gradleProperty("stabilityTest").orNull == "true" + android { namespace = "com.mangoloads.currentlens" compileSdk = 37 diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index fea169d2..58f16dfb 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -182,7 +182,8 @@ internal object LaunchCrashDiagnostics { throwable: Throwable, lastCompletedStage: String? = null, versionName: String? = null, - processId: Int? = null + processId: Int? = null, + packageName: String = "com.mangoloads.currentlens" ): String { val writer = StringWriter() throwable.printStackTrace(PrintWriter(writer)) From 7ef1e04f0cb433417a0e1a89efaaca219a33628f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:29:24 +0530 Subject: [PATCH 013/175] Fix startup diagnostic stage ordering --- .../com/mangoloads/currentlens/CurrentLensApplication.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index 2fc91ab4..8d938a5a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -14,6 +14,12 @@ import com.styropyr0.prismal.PrismalGlass class CurrentLensApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) + // Install diagnostics and inspect the PREVIOUS process before writing any + // stage belonging to this process. Reversing this order creates a false + // interruption report on every cold start. + runCatching { LaunchCrashDiagnostics.install(base) } + runCatching { LaunchCrashDiagnostics.beginStartup(base) } + // Disable the API 33+ AGSL renderer during launch stabilisation. Standard keeps // RenderEffect blur while avoiding the Liquid/AGSL shader path on affected GPUs. runCatching { @@ -22,8 +28,6 @@ class CurrentLensApplication : Application() { LaunchCrashDiagnostics.recordStage(base, "Prismal pipeline forced to " + tier.name) } } - runCatching { LaunchCrashDiagnostics.install(base) } - runCatching { LaunchCrashDiagnostics.beginStartup(base) } } override fun onCreate() { From 7cc622acdb18b5cf61dbd81d90759a1c76ac88cb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:48:07 +0530 Subject: [PATCH 014/175] Capture Android historical process exit diagnostics --- .../currentlens/LaunchCrashDiagnostics.kt | 163 ++++++++++++++++-- 1 file changed, 151 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 58f16dfb..70b0f594 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -1,8 +1,12 @@ package com.mangoloads.currentlens +import android.app.ActivityManager +import android.app.ApplicationExitInfo import android.content.Context import android.os.Build import android.os.Process +import android.util.Base64 +import java.io.ByteArrayOutputStream import java.io.File import java.io.FileOutputStream import java.io.PrintWriter @@ -17,6 +21,7 @@ import kotlin.system.exitProcess */ internal object LaunchCrashDiagnostics { const val MAX_REPORT_CHARS = 30_000 + private const val MAX_TRACE_BYTES = 8192 private const val REPORT_NAME = "currentlens-last-crash.txt" private const val REPORT_TEMP_NAME = "currentlens-last-crash.tmp" private const val STAGE_NAME = "currentlens-last-startup-stage.txt" @@ -56,18 +61,36 @@ internal object LaunchCrashDiagnostics { * that fact even when Android killed it without a Java/Kotlin exception. */ fun beginStartup(context: Context) { - // Diagnostics must never become a new launch blocker if app-private storage - // is unavailable or the device is in an unusual early-boot state. + // Read the previous process state before recording anything for this process. + // The 0.2.1-stability build wrote its own renderer stage before this check; + // remove only the deterministic false-positive report produced by that order. runCatching { val directory = context.applicationContext?.filesDir ?: context.filesDir + val stageFile = File(directory, STAGE_NAME) val previousStage = runCatching { - File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) + stageFile.takeIf { it.isFile }?.readText(Charsets.UTF_8) }.getOrNull() val reportFile = File(directory, REPORT_NAME) - if (!reportFile.isFile && !previousStage.isNullOrBlank() && - !previousStage.contains("First Compose frames completed") + if (reportFile.isFile && isKnownLegacyFalsePositive( + runCatching { reportFile.readText(Charsets.UTF_8) }.getOrDefault("") + ) ) { - runCatching { writeInterruptedStartupReport(context, previousStage) } + reportFile.delete() + } + + val previousPid = processIdFromStage(previousStage) + val exitInfo = findPreviousExitInfo(context, previousPid) + val priorLaunchIncomplete = !previousStage.isNullOrBlank() && + !previousStage.contains("First Compose frames completed") && + !isLegacyMisorderedRendererStage(previousStage) + val recentCrash = exitInfo?.let { + val age = System.currentTimeMillis() - it.timestamp + age in 0..(15 * 60 * 1000L) && isCrashLikeExit(it.reason) + } == true + + if (!reportFile.isFile && (priorLaunchIncomplete || recentCrash)) { + val stage = previousStage ?: "No previous startup stage was persisted" + runCatching { writeInterruptedStartupReport(context, stage, exitInfo) } } recordStage(context, "Application.attachBaseContext completed") } @@ -78,7 +101,10 @@ internal object LaunchCrashDiagnostics { if (stage.isBlank()) return runCatching { File((context.applicationContext ?: context).filesDir, STAGE_NAME) - .writeText(Instant.now().toString() + " | " + stage.take(240), Charsets.UTF_8) + .writeText( + Instant.now().toString() + " | pid=" + Process.myPid() + " | " + stage.take(240), + Charsets.UTF_8 + ) } } @@ -111,7 +137,9 @@ internal object LaunchCrashDiagnostics { lastCompletedStage: String, versionName: String? = null, processId: Int? = null, - packageName: String = "com.mangoloads.currentlens" + packageName: String = "com.mangoloads.currentlens", + systemExitSummary: String? = null, + nativeTraceBase64: String? = null ): String = buildString { appendLine("CurrentLens startup interruption report") appendLine("Timestamp: " + Instant.now().toString()) @@ -125,21 +153,132 @@ internal object LaunchCrashDiagnostics { appendLine("Report type: startup interrupted; no uncaught Java/Kotlin exception was captured") appendLine("Last completed startup stage: " + lastCompletedStage) appendLine() + if (!systemExitSummary.isNullOrBlank()) { + appendLine("Android historical process-exit record:") + appendLine(systemExitSummary) + } else { + appendLine("Android historical process-exit record: unavailable") + } + if (!nativeTraceBase64.isNullOrBlank()) { + appendLine() + appendLine("Android system trace (Base64; first 8192 bytes only):") + appendLine(nativeTraceBase64) + } + appendLine() appendLine("The previous process ended before confirming the first stable Compose frames.") - appendLine("This can indicate a native/render-thread crash, abrupt process termination,") - appendLine("or a force-stop during launch. It is not a Java/Kotlin stack trace.") + appendLine("Use the Android process-exit reason above to distinguish a Java crash, native crash,") + appendLine("ANR, signal, low-memory termination, or user/system stop.") }.take(MAX_REPORT_CHARS) - private fun writeInterruptedStartupReport(context: Context, lastCompletedStage: String) { + private fun writeInterruptedStartupReport( + context: Context, + lastCompletedStage: String, + exitInfo: ApplicationExitInfo? + ) { val versionName = runCatching { context.packageManager.getPackageInfo(context.packageName, 0).versionName }.getOrNull() writeReportFile( context.filesDir, - formatInterruptedStartupReport(lastCompletedStage, versionName, Process.myPid(), context.packageName) + formatInterruptedStartupReport( + lastCompletedStage = lastCompletedStage, + versionName = versionName, + processId = Process.myPid(), + packageName = context.packageName, + systemExitSummary = exitInfo?.let(::describeExitInfo), + nativeTraceBase64 = exitInfo?.let(::readExitTraceBase64) + ) ) } + private fun processIdFromStage(stage: String?): Int? = + stage?.split("|")?.getOrNull(1)?.trim()?.removePrefix("pid=")?.toIntOrNull() + + private fun isLegacyMisorderedRendererStage(stage: String): Boolean { + val hasPid = stage.split("|").any { it.trim().startsWith("pid=") } + return !hasPid && stage.trimEnd().endsWith("Prismal pipeline forced to Standard") + } + + private fun isKnownLegacyFalsePositive(report: String): Boolean { + val lines = report.lineSequence().toList() + return lines.contains("App: 0.2.1-stability") && + lines.contains("Package: com.mangoloads.currentlens.stability") && + lines.any { + it.startsWith("Last completed startup stage: ") && + it.endsWith(" | Prismal pipeline forced to Standard") + } + } + + private fun findPreviousExitInfo(context: Context, previousPid: Int?): ApplicationExitInfo? { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) return null + return runCatching { + val manager = context.getSystemService(Context.ACTIVITY_SERVICE) as? ActivityManager + ?: return@runCatching null + manager.getHistoricalProcessExitReasons(context.packageName, previousPid ?: 0, 5) + .firstOrNull { previousPid == null || it.pid == previousPid } + }.getOrNull() + } + + private fun isCrashLikeExit(reason: Int): Boolean = when (reason) { + ApplicationExitInfo.REASON_CRASH, + ApplicationExitInfo.REASON_CRASH_NATIVE, + ApplicationExitInfo.REASON_ANR, + ApplicationExitInfo.REASON_INITIALIZATION_FAILURE, + ApplicationExitInfo.REASON_SIGNALED -> true + else -> false + } + + private fun describeExitInfo(info: ApplicationExitInfo): String = buildString { + appendLine("Reason: " + exitReasonName(info.reason) + " (" + info.reason + ")") + appendLine("Timestamp: " + Instant.ofEpochMilli(info.timestamp).toString()) + appendLine("PID: " + info.pid + " | Process: " + info.processName) + appendLine("Status/signal: " + info.status) + appendLine("Importance: " + info.importance) + appendLine("PSS/RSS: " + info.pss + " KB / " + info.rss + " KB") + if (!info.description.isNullOrBlank()) { + appendLine("System description: " + info.description.take(1000)) + } + }.trimEnd() + + private fun exitReasonName(reason: Int): String = when (reason) { + ApplicationExitInfo.REASON_UNKNOWN -> "UNKNOWN" + ApplicationExitInfo.REASON_EXIT_SELF -> "EXIT_SELF" + ApplicationExitInfo.REASON_SIGNALED -> "SIGNALED" + ApplicationExitInfo.REASON_LOW_MEMORY -> "LOW_MEMORY" + ApplicationExitInfo.REASON_CRASH -> "CRASH" + ApplicationExitInfo.REASON_CRASH_NATIVE -> "CRASH_NATIVE" + ApplicationExitInfo.REASON_ANR -> "ANR" + ApplicationExitInfo.REASON_INITIALIZATION_FAILURE -> "INITIALIZATION_FAILURE" + ApplicationExitInfo.REASON_PERMISSION_CHANGE -> "PERMISSION_CHANGE" + ApplicationExitInfo.REASON_EXCESSIVE_RESOURCE_USAGE -> "EXCESSIVE_RESOURCE_USAGE" + ApplicationExitInfo.REASON_USER_REQUESTED -> "USER_REQUESTED" + ApplicationExitInfo.REASON_USER_STOPPED -> "USER_STOPPED" + ApplicationExitInfo.REASON_DEPENDENCY_DIED -> "DEPENDENCY_DIED" + ApplicationExitInfo.REASON_OTHER -> "OTHER" + else -> "UNKNOWN_OR_NEWER_REASON" + } + + private fun readExitTraceBase64(info: ApplicationExitInfo): String? { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return null + return runCatching { + val input = info.traceInputStream ?: return@runCatching null + input.use { stream -> + val output = ByteArrayOutputStream() + val buffer = ByteArray(1024) + var total = 0 + while (total < MAX_TRACE_BYTES) { + val count = stream.read(buffer, 0, minOf(buffer.size, MAX_TRACE_BYTES - total)) + if (count <= 0) break + output.write(buffer, 0, count) + total += count + } + val truncated = stream.read() != -1 + Base64.encodeToString(output.toByteArray(), Base64.NO_WRAP) + + if (truncated) "\\n[trace truncated]" else "" + } + }.getOrNull() + } + private fun writeCrashReport(context: Context, threadName: String, throwable: Throwable) { val directory = context.filesDir val stage = runCatching { From 8622ca4789f5794dcd30abeaac76ba32c0e817f3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:48:43 +0530 Subject: [PATCH 015/175] Expose startup diagnostic parsing for unit tests --- .../com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 70b0f594..b7d02ad0 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -191,15 +191,15 @@ internal object LaunchCrashDiagnostics { ) } - private fun processIdFromStage(stage: String?): Int? = + internal fun processIdFromStage(stage: String?): Int? = stage?.split("|")?.getOrNull(1)?.trim()?.removePrefix("pid=")?.toIntOrNull() - private fun isLegacyMisorderedRendererStage(stage: String): Boolean { + internal fun isLegacyMisorderedRendererStage(stage: String): Boolean { val hasPid = stage.split("|").any { it.trim().startsWith("pid=") } return !hasPid && stage.trimEnd().endsWith("Prismal pipeline forced to Standard") } - private fun isKnownLegacyFalsePositive(report: String): Boolean { + internal fun isKnownLegacyFalsePositive(report: String): Boolean { val lines = report.lineSequence().toList() return lines.contains("App: 0.2.1-stability") && lines.contains("Package: com.mangoloads.currentlens.stability") && @@ -274,7 +274,7 @@ internal object LaunchCrashDiagnostics { } val truncated = stream.read() != -1 Base64.encodeToString(output.toByteArray(), Base64.NO_WRAP) + - if (truncated) "\\n[trace truncated]" else "" + if (truncated) " [trace truncated]" else "" } }.getOrNull() } From c6aee45ec08c56684a60a78e834ff1b86739f427 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:48:57 +0530 Subject: [PATCH 016/175] Test Android exit history and legacy startup report handling --- .../currentlens/LaunchCrashDiagnosticsTest.kt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index 4f6a9db1..a6123d23 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -1,5 +1,7 @@ package com.mangoloads.currentlens +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test @@ -44,6 +46,48 @@ class LaunchCrashDiagnosticsTest { assertTrue(report.contains("It is not a Java/Kotlin stack trace.")) } + @Test + fun interruptionReportIncludesAndroidExitReasonAndAvailableTrace() { + val report = LaunchCrashDiagnostics.formatInterruptedStartupReport( + lastCompletedStage = "MainActivity.onCreate entered", + systemExitSummary = "Reason: CRASH_NATIVE (5)", + nativeTraceBase64 = "AQID" + ) + + assertTrue(report.contains("Android historical process-exit record:")) + assertTrue(report.contains("Reason: CRASH_NATIVE")) + assertTrue(report.contains("AQID")) + } + + @Test + fun newStartupStageStoresPidAndCanBeParsed() { + val stage = "2026-11-06T12:00:00Z | pid=29860 | MainActivity.onCreate entered" + assertEquals(29860, LaunchCrashDiagnostics.processIdFromStage(stage)) + } + + @Test + fun legacyRendererStageWithoutPidIsRecognizedAsMisordered() { + val legacy = "2026-11-06T12:00:00Z | Prismal pipeline forced to Standard" + val current = "2026-11-06T12:00:00Z | pid=29860 | Prismal pipeline forced to Standard" + + assertTrue(LaunchCrashDiagnostics.isLegacyMisorderedRendererStage(legacy)) + assertFalse(LaunchCrashDiagnostics.isLegacyMisorderedRendererStage(current)) + } + + @Test + fun onlyKnown021RendererReportIsSuppressed() { + val report = """ + CurrentLens startup interruption report + App: 0.2.1-stability + Package: com.mangoloads.currentlens.stability + Last completed startup stage: 2026-11-06T12:57:34.848827Z | Prismal pipeline forced to Standard + """.trimIndent() + val unrelated = report.replace("0.2.1-stability", "0.2.2-stability") + + assertTrue(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(report)) + assertFalse(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(unrelated)) + } + @Test fun reportIsBoundedForSafeLocalDisplay() { val report = LaunchCrashDiagnostics.formatReport( From e144b83f8f597a4ceb3b9a1526aa5a70f0cfac86 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:49:03 +0530 Subject: [PATCH 017/175] Version startup diagnostics test build 0.2.2 --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3fdcae97..a42f18e4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 3 - versionName = "0.2.1" + versionCode = 4 + versionName = "0.2.2" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" } From 233668d8823444ddc20e68f8cbcba3b3e69c3df3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:49:14 +0530 Subject: [PATCH 018/175] Label startup diagnostics build as v0.2.2 --- .github/workflows/build-apk.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 23f865e7..b92267f3 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -73,7 +73,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.1-stability-debug-apk + name: CurrentLens-v0.2.2-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -82,10 +82,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.1-build-${{ github.run_number }} - name: CurrentLens v0.2.1 (Build ${{ github.run_number }}) + tag_name: v0.2.2-build-${{ github.run_number }} + name: CurrentLens v0.2.2 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.1 testing build. + CurrentLens v0.2.2 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. From 663cc08a6de607b7ede941b193ca0f7bf76a38ee Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:49:39 +0530 Subject: [PATCH 019/175] Clarify startup interruption is not a Java stack trace --- .../java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index b7d02ad0..6ed19da9 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -168,6 +168,7 @@ internal object LaunchCrashDiagnostics { appendLine("The previous process ended before confirming the first stable Compose frames.") appendLine("Use the Android process-exit reason above to distinguish a Java crash, native crash,") appendLine("ANR, signal, low-memory termination, or user/system stop.") + appendLine("This is not a Java/Kotlin stack trace unless a separate exception report says so.") }.take(MAX_REPORT_CHARS) private fun writeInterruptedStartupReport( From f6e4aa15ee4b5300e7333c7151140583c5586009 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:51:31 +0530 Subject: [PATCH 020/175] Fix nullable Android exit description formatting --- .../java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 6ed19da9..d464fc8b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -236,8 +236,8 @@ internal object LaunchCrashDiagnostics { appendLine("Status/signal: " + info.status) appendLine("Importance: " + info.importance) appendLine("PSS/RSS: " + info.pss + " KB / " + info.rss + " KB") - if (!info.description.isNullOrBlank()) { - appendLine("System description: " + info.description.take(1000)) + info.description?.take(1000)?.let { + appendLine("System description: " + it) } }.trimEnd() From d6b3af846c032846e7582c748c03490d331335a3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:52:17 +0530 Subject: [PATCH 021/175] Restrict legacy false-positive cleanup to interruption reports --- .../com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index d464fc8b..66e4cc9d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -168,7 +168,7 @@ internal object LaunchCrashDiagnostics { appendLine("The previous process ended before confirming the first stable Compose frames.") appendLine("Use the Android process-exit reason above to distinguish a Java crash, native crash,") appendLine("ANR, signal, low-memory termination, or user/system stop.") - appendLine("This is not a Java/Kotlin stack trace unless a separate exception report says so.") + appendLine("It is not a Java/Kotlin stack trace.") }.take(MAX_REPORT_CHARS) private fun writeInterruptedStartupReport( @@ -202,7 +202,11 @@ internal object LaunchCrashDiagnostics { internal fun isKnownLegacyFalsePositive(report: String): Boolean { val lines = report.lineSequence().toList() - return lines.contains("App: 0.2.1-stability") && + return lines.contains("CurrentLens startup interruption report") && + lines.contains( + "Report type: startup interrupted; no uncaught Java/Kotlin exception was captured" + ) && + lines.contains("App: 0.2.1-stability") && lines.contains("Package: com.mangoloads.currentlens.stability") && lines.any { it.startsWith("Last completed startup stage: ") && From c34ba38c11a1a2e7ec469f04bb45b33d725515b3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:52:37 +0530 Subject: [PATCH 022/175] Protect genuine exception reports from legacy cleanup --- .../mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index a6123d23..ca8f264a 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -80,12 +80,21 @@ class LaunchCrashDiagnosticsTest { CurrentLens startup interruption report App: 0.2.1-stability Package: com.mangoloads.currentlens.stability + Report type: startup interrupted; no uncaught Java/Kotlin exception was captured Last completed startup stage: 2026-11-06T12:57:34.848827Z | Prismal pipeline forced to Standard """.trimIndent() val unrelated = report.replace("0.2.1-stability", "0.2.2-stability") + val genuineExceptionReport = report + .replace("CurrentLens startup interruption report", "CurrentLens local startup crash report") + .replace( + "Report type: startup interrupted; no uncaught Java/Kotlin exception was captured", + "Exception: java.lang.IllegalStateException" + ) + assertTrue(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(report)) assertFalse(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(unrelated)) + assertFalse(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(genuineExceptionReport)) } @Test From 4adef92daf31bc0c6be4e24fc678201562102489 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 18:57:59 +0530 Subject: [PATCH 023/175] Persist stability APK debug signing key across CI runs --- .github/workflows/build-apk.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index b92267f3..e8a55aed 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -33,6 +33,12 @@ jobs: with: packages: platform-tools + - name: Restore stable debug signing key for repeatable test APK updates + uses: actions/cache@v4 + with: + path: ~/.android/debug.keystore + key: currentlens-stability-debug-signing-v1 + - name: Install Android platform run: | yes | sdkmanager --licenses From d0446cde7522109abd8d3bbf4802742e4643e5f0 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 19:01:31 +0530 Subject: [PATCH 024/175] Use a dedicated signer for Stability test APKs --- app/build.gradle.kts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a42f18e4..e02d854c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -18,11 +18,23 @@ android { manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" } + signingConfigs { + if (stabilityTestBuild) { + create("stability") { + storeFile = rootProject.file(".ci/stability-debug.keystore") + storePassword = "currentlens-stability-test-only" + keyAlias = "currentlens-stability" + keyPassword = "currentlens-stability-test-only" + } + } + } + buildTypes { getByName("debug") { if (stabilityTestBuild) { applicationIdSuffix = ".stability" versionNameSuffix = "-stability" + signingConfig = signingConfigs.getByName("stability") } } } From d8e3e60cb90b546c58e1475e1bb306c1a7c2e4cc Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 19:01:34 +0530 Subject: [PATCH 025/175] Generate and cache dedicated Stability APK signing key --- .github/workflows/build-apk.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index e8a55aed..f09ccdbc 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -33,11 +33,26 @@ jobs: with: packages: platform-tools - - name: Restore stable debug signing key for repeatable test APK updates + - name: Restore stable Stability test signing key + id: stability-signing-cache uses: actions/cache@v4 with: - path: ~/.android/debug.keystore - key: currentlens-stability-debug-signing-v1 + path: .ci/stability-debug.keystore + key: currentlens-stability-debug-keystore-v1 + + - name: Generate Stability test signing key on cache miss + if: steps.stability-signing-cache.outputs.cache-hit != 'true' + run: | + set -euo pipefail + mkdir -p .ci + keytool -genkeypair -noprompt -v \\ + -keystore .ci/stability-debug.keystore \\ + -storetype JKS \\ + -storepass currentlens-stability-test-only \\ + -keypass currentlens-stability-test-only \\ + -alias currentlens-stability \\ + -keyalg RSA -keysize 2048 -validity 10000 \\ + -dname "CN=CurrentLens Stability Debug,O=CurrentLens,C=IN" - name: Install Android platform run: | From 93e0c814b35fc78d2d7758d6f148f72b2379ece3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 19:01:52 +0530 Subject: [PATCH 026/175] Fix Stability signing-key generation command --- .github/workflows/build-apk.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index f09ccdbc..b90e80af 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -45,14 +45,7 @@ jobs: run: | set -euo pipefail mkdir -p .ci - keytool -genkeypair -noprompt -v \\ - -keystore .ci/stability-debug.keystore \\ - -storetype JKS \\ - -storepass currentlens-stability-test-only \\ - -keypass currentlens-stability-test-only \\ - -alias currentlens-stability \\ - -keyalg RSA -keysize 2048 -validity 10000 \\ - -dname "CN=CurrentLens Stability Debug,O=CurrentLens,C=IN" + keytool -genkeypair -noprompt -v -keystore .ci/stability-debug.keystore -storetype JKS -storepass currentlens-stability-test-only -keypass currentlens-stability-test-only -alias currentlens-stability -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=CurrentLens Stability Debug,O=CurrentLens,C=IN" - name: Install Android platform run: | From 73a401858240bdb71b462354e6da9202f39890c8 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 19:11:53 +0530 Subject: [PATCH 027/175] privacy: disable WebView cookies in public reader --- .../mangoloads/currentlens/MainActivity.kt | 11 ++++++++++ .../currentlens/ReaderCookiePolicy.kt | 18 +++++++++++++++ .../currentlens/ReaderCookiePolicyTest.kt | 22 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ReaderCookiePolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ReaderCookiePolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index f7758b6c..b12dd4f6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -17,6 +17,7 @@ import android.view.View import android.view.ViewConfiguration import android.os.SystemClock import android.webkit.WebResourceRequest +import android.webkit.CookieManager import android.webkit.WebView import android.webkit.WebViewClient import androidx.activity.ComponentActivity @@ -2379,6 +2380,16 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha factory = { ctx -> ReaderWebView(ctx).apply { readerWebViewHolder.value = this + // Public-page reading is intentionally stateless: never reuse + // publisher login/tracking cookies from an earlier WebView session. + val cookieManager = CookieManager.getInstance() + ReaderCookiePolicy.enforce( + setAcceptCookie = cookieManager::setAcceptCookie, + setAcceptThirdPartyCookies = { accept -> + cookieManager.setAcceptThirdPartyCookies(this, accept) + }, + clearCookies = { cookieManager.removeAllCookies(null) } + ) settings.javaScriptEnabled = false settings.domStorageEnabled = false settings.loadsImagesAutomatically = true diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderCookiePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderCookiePolicy.kt new file mode 100644 index 00000000..4c2e2341 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderCookiePolicy.kt @@ -0,0 +1,18 @@ +package com.mangoloads.currentlens + +/** + * Enforces a stateless public-page reader: no first-party or third-party cookies, + * and no previously stored WebView session state. + */ +internal object ReaderCookiePolicy { + fun enforce( + setAcceptCookie: (Boolean) -> Unit, + setAcceptThirdPartyCookies: (Boolean) -> Unit, + clearCookies: () -> Unit + ) { + // Disable sending/accepting before asynchronous deletion of any old cookies. + setAcceptCookie(false) + setAcceptThirdPartyCookies(false) + clearCookies() + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderCookiePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderCookiePolicyTest.kt new file mode 100644 index 00000000..659a17a5 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderCookiePolicyTest.kt @@ -0,0 +1,22 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class ReaderCookiePolicyTest { + @Test + fun disablesBothCookieClassesBeforeClearingExistingWebViewState() { + val calls = mutableListOf() + + ReaderCookiePolicy.enforce( + setAcceptCookie = { calls += "first-party:$it" }, + setAcceptThirdPartyCookies = { calls += "third-party:$it" }, + clearCookies = { calls += "clear" } + ) + + assertEquals( + listOf("first-party:false", "third-party:false", "clear"), + calls + ) + } +} From ed8384442cc14c3e5b410565b9bfbf25e79e6980 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:01:25 +0530 Subject: [PATCH 028/175] Force Legacy graphics pipeline for Mali crash isolation --- .../com/mangoloads/currentlens/StartupRenderPolicy.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt index 989f5dce..c156fac5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt @@ -5,11 +5,12 @@ import com.styropyr0.prismal.PrismalGlassPipeline /** * Startup renderer safety policy. * - * API 33+ devices default to Prismal's Liquid/AGSL tier. During launch stabilisation, - * force Standard so blur remains available through RenderEffect but AGSL shaders are - * not selected or initialised. Older devices retain their normal automatic tier. + * The OPPO/Mali native crash occurs in the Skia shader/display-list path. Standard still + * builds RenderEffect blur and offscreen compositing layers, so it does not isolate that + * path. Force Legacy on API 33+ during this diagnostic build: this disables both AGSL + * and RenderEffect, retaining only Prismal's sampled backdrop and frosted overlay. */ internal object StartupRenderPolicy { fun overrideFor(apiLevel: Int): PrismalGlassPipeline? = - if (apiLevel >= 33) PrismalGlassPipeline.Standard else null + if (apiLevel >= 33) PrismalGlassPipeline.Legacy else null } From 864c54ed1f898247a7e0094a344f95f13f40bc5a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:01:27 +0530 Subject: [PATCH 029/175] Test Legacy renderer fallback on Android 13 and newer --- .../com/mangoloads/currentlens/StartupRenderPolicyTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt index 7bf72443..ec4e9839 100644 --- a/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt @@ -7,9 +7,9 @@ import org.junit.Test class StartupRenderPolicyTest { @Test - fun android13AndNewerUseStandardRendererDuringStabilisation() { - assertEquals(PrismalGlassPipeline.Standard, StartupRenderPolicy.overrideFor(33)) - assertEquals(PrismalGlassPipeline.Standard, StartupRenderPolicy.overrideFor(35)) + fun android13AndNewerUseLegacyRendererWithoutRenderEffectDuringStabilisation() { + assertEquals(PrismalGlassPipeline.Legacy, StartupRenderPolicy.overrideFor(33)) + assertEquals(PrismalGlassPipeline.Legacy, StartupRenderPolicy.overrideFor(35)) } @Test From de3473ee147429d46f6dd6bada32b9a795e42ad3 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:01:31 +0530 Subject: [PATCH 030/175] Version Legacy renderer isolation build as 0.2.3 --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e02d854c..f8533308 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 4 - versionName = "0.2.2" + versionCode = 5 + versionName = "0.2.3" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" } From 369ca1476d498831c6a590ed51c32481667e2342 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:01:40 +0530 Subject: [PATCH 031/175] Label Legacy renderer isolation APK as v0.2.3 --- .github/workflows/build-apk.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index b90e80af..a610d2f3 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.2-stability-debug-apk + name: CurrentLens-v0.2.3-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -96,10 +96,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.2-build-${{ github.run_number }} - name: CurrentLens v0.2.2 (Build ${{ github.run_number }}) + tag_name: v0.2.3-build-${{ github.run_number }} + name: CurrentLens v0.2.3 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.2 testing build. + CurrentLens v0.2.3 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. From 8d1c2f13d6a4b5f19de7a2137d4d1e3883cab14c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:18:11 +0530 Subject: [PATCH 032/175] privacy: minimize local startup crash report metadata --- .../currentlens/LaunchCrashDiagnostics.kt | 108 ++++++------------ 1 file changed, 38 insertions(+), 70 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 66e4cc9d..5681154e 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -5,8 +5,6 @@ import android.app.ApplicationExitInfo import android.content.Context import android.os.Build import android.os.Process -import android.util.Base64 -import java.io.ByteArrayOutputStream import java.io.File import java.io.FileOutputStream import java.io.PrintWriter @@ -21,7 +19,6 @@ import kotlin.system.exitProcess */ internal object LaunchCrashDiagnostics { const val MAX_REPORT_CHARS = 30_000 - private const val MAX_TRACE_BYTES = 8192 private const val REPORT_NAME = "currentlens-last-crash.txt" private const val REPORT_TEMP_NAME = "currentlens-last-crash.tmp" private const val STAGE_NAME = "currentlens-last-startup-stage.txt" @@ -71,10 +68,15 @@ internal object LaunchCrashDiagnostics { stageFile.takeIf { it.isFile }?.readText(Charsets.UTF_8) }.getOrNull() val reportFile = File(directory, REPORT_NAME) - if (reportFile.isFile && isKnownLegacyFalsePositive( - runCatching { reportFile.readText(Charsets.UTF_8) }.getOrDefault("") - ) + val existingReport = runCatching { + reportFile.takeIf { it.isFile }?.readText(Charsets.UTF_8).orEmpty() + }.getOrDefault("") + if (reportFile.isFile && ( + isKnownLegacyFalsePositive(existingReport) || + hasLegacyDeviceMetadata(existingReport) + ) ) { + // Remove pre-privacy diagnostic reports that exposed device/build identifiers. reportFile.delete() } @@ -136,22 +138,15 @@ internal object LaunchCrashDiagnostics { internal fun formatInterruptedStartupReport( lastCompletedStage: String, versionName: String? = null, - processId: Int? = null, packageName: String = "com.mangoloads.currentlens", - systemExitSummary: String? = null, - nativeTraceBase64: String? = null + systemExitSummary: String? = null ): String = buildString { appendLine("CurrentLens startup interruption report") - appendLine("Timestamp: " + Instant.now().toString()) appendLine("App: " + versionName.orEmpty()) appendLine("Package: " + packageName) - appendLine("Device: " + Build.MANUFACTURER + " " + Build.BRAND + " " + Build.MODEL) - appendLine("Device code: " + Build.DEVICE) - appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") - appendLine("Build fingerprint: " + Build.FINGERPRINT) - appendLine("Process id: " + (processId?.toString() ?: "unavailable")) + appendLine("Android API: " + Build.VERSION.SDK_INT) appendLine("Report type: startup interrupted; no uncaught Java/Kotlin exception was captured") - appendLine("Last completed startup stage: " + lastCompletedStage) + appendLine("Last completed startup stage: " + displayStartupStage(lastCompletedStage)) appendLine() if (!systemExitSummary.isNullOrBlank()) { appendLine("Android historical process-exit record:") @@ -159,15 +154,11 @@ internal object LaunchCrashDiagnostics { } else { appendLine("Android historical process-exit record: unavailable") } - if (!nativeTraceBase64.isNullOrBlank()) { - appendLine() - appendLine("Android system trace (Base64; first 8192 bytes only):") - appendLine(nativeTraceBase64) - } appendLine() appendLine("The previous process ended before confirming the first stable Compose frames.") appendLine("Use the Android process-exit reason above to distinguish a Java crash, native crash,") appendLine("ANR, signal, low-memory termination, or user/system stop.") + appendLine("This report omits device identifiers, process identifiers, precise timestamps and raw traces.") appendLine("It is not a Java/Kotlin stack trace.") }.take(MAX_REPORT_CHARS) @@ -184,14 +175,22 @@ internal object LaunchCrashDiagnostics { formatInterruptedStartupReport( lastCompletedStage = lastCompletedStage, versionName = versionName, - processId = Process.myPid(), packageName = context.packageName, - systemExitSummary = exitInfo?.let(::describeExitInfo), - nativeTraceBase64 = exitInfo?.let(::readExitTraceBase64) + systemExitSummary = exitInfo?.let(::describeExitInfo) ) ) } + internal fun displayStartupStage(stage: String): String = + stage.substringAfterLast("|").trim().take(240) + + internal fun hasLegacyDeviceMetadata(report: String): Boolean = + report.contains("Device:") || + report.contains("Device code:") || + report.contains("Build fingerprint:") || + report.contains("Process id:") || + report.contains("Android system trace (Base64") + internal fun processIdFromStage(stage: String?): Int? = stage?.split("|")?.getOrNull(1)?.trim()?.removePrefix("pid=")?.toIntOrNull() @@ -235,12 +234,10 @@ internal object LaunchCrashDiagnostics { private fun describeExitInfo(info: ApplicationExitInfo): String = buildString { appendLine("Reason: " + exitReasonName(info.reason) + " (" + info.reason + ")") - appendLine("Timestamp: " + Instant.ofEpochMilli(info.timestamp).toString()) - appendLine("PID: " + info.pid + " | Process: " + info.processName) appendLine("Status/signal: " + info.status) appendLine("Importance: " + info.importance) appendLine("PSS/RSS: " + info.pss + " KB / " + info.rss + " KB") - info.description?.take(1000)?.let { + info.description?.take(240)?.let { appendLine("System description: " + it) } }.trimEnd() @@ -263,27 +260,6 @@ internal object LaunchCrashDiagnostics { else -> "UNKNOWN_OR_NEWER_REASON" } - private fun readExitTraceBase64(info: ApplicationExitInfo): String? { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return null - return runCatching { - val input = info.traceInputStream ?: return@runCatching null - input.use { stream -> - val output = ByteArrayOutputStream() - val buffer = ByteArray(1024) - var total = 0 - while (total < MAX_TRACE_BYTES) { - val count = stream.read(buffer, 0, minOf(buffer.size, MAX_TRACE_BYTES - total)) - if (count <= 0) break - output.write(buffer, 0, count) - total += count - } - val truncated = stream.read() != -1 - Base64.encodeToString(output.toByteArray(), Base64.NO_WRAP) + - if (truncated) " [trace truncated]" else "" - } - }.getOrNull() - } - private fun writeCrashReport(context: Context, threadName: String, throwable: Throwable) { val directory = context.filesDir val stage = runCatching { @@ -297,7 +273,6 @@ internal object LaunchCrashDiagnostics { throwable = throwable, lastCompletedStage = stage, versionName = versionName, - processId = Process.myPid(), packageName = context.packageName ) writeReportFile(directory, report) @@ -326,26 +301,19 @@ internal object LaunchCrashDiagnostics { throwable: Throwable, lastCompletedStage: String? = null, versionName: String? = null, - processId: Int? = null, packageName: String = "com.mangoloads.currentlens" - ): String { - val writer = StringWriter() - throwable.printStackTrace(PrintWriter(writer)) - return buildString { - appendLine("CurrentLens local startup crash report") - appendLine("Timestamp: " + Instant.now().toString()) - appendLine("App: " + versionName.orEmpty()) - appendLine("Package: " + packageName) - appendLine("Device: " + Build.MANUFACTURER + " " + Build.BRAND + " " + Build.MODEL) - appendLine("Device code: " + Build.DEVICE) - appendLine("Android: " + Build.VERSION.RELEASE + " (API " + Build.VERSION.SDK_INT + ")") - appendLine("Build fingerprint: " + Build.FINGERPRINT) - appendLine("Process id: " + (processId?.toString() ?: "unavailable")) - appendLine("Thread: " + threadName) - appendLine("Last completed startup stage: " + (lastCompletedStage ?: "unknown")) - appendLine("Exception: " + throwable.javaClass.name) - appendLine() - append(writer.toString()) - }.take(MAX_REPORT_CHARS) - } + ): String = buildString { + appendLine("CurrentLens local startup crash report") + appendLine("App: " + versionName.orEmpty()) + appendLine("Package: " + packageName) + appendLine("Android API: " + Build.VERSION.SDK_INT) + appendLine("Thread: " + threadName.take(40)) + appendLine("Last completed startup stage: " + + (lastCompletedStage?.let(::displayStartupStage) ?: "unknown")) + appendLine("Exception type: " + throwable.javaClass.name) + appendLine("Stack frames (class and method only):") + throwable.stackTrace.take(20).forEach { frame -> + appendLine(" at " + frame.className + "." + frame.methodName) + } + }.take(MAX_REPORT_CHARS) } From ffce21cf0d3272141124e2f4522fe1517826da85 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:18:22 +0530 Subject: [PATCH 033/175] privacy: remove device-specific wording from renderer note --- .../com/mangoloads/currentlens/StartupRenderPolicy.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt index c156fac5..aa5ab653 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt @@ -5,10 +5,11 @@ import com.styropyr0.prismal.PrismalGlassPipeline /** * Startup renderer safety policy. * - * The OPPO/Mali native crash occurs in the Skia shader/display-list path. Standard still - * builds RenderEffect blur and offscreen compositing layers, so it does not isolate that - * path. Force Legacy on API 33+ during this diagnostic build: this disables both AGSL - * and RenderEffect, retaining only Prismal's sampled backdrop and frosted overlay. + * A device-specific native crash was observed in the Skia shader/display-list path. + * Standard still builds RenderEffect blur and offscreen compositing layers, so it does + * not isolate that path. Force Legacy on API 33+ during this diagnostic build: this + * disables both AGSL and RenderEffect, retaining only Prismal's sampled backdrop and + * frosted overlay. */ internal object StartupRenderPolicy { fun overrideFor(apiLevel: Int): PrismalGlassPipeline? = From 17ce27acd7cbc40b8a30d9bd2fba9df7c8272b62 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:18:25 +0530 Subject: [PATCH 034/175] test: verify crash reports omit device identifiers and raw traces --- .../currentlens/LaunchCrashDiagnosticsTest.kt | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index ca8f264a..9fd34df7 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -7,7 +7,7 @@ import org.junit.Test class LaunchCrashDiagnosticsTest { @Test - fun reportContainsDeviceThreadExceptionAndStartupStage() { + fun reportContainsExceptionAndStartupStageWithoutDeviceMetadata() { val report = LaunchCrashDiagnostics.formatReport( threadName = "main", throwable = IllegalStateException("first composition failed"), @@ -18,9 +18,13 @@ class LaunchCrashDiagnosticsTest { assertTrue(report.contains("CurrentLens local startup crash report")) assertTrue(report.contains("Thread: main")) assertTrue(report.contains("IllegalStateException")) - assertTrue(report.contains("first composition failed")) + assertFalse(report.contains("first composition failed")) assertTrue(report.contains("Application.attachBaseContext completed")) assertTrue(report.contains("0.2.0")) + assertFalse(report.contains("Device:")) + assertFalse(report.contains("Build fingerprint:")) + assertFalse(report.contains("Timestamp:")) + assertFalse(report.contains("Process id:"))) } @Test @@ -47,16 +51,30 @@ class LaunchCrashDiagnosticsTest { } @Test - fun interruptionReportIncludesAndroidExitReasonAndAvailableTrace() { + fun interruptionReportIncludesExitReasonButOmitsRawTrace() { val report = LaunchCrashDiagnostics.formatInterruptedStartupReport( lastCompletedStage = "MainActivity.onCreate entered", - systemExitSummary = "Reason: CRASH_NATIVE (5)", - nativeTraceBase64 = "AQID" + systemExitSummary = "Reason: CRASH_NATIVE (5)" ) assertTrue(report.contains("Android historical process-exit record:")) assertTrue(report.contains("Reason: CRASH_NATIVE")) - assertTrue(report.contains("AQID")) + assertFalse(report.contains("AQID")) + assertFalse(report.contains("Timestamp:")) + assertFalse(report.contains("Process id:")) + } + + @Test + fun startupStageIsSanitizedBeforeItIsDisplayed() { + val stage = "2026-11-06T12:00:00Z | pid=29860 | MainActivity.onCreate entered" + assertEquals("MainActivity.onCreate entered", LaunchCrashDiagnostics.displayStartupStage(stage)) + } + + @Test + fun legacyReportsWithDeviceIdentifiersAreDetectedForCleanup() { + val report = "Device: Example Brand Model\\nBuild fingerprint: private-build" + assertTrue(LaunchCrashDiagnostics.hasLegacyDeviceMetadata(report)) + assertFalse(LaunchCrashDiagnostics.hasLegacyDeviceMetadata("Android API: 35\\nReason: CRASH_NATIVE")) } @Test From c9c93ee8c5979bc8cacc737c06ada202c2772702 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:18:56 +0530 Subject: [PATCH 035/175] cleanup: remove unused crash trace imports --- .../java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 5681154e..1c24b779 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -7,8 +7,6 @@ import android.os.Build import android.os.Process import java.io.File import java.io.FileOutputStream -import java.io.PrintWriter -import java.io.StringWriter import java.time.Instant import kotlin.system.exitProcess From 84abdc694f8513c5ad2985a4b24ff98103d75b8f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:19:33 +0530 Subject: [PATCH 036/175] fix: correct privacy assertion in diagnostics test --- .../com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index 9fd34df7..1118bea2 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -24,7 +24,7 @@ class LaunchCrashDiagnosticsTest { assertFalse(report.contains("Device:")) assertFalse(report.contains("Build fingerprint:")) assertFalse(report.contains("Timestamp:")) - assertFalse(report.contains("Process id:"))) + assertFalse(report.contains("Process id:")) } @Test From 8849d10ee8459137c1ee8acbe29645c9710bad23 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:19:38 +0530 Subject: [PATCH 037/175] release: bump privacy-hardened stability build to 0.2.4 --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f8533308..536bb700 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 5 - versionName = "0.2.3" + versionCode = 6 + versionName = "0.2.4" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" } From f154a76d32665bed3ef336b6739e1bc7cd59adfa Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:19:42 +0530 Subject: [PATCH 038/175] ci: label privacy-hardened stability artifact as 0.2.4 --- .github/workflows/build-apk.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index a610d2f3..bb1e2825 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.3-stability-debug-apk + name: CurrentLens-v0.2.4-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -97,9 +97,9 @@ jobs: uses: softprops/action-gh-release@v2 with: tag_name: v0.2.3-build-${{ github.run_number }} - name: CurrentLens v0.2.3 (Build ${{ github.run_number }}) + name: CurrentLens v0.2.4 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.3 testing build. + CurrentLens v0.2.4 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. From 89099d2fe2158d80d122dff12298828cad707771 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:21:09 +0530 Subject: [PATCH 039/175] ci: align release tag with privacy-hardened 0.2.4 build --- .github/workflows/build-apk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index bb1e2825..3a685ced 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -96,7 +96,7 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.3-build-${{ github.run_number }} + tag_name: v0.2.4-build-${{ github.run_number }} name: CurrentLens v0.2.4 (Build ${{ github.run_number }}) body: | CurrentLens v0.2.4 testing build. From 731d172da2630d2807f3cc6d82dd181bd1ed71a9 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:24 +0530 Subject: [PATCH 040/175] stability: add plain first-launch probe before full Liquid Glass UI --- .../com/mangoloads/currentlens/MainActivity.kt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index b12dd4f6..773fc09d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -273,12 +273,27 @@ class MainActivity : ComponentActivity() { } } } + var showFullApp by remember { + mutableStateOf(!BuildConfig.STABILITY_TEST_BUILD) + } MaterialTheme(colorScheme = colors) { Surface( modifier = Modifier.fillMaxSize(), color = colors.background, contentColor = colors.onBackground - ) { BrrrNewsApp() } + ) { + if (showFullApp) { + BrrrNewsApp() + } else { + StabilityLaunchProbe { + LaunchCrashDiagnostics.recordStage( + applicationContext, + "Full brrrNews composition requested from stability probe" + ) + showFullApp = true + } + } + } } } LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.setContent returned") From 032fc5d3096e0d4d0940d84b75e96f7266ebc7fd Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:28 +0530 Subject: [PATCH 041/175] restore: keep Prismal automatic Liquid Glass pipeline --- .../currentlens/CurrentLensApplication.kt | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index 8d938a5a..e3df481e 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -2,32 +2,20 @@ package com.mangoloads.currentlens import android.app.Application import android.content.Context -import android.os.Build -import com.styropyr0.prismal.PrismalGlass /** - * Installs crash diagnostics before AndroidX Startup ContentProviders are created. + * Installs local crash diagnostics before AndroidX Startup ContentProviders are created. * - * This ordering matters because PrismalAGSL registers an AndroidX Startup initializer; - * an exception in that initializer occurs before MainActivity.onCreate(). + * Do not force a lower Prismal pipeline here. Production builds must retain Prismal's + * automatic Liquid/Standard selection; the Stability build uses a plain first-screen + * probe and lets the user opt into the complete Liquid Glass UI after that screen draws. */ class CurrentLensApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) - // Install diagnostics and inspect the PREVIOUS process before writing any - // stage belonging to this process. Reversing this order creates a false - // interruption report on every cold start. + // Inspect the previous process before writing any stage belonging to this process. runCatching { LaunchCrashDiagnostics.install(base) } runCatching { LaunchCrashDiagnostics.beginStartup(base) } - - // Disable the API 33+ AGSL renderer during launch stabilisation. Standard keeps - // RenderEffect blur while avoiding the Liquid/AGSL shader path on affected GPUs. - runCatching { - StartupRenderPolicy.overrideFor(Build.VERSION.SDK_INT)?.let { tier -> - PrismalGlass.pipelineOverride = tier - LaunchCrashDiagnostics.recordStage(base, "Prismal pipeline forced to " + tier.name) - } - } } override fun onCreate() { From 7f8f3190042f70e332b03b4e6c5aac18bdee6d62 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:30 +0530 Subject: [PATCH 042/175] build: add Stability test-build flag and version 0.2.5 --- app/build.gradle.kts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 536bb700..a59d419d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,9 +13,10 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 6 - versionName = "0.2.4" + versionCode = 7 + versionName = "0.2.5" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" + buildConfigField("boolean", "STABILITY_TEST_BUILD", stabilityTestBuild.toString()) } signingConfigs { @@ -43,7 +44,10 @@ android { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } - buildFeatures { compose = true } + buildFeatures { + compose = true + buildConfig = true + } } dependencies { From 6b2283cfde4cfa29b1c1381853c995112aba2289 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:34 +0530 Subject: [PATCH 043/175] diagnostics: mark stability probe healthy after initial Compose frames --- .../com/mangoloads/currentlens/LaunchCrashDiagnostics.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 1c24b779..ede61e1e 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -109,10 +109,13 @@ internal object LaunchCrashDiagnostics { } /** A launch is considered healthy only after the first several Compose frames. */ - fun markHealthy(context: Context) { + fun markHealthy( + context: Context, + completedStage: String = "First Compose frames completed" + ) { val directory = (context.applicationContext ?: context).filesDir runCatching { File(directory, REPORT_NAME).delete() } - recordStage(context, "First Compose frames completed") + recordStage(context, completedStage) } fun read(context: Context): String? = runCatching { From 35d6460969ed9ac19f559b963203eae6f8c9a773 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:36 +0530 Subject: [PATCH 044/175] ci: build and label stability probe as 0.2.5 --- .github/workflows/build-apk.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 3a685ced..70b7b827 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.4-stability-debug-apk + name: CurrentLens-v0.2.5-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -96,10 +96,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.4-build-${{ github.run_number }} - name: CurrentLens v0.2.4 (Build ${{ github.run_number }}) + tag_name: v0.2.5-build-${{ github.run_number }} + name: CurrentLens v0.2.5 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.4 testing build. + CurrentLens v0.2.5 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. From e08b569b8807ecb12c220d0ec19391b976a92124 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:39 +0530 Subject: [PATCH 045/175] stability: add minimal Compose launch isolation screen --- .../currentlens/StabilityLaunchProbe.kt | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt new file mode 100644 index 00000000..3267eb81 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt @@ -0,0 +1,91 @@ +package com.mangoloads.currentlens + +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.Button +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.unit.Dp +import androidx.compose.ui.unit.dp +import androidx.compose.ui.platform.LocalView +import androidx.compose.ui.platform.LocalLifecycleOwner +import androidx.compose.ui.unit.IntSize +import androidx.compose.ui.layout.onSizeChanged +import androidx.compose.runtime.withFrameNanos + +/** + * A temporary first-launch isolation screen used only in Stability APKs. + * + * It deliberately does not create Prismal backdrops, graphics-layer sampling, + * glass drawing modifiers, blur or shader effects. The button then loads the + * exact full app UI with Prismal's normal automatic pipeline enabled. + */ +@Composable +internal fun StabilityLaunchProbe(onLaunchFullApp: () -> Unit) { + val context = LocalContext.current + + LaunchedEffect(Unit) { + LaunchCrashDiagnostics.recordStage(context, "Stability probe composition started") + repeat(3) { withFrameNanos { } } + LaunchCrashDiagnostics.markHealthy( + context, + "First Compose frames completed — stability probe" + ) + } + + Column( + modifier = Modifier + .fillMaxSize() + .background(MaterialTheme.colorScheme.background) + .padding(horizontal = 26.dp, vertical = 32.dp), + verticalArrangement = Arrangement.Center + ) { + Text( + text = "brrrNews", + style = MaterialTheme.typography.headlineLarge, + fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.onBackground + ) + Spacer(Modifier.height(10.dp)) + Text( + text = "Startup isolation check", + style = MaterialTheme.typography.titleMedium, + color = MaterialTheme.colorScheme.primary + ) + Spacer(Modifier.height(14.dp)) + Text( + text = "This first screen uses standard Compose and Material only. It avoids Prismal backdrop capture and glass rendering so the initial launch can be checked separately.", + style = MaterialTheme.typography.bodyMedium, + color = MaterialTheme.colorScheme.onBackground + ) + Spacer(Modifier.height(14.dp)) + Text( + text = "Next, open the complete app with the original Liquid Glass effects enabled. If that step crashes, the report will identify that the failure occurred after the full UI was requested.", + style = MaterialTheme.typography.bodyMedium, + color = MaterialTheme.colorScheme.secondary + ) + Spacer(Modifier.height(26.dp)) + Button( + onClick = onLaunchFullApp, + modifier = Modifier.fillMaxSize(fraction = 0.0f).then(Modifier), + shape = RoundedCornerShape(18.dp) + ) { + Text("Open full brrrNews — Liquid Glass enabled") + } + } +} From c8468fd00f43ac857117c0e63568d4dd16fe83e8 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:32:58 +0530 Subject: [PATCH 046/175] fix: size stability probe action across available width --- .../currentlens/StabilityLaunchProbe.kt | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt index 3267eb81..e56de51c 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape @@ -16,24 +17,15 @@ import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.text.font.FontWeight -import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp -import androidx.compose.ui.unit.sp -import androidx.compose.ui.graphics.Color -import androidx.compose.ui.unit.Dp -import androidx.compose.ui.unit.dp -import androidx.compose.ui.platform.LocalView -import androidx.compose.ui.platform.LocalLifecycleOwner -import androidx.compose.ui.unit.IntSize -import androidx.compose.ui.layout.onSizeChanged import androidx.compose.runtime.withFrameNanos /** - * A temporary first-launch isolation screen used only in Stability APKs. + * Temporary first-launch isolation screen used only in Stability APKs. * * It deliberately does not create Prismal backdrops, graphics-layer sampling, * glass drawing modifiers, blur or shader effects. The button then loads the - * exact full app UI with Prismal's normal automatic pipeline enabled. + * full app UI with Prismal's normal automatic pipeline enabled. */ @Composable internal fun StabilityLaunchProbe(onLaunchFullApp: () -> Unit) { @@ -82,7 +74,7 @@ internal fun StabilityLaunchProbe(onLaunchFullApp: () -> Unit) { Spacer(Modifier.height(26.dp)) Button( onClick = onLaunchFullApp, - modifier = Modifier.fillMaxSize(fraction = 0.0f).then(Modifier), + modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(18.dp) ) { Text("Open full brrrNews — Liquid Glass enabled") From eb270def5b20a95a910ab5406dcb724d5577b42f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:33:02 +0530 Subject: [PATCH 047/175] privacy: explain minimised local recovery report --- app/src/main/java/com/mangoloads/currentlens/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 773fc09d..c2d4752c 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -321,7 +321,7 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { typeface = android.graphics.Typeface.DEFAULT_BOLD } val description = android.widget.TextView(this).apply { - text = "A local crash report was saved on this device. Copy it and send it here so the failure can be traced to its exact stack frame." + text = "A privacy-minimised local report was saved on this device. Copy it and share it for diagnosis; it omits device identifiers and raw system traces." textSize = 15f setTextColor(android.graphics.Color.rgb(205, 215, 228)) setPadding(0, dp(12), 0, dp(14)) From d3754dabcf760fc05fb1652adea0b7ebab046c54 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:33:07 +0530 Subject: [PATCH 048/175] remove obsolete forced Legacy startup renderer --- .../currentlens/StartupRenderPolicy.kt | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt deleted file mode 100644 index aa5ab653..00000000 --- a/app/src/main/java/com/mangoloads/currentlens/StartupRenderPolicy.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.mangoloads.currentlens - -import com.styropyr0.prismal.PrismalGlassPipeline - -/** - * Startup renderer safety policy. - * - * A device-specific native crash was observed in the Skia shader/display-list path. - * Standard still builds RenderEffect blur and offscreen compositing layers, so it does - * not isolate that path. Force Legacy on API 33+ during this diagnostic build: this - * disables both AGSL and RenderEffect, retaining only Prismal's sampled backdrop and - * frosted overlay. - */ -internal object StartupRenderPolicy { - fun overrideFor(apiLevel: Int): PrismalGlassPipeline? = - if (apiLevel >= 33) PrismalGlassPipeline.Legacy else null -} From 3767fe1e47ff563e8ae3f97a3542db60f5613d56 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:33:10 +0530 Subject: [PATCH 049/175] remove obsolete test for forced Legacy renderer --- .../currentlens/StartupRenderPolicyTest.kt | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt diff --git a/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt deleted file mode 100644 index ec4e9839..00000000 --- a/app/src/test/java/com/mangoloads/currentlens/StartupRenderPolicyTest.kt +++ /dev/null @@ -1,20 +0,0 @@ -package com.mangoloads.currentlens - -import com.styropyr0.prismal.PrismalGlassPipeline -import org.junit.Assert.assertEquals -import org.junit.Assert.assertNull -import org.junit.Test - -class StartupRenderPolicyTest { - @Test - fun android13AndNewerUseLegacyRendererWithoutRenderEffectDuringStabilisation() { - assertEquals(PrismalGlassPipeline.Legacy, StartupRenderPolicy.overrideFor(33)) - assertEquals(PrismalGlassPipeline.Legacy, StartupRenderPolicy.overrideFor(35)) - } - - @Test - fun olderAndroidVersionsKeepTheirNativePipelineSelection() { - assertNull(StartupRenderPolicy.overrideFor(32)) - assertNull(StartupRenderPolicy.overrideFor(26)) - } -} From 822625adf943b3dde1037f4974d7d215733b0a52 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:40:29 +0530 Subject: [PATCH 050/175] docs: consolidate crash privacy and agent continuity rules --- AGENTS.md | 139 +++++++++++++++++ docs/BUILD_AND_DEBUG.md | 124 ++++++++++++++++ docs/CHATGPT_CONTINUITY.md | 50 +++++++ docs/COMMIT_DETAILS.md | 178 ++++++++++++++++++++++ docs/DECISION_LOG.md | 78 ++++++++++ docs/DESIGN_EVIDENCE.md | 130 ++++++++++++++++ docs/KNOWN_ISSUES.md | 135 +++++++++++++++++ docs/PROJECT_HANDOFF.md | 183 +++++++++++++++++++++++ docs/SESSION_LEDGER.md | 296 +++++++++++++++++++++++++++++++++++++ 9 files changed, 1313 insertions(+) create mode 100644 AGENTS.md create mode 100644 docs/BUILD_AND_DEBUG.md create mode 100644 docs/CHATGPT_CONTINUITY.md create mode 100644 docs/COMMIT_DETAILS.md create mode 100644 docs/DECISION_LOG.md create mode 100644 docs/DESIGN_EVIDENCE.md create mode 100644 docs/KNOWN_ISSUES.md create mode 100644 docs/PROJECT_HANDOFF.md create mode 100644 docs/SESSION_LEDGER.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..721ea886 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,139 @@ +# CurrentLens — Chat Continuity Rules + +This repository documents an ongoing product built by one user working with ChatGPT across multiple conversations. It is not an external developer handover. Its purpose is to preserve context when a ChatGPT conversation reaches its context limit and the user opens another chat. + +## Mandatory reading at the start of every new CurrentLens chat + +Read these files in this order before proposing or making changes: + +1. docs/CHATGPT_CONTINUITY.md — how to keep this project inside one ChatGPT Project across conversations. +2. docs/PROJECT_HANDOFF.md — latest known product/repository state and current priorities. +3. docs/SESSION_LEDGER.md — chronological history, feature phases, PR history, failed attempts and corrections. +4. docs/MAIN_COMMIT_INDEX.md — every commit on main, with SHA, timestamp and subject. +5. docs/KNOWN_ISSUES.md — unresolved, proposed, reported and verified issues. +6. docs/DESIGN_EVIDENCE.md — exact design intent, supplied-image register, user feedback and screenshot/video handling. +7. docs/BUILD_AND_DEBUG.md — build configuration, workflow, test/release process and failure patterns. +8. docs/DECISION_LOG.md — durable product/engineering decisions. +9. THIRD_PARTY_NOTICES.md and relevant licence files before changing dependencies, assets or bundled data. + +Do not treat README as the engineering memory or full product specification. It is only a short public overview. Do not edit README during continuity-document work unless the user specifically asks. + +## What must be preserved + +- The same user is continuing the same project across ChatGPT chats. Do not frame the work as an external-team handover or ask the user to re-explain documented requirements. +- Preserve the user's original intent, exact wording where important, rejected approaches, reasons for rejection, what failed, why it failed, how it was corrected, and what remains unverified. +- Separate main implementation, draft-PR proposal, user-reported behaviour, synthetic test, measured result and hypothesis. Never promote one category into another. +- If the repository contradicts an older chat summary, inspect source/commit history and record the discrepancy. Live repository state is authoritative for implementation; user-authored requirements are authoritative for desired behaviour. +- Do not silently delete or rewrite historical entries. Append corrections with date, evidence and a link to the superseding entry. +- Preserve screenshots/recordings as evidence metadata: exact filename or asset path, capture/build/device if known, screen/state, user's observation, desired outcome and acceptance conditions. Do not invent details not visible in the image or supplied with it. +- Do not place private device screenshots or personal content into this public repository without explicit user approval. Prefer a precise written description and a local/private evidence reference. If the user explicitly approves a public asset, redact unrelated personal data first. + +## Mandatory logging for every material change + +Before finishing a material engineering session, update docs/SESSION_LEDGER.md and the relevant specialised register. For each code change/commit, record: +- Session date/time (IST and UTC when known), PR, branch, commit SHA and parent/base SHA. +- Exact files changed and the purpose of each file. +- User request or defect that motivated the work. +- Previous behaviour, new behaviour and why the change is correct. +- Other approaches considered or rejected, and why. +- Tests added/changed, exact command/task, result, and whether it actually ran. +- CI run number and failing/passing step/log evidence, if any. +- Device/runtime/screenshot/Perfetto evidence, separately from CI. +- Known risks, compatibility/data-migration implications and rollback path. +- What must not be repeated; whether an earlier failed approach is permanently ruled out or merely unverified. +- Remaining follow-up work and its priority. + +A commit cannot contain its own final SHA before Git creates it. Record the change in the same PR/session entry, then add the resulting SHA in the next ledger refresh. GitHub's commit/PR history is the source of truth for the commit that updates the ledger itself. + +For failed attempts, log the exact compiler/test/runtime message when available, the first failing step, confirmed root cause, corrective commit/PR, and final verification. If the log does not establish the root cause, write “root cause not established”; do not guess from the next commit message. + +For conversation-only decisions that do not produce a commit, append a dated session entry when they materially change scope, priorities, visual intent or acceptance criteria. + +## CurrentLens non-negotiables + +- Strict UPSC CSE editorial product, not a generic news aggregator. Require a defensible GS paper, a specific official syllabus theme and an explainable relevance reason. Keyword matching is an indicative heuristic—not a validated score, rank or future-question predictor. +- Suppress celebrity gossip, film/TV promotion, box-office stories, reality-show drama, routine sports scores and generic viral content. Retain genuine law, governance, regulatory, institutional and policy stories even when they concern a noisy subject area. +- Use official UPSC syllabus and latest available official Prelims/Mains PYQs. Label positive, false-positive and false-negative examples. Synthetic fixtures do not prove real-world precision/recall. +- Keep publisher RSS provenance separate from independently verified primary-source corroboration. Prefer PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court and statutory/regulatory bodies. Never present a publisher RSS feed as a primary source. +- Exactly four primary destinations: Today / Explore / Search / You. Saved remains inside You. No Archive tab. +- Preserve offline WordNet, local-first storage, Asia/Kolkata dates, foreground-only reading-session accounting and quiz persistence only on explicit submit. +- No accounts, cloud AI, analytics, telemetry, tracking, paid APIs, runtime dictionary network, paywall bypass, logged-in cookies, publisher proxies, publisher fallback JavaScript or DOM storage. +- Preserve PrismalAGSL v1.0.6 and its MIT notice; do not downgrade or remove Liquid Glass effects without a measured, reproducible reason and explicit product decision. +- Do not add continuous blur to every scrolling cell, duplicate image decoding or high-frequency GPU readbacks without measured evidence. + +## Repository safety + +- Never edit, commit or push directly to main. +- Never merge a PR, change workflow configuration, dispatch/rerun builds or publish releases during an ordinary review task. +- Inspect live main, all open PRs/branches, complete Actions history/queue, workflow, latest steps/logs, artifacts and Releases before proposing repository actions. +- Check for equivalent existing PRs before opening another. Update an equivalent PR rather than duplicating it. +- Use one isolated branch and one focused draft PR for material improvements. Keep work batched and evidence-backed. +- The current single workflow triggers on pushes to main, has contents:write and publishes a debug APK prerelease. Merging can publish a Release automatically; flag this before any merge discussion. +- If no material change is justified, do not send a no-change alert or a generic UPSC news digest. + +## Verification rules + +- CI compilation is not Android runtime verification. +- Never claim the Android test device cold-start crash is fixed without physical-device reproduction and useful local crash/logcat evidence. +- Never claim scroll performance is improved without frame-time/Perfetto evidence on a relevant device. +- Never claim visual, IME, TalkBack, font-scale or Reduce Motion correctness from code inspection alone. +- Mark tests as “added, not run” unless an actual test result exists. +- Preserve exact uncertainty. A plausible defensive fix is not a verified root-cause fix. + +## End-of-session continuity update + +At the end of each material session: +1. Refresh docs/PROJECT_HANDOFF.md with current main SHA, open PRs, builds, priorities and evidence. +2. Append the detailed event to docs/SESSION_LEDGER.md. +3. Update docs/KNOWN_ISSUES.md and/or docs/DESIGN_EVIDENCE.md when status or evidence changes. +4. Add only durable decisions to docs/DECISION_LOG.md. +5. Keep Project instructions and uploaded copies of these docs aligned with GitHub when they change. + +Do not use this file as the entire history. It is the rulebook that forces every continuation chat to consult and maintain the complete history in the linked records. + + +## Native launch-crash rules — mandatory for every agent + +The app has a recurring, user-observed native cold-start failure. Treat this as an unresolved reliability issue until the owner confirms repeated physical-device launches. The exact source-level root cause is **not established**. + +### Evidence and interpretations that must stay separate + +- Stability 0.2.2 produced `CRASH_NATIVE` / signal 11 with a partial native trace containing Mali GPU, Android HWUI and Skia rendering frames. +- Stability 0.2.3 forced Prismal's Legacy pipeline (AGSL and RenderEffect disabled, sampled GraphicsLayer backdrop retained) and **still crashed**. The subsequent report again showed `CRASH_NATIVE` / signal 11. Its last recorded app checkpoint was that `MainActivity.setContent` had returned; the next Compose composition checkpoint had not been recorded. +- The newer partial tombstone excerpt contains ART finalizer/monitor wait frames, including a `FinalizerDaemon` label. A native tombstone is a protobuf containing process/thread diagnostic data; do not assume that one visible thread excerpt identifies the faulting thread unless the crashing TID is explicitly matched. The system text suggesting a stack overflow is a heuristic, not proof of a recursive source-level call. +- These two reports do not prove Prismal, Compose, the Mali driver, ART finalization, WebView or any individual Kotlin function is the root cause. Do not invent a root cause from CI, a partial trace, or temporal correlation. +- PSS/RSS reported as zero is not proof of out-of-memory termination. +- Build success is not device-launch success. The owner must confirm cold and warm launch on the affected device. + +### Required rendering strategy + +- Keep the original Liquid Glass visual intent. The normal/production build must start the complete app with Prismal's normal automatic pipeline and its full intended effects. Do not leave a global forced Legacy/flat-rendering override in production. +- Stability-only builds may use the plain Compose/Material `StabilityLaunchProbe` as a diagnostic first screen. It deliberately avoids Prismal backdrop capture, sampled graphics layers and glass drawing. After the owner taps its button, it must enter the complete app with the normal Prismal pipeline enabled. +- This staged build is an isolation instrument, not a permanent product downgrade and not proof that the app is fixed. A probe launch followed by a crash after the full-app button narrows the failure to the full composition/graphics path; a crash before the probe appears points earlier in startup. Preserve that distinction in reports. +- Do not delete expensive effects or change the production pipeline merely to make a stability test appear to pass. Isolate one subsystem at a time and re-enable effects incrementally after a confirmed trigger is found. + +### Diagnostics and privacy + +- Diagnostics must stay in app-private storage. Never add a crash-reporting endpoint, automatic upload, cloud telemetry, analytics or background transfer. +- Never commit or paste into public issues, PRs, source comments, documentation, logs or CI artifacts: device model/code, build fingerprint, serial/IMEI, precise timestamps, process/thread IDs, memory addresses, full tombstones, raw Base64 traces, personal file paths, exception messages that may contain user data, or screenshots containing personal content. +- New shareable reports should be data-minimised: app/version, Android API level, coarse startup stage, exception type/class-method frames where safe, and the minimum exit reason/status needed to distinguish native crash, Java exception, ANR or system stop. Omit device identifiers, exact time, PIDs/TIDs, raw traces, memory addresses and exception messages. +- Internal PID/time markers may be retained only inside app-private storage when needed to correlate a prior process with Android's historical exit record. Strip these fields before display/export. The report-generation code must remain best-effort and must never abort app startup. +- Clear legacy on-device reports that contain device/build identifiers when upgrading to the privacy-minimised diagnostic implementation. +- Public engineering notes should say only that an anonymised Android test device produced a native crash; do not copy the owner's raw report or unique device/build metadata. + +### Repeatable acceptance test + +1. Install the new Stability APK as an update to the prior Stability test APK (same dedicated test signing key); keep the normal app package separate. +2. Cold-launch repeatedly and verify that the plain probe appears and remains usable. +3. Tap the full-app button; verify the original Liquid Glass UI, all four tabs, Search/IME, reader, settings and core offline dictionary. +4. Repeat cold launch and full-app entry at least five times; test a warm relaunch and restored local state. +5. If a crash occurs, preserve only a local raw trace for private diagnosis; share the sanitised report. Do not claim resolved from CI or a single successful launch. + +## Branch hygiene + +- Branch count does not affect an installed APK or cause runtime crashes; only the checked-out/build commit determines the code in a build. Branch clutter does increase review, CI and continuity risk. +- Use one active integration branch and one focused draft PR for a continuing issue. Make multiple related commits on that branch rather than creating a new branch per file, session or AI agent. +- Reuse/update the existing open PR when work is related. Do not create duplicate draft PRs for the same issue. +- Preserve independent open feature branches until their unique commits are reviewed, integrated or explicitly abandoned. Never delete a branch with unmerged unique work merely to reduce the branch count. +- After merge/closure, delete truly stale refs when safe; do not force-move a branch to simulate deletion. If branch deletion is not available to the acting tool, say so and give the owner the GitHub Branches page rather than claiming deletion. +- Enable repository-side automatic deletion of merged branches only after the owner approves the setting. Never merge PRs, close active feature PRs or delete unique work without an explicit user decision. diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md new file mode 100644 index 00000000..99e2eadd --- /dev/null +++ b/docs/BUILD_AND_DEBUG.md @@ -0,0 +1,124 @@ +# CurrentLens — Build, Test, Release and Debug Record + +## Application and toolchain at snapshot + +- Repository: Batmancpu/CurrentLens. Repository name remains CurrentLens. +- Android namespace/application ID: com.mangoloads.currentlens. +- app/build.gradle.kts: minSdk 26, targetSdk 35, compileSdk 37; Java 17; versionCode 2; versionName 0.2.0. +- Kotlin + Jetpack Compose. +- Runtime libraries inspected: AndroidX Activity Compose, Compose/Material 3, Lifecycle Runtime, Coil Compose 2.7.0, Kotlin Coroutines Android 1.9.0, Jsoup 1.23.2, PrismalAGSL v1.0.4. +- JUnit 4.13.2. +- Open English WordNet 2025+ converted to bundled SQLite at build time; Android platform SQLite at runtime. +- Manifest: INTERNET only; cleartext traffic disabled; Android backup disabled. +- Notices: THIRD_PARTY_NOTICES.md; PrismalAGSL MIT and WordNet attribution in app/src/main/assets/licenses/. + +## Single Actions workflow + +Path: .github/workflows/build-apk.yml. + +- Trigger: push to main only; no pull_request/workflow_dispatch trigger. +- permissions: contents:write. +- Concurrency: currentlens-android-build; cancel-in-progress false. +- Runner ubuntu-latest; timeout 40 min. +- Java Temurin 17. +- Android platform/build tools android-37.0 and build-tools;37.0.0. +- Gradle 9.5.0. +- Python dictionary-builder tests; download Open English WordNet 2025+ archive; size check 5–25 MB; build app/src/main/assets/wordnet.db with >=100,000 unique words. +- Build command: gradle --no-daemon --stacktrace :app:testDebugUnitTest :app:assembleDebug. +- Artifact: CurrentLens-v0.2.0-debug-apk, app/build/outputs/apk/debug/app-debug.apk, 14-day retention. +- Release: softprops/action-gh-release@v2, tag v0.2.0-build-[run_number], debug-signed APK prerelease, make_latest false. + +Critical risk: Any push to main runs this workflow with release-writing permission. A merge/push to main can publish a debug APK prerelease. During review do not push main, merge PRs, change workflow, dispatch/rerun or publish releases. + +## Latest verified CI/Release + +- Main HEAD 73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Latest Actions run #116 completed successfully. +- Complete Actions history: 116 runs, pages 1 and 2. +- Outcomes: 73 success, 33 failure, 10 cancelled; 0 queued/running at capture. +- Run #116 principal steps all succeeded: checkout, Java, Android SDK, platform install, Gradle, offline WordNet generation, JVM tests/APK compile, artifact upload and Release publication. +- Run ID 42209037417. +- Artifact CurrentLens-v0.2.0-debug-apk, artifact ID 13497522975, ZIP size 38,920,865 bytes, sha256 19337c3fca739067227a2d7f1d295f5eade7288599278b0e436789ebc2964374, expires 20 Nov 2026 11:18:55 UTC. +- Release asset: https://github.com/Batmancpu/CurrentLens/releases/download/v0.2.0-build-116/app-debug.apk; asset size 39,461,810 bytes. +- Release tag: https://github.com/Batmancpu/CurrentLens/releases/tag/v0.2.0-build-116. +- Debug-signed testing APK only; not production or Play Store. +- CI success is not device launch, visual, TalkBack, GPU or frame-time verification. + +## Known failure patterns and confirmed fixes + +| Run | Failure evidence | Follow-up / correction | +|---|---|---| +| #1 | Android SDK setup: sdkmanager failed after “Failed to find package tools”. | SDK setup evolved; do not reintroduce obsolete tools package requirement. | +| #5 | Platform install: “Failed to find package platforms;android-37”. | SDK platform configuration changed; verify runner availability before editing. | +| #8 | Could not resolve com.github.styropyr0:PrismalAGSL:Prismal. | Later coordinate/JitPack work fixed resolution. Do not reuse bad version Prismal. | +| #10/#18 | compileDebugKotlin failed; extracted excerpt lacks first diagnostic. | Root cause not established here. Inspect full log before attributing. | +| #38 | 40 tests completed, 1 failed: FeedDateParserTest.preservesExplicitRfc1123Offset at line 16. | Follow-up commits f2938bf / 61d212f addressed Article/feed date parsing and compact RFC1123 offsets. Preserve explicit publisher offsets. | +| #53 | Kotlin compile failed; first compiler diagnostic missing from excerpt. | Root cause not established. | +| #97 | Stale economy signal-count test expectation after mapping gained fourth signal. | PR #2 / commit 6cf84ba updated fixture from 3 to 4 actual matches: rbi, repo rate, inflation, monetary. | +| #99 | Unresolved Compose imports CalendarMonth and AccountCircle. | PR #5 / commit 17b47e4 added supported imports. | +| #102 | Search glass draw callback called Compose theme local outside composable scope. | PR #10 / commit ba06a8f captures surface colour in composable scope before callback. | +| #113–#115 | Branding push sequence caused queued workflow runs to be cancelled by later commits. | No manual reruns; #112 and #116 completed. #116 is latest successful current-main run. | + +Other failed runs: #6,#7,#9,#11–#16,#19,#22,#28,#37,#40,#43,#48,#55,#57,#62,#80,#87,#88,#94. Retrieve exact logs when touching those features; do not infer root cause. + +## Local test/build commands + +CI build command: +gradle --no-daemon --stacktrace :app:testDebugUnitTest :app:assembleDebug + +Dictionary builder: +python3 -m unittest discover -s scripts -p 'test_*.py' -v + +The CI downloads WordNet at build time and generates a local SQLite asset; the app does not request dictionary data at runtime. + +## Evidence discipline + +- Include branch/commit SHA and exact Actions run number. +- State which exact stages passed/failed. +- Link artifact or Release only after verifying it exists. +- State debug-signed vs production-signed. +- Never imply CI proves app opens or scrolls smoothly on user's Android test device. +- If tests are added in a PR but not run, say “added, not executed”. +- Never dispatch/rerun Actions or publish release during ordinary review. + + +## PR #16 — diagnostic startup build status (6 November 2026) + +- Draft PR: https://github.com/Batmancpu/CurrentLens/pull/16. +- Branch: fix/early-startup-crash-diagnostics-2026-11-06. +- Head: b66315c2f82f7785e7dfd96577d83d203770faad. +- Base main: 73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Seven commits ahead, zero behind; five changed files: manifest, new Application class, crash diagnostics, MainActivity, tests. +- Tests have been added but not executed. No PR build ran. The final PR commit made diagnostics setup/checkpoint I/O best-effort so diagnostic storage failures cannot block launch. The current workflow triggers only on push to main, not pull_request or workflow_dispatch. No build was dispatched/rerun and no APK/Release was produced from this branch. +- Build #116 is the last verified build of old main code and must not be treated as including PR #16. +- If PR #16 is merged, it triggers the current main-push workflow, which publishes a debug APK prerelease. Account for this release side effect before merge. +- A build/test pass will not prove the Android test device app launches. Physical cold-start, retry and device report are required. + + +## Superseding crash investigation — Stability 0.2.3 to 0.2.5 (6 November 2026) + +This section supersedes the earlier PR #16 snapshot above where its head, renderer policy or test status differ. + +### Stability 0.2.3 — Build #140 (run 42234708089) +- CI: WordNet generation, JVM unit tests, APK build, signing-key restore and artifact upload succeeded. +- The build forced Prismal Legacy on API 33+ (AGSL and RenderEffect disabled; sampled GraphicsLayer/backdrop capture remained). +- Owner-tested APK still exited with Android `CRASH_NATIVE` / signal 11. The last persisted application checkpoint was `MainActivity.setContent returned`; no managed Java/Kotlin exception was captured. +- The partial tombstone text included ART finalizer/monitor-wait frames and a stack-pointer diagnostic heuristic. This is insufficient to identify a specific crashing thread or source-level root cause. No private model, build fingerprint, process/thread ID, exact timestamp or raw trace is retained in this repository. + +### Stability 0.2.4 — Build #148 (run 42237621678) +- CI succeeded and produced the privacy-minimised diagnostics build. +- It still had the temporary Legacy override, so it is not the final visual restoration decision and does not prove device stability. +- Diagnostics were changed to omit device/build identifiers, exact times, IDs, exception messages and raw native traces. Old local reports containing device identifiers are cleared on upgrade. There is no automatic upload. + +### Stability 0.2.5 — Build #158 (run 42239425526) +- Branch: `fix/early-startup-crash-diagnostics-2026-11-06`; source head before the documentation import: `3767fe1e47ff563e8ae3f97a3542db60f5613d56`. +- Version code 7 / version name `0.2.5-stability`; package suffix `.stability`; dedicated persistent Stability signing key. +- CI result: success — dictionary builder tests, WordNet generation, Gradle unit tests, APK assembly and artifact upload all passed. Release publication was skipped. +- Artifact: `CurrentLens-v0.2.5-stability-debug-apk`, artifact ID `13513676549`, 14-day retention. +- Production rendering is restored: `CurrentLensApplication` no longer forces Prismal Legacy; the normal build enters the full app with Prismal's normal automatic Liquid Glass pipeline. +- Stability-only build first shows `StabilityLaunchProbe`, a plain Compose/Material screen without Prismal backdrops or glass drawing. Its button then enters the full app with the original pipeline enabled. This separates first-screen startup from full-app composition for the next physical test. +- `StartupRenderPolicy.kt` and its forced-Legacy test were removed. No production branch, Release or main commit was changed. +- Device validation is still pending; do not label the crash fixed. + +### Runtime acceptance is mandatory +CI establishes that the code compiles and JVM tests pass. It cannot establish that the app launches on the owner's device. Use the acceptance sequence in root `AGENTS.md` and record the actual device result separately from CI. diff --git a/docs/CHATGPT_CONTINUITY.md b/docs/CHATGPT_CONTINUITY.md new file mode 100644 index 00000000..c91310ce --- /dev/null +++ b/docs/CHATGPT_CONTINUITY.md @@ -0,0 +1,50 @@ +# Keeping CurrentLens context across ChatGPT conversations + +This is specifically for the owner continuing CurrentLens in new ChatGPT chats when an older chat reaches its context limit. It is not an instruction to transfer development to another company, team or AI product. + +## Recommended arrangement: one ChatGPT Project + +A ChatGPT Project keeps related conversations, project instructions and project files together. New chats started inside that same Project can use its shared files/instructions and, depending on the Project memory setting, refer to other chats in the Project. + +Official reference: https://help.openai.com/en/articles/10169521-projects-in-chatgpt + +### One-time setup + +1. Create a ChatGPT Project named CurrentLens (or CurrentLens — Build Journal). +2. Move this existing CurrentLens conversation into that Project using the conversation menu → Move to project, when the option is available. If the option is not available for this chat, keep it as the source conversation and start the next chat inside the Project. +3. Open the Project instructions and add the short instructions below. +4. Add these repository files to the Project's Sources/files: + - AGENTS.md + - docs/PROJECT_HANDOFF.md + - docs/SESSION_LEDGER.md + - docs/MAIN_COMMIT_INDEX.md + - docs/KNOWN_ISSUES.md + - docs/DESIGN_EVIDENCE.md + - docs/BUILD_AND_DEBUG.md + - docs/DECISION_LOG.md +5. Start every continuation chat from inside the CurrentLens Project, not from a regular chat outside it. +6. Prefer Project-only memory if you want CurrentLens conversations isolated from unrelated chats. Chats in the same Project can still refer to other chats in that Project. Default memory is also possible. + +### Suggested Project instructions + +Copy into the Project instructions: + +> This Project is the ongoing development workspace for my CurrentLens Android app. I am the same owner continuing across ChatGPT conversations; do not treat this as an external developer handover and do not ask me to restate context. Before acting, read AGENTS.md and all linked project records, especially PROJECT_HANDOFF.md, SESSION_LEDGER.md, MAIN_COMMIT_INDEX.md, KNOWN_ISSUES.md, DESIGN_EVIDENCE.md, BUILD_AND_DEBUG.md and DECISION_LOG.md. Check live GitHub because the docs are snapshots. Preserve my exact product intent, visual feedback, previous failures, fixes and rejected approaches. After every material change, update the session ledger with exact files, reason, before/after behaviour, commit/PR, tests, failures, corrections, risks and verification status. Keep README a short public overview; do not turn it into project memory. Follow the no-direct-main/no-merge/no-workflow-dispatch/no-release rules in AGENTS.md. + +### What the Project does and does not do + +- Project chats and files give the next chat shared context, so you do not need to paste the full development history each time. +- GitHub remains the durable source of truth for code, commits, PRs, build logs and release assets. +- Project file attachments are not guaranteed to auto-synchronise every GitHub edit. When the journal changes, refresh corresponding Project source files or have the new chat fetch the live repository using the connected GitHub source. +- A regular ChatGPT chat opened outside the Project is not guaranteed to load these Project files/chats. Start the new chat inside the Project. +- No system can recover exact pixels from a screenshot that was never stored or whose attachment is no longer available. The design register records what was actually visible/said and explicitly flags missing originals instead of fabricating detail. + +### Minimal fallback prompt + +If a new chat is accidentally opened outside the Project, use: + +> Continue my CurrentLens project from its persistent GitHub/Project records. Read AGENTS.md, docs/PROJECT_HANDOFF.md, docs/SESSION_LEDGER.md, docs/MAIN_COMMIT_INDEX.md, docs/KNOWN_ISSUES.md, docs/DESIGN_EVIDENCE.md, docs/BUILD_AND_DEBUG.md and docs/DECISION_LOG.md before acting. I am continuing the same project, not handing it to an external developer. Do not make me restate context. + + +### Mandatory crash-context preservation +For every continuation agent, read the native launch-crash section in root `AGENTS.md`, KL-015/KL-016 in `docs/KNOWN_ISSUES.md`, the current status in `docs/PROJECT_HANDOFF.md`, and the latest crash session in `docs/SESSION_LEDGER.md`. Keep user-supplied raw traces private; only store sanitised evidence in this public repository. Preserve the rule that the production UI must retain Liquid Glass and CI does not prove device stability. diff --git a/docs/COMMIT_DETAILS.md b/docs/COMMIT_DETAILS.md new file mode 100644 index 00000000..16de3b5f --- /dev/null +++ b/docs/COMMIT_DETAILS.md @@ -0,0 +1,178 @@ +# CurrentLens — Detailed Commit and Change Notes + +This file supplements MAIN_COMMIT_INDEX.md. The index lists every main commit; this file explains the important milestones whose actual GitHub diffs were inspected in this continuity session. Do not infer the contents of an uninspected commit from its subject alone. Open the linked commit for its complete diff. + +## Initial project and build evolution + +### aa0521719a53 — initialise CurrentLens project +- Initial repository/project bootstrap. +- The first README described a native Kotlin/Compose news reader, publisher RSS discovery/excerpts, UPSC relevance mapping, article-end questions and system-wide word lookup. +- Initial product principles included no accounts, subscriptions, paid APIs, AI runtime, telemetry or tracking. +- The exact first code state is available in the commit, but the diff inspected in this pass showed the README addition only; do not overstate what that first commit included. + +### 58d5cc11d0a0 — redesign with Liquid Glass and daily editorial navigation +Files inspected included workflow/build settings, README, third-party notices, app Gradle/manifest, reader and feed repositories, LocalStore, theme resources and settings. +- Shifted the app from a basic reader description toward a local-first editorial UI with Today-oriented daily navigation and Liquid Glass. +- Raised compile SDK from 35 to 37, moved version from 0.1.0/code1 to 0.2.0/code2, increased Gradle JVM heap from 3GB to 4GB and workflow timeout from 25 to 40 minutes. +- Added concurrent feed fetching and date parsing infrastructure to NewsRepository. +- Expanded local article-cache/bookmark/settings persistence. +- Added/expanded public reader extraction infrastructure. +- Added Maven/JitPack dependency repository configuration for Prismal. +- Workflow/build changes from this early period are superseded by the current single workflow; do not restore old coordinates or assumptions. + +### 6d2f8576e3c0 — replace Archive with morphing glass Search and four-tab navigation +- Changed the UI/navigation implementation in MainActivity. +- Replaced Archive with Search and established a four-destination bottom navigation. +- Added Compose text field, IME action, focus-requester and related search keyboard/morph APIs. +- This is a key historical transition. The durable product rule is exactly Today, Explore, Search and You; no Archive. + +## Offline dictionary and study features + +### f05d51c9bdfc — add offline dictionary and refined glass interactions +Files inspected: workflow, third-party notices, WordNet attribution, DictionaryActivity, DictionaryWordPolicy, MainActivity, WordNet builder/tests. +- Added a CI step that tests the dictionary builder, downloads Open English WordNet 2025+, and generates a local SQLite database. +- Added attribution for Open English WordNet and Princeton WordNet 3.1. +- Added Android-side SQLite dictionary integration and a testable token-selection policy that rejects empty/multi-word selection where single-word lookup is required. +- Added a local offline dictionary experience and haptic/glass interaction refinements. +- This is build-time data acquisition; the app's dictionary must stay offline at runtime. +- Preserve WordNet CC BY 4.0 attribution. No remote dictionary API. + +### 544aef8a8e9f — add You dashboard and study statistics +Files inspected: manifest, LocalStore, MainActivity, StudyStats and tests. +- Disabled Android backup (allowBackup false) in the manifest, consistent with local privacy. +- Added local persistence for reading sessions and quiz attempts. +- Added StudyStats models/policies and tests for date ranges and study-stat calculations. +- Added You dashboard metrics and reading/quiz statistics. +- Added unique article/session tracking with Asia/Kolkata date logic. +- This laid the groundwork for distinguishing unique read markers from timed reading sessions. Later commits refined these semantics. + +### 0b7f6eb5770a — count only confirmed foreground reading sessions +- Changed the minimum accepted foreground reading session from 1 second to 5 seconds. +- Added tests confirming sessions shorter than five seconds are ignored. +- Changed the unique-read count logic to derive from timed reading sessions at that point; this was later corrected by commit 0032873 so legacy read markers remain counted without inventing historical timed sessions. +- Durable rule: only actual foreground reader time is timed; do not count app background time. + +### 0032873ebe5f — persist quiz answers and retain legacy read markers +Files inspected: LocalStore, MainActivity, StudyStats and related tests/filters. +- Added a 500-entry detailed-quiz-attempt cap while retaining up to 5,000 aggregate attempts. +- Added QuizAnswerRecord with prompt, selected/correct answers, option indices, explanation and provenance. +- Restored legacy read URLs into the unique-read count by combining read markers and timed sessions, while not inventing timed history for old URLs. +- Removed Archive filter/test from ArticleFilters as the four-tab direction settled. +- Durable semantics: quiz data is persisted as an attempt only after submission; legacy read markers count as read status only, not as a fabricated duration/date. + +### 407103c211c8 — resume reading from saved article position +- Added ReaderPosition storage and policy. +- Bounded saved positions to 100 entries, 2,048 URL characters, 30-day age, and only meaningful incomplete progress (minimum save threshold is defined by ReaderPositionPolicy). +- MainActivity stores/restores article scroll progress. +- This is separate from timed reading sessions; do not mix position restoration with reading-time accounting. + +## Reader security, extraction and cache integrity + +### 6e218cbd8750 — preserve bookmarks and sanitize extracted reader HTML +Files inspected: ArticleCachePolicy, ArticleReaderRepository, LocalStore and regression tests. +- Added an explicit cache policy: preserve bookmarked stories even when older than the rolling cache cutoff/soft limit. +- Added/used Jsoup Safelist sanitization to strip unsafe markup/attributes while preserving readable article content. +- Added tests for pinned bookmarks and unsafe executable markup. +- Durable rule: user-saved items are explicit user choice and should not disappear simply because the feed cache expires. +- Never weaken reader HTML sanitization or public-publisher access limits. + +### 8f9258b4da65 — scope reader JavaScript to sanitised articles +- Tightened ReaderExecutionPolicy so JavaScript is enabled only for the app-owned, sanitised article document needed for the text-selection bridge. +- Removed the earlier possibility of enabling app JavaScript in a publisher fallback page. +- Updated tests to enforce the narrower rule. +- This is a security boundary. Do not enable JavaScript or DOM storage for publisher fallback pages. + +## Editorial classifier and feed policy + +### 682432a6a312 — gate default feeds for UPSC relevance and add image palette bleed +Files inspected: MainActivity, UpscFeedPolicy and test. +- Introduced UpscFeedPolicy as a strict editorial eligibility gate for Today/Explore/Search. +- Initial policy suppresses entertainment noise and requires mapped GS subject plus concrete syllabus signals; the initial rule implementation was later hardened. +- Initial card image palette treatment introduced a blurred background image effect. Later PR #3 deliberately removed the second 30dp blurred image per card due scroll overhead and moved to one decode + one-time palette sampling. Do not restore the expensive first approach. +- The main classifier still needs explicit false-positive and false-negative coverage; a general keyword count is not validation. + +### f758af2ecc38 — harden UPSC signal matching and feed eligibility +Files inspected: ArticleCardMetaPolicy, MainActivity, UpscEngine, UpscFeedPolicy and tests. +- Added whole-token/whole-phrase matching with Unicode-aware punctuation normalization. Substrings inside unrelated words (e.g. “rbi” within “arbitrary”) are not signals. +- Tightened policy gate: broad category/publisher section labels alone cannot qualify. A story needs an explicit GS map and a specific syllabus signal. +- Exposed concrete matched terms in card metadata, rather than a vague classifier hint. +- Added regression tests for false-positive substring matching and weak section/category signals. +- This remains a keyword heuristic, not a validated relevance score or exam prediction. + +### 6cf84bacd3dc — align economy signal-count expectation +- Corrected one test fixture to expect four signals rather than three: RBI, repo rate, inflation and monetary. +- This was a stale test expectation, not evidence that a user-facing classifier bug was fixed. +- Build #97 failed with the stale assertion; subsequent Build #98 succeeded. + +## Liquid Glass and scrolling performance + +### df28a43c0bea — polish glass surfaces and remove feed scroll overhead +- MainActivity and theme resources were changed for a more cohesive glass UI and transparent system bars. +- Commit description says it removed feed scroll overhead; this phase is associated with screenshot-driven header/filter/navigation/card/loading improvements recorded in PR #3. +- PR #3's recorded intended result: restrained glass toolbar, Explore chip band, selected icon drawn crisp above active lens, squircle image cards, skeleton loading, transparent Search/IME. +- Important performance correction from PR #3: avoid drawing a second blurred image copy behind every card. Use the same Coil-loaded image, a one-time nine-point palette sample and light radial ambient tint. + +### c403d7f2597d — PR #3 design/performance refinement (PR branch commit, not a main commit index entry) +- The inspected PR-branch diff included MainActivity and theme changes for Liquid Glass surfaces, system bars and image palette treatment. +- This SHA does not appear in the current main commit list; it is recorded as a PR-branch implementation reference, not as a main commit. +- Use PR #3's merged diff and supplied screenshot observations as the definitive evidence for all of its changes. + +### 81de60cca96b — harden cold start and reduce rendering workload +- Reduced the existing 8×8 adaptive glass readback cadence: API 31+ changed from 600ms to 1,500ms; older Android from 1,500ms to 2,500ms. +- Changed startup restoration/feed filtering and moved hot-path work off main, per commit description and PR #7 body. +- Bounded image decode and guarded image-palette sampling. +- Added OEM-specific defensive handling around system-bar operations. +- These are code-level defensive changes. They do not prove the Android test device cold-start crash was fixed. + +### 2475970123a2 — harden launch, reduce feed jank and finish glass polish +Files inspected: EditorialFeedIndexPolicy, LaunchCrashDiagnostics, LocalStore, MainActivity and tests. +- Added shared EditorialFeedIndexPolicy to compute one eligible/today/explore index off the main thread, reused by Today/Explore/Search. +- Added local-only crash diagnostics: stores a bounded on-device crash report; nothing is uploaded. Formatter test checks device/thread/exception content and bounded size. +- Hardened SharedPreferences restore with runCatching fallback for malformed/wrong-typed values. +- Added selected-state/accessibility semantics and nav/Search visual refinements. +- Removed recurring 8×8 graphics-layer readback from the feed path at this stage; theme-derived glass contrast replaced it. A later draft PR #13 proposes restoring one shared low-cadence adaptive probe. +- The crash diagnostic was intended to capture future failures; it does not prove the crash root cause or fix the user's Android test device device. + +## Other important reversals and feature boundaries + +### 032cb41f7ca5 — remove bundled pronunciation data and UI +- Removed previously added CMUdict download/build integration, CMUdict licence file and pronunciation UI/data structures. +- Simplified dictionary data builder back to Open English WordNet only. +- User-facing pronunciation should not be reintroduced unless explicitly requested; do not quietly add external data/permissions/dependencies. + +## How to extend these notes + +This file currently explains selected high-impact commits whose diffs were inspected in this session. MAIN_COMMIT_INDEX.md has every main commit SHA/date/subject. Future material commits must receive a full entry here or in SESSION_LEDGER.md, including changed files, exact behavioural changes, reason, tests, failure/fix chain, risks and verification. If an old commit has not been inspected, say so and link to its diff rather than inventing detail. + + +## PR #16 — early-startup crash instrumentation and recovery + +URL: https://github.com/Batmancpu/CurrentLens/pull/16 +Snapshot head: b66315c2f82f7785e7dfd96577d83d203770faad +Base main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 + +### Why this change was made +Main previously installed its uncaught-exception handler in MainActivity.onCreate(). PrismalAGSL v1.0.4's merged manifest registers an AndroidX Startup InitializationProvider, so its initializer executes before MainActivity. A managed failure in that earlier phase can occur before the old handler exists. Prismal's initializer itself only binds the asset manager; this is not evidence that Prismal causes the crash. The earlier recovery screen also used Compose and could fail again if Compose/graphics were involved. Android references: https://developer.android.com/topic/libraries/app-startup and https://developer.android.com/reference/androidx/startup/InitializationProvider. + +### File-level changes +- AndroidManifest.xml registers CurrentLensApplication as the Application class. +- CurrentLensApplication.kt installs crash handling from attachBaseContext(), before ContentProviders/AndroidX Startup, and records startup milestones. +- LaunchCrashDiagnostics.kt stores exception reports with device/build/app info and full stack; writes through a temporary file with fsync; tracks the last startup stage; detects a prior process end before first Compose frames even without an uncaught Java/Kotlin exception; explicitly labels that as an interruption marker, not a stack trace; marks healthy only after three Compose frame callbacks; synthetic diagnostic write failures and Application-level diagnostic installation/checkpoint operations are best-effort and must not abort app startup. +- MainActivity.kt shows crash details through ordinary Android Views, not Compose, with selectable text and copy action; records startup checkpoints and marks first launch healthy after three frame callbacks. +- LaunchCrashDiagnosticsTest.kt adds checks for managed-exception reports, interrupted startup report wording and bounded report size. + +### Scope and status +This does not change Prismal dependency/version, shaders, RSS, feed classifier, local data semantics, navigation, privacy permissions, or CI workflow. It does not establish the underlying crash root cause and is not proof of a fix. Tests were added but not executed; PR workflow has no CI trigger. Physical-device verification is mandatory after an APK is built and installed. + + +## PR #16 continuation — privacy minimisation and staged startup probe (6 November 2026) + +The 0.2.3 Legacy-only experiment still crashed on the owner's device. Its partial native trace was not sufficient to assign the cause to a particular function or thread. This continuation therefore restores the normal visual pipeline and adds a Stability-only isolation stage rather than permanently degrading the product. + +- `CurrentLensApplication.kt` no longer forces Prismal Legacy. Automatic pipeline selection and the full Liquid Glass effects are restored for normal builds. +- `MainActivity.kt` selects the new probe only when `STABILITY_TEST_BUILD` is true; otherwise it starts the complete app directly. +- `StabilityLaunchProbe.kt` renders a plain Compose/Material screen without Prismal backdrops, sampled GraphicsLayers or glass modifiers. The button transitions into the full app with normal effects. +- `LaunchCrashDiagnostics.kt` strips device/build identifiers and raw traces from shareable reports and removes previous detailed local reports on upgrade. Internal stage matching remains local. +- `StartupRenderPolicy.kt` and its test were removed to avoid a permanent Legacy override. +- Gradle version is 0.2.5, code 7. Actions Build #158 passed compile/tests/artifact upload; the physical device remains unverified. +- No report contents that identify the owner or the owner's handset were copied into public code, docs or PR text. diff --git a/docs/DECISION_LOG.md b/docs/DECISION_LOG.md new file mode 100644 index 00000000..8a0cec21 --- /dev/null +++ b/docs/DECISION_LOG.md @@ -0,0 +1,78 @@ +# CurrentLens — Decision Log + +This file stores durable product and engineering decisions, not routine status. The live snapshot is in PROJECT_HANDOFF.md and the chronological memory is in SESSION_LEDGER.md. + +## D-001 — UPSC CSE is the editorial product, not a tag on a general news reader +Today, Explore and Search are strict UPSC-first current-affairs surfaces. Suppress broad celebrity/entertainment promotion, box-office coverage, reality-TV drama, routine sports scores and generic viral content. Retain real law, policy, regulatory, judicial and institutional developments even if their subject area is often noisy. + +## D-002 — Editorial mapping must be explainable and non-predictive +An eligible story needs a defensible GS paper, specific official syllabus theme and explainable reason. Use official UPSC syllabus and latest available official Prelims/Mains PYQs. Keyword rules are indicative signals, never a validated score/probability/rank or future-question prediction. Label positives, false positives and false negatives. Synthetic fixtures are not an accuracy benchmark. + +## D-003 — Publisher provenance is not primary-source corroboration +RSS tells which publisher supplied the report. It does not verify the claim against a primary source. Preferred corroboration: PIB, Gazette of India, ministries/departments, Parliament, PRS, RBI, Supreme Court and statutory/regulatory bodies. Store exact public document and claim supported; otherwise state “not independently corroborated”. + +## D-004 — Exactly four primary destinations +Today / Explore / Search / You. Saved stays inside You. No Archive tab. + +## D-005 — Local-first privacy and narrow networking +No accounts, cloud AI, analytics, telemetry, tracking, paid APIs or crash-reporting service. Network only for RSS and publicly accessible publisher pages. No paywall bypass, logged-in cookies, subscription tokens, proxying or publisher fallback JavaScript/DOM storage. Local crash diagnostics must remain on-device and bounded. + +## D-006 — Offline dictionary +Open English WordNet is bundled as local SQLite generated at build time; definitions do not require runtime network. Preserve attribution and CC BY 4.0 terms. No remote dictionary/AI service. + +## D-007 — Time and study statistics have explicit semantics +All current-affairs day boundaries use Asia/Kolkata. Reading duration counts only while reader is foregrounded and flushes on lifecycle pause/exit. Quiz attempts persist only on explicit submit. Do not infer historical dates/durations for legacy read URL markers. Any read-marker retention change must preserve or explicitly redefine lifetime unique-read counts. + +## D-008 — Reader respects public publisher access +Use RSS metadata plus best-effort extraction from publicly accessible publisher pages. If unavailable, offer allow-listed original public page or explain limitation. No logged-in sessions/cookies/paywall workarounds/subscription tokens/private proxies/fallback JavaScript/DOM storage. + +## D-009 — Liquid Glass is subordinate to readability and frame stability +Use restrained shared surfaces; preserve PrismalAGSL v1.0.4 and MIT notice. Avoid per-cell blur, duplicate decoding and high-frequency GPU readback. Verify contrast, selected glyph clarity, TalkBack, touch size, safe areas, font scale, Reduce Motion and IME. Performance claims require device traces/frame-time. + +## D-010 — CI is not device verification +Do not claim a launch crash, visual defect or scroll-jank issue is fixed from CI compile/tests alone. Use local crash report/logcat/tombstone/ANR and physical device; use screenshot/Perfetto/frame-time/memory for UI/performance issues. + +## D-011 — Main branch and Release safety +No direct main edits/pushes, no PR merges, no workflow edits, no build dispatch/rerun and no Release publication during ordinary review. Material work goes through isolated branch and focused draft PR after duplicate-PR inspection. The one workflow is push-to-main, contents:write and automatically publishes debug APK prereleases. + +## D-012 — Keep README concise; keep project memory separate +README remains a concise public overview. AGENTS.md is the mandatory rulebook; PROJECT_HANDOFF is a live snapshot; SESSION_LEDGER is chronological memory; MAIN_COMMIT_INDEX is the complete commit inventory; KNOWN_ISSUES tracks defects; DESIGN_EVIDENCE tracks visual requirements/assets; BUILD_AND_DEBUG stores CI/build/failure details; DECISION_LOG stores durable rules. + +## D-013 — Continuity is for the same user's future ChatGPT chats +The persistent memory exists so the same user can switch to a new ChatGPT conversation when an older chat reaches its context limit. It is not primarily an external-team handover. Use one ChatGPT Project with shared chats/files/instructions and keep GitHub as durable source of truth. Project source-file copies may not auto-sync with GitHub; refresh them after material changes. + +## D-014 — Every material change and failure must be journalled +Every material engineering session and code commit must have detailed ledger entry: user request, exact files, before/after, reason, tests, CI/device evidence, failed attempts, fix, risks, verification, rejected approaches and next steps. Do not invent exact details from missing screenshots/logs. GitHub commit is canonical for its own final SHA; record the SHA in the next ledger refresh. + +## Initial historical work recorded 6 November 2026 + +- PR #1 merged: strict whole-token editorial matching and explicit syllabus signals. +- PR #2 merged: corrected four-signal economy test. +- PR #3 merged: Liquid Glass header/Explore filters, crisp selected glyph, one-time image palette sample, squircle cards, skeletons and transparent IME. +- PR #4 closed unmerged (duplicate icon import follow-up). +- PR #5 merged: supported Compose navigation imports. +- PR #6 open draft: Geography mapping/card rationale/accessibility. +- PR #7 merged: startup defensive changes/off-main restoration; no device proof. +- PR #8 open draft: off-main local persistence. +- PR #9 merged: local crash diagnostics, off-main editorial index, theme-derived contrast and hardening. +- PR #10 merged: Search draw-scope compile fix. +- PR #11 open draft: publication date and cache hardening. +- PR #12 open draft: Atom alternate link selection. +- PR #13 open draft: low-cadence adaptive glass contrast restoration. +- PR #14 open draft: expanded ChatGPT context continuity memory; README excluded. + + +## D-015 — Install launch diagnostics before AndroidX Startup +Decision: The uncaught-exception handler must be installed from custom Application.attachBaseContext(), not MainActivity.onCreate(), because AndroidX Startup ContentProviders (including PrismalAGSL's initializer) execute before any Activity. Keep startup checkpoints in app-private storage and use a framework-View recovery surface so failure details remain visible without re-entering the potentially failing Compose/graphics stack. + +Scope: This improves crash evidence and recovery, does not assert that Prismal or any other component is the actual root cause, must not add telemetry/network uploads, and must not let diagnostic setup or checkpoint storage failure block application startup. A startup interruption without a managed stack must be labelled as such, never represented as a Java exception. Physical-device validation remains mandatory. + + +## D-016 — Crash diagnostics are local and data-minimised +All crash/startup reports remain in app-private storage and are never automatically uploaded. Shareable diagnostics omit device identifiers, build fingerprints, process/thread IDs, exact timestamps, memory addresses, raw tombstones/Base64 traces and exception messages. Internal process markers may be used privately for Android exit-record correlation but must be stripped from displayed/exported reports. Clear older local reports that expose device/build identifiers when upgrading. + +## D-017 — Preserve Liquid Glass; isolate startup in a test-only probe +The production app must retain Prismal's normal automatic pipeline and complete Liquid Glass visual intent. If startup needs isolation, use a Stability-only plain Compose/Material first screen without Prismal capture/drawing, then let the owner opt into the full app with all effects active. A Legacy/flat diagnostic configuration is not a permanent product decision. Do not claim stability until repeated physical-device tests pass. + +## D-018 — One active integration branch per continuing issue +Reuse the current issue's open integration branch/PR and batch related work there. Avoid branch-per-file/per-session/per-agent. Preserve independent unmerged feature branches until reviewed or explicitly abandoned. Delete merged/stale refs only after confirming no unique work; branch count is repository hygiene, not a runtime cause. diff --git a/docs/DESIGN_EVIDENCE.md b/docs/DESIGN_EVIDENCE.md new file mode 100644 index 00000000..7b6a3390 --- /dev/null +++ b/docs/DESIGN_EVIDENCE.md @@ -0,0 +1,130 @@ +# CurrentLens — Design Intent and Visual Evidence Register + +This file preserves visual intent and the evidence actually available. It distinguishes user-provided source images, descriptions from conversation history, implementation assets and assistant inference. + +## Product-wide visual target + +- Android reading app with a restrained, high-quality Liquid Glass design language; quality target described as Apple-level polish, not a generic Material template or obviously AI-generated visual. +- Glass must support legibility and navigation first. Material effects, translucency and motion are subordinate to accessibility, battery, memory and scroll stability. +- Feed should feel like a deliberate editorial reading product: strong hierarchy, controlled spacing, clear typography, restrained image treatment, useful skeleton states and minimal noise. +- Visual system should be coherent across Today, Explore, Search, You, reader, dictionary overlays and navigation. +- Avoid visual novelty that introduces stutter, layout jumps, inaccessible contrast, unnecessary blur or excess vertical space. + +## Navigation and glass + +- Exactly four destinations: Today / Explore / Search / You. Saved remains within You. +- Bottom bar is icon-led/icon-only where appropriate, with clear active-state contrast and accessible labels. +- Selected glyph must remain crisp and visible above active liquid/glass lens. Do not draw it twice or let the lens blur it. +- Active/inactive states need strong contrast over light and dark content behind transparent material. +- Explore filters should sit inside same material language as navigation, with coherent translucent selected states and at least 48dp interaction targets. +- Continuous/squircle corners are preferred over generic hard rounded rectangles. + +## Article cards and images + +- User feedback targeted an oversized dark inset image frame and duplicate/blurred imagery. +- Desired direction: image should meet card edge cleanly; card uses continuous corners; subtle ambient colour wash may be derived from same already-loaded image. +- Previous implementation drew a second image copy and applied a 30dp blur behind every visible card. Deliberately removed in PR #3 because expensive during scrolling. +- PR #3 uses one Coil image result and a one-time nine-point sample to drive a light radial palette wash. Do not reintroduce second image decode or continuous per-card blur. +- If article URL's image changes, invalidate prior palette; stale colour must not bleed into replacement article card. Proposed in PR #6, not confirmed on main. + +## Search and keyboard / IME + +The user reported: +- Search field sits much too far above keyboard instead of naturally just above it. +- Gap looks like a layout bug. +- Search field movement when keyboard opens/closes is stuttery. +- Morph between Search field and selected bottom tab is not fluid enough. +- Keyboard/system-bar backdrop should visually integrate; avoid opaque dark/black regions behind transparent Search/IME. + +Historical implementation work includes Search morphing from bottom tab, Compose IME inset observation, geometry-aware anchor/fallback and preserving capsule geometry. These changes do not mean latest visual behaviour is physically verified. Re-check on user's actual device, Android version and active keyboard. + +## Reader and dictionary visuals + +- Reader prioritizes comfortable reading, clear article dates/provenance and stable geometry. +- Dictionary definition should visually grow from selected word and stay anchored to word, while remaining inside reader viewport on compact screens. +- Definition cards compact-first and expandable rather than a large fixed popover. +- Preserve native WebView text selection and multi-word selections. Avoid auto-defining stale text after user changes selection, interrupts touch, uses multi-touch or scrolls. +- Keep pronunciation data/features out unless user explicitly asks to restore them: offline CMUdict US pronunciation was added and later removed by commit 032cb41f7ca5. + +## Loading, motion and accessibility + +- Skeleton cards preserve final layout and reduce empty-state jumps. +- Avoid continuously animated shimmer loop on scroll-sensitive feeds unless measured and requested. +- Search morph and keyboard transitions should be fluid but not springy/overshooting in a way that harms position. +- Support TalkBack descriptions/selected state, 48dp touch targets, font scaling and Reduce Motion. +- Respect safe areas, system bars, edge-to-edge and OEM variation. +- Do not use high-frequency GPU readbacks or blur shaders in every list cell. One shared low-cadence sampler is the upper bound proposed in PR #13; even this needs physical-device validation. + +## Launcher icon: user intent and current vector output + +### User's explicit feedback + +- Earlier icon looked too AI-generated. +- User wanted the Liquid Glass design language. +- Central symbol inside rounded square/circle-like icon container should read as a newspaper/news sheet. +- Icon should look intentionally designed and recognizable at launcher size, not like a generic AI illustration. +- Visual identity should be name-independent; no wordmark printed in icon. + +### Current source asset inspected on main + +File: artwork/brrrnews-icon.svg. Introduced by commit c5e7746b2487 (6 Nov 2026). + +Source facts: +- SVG viewBox 108 × 108. +- Outer dark surround #0C1523 with 30-unit rounded rectangle. +- Inner tile 96 × 96, x/y 6, radius 27. +- Tile gradient #334F70 → #20364F → #111E30. +- Glass-edge treatment uses white/blue translucent strokes. +- Central newspaper sheet is a pale translucent paper panel, approx x=14–93, y=11–97, rounded with glass highlight. +- Content: dark headline bar, small blue landscape/photo block with a sun and mountain-like shapes, several article text lines and divider rules. +- Cool navy/blue/white palette; no visible brand wordmark. +- Android vector/adaptive launcher resources include ic_brrrnews_foreground.xml, ic_launcher.xml, ic_launcher_round.xml and values/colors.xml. +- This artwork is implementation output, not the user's original reference. + +### Branding case discrepancy + +- User previously specified brrrNEWS (lowercase b + three lowercase r's + uppercase NEWS). +- Later main commits initially set brrrNEWS, then commits 36fa410f8af9, cae53afc7eb1, a277d9bf1737 and 73b8a0d1ba33 changed display/copy/theme/README/SVG accessibility text to brrrNews. +- Current SVG aria-label: “brrrNews glass newspaper app icon”. +- Confirm canonical user-facing case before any future branding edits; do not silently oscillate. +- Repository remains CurrentLens; app display identity is separate. + +## Historical screenshot/video evidence referenced in PR descriptions + +PR #3 records supplied Android test device screenshots showing: +1. Flat Today/Explore/Search/You header bands. +2. Explore topic chips visually unrelated to rest of UI. +3. Selected Today lens blurring its own navigation icon. +4. Large rounded-rectangle/dark inset framing around article images. +5. Search keyboard/system-bar backdrop visually disconnected. +6. Empty/loading state needed more intentional skeleton presentation. + +PR #3 records the design/performance response: +- restrained Prismal glass toolbar, +- Explore chips inside shared frosted band, +- crisp selected glyph above active lens, +- one image decode with one-time nine-point palette sample instead of second 30dp blur, +- squircle cards and image-to-card-edge geometry, +- static card skeletons, +- transparent Search/IME surfaces. + +Earlier/later chat summaries preserve the Search keyboard gap and morph stutter. Original screenshot/video bytes are not currently stored in repository; pixel-level measurements and exact colour/spacing cannot be reconstructed from text. + +## Evidence handling for every future image/video + +When user supplies image/screenshot/recording/reference, add an entry containing: +- Stable evidence ID and original filename. +- Date/time received and app build/commit if visible or supplied. +- Device/model, Android version, display size/density, theme and keyboard if known. +- Screen and interaction state (scroll position, tab, keyboard open/closed, loading/loaded, selected item). +- What is actually visible; no inference of hidden implementation. +- User's exact criticism/request in their wording where possible. +- Required change and acceptance criteria. +- Related source file, issue ID, PR and resulting commit once implemented. +- Whether original is stored, redacted, private-only or unavailable. + +Do not upload private screenshots to this public repo without explicit approval. Do not invent dimensions, colour values, spacing or timing from memory. If original unavailable, state that only textual observation is retained. + + +## Liquid Glass and startup-isolation boundary (6 November 2026) +The owner explicitly wants the original expensive Liquid Glass effects preserved. Stability-only builds may use a plain first-screen probe before the full composition; this is not a replacement design. Normal app builds must use the complete Prismal automatic pipeline. Do not use the flat diagnostic screen as the default production appearance or call it a visual redesign. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md new file mode 100644 index 00000000..2e5093ac --- /dev/null +++ b/docs/KNOWN_ISSUES.md @@ -0,0 +1,135 @@ +# CurrentLens — Known Issues and Verification Register + +Status vocabulary: +- Verified on main: directly present/reproduced in current main code or CI evidence. +- User-reported: user observed it; durable reproduction evidence may be absent. +- Draft PR: proposed on branch, not shipped. +- Unverified: insufficient device/test evidence. +- Resolved in code: code path changed; runtime/user outcome is not automatically proven. + +Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). + +## Highest-priority reliability + +### KL-001 — Android test device cold-start crash +- Status: User-reported; root cause unverified; not certified fixed. +- User reported installed Build 100 exited immediately on open on the Android test device. +- PR #7 moved cached articles/bookmarks/read history/session/quiz restore off UI, cached feed filters, bounded image decode, guarded palette sampling, guarded OEM system-bar styling and reverted icon substitution. Merged as 81de60c. +- PR #9 added bounded local-only uncaught-exception diagnostics/recovery, moved shared feed index off composition path, hardened SharedPreferences restore, reduced rendering work. Merged as 2475970. +- PR #10 fixed Search glass compile scope. Main ba06a8f passed Build #103. Main later received branding commits; Build #116 succeeded. +- No Android test device logcat, local crash report, tombstone, ANR or physical cold-launch proof available in captured evidence. +- Do not claim crash fixed from CI. Retrieve local crash report if recovery UI appears, or capture logcat/tombstone. Test cold, restored-state and warm launch separately. + +### KL-002 — Main-thread local persistence +- Status: Draft PR #8; not shipped/verified. +- Main LocalStore.kt/MainActivity paths perform synchronous preference/JSON operations for reading-session history, quiz history, reader positions and read markers in some interaction/lifecycle paths. +- PR #8 moves operations to IO and uses mutexes/ordering to avoid save/clear races. +- Risks: async UI state updates, process death during writes, unbounded read-marker set, lifetime unique-read semantics. +- PR #8 now 13 commits behind/diverged; do not blindly merge/reimplement. + +### KL-003 — Read-history storage unbounded +- Status: Known design risk; PR #8 does not fix retention. +- Read-marker URL membership is retained to preserve lifetime unique-read counts. Any cap/pruning requires product/migration decision and clear metric semantics. Do not silently truncate. + +## Search, IME and visuals + +### KL-004 — Search vertical gap and transition stutter +- Status: User-reported; physical-device verification outstanding. +- Search field reportedly sits far above keyboard; rise/fall/morph is stuttery. +- Historical Search/IME work: b48ccfb, 2154ed0, f52863d, 4f87667, 5ec5d9f, ef3622b. +- Capture current Android test device screen recording with keyboard open/closing; measure IME insets and field-bottom-to-keyboard-top gap. No speculative offset constants. + +### KL-005 — Adaptive glass contrast differs from older descriptions +- Status: Main is theme-derived; adaptive restoration is Draft PR #13. +- PR #9 removed recurring 8x8 readback from feed in favour of theme-derived contrast. Probe implementation remains in source. +- PR #13 proposes one shared bottom-band probe, low cadence and foreground/home/Search gating; it is 13 commits behind/diverged. +- No physical-device GPU/frame-time proof. Verify active call site before describing as shipped. + +### KL-006 — Explore chip accessibility +- Status: Draft PR #6. +- PR #6 proposes 48dp filter hit targets and selected-state TalkBack semantics; not on main. 13 commits behind/diverged. +- Verify TalkBack and touch on device after integration. + +### KL-007 — Reader font-scale propagation +- Status: Needs physical review. +- WebView CSS sizing may not automatically track Android system font scale. Verify on large system font settings. + +## Editorial trust + +### KL-008 — Geography false negatives +- Status: Draft PR #6; not in main. +- Main UpscEngine rules lack dedicated GS I Geography rule per source inspection. PR #6 adds Geography themes/category. +- PR #6 is 10 ahead/13 behind latest main, diverged. Review/rebase before relying on it. + +### KL-009 — Primary-source corroboration +- Status: Open product gap. +- Main has 14 configured publisher RSS feeds: The Hindu 7, Indian Express 4, BBC 1, DW 1, Al Jazeera 1. +- Publisher RSS URL/excerpt/timestamp is publisher provenance, not independent primary-source corroboration. +- No per-story independently checked primary-source record exists in main. +- Future record should store primary document URL, issuing authority, publication date and exact claim supported; otherwise display “not independently corroborated”. +- Never fabricate official evidence or describe a publisher RSS feed as a ministry/PIB source. + +### KL-010 — Atom alternate link selection +- Status: Draft PR #12; not shipped. +- Main parser uses a single link variable; Atom rel=self may overwrite rel=alternate depending on element order. +- PR #12 collects candidates and prefers safe HTML rel=alternate, with focused tests. +- PR #12 1 ahead/13 behind and diverged. + +### KL-011 — Publication-date precedence/cache +- Status: Draft PR #11; not shipped. +- Main can let Atom updated overwrite published; unparseable dates can remain cached; arbitrary future dates are not bounded. +- PR #11 prefers pubDate/published, uses updated only as fallback, excludes undated/stale/far-future unsaved stories while keeping bookmarks. +- PR #11 2 ahead/13 behind, diverged. +- URL duplicate detection remains exact; tracking parameters can create duplicates. Do not strip all query parameters blindly. + +### KL-012 — Editorial relevance validation +- Status: Heuristic + synthetic tests only. +- Main uses whole-token/phrase matching plus rule-based GS map/suppression; not statistically validated. +- Synthetic fixtures do not prove precision/recall. Do not report score as validated or predict exam questions. +- Evaluate both false positives and false negatives on labelled real corpus. +- Main includes broad film noise term per source review; PR #6 proposes retaining thin-film photovoltaics while excluding film promotion. + +## Branding and design + +### KL-013 — Canonical app-name capitalization +- Status: User preference/code discrepancy. +- User previously specified brrrNEWS (lowercase b + three lowercase r's + uppercase NEWS). +- Main commits first set brrrNEWS, later changed display/copy/theme/README/artwork aria-label to brrrNews. +- Confirm before future branding changes. + +### KL-014 — Original screenshots/videos missing from repository +- Status: Historical descriptions only. +- PR #3 describes supplied Android test device screenshots, but original image/video bytes are not stored in this repo snapshot. +- Design observations are in docs/DESIGN_EVIDENCE.md; exact dimensions/colours/coordinates cannot be reconstructed. +- Do not publish private screenshot assets without explicit approval. + +## Open PR state at snapshot + +- #6 open draft: 10 ahead / 13 behind latest main, diverged. +- #8 open draft: 3 ahead / 13 behind, diverged. +- #11 open draft: 2 ahead / 13 behind, diverged. +- #12 open draft: 1 ahead / 13 behind, diverged. +- #13 open draft: 1 ahead / 13 behind, diverged. +- #14 continuity documentation PR: being rebuilt on latest main; README excluded. +- No PR branch CI result is implied by passing Build #116. + + +### KL-015 — Latest launcher cold-start exits back to Android launcher +- Status: User-reported; root cause unverified; PR #16 adds earlier diagnostics/recovery but does not prove the root fix. +- Current symptom: tap app icon → opening animation → no visible app screen → Android returns to launcher. +- Same user previously reported a cold-start failure on the Android test device around Build 100. Do not assume the old and new events have identical causes until log evidence matches. +- Main's prior handler was installed only in MainActivity.onCreate(). PrismalAGSL v1.0.4 registers an AndroidX Startup InitializationProvider through its merged manifest, which is initialised before Activity creation. Prismal's initializer itself only binds the asset manager; this identifies an instrumentation blind spot, not proof that Prismal is the crashing component. Android references: https://developer.android.com/topic/libraries/app-startup and https://developer.android.com/reference/androidx/startup/InitializationProvider. +- PR #16: https://github.com/Batmancpu/CurrentLens/pull/16 (draft, unmerged; branch head b66315c2f82f7785e7dfd96577d83d203770faad). +- PR #16 installs the local handler from Application.attachBaseContext(), records startup checkpoints, writes detailed exception reports and falls back to a plain Android View recovery screen. It can also record a clearly labelled startup interruption without a managed stack trace. Diagnostic setup/checkpoint I/O is best-effort. All diagnostics setup/checkpoint I/O is best-effort and must not itself abort Application startup. +- No current Android test device logcat/tombstone/ANR/local crash report is available. Do not claim fixed from source review or CI. +- After review/merge and installation, retry launch and copy the native recovery report. If no report appears, obtain Android bugreport/logcat/tombstone/ANR evidence; native/system kills may not invoke a Java uncaught-exception handler. + + +### KL-016 — Native crash persists under Prismal Legacy; full-cause isolation pending +- Status: User-reproduced on Stability 0.2.3; root cause still unverified. +- The 0.2.3 test build forced Prismal Legacy on Android API 33+ (AGSL and RenderEffect disabled), but the owner supplied a new `CRASH_NATIVE` / signal 11 startup report. The last persisted app stage was `MainActivity.setContent returned`; the next `BrrrNewsApp` composition checkpoint had not been persisted. +- A partial native tombstone excerpt contains ART finalizer/monitor wait symbols and a stack-pointer heuristic. It does not, by itself, prove that ART finalization, recursion, Prismal or a named app function caused the failure. The report did not capture a Java/Kotlin exception. +- The new trace differs from the earlier Mali/HWUI/Skia trace. Keep both signatures as evidence; do not collapse them into one confirmed cause. +- Stability 0.2.5 adds a plain Compose/Material first-launch probe, then a manual transition to the full app with Prismal's normal pipeline. The automatic Legacy override was removed. Build #158 passed CI; physical-device result remains pending. +- Required next test: confirm probe cold-launch, tap into the complete Liquid Glass app, then repeat at least five cold/warm launches. If failure occurs, note whether it happened before or after the full-app button using the privacy-minimised local report. +- Do not publish raw traces, build fingerprints, device model/code, PIDs/TIDs, exact timestamps or memory addresses. See root `AGENTS.md`. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md new file mode 100644 index 00000000..ccb2da5b --- /dev/null +++ b/docs/PROJECT_HANDOFF.md @@ -0,0 +1,183 @@ +# CurrentLens — Latest project handoff (6 November 2026) + +> This is the newest status snapshot and supersedes older dated snapshots below where they conflict. Full chronological context remains in SESSION_LEDGER.md. + +## Current repository state +- Main remains at `73b8a0d1ba33503fede02db2c3c0af082d724a12`; no direct-main edit, merge or production release was performed in this stabilisation session. +- Active draft PR: [#16](https://github.com/Batmancpu/CurrentLens/pull/16), branch `fix/early-startup-crash-diagnostics-2026-11-06`. +- The branch contains the launch diagnostics, privacy-minimised reports, network redirect/cookie guards and a Stability-only launch probe. Reuse this branch for this ongoing crash investigation; do not open another branch/PR for the same work. +- Current Stability code is v0.2.5, versionCode 7. CI Build #158 / run `42239425526` passed compilation, unit tests, APK assembly and artifact upload. The workflow did not publish a Release. +- CI is not physical-device verification. The native launch crash is not yet marked fixed. + +## Crash evidence and next action +- Stability 0.2.2 reported a native crash with a partial Mali GPU / Android HWUI / Skia rendering trace. +- Stability 0.2.3 forced the Prismal Legacy pipeline but still crashed with `CRASH_NATIVE` / signal 11. The last stored application checkpoint was `MainActivity.setContent returned`; the report did not record the next app-composition checkpoint. +- The 0.2.3 partial tombstone excerpt contains ART finalizer/monitor frames and a system stack-pointer heuristic. This does not prove a source-level stack overflow or identify a specific faulty app function/thread. No Java/Kotlin exception was captured. +- Stability 0.2.5 provides a plain Compose/Material probe on cold launch and a button to enter the full app with the original Liquid Glass rendering restored. Test the probe first, then tap into the full app. Repeat cold launch and full-app entry at least five times. +- Normal/production builds start the full app directly with Prismal's normal automatic pipeline; no global Legacy override remains. +- Never place exact device/build identifiers, process/thread IDs, precise timestamps, memory addresses or raw traces in public records. Diagnostic reports remain local. + +## Branch cleanup +At the latest audit there were 17 refs including main. Several are old branches for already-merged PRs; others contain independent unmerged feature work. Branch count itself does not cause the native crash. PR #14's continuity documents are now being copied into this active PR so the duplicate docs PR can be closed after verification. The current GitHub connection cannot delete branch refs; do not claim that stale refs have been deleted. The owner can remove safe merged/stale refs at https://github.com/Batmancpu/CurrentLens/branches after verifying no unique commits. + +## Current open feature work (separate from crash fix) +- #6 Geography/editorial mapping +- #8 off-main persistence +- #11 feed publication-date/cache integrity +- #12 Atom alternate-link selection +- #13 adaptive glass contrast +- #14 docs continuity (to be superseded by importing these docs into #16) +- #16 launch stability + privacy (active) + +Do not blindly merge diverged feature branches. Check their current diff/ancestry against live main first. + +--- + +# CurrentLens — Live Project Handoff + +> This is a dated state snapshot for the same user continuing the project across ChatGPT conversations. Read AGENTS.md, CHATGPT_CONTINUITY.md and SESSION_LEDGER.md. It is not an external developer handover. + +## Snapshot + +- Snapshot: 6 November 2026, after the latest observed run #116. +- Repository: https://github.com/Batmancpu/CurrentLens +- Main SHA: 73b8a0d1ba33503fede02db2c3c0af082d724a12 +- Current app ID: com.mangoloads.currentlens. +- Display/asset brand in main currently brrrNews; user's earlier requested case was brrrNEWS. Resolve before more branding changes. +- Main commit count inspected: 119. +- Actions runs inspected: 116 total; 73 success, 33 failure, 10 cancelled; no active runs at capture. +- Latest Actions run #116 succeeded and published Build 116 debug APK. Details in BUILD_AND_DEBUG.md. +- No physical-device crash/frame/GPU verification is available. + +## Active launcher-crash investigation — PR #16 + +- User's current symptom: tap launcher icon, Android shows opening animation, no app screen appears, and Android returns to the launcher. +- PR: https://github.com/Batmancpu/CurrentLens/pull/16 (draft; not merged). +- Branch: fix/early-startup-crash-diagnostics-2026-11-06. +- Head: b66315c2f82f7785e7dfd96577d83d203770faad; base main: 73b8a0d1ba33503fede02db2c3c0af082d724a12; 7 commits ahead / 0 behind. +- Root cause is not established: no Android test device logcat, tombstone, ANR or current on-device stack trace was available. Do not claim the crash is fixed. +- Audit found that the old uncaught-exception handler was installed inside MainActivity.onCreate(), but PrismalAGSL v1.0.4 contributes an AndroidX Startup InitializationProvider that runs before the Activity. A managed exception in that earlier startup phase could occur before the old handler existed. Prismal's v1.0.4 initializer itself only binds the asset manager; this is an instrumentation gap, not evidence that Prismal causes the crash. Android references: https://developer.android.com/topic/libraries/app-startup and https://developer.android.com/reference/androidx/startup/InitializationProvider. +- PR #16 installs a custom Application handler from attachBaseContext(), records startup stages, writes reports atomically, detects a prior interrupted startup without inventing a stack trace, replaces the Compose recovery screen with native Views, and makes diagnostic setup best-effort so storage failures cannot block app launch. +- Unit tests were updated/added but not executed. The current workflow only runs on pushes to main; no build was dispatched and no APK exists for this branch. +- After review/merge and installation of the next build, relaunch once if it still exits; the native recovery screen should expose a local report for copying. If a native/system kill still produces no report, collect Android bugreport/logcat/tombstone evidence. +- Merging PR #16 triggers the main-push workflow and publishes a debug APK prerelease; account for this before merging. + +## Mission and quality bar + +CurrentLens is a strict UPSC CSE current-affairs reading app, not a general news aggregator. Quality has two pillars: +1. Editorial trust: noise suppression, defensible GS paper/theme/reason, primary-source provenance, no exam prediction. +2. Android reading quality: stable cold start, smooth mid-range scrolling, clear accessible Liquid Glass surfaces, reliable Search/IME/reader/definitions, low-jank image treatment. + +## Editorial contract + +Every default-feed item should have: +- A defensible GS paper (I–IV). +- A specific official syllabus theme. +- An explainable relevance reason. +- A clear distinction between publisher RSS provenance and independently checked primary evidence. + +Suppress celebrity gossip, film/TV promotion, box-office, reality-show drama, routine sports scores, generic viral trends/memes/influencer drama. Preserve real media/sport law, regulation, judicial/institutional action and policy reforms when headline itself identifies the action. + +Use official UPSC syllabus plus latest available official Prelims/Mains PYQs. Maintain labelled positive, false-positive and false-negative examples. Synthetic fixtures are regression examples, not accuracy metrics. Never call keyword matching a validated score or predict future questions. + +Main classifier source: UpscEngine.kt / UpscFeedPolicy.kt / EditorialFeedIndexPolicy.kt. It uses whole-token/phrase matching and explicit syllabus signals. Dedicated GS I Geography remains absent on main at this snapshot; proposed in PR #6. Broad “film” suppression may create scientific thin-film false negatives. Publisher RSS reports are not primary-source corroboration; primary evidence is still a product gap. + +## Product navigation and data semantics + +Exactly Today / Explore / Search / You. Saved nested in You. No Archive. +Today uses current Asia/Kolkata date. Explore is broader eligible retained feed. Search has headline/publisher/topic/subject/GS filters. +Reading time counts only foreground reader sessions; grouped by Asia/Kolkata day. Quiz attempts persist only on submit. Legacy read URLs contribute unique count only, with no inferred historical time. WordNet is local SQLite, generated at build; no runtime dictionary access. + +## Commit-level memory + +- docs/MAIN_COMMIT_INDEX.md contains all 119 main-branch commit timestamps, SHAs and subjects captured at this snapshot. +- docs/COMMIT_DETAILS.md contains file-level summaries for the high-impact commits whose diffs were actually inspected, including bootstrap/build evolution, Search/navigation, WordNet, You/study stats, reader security/cache, classifier, UI/performance, startup diagnostics and reversals. +- Do not treat a commit subject as a full explanation. Open the linked diff for any unexpanded commit. The ledger explicitly marks any missing detail rather than inventing it. + +## Source tree / architecture + +- app/src/main/java/com/mangoloads/currentlens/MainActivity.kt — main Compose UI/navigation/cards/reader/search; very large file (~160 KB). +- NewsRepository.kt — 14 configured RSS feeds, concurrent IO fetching, XML/Atom parsing, Article and FeedSource. +- UpscEngine.kt / UpscFeedPolicy.kt — indicative GS mapping and strict eligibility gate. +- EditorialFeedIndexPolicy.kt — shared eligibility + Today/Explore/Search index. +- FeedDateParser.kt / ArticlePublicationDatePolicy.kt / ArticleCachePolicy.kt — feed dates/cache. +- LocalStore.kt — bookmarks/read markers/settings/sessions/quiz/preferences JSON. +- ArticleReaderRepository.kt / ArticleReaderContentCache.kt — public page extraction and bounded article cache. +- PublisherHostPolicy.kt / NetworkLimits.kt — host/network restrictions. +- LaunchCrashDiagnostics.kt — local on-device bounded crash diagnostics; no upload service. +- DictionaryActivity.kt / Dictionary*Policy.kt / DictionaryDatabaseSession.kt — offline WordNet/selection and definition UI. +- StudyStats.kt — reading and quiz summaries. +- GlassLuminanceProbe.kt / GlassLuminancePolicy.kt / GlassOpticsPolicy.kt / GlassTabGeometryPolicy.kt — glass rendering/geometry policies. +- SearchMorphGeometryPolicy.kt / SearchNavigationPolicy.kt — Search morph and navigation geometry. +- scripts/build_wordnet_db.py and tests — builds local SQLite dictionary. + +## Main technical configuration + +app/build.gradle.kts: minSdk 26, targetSdk 35, compileSdk 37, Java17, versionCode2, versionName0.2.0. Dependencies include Compose, Coil2.7, Coroutines1.9, Jsoup1.23.2, PrismalAGSL v1.0.4, JUnit4.13.2. +Manifest: INTERNET only; cleartext false; backup false. +PrismalAGSL v1.0.4 + MIT notice retained. WordNet CC BY 4.0 attribution retained. + +## RSS and reader + +Main has 14 publisher feeds: The Hindu7, Indian Express4, BBC1, DW1, Al Jazeera1. HTTP connection timeout8s/read timeout10s, bounded RSS response. First-seen exact-URL duplicates keep first feed (section feeds ordered before broad feeds), sorted by publication time and first 250. Parser uses XmlPullParser, but PR #12 proposes robust Atom rel=alternate selection. PR #11 proposes pubDate/published precedence over updated, reject undated/stale/far-future unbookmarked cache items. Both PRs diverged 13 commits behind. +Metadata cache: README snapshot describes 30 days/500 soft limit, retain saved. Reader body cache separate: 30 entries/24MB/2MB each/30-day expiry. Recheck actual code before altering. +Reader extracts best-effort only from public publisher pages. HTTPS allow-list, no logged-in cookies, subscription token, paywall bypass, proxy or publisher fallback JavaScript/DOM storage. If body unavailable, explain RSS-only/original public page. + +## Privacy constraints + +No accounts, cloud AI, analytics, telemetry, tracking, paid APIs or crash reporting service. Only RSS/public page network. No runtime dictionary network. Local crash report may remain on-device. Preserve local-first. + +## Visual intent / device defects + +See DESIGN_EVIDENCE.md. Target restrained Apple-quality Liquid Glass but readability/performance first. Main has theme-derived glass contrast; older README wording was inaccurate but user explicitly asks README not be changed for this continuity work. The 8×8 luminance probe remains in code but is not active in MainActivity path described by PR #13. PR #13 proposes gated shared sampler; no GPU/perfetto proof. +User reported Build100 immediate crash on the Android test device. Not verified fixed. No logcat/tombstone/ANR currently attached. +User reported Search field too far above keyboard and stuttery morph. Requires actual Android test device screenshot/recording + IME geometry before changing. +Previous screenshot observations from PR #3: flat header, disconnected Explore chips, active glyph blurred by lens, dark inset article image framing, keyboard backdrop, missing skeleton loading. Original image bytes not in repo; do not invent exact px/colour. + +## Current open PRs at snapshot + +These are stale branches based on ba06a8f and now diverged from latest main by 13 commits due brrrNews branding sequence. Recheck live PR state and diffs before any action. + +- #6 Geography editorial improvements: 10 commits ahead/13 behind. +- #8 persistence off-main: 3 ahead/13 behind. +- #11 date/cache integrity: 2 ahead/13 behind. +- #12 Atom alternate link selection: 1 ahead/13 behind. +- #13 adaptive glass contrast restoration: 1 ahead/13 behind. +- #14 expanded ChatGPT continuation documentation: draft, branch docs/ai-agent-handoff-2026-11-06, head f819b3d839feb32c1d96fe16619835645e8e8602; based on main 73b8a0d1ba33503fede02db2c3c0af082d724a12; 3 commits ahead / 0 behind, 10 documentation files changed, mergeable at snapshot. README is not changed. + +Do not blindly merge. No PR branch CI result follows from Build #116. + +## Ordered next priorities + +1. Review PR #16 early-startup crash diagnostics. It is diagnostic hardening, not a proven root-cause fix. After merge and install, reproduce on the Android test device and return the local report or logcat/tombstone. +2. Resolve brrrNEWS vs brrrNews case before future brand updates. +3. Rebase/review PRs #6/#8/#11/#12/#13 separately against latest main; all are diverged. +4. Improve primary-source corroboration with explicit claim/document/authority records. +5. Validate classifier using real labelled positives/false positives/false negatives. +6. Measure Search keyboard gap/morph on device; fix only with geometry evidence. +7. Validate Explore chip TalkBack/touch targets, font scaling, Reduce Motion, safe areas and adaptive glass contrast. +8. Keep this memory current after each material session and refresh files uploaded to ChatGPT Project. + +## Continuity documentation PR #14 — exact branch state + +- PR: https://github.com/Batmancpu/CurrentLens/pull/14 +- State: open draft; base main SHA 73b8a0d1ba33503fede02db2c3c0af082d724a12; branch docs/ai-agent-handoff-2026-11-06. +- It contains ten docs-only files; README is absent from the diff. Re-fetch PR #14 for the exact live head/count; this handoff is deliberately not self-referential about its own last commit. +- The branch includes the initial continuity-doc commit, commit-details addition, mandatory-reading-order update, PR #14 state bookkeeping, and the 6 November launch-crash journal update. The GitHub branch history is canonical; do not rely on this file's prior head if the branch has advanced. +- The branch was rebuilt on latest main; the earlier two-commit docs branch based on ba06a8f was replaced and its README modification is not in this PR. +- Verification: all ten files were fetched from the final branch; commit index contains 119 rows; PR diff paths were checked and README is absent. No CI run is available/expected because the workflow triggers only on pushes to main. No application/workflow source, permissions, assets or release files changed. +- The only remaining human step is to review/merge PR #14 if desired. Merging will trigger the existing main-push workflow and publish a debug APK prerelease; see BUILD_AND_DEBUG.md. + +## Crash investigation PR #16 + +- URL: https://github.com/Batmancpu/CurrentLens/pull/16 +- State: open draft; branch fix/early-startup-crash-diagnostics-2026-11-06. +- Branch head: b66315c2f82f7785e7dfd96577d83d203770faad; base main 73b8a0d1ba33503fede02db2c3c0af082d724a12; 7 ahead, 0 behind. +- Files: AndroidManifest.xml, new CurrentLensApplication.kt, LaunchCrashDiagnostics.kt, MainActivity.kt, LaunchCrashDiagnosticsTest.kt. +- Scope: early Java/Kotlin crash instrumentation and non-Compose recovery surface only; no Prismal version, feed logic, app navigation, permissions or workflow changes. +- Tests added but not run; no CI run because the existing workflow triggers only on push to main. Diagnostic I/O/setup is wrapped best-effort to avoid adding a new launch blocker. +- Exact code root cause remains unknown until a real device report is obtained. + +## Session continuity + +The user continues in ChatGPT and does not want to repeat project context. Start the next chat inside the CurrentLens ChatGPT Project. Read CHATGPT_CONTINUITY.md for setup. GitHub is canonical for code/history, but Project sources are copies and need refresh after updates. Upload COMMIT_DETAILS.md to the Project as well. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md new file mode 100644 index 00000000..f539cf75 --- /dev/null +++ b/docs/SESSION_LEDGER.md @@ -0,0 +1,296 @@ +# CurrentLens — Development and Conversation Ledger + +This is the evolving memory of the project across ChatGPT conversations. It records what happened, what was intended, what failed, why it failed, how it was corrected, what not to repeat and what remains uncertain. Append rather than silently rewriting history. + +## Why this memory exists + +The user clarified that they are not transferring the project to another AI product or external developer. They are continuing CurrentLens in new ChatGPT conversations when an earlier chat reaches its context limit. The next chat should resume without the user manually repeating the vision, visual feedback, prior failures, rejected options, pending work or workflow. + +The user explicitly wants: +- Every material change and commit recorded. +- Failed attempts and exact causes/fixes retained. +- Approaches that did not work never repeated. +- Screenshots/photos/recordings and exact visual feedback captured where actually available. +- Build method, decisions, product goals, pending work and rejected ideas. +- README kept basic/public, not turned into the memory store. +- Detail preserved without fabricating unavailable image/log evidence. + +## Product requirements and conversation feedback + +### Editorial/product requirements +- Strict UPSC CSE product, not general news aggregator. +- Suppress celebrity gossip, film/TV promotion, box office, reality show drama, routine sports scores, generic viral content. +- Require defensible GS paper + specific official syllabus theme + explainable reason. +- Official syllabus plus latest available official Prelims/Mains PYQs as baseline. +- Positive, false-positive and false-negative fixtures. +- Keyword match is not validated score, probability or question prediction. +- Publisher RSS is not primary corroboration. Prefer PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court, statutory/regulatory bodies. +- Four tabs only: Today, Explore, Search, You. Saved in You. No Archive. +- Offline WordNet, local-first, Asia/Kolkata, foreground-only reading time, quiz persist on submit. +- No accounts, cloud AI, analytics, telemetry, tracking, paid APIs, runtime dictionary networking; network only RSS/public accessible publisher pages. No paywall bypass/cookies/proxies/fallback JS/DOM storage. + +### Reliability/performance/user reports +- Build100 passed CI but app reportedly crashed immediately on the Android test device. User explicitly required crash investigation first. +- PR #7 and #9 added code-level defensive startup/performance work and local crash diagnostics. Neither establishes physical runtime root cause. +- Search field reportedly far above keyboard, leaving awkward gap; Search bar rise/fall/morph animation reported stuttery. +- Avoid expensive per-cell blur, duplicate decode and frequent GPU readbacks. Use trace-backed fixes. +- User wants Apple-quality visual polish but no speculative churn and no smoothness trade-offs. + +### User’s design feedback/reference images +- PR #3 body documents supplied Android test device screenshot defects: flat headers; Explore filter chips visually separate; active Today lens blurring selected icon; oversized dark inset image frame; keyboard/system-bar backdrop; empty loading state. +- Later Search/IME complaint: search field too far above keyboard; stuttery movement/morph. +- Launcher icon latest feedback: prior output looked too AI-generated; Liquid Glass design, central newspaper/news-sheet symbol in rounded square/circle-like tile, recognizable and name-independent. +- Exact earlier screenshots/video bytes are not preserved in repo; only text descriptions from PR/user context. Do not invent exact pixel/colour details. Future image attachments need an evidence record; do not place private screenshots in public repo without approval. + +## Product and technical phases + +### A. Project bootstrap / early build (3 Nov) +- Initial CurrentLens Android MVP and one APK workflow. +- Early workflow repeatedly failed on Android SDK packages and dependency coordinates. +- Implemented four-tab Liquid Glass interface and public article reader. +- Early failed dependency coordinate PrismalAGSL:Prismal was corrected through published Maven/JitPack coordinates. Current requirement is PrismalAGSL v1.0.4 and MIT notice. +- Build config iterated through SDK platform availability; workflow now uses API37 platform/build-tools and Gradle9.5. +- Fixes for reader HTML escaping/CSS string construction, selection JSON, glass-tab API, duplicate settings screen. + +### B. Navigation/Search/Archive evolution (3 Nov) +- Some earlier commit briefly restored Archive and moved Search into Explore. +- Later commit replaced Archive with morphing Search and four-tab navigation. +- Final product rule: exactly Today/Explore/Search/You; no Archive; Saved inside You. +- Native text selection, reader progress/callbacks and Search morphing evolved through iterative fixes. + +### C. RSS/reader/security/stats (3 Nov) +- Bounded RSS/dictionary network response sizes. +- Public reader content cache; quiz provenance labels. +- Reader navigation limited to verified publisher hosts. +- Short-article completion and per-article progress reset fixes. +- You dashboard/study stats. +- Reading sessions count only confirmed foreground reading. +- Quiz answers persist only after submit and legacy read URL markers retained. +- RSS feed provenance and India-local date parsing; explicit RFC1123 offsets preserved. +- Reader HTML sanitization and JavaScript scoped to sanitised articles. +- Do not weaken public-host allow-list, sanitization, response limits or paywall restrictions. + +### D. Offline dictionary/selection/popovers (3–5 Nov) +- Replaced Android selection menu with in-app dictionary trigger; later preserved/restored native WebView selection and PROCESS_TEXT behaviour. +- Offline WordNet DB and reusable DB connection. +- Definition overlay anchored to selected word and constrained to reader viewport. +- Fixed punctuation/Unicode/multi-word selection, anchor coordinates and touch cancellation. +- Added bounded LRU cache, POS display, compact-first expandable definitions and WordNet exception-lemma lookup. +- Fixed stale auto-define on new touch/interrupted gesture/multi-touch. +- Improved short-reader completion stability and wide mobile article tables. +- CMUdict US pronunciation support was added and later removed entirely (032cb41f7ca5). Do not restore unless asked. +- Preserve WordNet attribution and licences. + +### E. Search/IME/adaptive glass (4–5 Nov) +- Search morphs from bottom tab above keyboard. +- Fixed Compose keyboard APIs, synchronized morph with IME, observed IME insets inside Compose, measured Search anchor fallback/capsule geometry. +- Saved reader position/resume. +- Glass materials/motion and toolbar-band sampling refined. +- Despite earlier geometry work, user later reported field gap/stutter still present. Must remeasure actual device. +- Do not add multiple samplers or per-cell GPU readbacks. + +### F. Editorial classifier hardening (5–6 Nov) +- PR #1: whole-token/phrase matching to prevent RBI inside arbitrary, IPL inside multiple, actor inside factor; no section-based weak escape; specific syllabus required; narrow policy exceptions must be headline-grounded; public health/disaster themes; matched signals exposed. +- PR #2 corrected economy test expected four signals (RBI, repo rate, inflation, monetary). +- #96 passed; #97 failed stale expected count; #98 passed after test correction. +- PR #6 draft adds GS I Geography, Explore/Search category, rationale cards, accessibility and labelled tests. Not in main at this snapshot. +- Preserve policy exceptions for real institutional/governance action. + +### G. Glass/navigation UI and startup reliability (6 Nov) +- PR #3: restrained Prismal toolbar/Explore filters, icon-only bottom bar, crisp selected glyph above lens, Search geometry, removed second 30dp blurred image per card, one Coil image + one-time 9-point palette sampling, radial wash, squircle cards, static skeletons, off-main cache work and transparent Search/IME surfaces. +- Build #99 failed unresolved CalendarMonth and AccountCircle icon imports; #5 fixed; #100 passed. +- User reported Build100 immediate Android test device launch crash. CI success did not mean device runtime works. +- PR #7 moved startup restoration off main, cached Today filters, incrementally updated bookmarks/read state, reduced glass readback cadence, bounded image decode, palette guards, OEM system-bar defensive guard and icon revert; #101 passed. +- PR #9 added local-only crash diagnostics/recovery, off-main editorial index, removed recurring feed readback in favour theme-derived contrast, memoized filters, hardened preferences, Search/nav polish; #102 failed later due draw-scope. +- PR #10 fixed Search draw-scope error; #103 passed. +- No Android test device runtime verification. User-reported crash remains open. + +### H. brrrNEWS branding/icon (6 Nov) +- Added SVG, Android vector foreground, adaptive/round icons, background resource, app label/copy/theme changes. +- Initially brrrNEWS; follow-up commits changed visible capitalization and SVG aria-label to brrrNews. +- Builds #104 and #112 passed, intervening #105–#111 cancelled, #113–#115 cancelled, #116 passed. +- User's exact earlier branding preference brrrNEWS versus main brrrNews remains to confirm. +- Icon user intent and vector geometry in DESIGN_EVIDENCE.md. + +## PR history and status + +| PR | Status | Summary | +|---|---|---| +| #1 | Merged | Whole-token strict editorial matching, explicit syllabus signals, policy exceptions, public health/disaster, matched signals. | +| #2 | Merged | Fixed stale economy test expectation (4 signals). | +| #3 | Merged | Liquid Glass header/Explore, clear nav glyph, image palette wash, no duplicate 30dp blur, squircle cards, skeletons, transparent IME, off-main cache work. | +| #4 | Closed unmerged | Earlier duplicate icon import follow-up. | +| #5 | Merged | Compose navigation imports fixing #99. | +| #6 | Open draft | Geography/editorial/card rationale/accessibility, diverged 13 behind. | +| #7 | Merged | Startup defensive/off-main restoration and reduced rendering workload; not device-proven. | +| #8 | Open draft | Off-main session/quiz/position/read-marker persistence; diverged 13 behind. | +| #9 | Merged | Local crash diagnostics, off-main editorial index, theme-derived contrast, preferences and UI polish. | +| #10 | Merged | Search glass draw-scope compile fix. | +| #11 | Open draft | Date precedence/cache retention; diverged 13 behind. | +| #12 | Open draft | Atom alternate link parsing; diverged 13 behind. | +| #13 | Open draft | Adaptive glass contrast restoration; diverged 13 behind. | +| #14 | Open draft | ChatGPT continuity memory docs; being rebuilt on latest main, README deliberately excluded. | + +Open PRs #6/#8/#11/#12/#13 all base on old ba06a8f main snapshot and diverged from latest main (13 commits behind). Do not merge blindly. + +## Main commit history + +Every commit subject/SHA/timestamp is in docs/MAIN_COMMIT_INDEX.md. File-level summaries for selected high-impact changes whose diffs were inspected are in docs/COMMIT_DETAILS.md; do not infer full intent for other commits from subject alone. (119 items captured from two GitHub API pages). Open diffs for exact file-by-file detail. This ledger groups commit phases; the index is canonical for chronology/SHA. + +## CI failure chain and do-not-repeat list + +- #1: sdkmanager couldn't find package tools. Do not re-add obsolete tools pkg. +- #5: couldn't find platform android-37. Verify runner SDK packages. +- #8: couldn't resolve PrismalAGSL:Prismal. Do not reuse this coordinate. +- #38: FeedDateParserTest.preservesExplicitRfc1123Offset failed. Preserve explicit RFC1123 offsets. +- #97: test expected 3 economy signals but implementation produced 4; PR #2 fixed. +- #99: unresolved Compose imports CalendarMonth and AccountCircle; PR #5 fixed. +- #102: theme local called inside non-composable draw callback; PR #10 captured it in composable scope. +- #10/#18/#53 compile failure exact diagnostics not preserved in excerpt; root cause not established. +- Other failed run numbers and exact evidence in BUILD_AND_DEBUG.md. +- Don't assume CI success = Android test device crash fixed. +- Don't reintroduce substring match; section-based relevance shortcut; Archive; quiz persistence before submit; background reading-time count; duplicate blurred image draw; per-cell blur; high-frequency GPU readback; CMUdict pronunciation without request; unsafe reader JS or paywall workarounds. + +## Continuity update protocol + +At end of each material session: +1. Update PROJECT_HANDOFF with current main/PR/CI/issues. +2. Append detailed session entry with request, files, before/after, commit/PR, failed attempts and fixes, tests, CI/device evidence, risks. +3. Update KNOWN_ISSUES and DESIGN_EVIDENCE. +4. Update MAIN_COMMIT_INDEX after new main commit(s). +5. Update BUILD_AND_DEBUG after CI build failure/success. +6. Add durable rules to DECISION_LOG. +7. Keep README out unless specifically requested. + + +## 2026-11-06 — Build same-user ChatGPT continuity memory (PR #14) + +### User intent +The user clarified that they are not replacing the development owner or handing CurrentLens to another AI product. They switch ChatGPT conversations when a previous conversation reaches its context limit. The next conversation should resume with the complete history and not ask the user to restate it. They explicitly asked for extreme detail: original intent, every material change, commits, failures, exact causes/fixes, rejected approaches, what not to repeat, visual feedback and submitted image/photo details. README must remain a basic public app overview and was explicitly excluded from this work. + +### Implementation +Created a durable, multi-document memory system: +- AGENTS.md — continuity rulebook, mandatory reading order, no-main/no-merge/no-workflow-dispatch rules and mandatory per-change logging. +- docs/CHATGPT_CONTINUITY.md — explains one ChatGPT Project per ongoing project, moving the current chat into it, adding files and instructions, and limitations of project-file sync. +- docs/PROJECT_HANDOFF.md — dated live state, product, source architecture, current branch/PR/build state and priorities. +- docs/SESSION_LEDGER.md — chronological product/feature phases, prior PRs, failure/fix history and this documentation session. +- docs/MAIN_COMMIT_INDEX.md — all 119 main commits from GitHub's paginated API with UTC timestamp, full SHA link and subject. +- docs/COMMIT_DETAILS.md — inspected diff-level summaries for major implementation milestones; unexpanded commits link to their canonical diffs. +- docs/KNOWN_ISSUES.md — separates user-reported, verified, draft-PR and unverified defects. +- docs/DESIGN_EVIDENCE.md — visual intent, image/icon source asset details, screenshot descriptions, naming discrepancy and future evidence protocol. +- docs/BUILD_AND_DEBUG.md — current toolchain/workflow, Run #116 details, exact known failure patterns and what remains unverified. +- docs/DECISION_LOG.md — durable product/engineering decisions and continuity decision. + +### Exact commits on the PR branch +1. c2603bfa34ba00874c64c863e47710273120bb97 — initial nine continuity files; parent current main 73b8a0d1ba33503fede02db2c3c0af082d724a12. +2. b30b1f75f87f0f7e779f4d1feaf8d5f1e8c0af6c — add docs/COMMIT_DETAILS.md. +3. f819b3d839feb32c1d96fe16619835645e8e8602 — add COMMIT_DETAILS to mandatory reading order and Project/handoff instructions. + +### PR #14 state before the current continuity refresh +- PR #14: https://github.com/Batmancpu/CurrentLens/pull/14 +- Draft/open; branch docs/ai-agent-handoff-2026-11-06. +- Base main 73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Previous branch head b549b9c4f02a154d39fdb0ef807380a58a52b797; compare was 5 commits ahead / 0 behind, 10 docs-only files, 1,258 additions, 0 deletions. +- Current refresh adds crash-session details and updates all relevant status registers. Check live PR #14 for its newest head/commit count after this journal commit. +- README not in diff. No application source, assets, permissions, dependencies or workflow config changed. +- Main commit index still contains 119 rows. PR diff path list checked previously; no README file. +- No PR CI run is available/expected because the single workflow triggers only on push to main. No build was dispatched/rerun and no release was published. +- PR was left draft and unmerged. A merge will run the current main push workflow and publish a debug APK prerelease. + +### Limitations and next action +- Original historical screenshots/video bytes are not in the repository; the docs preserve text observations from PR #3 and the recent icon discussion, but do not invent exact pixels. +- Future image assets should be stored in the private CurrentLens ChatGPT Project or otherwise privately, with metadata in DESIGN_EVIDENCE.md. Do not upload personal screenshots into public GitHub without explicit approval. +- The user must create/use a ChatGPT Project named CurrentLens, move this conversation into it if the Move to project option is available, add the ten docs as Project sources, and start future chats inside that Project. Project files should be refreshed after material repository updates. +- README intentionally untouched. + + +## 2026-11-06 — Investigate launcher-startup crash and add early diagnostics (PR #16) + +### User report +The user reports the latest app still behaves as follows: tap launcher icon → Android shows opening animation → no app UI is visible → Android returns to launcher and the app appears closed. This matches the earlier Build 100 cold-start report on the Android test device, but there is no fresh crash report/logcat/tombstone in this conversation. + +### Repository inspection and findings +- Inspected current main manifest, MainActivity startup/first composition, LaunchCrashDiagnostics, LocalStore, NewsRepository, DictionaryActivity/WordNet database session, build Gradle settings, workflow and project source inventory. +- Main has no custom Application class; launcher activity is MainActivity. +- Main LaunchCrashDiagnostics.install() was called inside MainActivity.onCreate(), too late for failures during ContentProvider initialisation. +- The app depends on PrismalAGSL v1.0.4. Its merged manifest includes androidx.startup.InitializationProvider and metadata for PrismalAgslInitializer. AndroidX Startup runs provider initializers at application startup before Activity creation. Prismal's v1.0.4 initializer itself only binds the asset manager when API >=33; this does not implicate Prismal as the cause. It does mean a managed exception in any earlier provider startup could precede the old activity-level handler. Official references: https://developer.android.com/topic/libraries/app-startup and https://developer.android.com/reference/androidx/startup/InitializationProvider. +- The previous recovery UI was implemented in Compose. That is not a robust recovery surface if the failure involves Compose or Prismal drawing. +- Main CI Build #116 succeeded but only establishes that the earlier main code compiled and its JVM tests ran; it does not establish that the Android test device device launches. +- No device-level evidence identifies a particular code line as the root cause. The exact crash remains unverified; do not present the instrumentation change as a guaranteed app fix. + +### PR #16 implementation +PR: https://github.com/Batmancpu/CurrentLens/pull/16 +Branch: fix/early-startup-crash-diagnostics-2026-11-06 +Head: b66315c2f82f7785e7dfd96577d83d203770faad +Base: main 73b8a0d1ba33503fede02db2c3c0af082d724a12 +Status: open draft; seven commits ahead, zero behind; five files changed. + +Seven PR commits: +1. e81939b32dca807abb59a987e33c739751550e30 — early Application handler, crash report and native recovery implementation. +2. 356515458e9b689ac152a0f202113dfac324c365 — make early crash report formatting test-safe. +3. d70caac2dd0f2247667df12226c2ff3cc845222b — detect a startup interruption even without a Java exception stack. +4. e865c60473a19809a71d916bc7792bfd6861537a — avoid Android process API calls from pure report-formatting tests. +5. d5e0bd8c42d1cec6f4707ef550340162493acc7c — make synthetic startup-diagnostic writing best-effort so diagnostics do not abort launch. +6. 28a6950fe9e1c0e53f48deacc92cbcd7e89dc4e8 — correct interruption-report test assertion to match exact report wording. +7. b66315c2f82f7785e7dfd96577d83d203770faad — keep Application diagnostic installation and startup checkpoint handling best-effort so diagnostics I/O cannot block launch. + +Files and effects: +- app/src/main/AndroidManifest.xml — registers .CurrentLensApplication. +- app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt — installs diagnostics in attachBaseContext, before AndroidX Startup providers; records Application lifecycle stage. +- app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt — writes local exception reports via temp file + fd.sync + rename/fallback; captures app/device/build/Android/PID/thread/last stage; stores startup stage markers; if a previous process ended before first three Compose frame callbacks and no exception report exists, creates an explicitly labelled interruption report (not a fabricated Java stack trace); clears the marker only after the first three frame callbacks. +- app/src/main/java/com/mangoloads/currentlens/MainActivity.kt — reads prior report and shows native Android Views recovery screen with selectable text/copy action rather than re-entering Compose; logs Activity/Compose checkpoints; marks launch healthy after three frame callbacks. +- app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt — tests stack report detail, interrupted-start semantics, and size bound. + +### Verification / limitations +- All five files were fetched and source-reviewed on the PR branch after the final commit. +- GitHub compare against current main reported 7 commits ahead, 0 behind; only those five paths changed. +- Tests have been added but not executed. No local Gradle build was run. The final PR commit also made diagnostic setup/checkpoint I/O best-effort so a diagnostics failure cannot abort Application startup. +- Existing workflow triggers only on push to main; it has no pull_request or workflow_dispatch trigger. No build was dispatched/rerun, no APK produced, no Release created. +- No physical Android test device test is possible from this environment. PR #16 was left draft and unmerged. +- This change primarily fixes a gap in crash evidence collection/recovery. It does not prove that Prismal, Compose or another component is the crash's underlying cause. + +### Required next device validation +After PR #16 has been reviewed/merged and its new debug APK installed: +1. Tap the app icon and observe cold launch. +2. If it returns to launcher, open it once more. +3. If the recovery screen appears, copy the full local report and paste it into the CurrentLens chat. +4. If there is still no report/recovery screen, obtain Android bugreport/logcat/tombstone/ANR evidence. A native/system kill may not produce a Java/Kotlin uncaught-exception report. + + +## 6 November 2026 — repeated native launch crash, restore Liquid Glass, isolate first app screen + +### User request and confirmed evidence +- The owner reported that Stability 0.2.3 / earlier Build #140 still crashed on launch and asked for a complete source review, restoration of expensive visual effects, fewer branches, and durable cross-agent documentation. +- The new local report again identified Android `CRASH_NATIVE` / signal 11. Its last recorded app checkpoint was `MainActivity.setContent returned`; no managed Java/Kotlin exception was reported. +- The partial native tombstone excerpt contained ART finalizer/monitor frames and the system's stack-pointer heuristic. This is not enough to establish the faulting thread or source-level root cause. It differs from the earlier Mali/HWUI/Skia signature from 0.2.2. Do not overstate either interpretation. +- No raw report, exact device metadata, build fingerprint, PID/TID, precise timestamp, memory address or Base64 trace has been committed to this public repository. + +### Source changes on the existing PR #16 branch +Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. + +- `app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt`: removed the forced Prismal Legacy override. Normal builds now keep Prismal's automatic pipeline; the full Liquid Glass design is restored. +- `app/src/main/java/com/mangoloads/currentlens/MainActivity.kt`: only the Gradle Stability test build shows the plain launch probe initially. Normal builds go directly to `BrrrNewsApp`. The probe's button records a separate checkpoint before entering the complete app. +- `app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt`: added a small plain Compose/Material first screen that avoids Prismal backdrop capture and glass draw modifiers; after user action it enters the complete app with effects active. +- `app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt`: retained local diagnostics but removed device/build identifiers, process IDs, exact timestamps and raw native trace export from shareable reports; removed exception message/full source-location detail; strips PID/time prefix from visible startup stages; removes older detailed reports containing device identifiers on app upgrade. +- `app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt`: tests privacy-minimised report content, startup-stage sanitisation and detection of legacy detailed reports. +- `app/build.gradle.kts`: Stability-only build flag and version 0.2.5 / versionCode 7. +- `.github/workflows/build-apk.yml`: labels the branch APK as v0.2.5; Release publication remains main-only. +- Removed obsolete `StartupRenderPolicy.kt` and its forced-Legacy unit test. +- Documentation from the continuity branch is imported in the same active PR, avoiding a separate docs-only branch/PR. + +### Relevant commits before the documentation import +- `731d172da2630d2807f3cc6d82dd181bd1ed71a9` — Stability-only probe selection in MainActivity. +- `032fc5d3096e0d4d0940d84b75e96f7266ebc7fd` — restore Prismal automatic pipeline in Application. +- `7f8f3190042f70e332b03b4e6c5aac18bdee6d62` — version 0.2.5 and Stability BuildConfig flag. +- `6b2283cfde4cfa29b1c1381853c995112aba2289` — allow probe to mark its own stable first frames. +- `c8468fd00f43ac857117c0e63568d4dd16fe83e8` — correct probe button layout. +- `d3754dabcf760fc05fb1652adea0b7ebab046c54` / `3767fe1e47ff563e8ae3f97a3542db60f5613d56` — remove forced Legacy policy and test. +- `eb270def5b20a95a910ab5406dcb724d5577b42f` — privacy-safe recovery wording. +- The source branch head before this docs import was `3767fe1e47ff563e8ae3f97a3542db60f5613d56`. + +### Verification and limits +- Actions Build #158, run `42239425526`, completed successfully. Dictionary-builder tests, WordNet generation, Gradle/JVM tests, APK compile and artifact upload passed. Release publication was skipped. +- Artifact: `CurrentLens-v0.2.5-stability-debug-apk`, ID `13513676549`, 14-day retention. +- The downloaded artifact was extracted and confirmed present in the work container. APK SHA-256: `e44b8341d53a0e2fd41925f4d621ed6e0be5b25747a7ed8fbb0ea094d518abae`. +- Physical device test has not yet happened. Build #158 does not prove the probe or complete Liquid Glass app survives cold launch. Do not state that the crash is fixed. +- Keep PR #16 draft/unmerged. Main branch remains untouched. From 6183fd549fccfde4a1e605ec127369a8e6ac6ad5 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:41:13 +0530 Subject: [PATCH 051/175] docs: add main commit index to agent continuity records --- docs/MAIN_COMMIT_INDEX.md | 137 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 docs/MAIN_COMMIT_INDEX.md diff --git a/docs/MAIN_COMMIT_INDEX.md b/docs/MAIN_COMMIT_INDEX.md new file mode 100644 index 00000000..a815eddc --- /dev/null +++ b/docs/MAIN_COMMIT_INDEX.md @@ -0,0 +1,137 @@ +# CurrentLens — Complete Main Commit Index + +Generated from GitHub's paginated commits API on 6 November 2026. 119 commits were returned across pages 1 and 2, from 3 November 2026 to 6 November 2026. This is a subject/SHA inventory, not a substitute for opening a commit diff. For each row, the commit link opens the canonical GitHub diff/metadata. Append new entries in later sessions; do not rewrite history. + +- Repository: https://github.com/Batmancpu/CurrentLens +- Snapshot main SHA: 73b8a0d1ba33503fede02db2c3c0af082d724a12 +- Count at snapshot: 119 + +| # | UTC date/time | Commit | Subject | +|---:|---|---|---| +| 119 | 2026-11-06T11:16:35Z | [73b8a0d1ba33](https://github.com/Batmancpu/CurrentLens/commit/73b8a0d1ba33503fede02db2c3c0af082d724a12) | Correct icon artwork accessibility name to brrrNews | +| 118 | 2026-11-06T11:16:32Z | [a277d9bf1737](https://github.com/Batmancpu/CurrentLens/commit/a277d9bf17377c7c8d71536a60ca411c2d3b017a) | Correct README product-name capitalization to brrrNews | +| 117 | 2026-11-06T11:16:30Z | [cae53afc7eb1](https://github.com/Batmancpu/CurrentLens/commit/cae53afc7eb13e29587763f5b15381bfed9c5c2b) | Correct in-app branding capitalization to brrrNews | +| 116 | 2026-11-06T11:16:26Z | [36fa410f8af9](https://github.com/Batmancpu/CurrentLens/commit/36fa410f8af95a06f5977a864884c718ab1d65bf) | Correct app display-name capitalization to brrrNews | +| 115 | 2026-11-06T11:15:36Z | [3cf4a1e9368c](https://github.com/Batmancpu/CurrentLens/commit/3cf4a1e9368cc6c74be6bb2e7711ffa113149c30) | Rename app theme resources to BrrrNews | +| 114 | 2026-11-06T11:15:34Z | [c3b883b737ee](https://github.com/Batmancpu/CurrentLens/commit/c3b883b737eeccaface4b5360e8270718a1ac490) | Set brrrNEWS app label and launcher icons | +| 113 | 2026-11-06T11:15:31Z | [b72a32d22521](https://github.com/Batmancpu/CurrentLens/commit/b72a32d225218d8f5ada54f88d7ca0380f1128e6) | Update README branding to brrrNEWS | +| 112 | 2026-11-06T11:15:27Z | [006da6d00c73](https://github.com/Batmancpu/CurrentLens/commit/006da6d00c7303861c11dfa332b837d643413e9f) | Rebrand user-facing app copy to brrrNEWS | +| 111 | 2026-11-06T11:15:12Z | [656ac28e99c2](https://github.com/Batmancpu/CurrentLens/commit/656ac28e99c2d9cf595f507bfdee589149d44907) | Add brrrNEWS Liquid Glass launcher icon (app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml) | +| 110 | 2026-11-06T11:15:09Z | [74811e927bc0](https://github.com/Batmancpu/CurrentLens/commit/74811e927bc01297bc99ecfea13f85f96c476b6a) | Add brrrNEWS Liquid Glass launcher icon (app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml) | +| 109 | 2026-11-06T11:15:07Z | [d7284f093d60](https://github.com/Batmancpu/CurrentLens/commit/d7284f093d60dbdb4ecfe6965625a4c5407d2d04) | Add brrrNEWS Liquid Glass launcher icon (app/src/main/res/values/colors.xml) | +| 108 | 2026-11-06T11:15:04Z | [e881e8ff12c7](https://github.com/Batmancpu/CurrentLens/commit/e881e8ff12c7ffe162515449601a5d197d856051) | Add brrrNEWS Liquid Glass launcher icon (app/src/main/res/drawable/ic_brrrnews_foreground.xml) | +| 107 | 2026-11-06T11:14:56Z | [c5e7746b2487](https://github.com/Batmancpu/CurrentLens/commit/c5e7746b24873a731dae6b1e6087a62bac892ca0) | Add brrrNEWS Liquid Glass launcher icon (artwork/brrrnews-icon.svg) | +| 106 | 2026-11-06T07:44:53Z | [ba06a8f37138](https://github.com/Batmancpu/CurrentLens/commit/ba06a8f3713884b4c4ac524386a6a11576f0bb24) | fix: capture Search glass surface colour outside draw scope | +| 105 | 2026-11-06T07:42:06Z | [2475970123a2](https://github.com/Batmancpu/CurrentLens/commit/2475970123a2a2fb0e05be25d1d9a45061186c73) | fix: harden launch, reduce feed jank and finish glass polish | +| 104 | 2026-11-06T07:19:25Z | [81de60cca96b](https://github.com/Batmancpu/CurrentLens/commit/81de60cca96bbbbfb066261b23e3f9843f82b7ee) | fix: harden cold start and reduce rendering workload | +| 103 | 2026-11-06T06:27:22Z | [17b47e453ca0](https://github.com/Batmancpu/CurrentLens/commit/17b47e453ca02ade9d10110614736e904c9a4490) | fix: import supported navigation glyphs | +| 102 | 2026-11-06T06:23:54Z | [df28a43c0bea](https://github.com/Batmancpu/CurrentLens/commit/df28a43c0beae2e0a6ef74589a56c0e1786d66d3) | ui: polish glass surfaces and remove feed scroll overhead | +| 101 | 2026-11-06T05:16:50Z | [6cf84bacd3dc](https://github.com/Batmancpu/CurrentLens/commit/6cf84bacd3dce62081cf0efee386e73411357ce0) | test: align economy signal-count expectation | +| 100 | 2026-11-06T05:14:24Z | [f758af2ecc38](https://github.com/Batmancpu/CurrentLens/commit/f758af2ecc381ebeb6f9bb96aab172967eb973fb) | editorial: harden UPSC signal matching and feed eligibility | +| 99 | 2026-11-05T12:02:38Z | [682432a6a312](https://github.com/Batmancpu/CurrentLens/commit/682432a6a3122e3ddcd2710e052a30fc2958ed6c) | editorial: gate default feeds for UPSC relevance and add image palette bleed | +| 98 | 2026-11-05T11:12:46Z | [0ef1ddada578](https://github.com/Batmancpu/CurrentLens/commit/0ef1ddada57863589bac344e3fe2712cf16e2485) | test: import assertFalse for popup placement coverage | +| 97 | 2026-11-05T11:10:55Z | [490114c37cd3](https://github.com/Batmancpu/CurrentLens/commit/490114c37cd31331bd8a88c3ebd8f880c5245e94) | polish: complete shared definition popovers and reader presentation | +| 96 | 2026-11-05T08:26:33Z | [d12b84f14fa5](https://github.com/Batmancpu/CurrentLens/commit/d12b84f14fa550847080ebf1eb45644022384add) | dictionary: make definition cards compact-first and expandable | +| 95 | 2026-11-05T08:17:12Z | [02b50235080f](https://github.com/Batmancpu/CurrentLens/commit/02b50235080f2b7feb9914a1745e6a1121a3d8ff) | glass: restore tactile lens interaction and contrast-aware sampling | +| 94 | 2026-11-05T08:05:17Z | [4e4d3c5e55cb](https://github.com/Batmancpu/CurrentLens/commit/4e4d3c5e55cb73184d2618632e71aceea4e72205) | polish: refine feed hierarchy and dark theme | +| 93 | 2026-11-05T07:31:06Z | [ef3622b13178](https://github.com/Batmancpu/CurrentLens/commit/ef3622b13178f879bea7aaf9c48c64ffd70fa98a) | fix: preserve capsule geometry through Search glass morph | +| 92 | 2026-11-05T06:19:57Z | [5ec5d9f51f0e](https://github.com/Batmancpu/CurrentLens/commit/5ec5d9f51f0ec065bea0bf92528c35853fea69bf) | fix: use measured Search anchor fallback on all Compose insets APIs | +| 91 | 2026-11-05T06:17:43Z | [4f87667498c0](https://github.com/Batmancpu/CurrentLens/commit/4f87667498c008632e947ad3635d62c765abe316) | fix: complete geometry-aware Search glass handoff | +| 90 | 2026-11-05T06:14:56Z | [3ed7c7f7edfa](https://github.com/Batmancpu/CurrentLens/commit/3ed7c7f7edfac0e5ff8d19538ac16d0351823d81) | fix: morph search glass from selected tab geometry | +| 89 | 2026-11-05T05:27:04Z | [2cdba26bcfb2](https://github.com/Batmancpu/CurrentLens/commit/2cdba26bcfb2203e1623805c579639c3513bf8fd) | perf: sample adaptive glass from toolbar backdrop band | +| 88 | 2026-11-05T05:13:06Z | [032cb41f7ca5](https://github.com/Batmancpu/CurrentLens/commit/032cb41f7ca564d2eef47b710da4361e25dd6fba) | refactor: remove bundled pronunciation data and UI | +| 87 | 2026-11-05T05:04:05Z | [0b857cac47e9](https://github.com/Batmancpu/CurrentLens/commit/0b857cac47e9061ff28aa6fa2e51a4ad124394e3) | feat: refine adaptive liquid glass materials and motion | +| 86 | 2026-11-05T04:38:28Z | [3288674bc34d](https://github.com/Batmancpu/CurrentLens/commit/3288674bc34d5c0558d995291491e0ef8d6d50a3) | fix: expand liquid tab droplet beyond navigation bounds | +| 85 | 2026-11-05T04:21:45Z | [407103c211c8](https://github.com/Batmancpu/CurrentLens/commit/407103c211c8b16bdc6acf3c6c7479de41a92517) | feat: resume reading from saved article position | +| 84 | 2026-11-05T04:11:57Z | [f52863d59b9e](https://github.com/Batmancpu/CurrentLens/commit/f52863d59b9ef60a453f3f5ea458af8624ca7f3c) | fix: observe IME insets from Compose scope | +| 83 | 2026-11-05T04:09:33Z | [2154ed060136](https://github.com/Batmancpu/CurrentLens/commit/2154ed060136f1b04d1e3b21eb7ec09d9217b495) | fix: synchronize search morph with IME and liquid glass | +| 82 | 2026-11-05T03:32:32Z | [c4a9684b2ba1](https://github.com/Batmancpu/CurrentLens/commit/c4a9684b2ba157ceb2eed525fea115f35b703d16) | fix: normalize unicode dictionary selections | +| 81 | 2026-11-05T02:38:10Z | [ff4be7f144e3](https://github.com/Batmancpu/CurrentLens/commit/ff4be7f144e3be28c396cf9902330dbb5eb517d2) | feat: show verified article date in reader | +| 80 | 2026-11-05T01:13:34Z | [6261efebf17a](https://github.com/Batmancpu/CurrentLens/commit/6261efebf17a788170f2452fab01a0dbbcf4edd4) | fix: align dictionary anchors in window coordinates | +| 79 | 2026-11-05T00:38:21Z | [c99a8fab38b7](https://github.com/Batmancpu/CurrentLens/commit/c99a8fab38b7f18f3ec89366a9c68ff18d30e4f3) | feat: morph dictionary glass from selected word | +| 78 | 2026-11-04T23:55:36Z | [518fe9e1eba5](https://github.com/Batmancpu/CurrentLens/commit/518fe9e1eba52991313acb23eb5f553bedb16db3) | fix: cancel dictionary auto-define on multi-touch | +| 77 | 2026-11-04T21:24:53Z | [3c2958f89c66](https://github.com/Batmancpu/CurrentLens/commit/3c2958f89c66d91b9d6cb31be9ad96abed83a7b1) | fix: cancel stale dictionary definition on new touch | +| 76 | 2026-11-04T20:27:22Z | [eb5eae3d20e9](https://github.com/Batmancpu/CurrentLens/commit/eb5eae3d20e90fcd56ed21e524523e47c8c3d1bd) | fix: cancel auto-define on interrupted touch gestures | +| 75 | 2026-11-04T19:15:08Z | [97c63bb54fca](https://github.com/Batmancpu/CurrentLens/commit/97c63bb54fca51ba78ec4ae56daaf7f877f4e883) | fix: preserve native reader text selection | +| 74 | 2026-11-04T18:25:06Z | [8f9258b4da65](https://github.com/Batmancpu/CurrentLens/commit/8f9258b4da65e812e0a0296f7384e4f6dbc28623) | security: scope reader JavaScript to sanitised articles | +| 73 | 2026-11-04T17:28:21Z | [e10c42c4bde7](https://github.com/Batmancpu/CurrentLens/commit/e10c42c4bde76c30ba1c7d19b0ff316f84785efe) | fix: normalize punctuation around selected dictionary words | +| 72 | 2026-11-04T16:18:28Z | [361dbc4ea7c4](https://github.com/Batmancpu/CurrentLens/commit/361dbc4ea7c4dae358860d7b7c5896d481f6b9a0) | fix: wait for stable short-reader layout before completion | +| 71 | 2026-11-04T15:12:03Z | [8a9aa87fb41d](https://github.com/Batmancpu/CurrentLens/commit/8a9aa87fb41d8f5361e4b8ef87c842135d1f1e5a) | fix: detect fully visible short reader articles | +| 70 | 2026-11-04T14:55:12Z | [c37ba5ff8ab8](https://github.com/Batmancpu/CurrentLens/commit/c37ba5ff8ab87847557edd618d34b7bce8095ca7) | fix: match dictionary pronunciation to resolved lemma | +| 69 | 2026-11-04T13:09:58Z | [2c28f9536cf7](https://github.com/Batmancpu/CurrentLens/commit/2c28f9536cf7d511b06bb7d927e8888eebca1c8a) | fix: show offline pronunciation in reader definition overlay | +| 68 | 2026-11-04T12:45:15Z | [0c9dc1b3f8d8](https://github.com/Batmancpu/CurrentLens/commit/0c9dc1b3f8d8a206edb976426f318818caa81808) | fix: preserve exact CMUdict license wording | +| 67 | 2026-11-04T12:42:39Z | [bb28beccd131](https://github.com/Batmancpu/CurrentLens/commit/bb28beccd131271af59933f672f9553528f8ca2e) | feat: bundle offline US pronunciations with dictionary | +| 66 | 2026-11-04T11:46:00Z | [de1f7ddedcf7](https://github.com/Batmancpu/CurrentLens/commit/de1f7ddedcf753a3e1bb40c9543ebf227377310e) | test: exercise exception priority with a long inflection | +| 65 | 2026-11-04T10:11:21Z | [193875b8582d](https://github.com/Batmancpu/CurrentLens/commit/193875b8582ddf8be92bab0c955da473cafcfe30) | fix: prefer WordNet exception lemmas during lookup | +| 64 | 2026-11-04T09:16:31Z | [57c08bb0bd1a](https://github.com/Batmancpu/CurrentLens/commit/57c08bb0bd1a12cfb8c799cf20d1e4a202541022) | fix: anchor definition morph to selected word | +| 63 | 2026-11-04T08:44:12Z | [a1d41b581cd8](https://github.com/Batmancpu/CurrentLens/commit/a1d41b581cd8d03981c859d90f0b474cff5fb627) | feat: keep definition popover compact on wide readers | +| 62 | 2026-11-04T07:29:41Z | [f77f618e3a40](https://github.com/Batmancpu/CurrentLens/commit/f77f618e3a4066ffd255dccaf6605831e63100b5) | fix: expand search morph on first tab selection | +| 61 | 2026-11-04T06:33:50Z | [279d2aca6077](https://github.com/Batmancpu/CurrentLens/commit/279d2aca6077612ae071e9220d520ce918be0181) | test: fix sanitizer fixture test structure | +| 60 | 2026-11-04T05:12:48Z | [3e516f0590cb](https://github.com/Batmancpu/CurrentLens/commit/3e516f0590cb1c7033893bcb9557ca20922d695f) | feat: preserve wide article tables on mobile | +| 59 | 2026-11-04T04:45:53Z | [bf7466ec18ef](https://github.com/Batmancpu/CurrentLens/commit/bf7466ec18ef9de147086b3218e5faeee88b4661) | fix: import Compose keyboard and IME APIs | +| 58 | 2026-11-04T04:43:48Z | [b48ccfb1bd96](https://github.com/Batmancpu/CurrentLens/commit/b48ccfb1bd96f53b60c2c41555c3da7e96761791) | feat: morph search from bottom tab above keyboard | +| 57 | 2026-11-04T04:36:33Z | [d6ed1e4a3f78](https://github.com/Batmancpu/CurrentLens/commit/d6ed1e4a3f78b8648a0981f4c9b3b5450015e6cd) | fix: use Prismal v1.0.4 tab bar API | +| 56 | 2026-11-04T04:33:07Z | [9d8be879629f](https://github.com/Batmancpu/CurrentLens/commit/9d8be879629fa7692141046fccd304e7db42b2b7) | fix: restore reader define and refine glass rendering | +| 55 | 2026-11-04T03:18:31Z | [71c7db6567c0](https://github.com/Batmancpu/CurrentLens/commit/71c7db6567c01d4acabc420370fe15c26f08364c) | fix: preserve WebView selection during manual definition | +| 54 | 2026-11-04T02:20:16Z | [bf0e9c5b9f60](https://github.com/Batmancpu/CurrentLens/commit/bf0e9c5b9f60667f818a8e2991e68f55c5acc597) | fix: keep dictionary popover within compact reader viewports | +| 53 | 2026-11-04T01:42:50Z | [969e87e6c680](https://github.com/Batmancpu/CurrentLens/commit/969e87e6c680fa3d607e92b8eabd9306ad2606bf) | perf: reuse offline dictionary database connection | +| 52 | 2026-11-04T00:55:21Z | [77e95ee87044](https://github.com/Batmancpu/CurrentLens/commit/77e95ee87044eb0f47ef073499cc83e848a94a85) | test: align malformed dictionary gloss expectation with trimming policy | +| 51 | 2026-11-03T23:25:19Z | [a57782fbc728](https://github.com/Batmancpu/CurrentLens/commit/a57782fbc728790990732b46482e92d98b9fe89c) | feat: present dictionary parts of speech clearly | +| 50 | 2026-11-03T22:33:56Z | [96bf5d67f109](https://github.com/Batmancpu/CurrentLens/commit/96bf5d67f109655b35b80fe51acca463da0950f3) | perf: cache offline dictionary lookups with bounded LRU | +| 49 | 2026-11-03T21:32:25Z | [5c648a9c6c60](https://github.com/Batmancpu/CurrentLens/commit/5c648a9c6c60656194aec96171868dad9fc28455) | fix: preserve native multi-word text selection | +| 48 | 2026-11-03T20:54:10Z | [00b9329ac954](https://github.com/Batmancpu/CurrentLens/commit/00b9329ac9547a406045aabc73148d44a921a1cb) | fix: overlay word definition within reader viewport | +| 47 | 2026-11-03T19:41:21Z | [7b0251949c63](https://github.com/Batmancpu/CurrentLens/commit/7b0251949c633fd82145fa75081b4227a77ae6bb) | fix: correct reader definition callback and scroll import | +| 46 | 2026-11-03T19:38:29Z | [250f4b0dfe8b](https://github.com/Batmancpu/CurrentLens/commit/250f4b0dfe8b0ffad1c965ddc0e4e1bd13c12f4b) | feat: anchor definition glass to selected word | +| 45 | 2026-11-03T19:26:59Z | [ed75a34e0d5a](https://github.com/Batmancpu/CurrentLens/commit/ed75a34e0d5a32716656920e5d63bd63723c7cb6) | perf: streamline offline dictionary lookup and popup | +| 44 | 2026-11-03T19:21:09Z | [3136dded6929](https://github.com/Batmancpu/CurrentLens/commit/3136dded69291a7f88f6f6a81ffe3849301124a2) | fix: use supported Prismal bottom tab parameters | +| 43 | 2026-11-03T19:19:01Z | [f05d51c9bdfc](https://github.com/Batmancpu/CurrentLens/commit/f05d51c9bdfc07c9e91dd96f018b1e338a02fa07) | feat: add offline dictionary and refined glass interactions | +| 42 | 2026-11-03T18:15:19Z | [61d212fa8e70](https://github.com/Batmancpu/CurrentLens/commit/61d212fa8e7026cc376f172dae9e9747ab99f5aa) | fix: preserve compact RFC 1123 feed offsets | +| 41 | 2026-11-03T18:13:05Z | [f2938bfbe091](https://github.com/Batmancpu/CurrentLens/commit/f2938bfbe091a7139c4e4865d4b26b819658ff2f) | fix: close Article model before feed declarations | +| 40 | 2026-11-03T18:11:11Z | [26bbb9b8f0c3](https://github.com/Batmancpu/CurrentLens/commit/26bbb9b8f0c3576a16cd135639e4cdbb6580eb7a) | fix: preserve RSS provenance and parse India-local dates safely | +| 39 | 2026-11-03T17:47:47Z | [0032873ebe5f](https://github.com/Batmancpu/CurrentLens/commit/0032873ebe5f0f551c5a242aeb96ac39583e097c) | fix: persist quiz answers and retain legacy read markers | +| 38 | 2026-11-03T16:38:37Z | [0b7f6eb5770a](https://github.com/Batmancpu/CurrentLens/commit/0b7f6eb5770ac12b5edb9c3720134c13447b368b) | fix: count only confirmed foreground reading sessions | +| 37 | 2026-11-03T16:33:29Z | [544aef8a8e9f](https://github.com/Batmancpu/CurrentLens/commit/544aef8a8e9f5a29fad941eaa972b02a9cab7b50) | feat: add You dashboard and study statistics | +| 36 | 2026-11-03T16:23:10Z | [a75660eb92e0](https://github.com/Batmancpu/CurrentLens/commit/a75660eb92e0f72cf30e787fea889c660f79bfbd) | fix: detect reader completion for short articles | +| 35 | 2026-11-03T16:20:08Z | [f8f81945de11](https://github.com/Batmancpu/CurrentLens/commit/f8f81945de117eb642816fa88c23910ab92bb3d6) | fix: constrain reader navigation to verified publishers | +| 34 | 2026-11-03T16:16:44Z | [df227a30d2d8](https://github.com/Batmancpu/CurrentLens/commit/df227a30d2d874682bf36ce6b3c9708f18c92407) | feat: cache public reader content and clarify quiz provenance | +| 33 | 2026-11-03T16:11:57Z | [4184d28ea0e9](https://github.com/Batmancpu/CurrentLens/commit/4184d28ea0e9ba0aa5a80be6af5a1cd9fb527004) | fix: bound RSS and dictionary network responses | +| 32 | 2026-11-03T16:08:30Z | [1504e2cd69ef](https://github.com/Batmancpu/CurrentLens/commit/1504e2cd69ef2c7f84735e9c2b6f182b4f08adfc) | fix: align draggable tabs with Prismal v1.0.4 API | +| 31 | 2026-11-03T16:06:22Z | [3351f165ead4](https://github.com/Batmancpu/CurrentLens/commit/3351f165ead42a52ac93cf3c517bf87c6e43e7a7) | feat: restore Prismal draggable glass tab selection | +| 30 | 2026-11-03T16:03:02Z | [16ecb0aa7c13](https://github.com/Batmancpu/CurrentLens/commit/16ecb0aa7c132aea8df86f59425677ea68a3c392) | fix: improve Explore topic matching and correct Hindu RSS sections | +| 29 | 2026-11-03T15:56:44Z | [7edc59e4b219](https://github.com/Batmancpu/CurrentLens/commit/7edc59e4b219ffd7de781bc46b1f108f49cd0681) | fix: update saved state without refreshing RSS feeds | +| 28 | 2026-11-03T15:50:41Z | [6e218cbd8750](https://github.com/Batmancpu/CurrentLens/commit/6e218cbd87507209fe59b93303ae6007244472d2) | fix: preserve bookmarks and sanitize extracted reader HTML | +| 27 | 2026-11-03T15:44:53Z | [3f4a8568eb37](https://github.com/Batmancpu/CurrentLens/commit/3f4a8568eb374115b1ee044954904ddf1763ff01) | fix: restore Archive tab and move search into Explore | +| 26 | 2026-11-03T15:39:34Z | [a1425abe1e99](https://github.com/Batmancpu/CurrentLens/commit/a1425abe1e995425afcfd25cebfff90c2412aa9f) | fix: restore native reader selection and dictionary action | +| 25 | 2026-11-03T15:31:48Z | [654cc89dee4f](https://github.com/Batmancpu/CurrentLens/commit/654cc89dee4f93fea98bb76df9d8cf88abf2f0d8) | fix: make selection decoding fallback valid JSON | +| 24 | 2026-11-03T15:30:50Z | [6621aac33edc](https://github.com/Batmancpu/CurrentLens/commit/6621aac33edc22f3ce85b5a8fe7d2db58244f973) | feat: replace Android selection menu with in-app dictionary trigger | +| 23 | 2026-11-03T15:30:26Z | [6d2f8576e3c0](https://github.com/Batmancpu/CurrentLens/commit/6d2f8576e3c0e0663fd06498d483f9b8687c6f87) | feat: replace archive with morphing glass search and four-tab navigation | +| 22 | 2026-11-03T15:29:24Z | [fdc0359e9ff2](https://github.com/Batmancpu/CurrentLens/commit/fdc0359e9ff2f81774d9082865e33d00b176924d) | fix: reset reader progress and callbacks per article | +| 21 | 2026-11-03T15:13:41Z | [4e21e6bdc794](https://github.com/Batmancpu/CurrentLens/commit/4e21e6bdc7944f864ca5ee053ab1ca204390dd57) | test: clarify PYQ-style question provenance | +| 20 | 2026-11-03T14:51:01Z | [cd16c2c38e3f](https://github.com/Batmancpu/CurrentLens/commit/cd16c2c38e3fc1aa45f4d1b612e84b042e33574a) | fix: use shared archive date filter | +| 19 | 2026-11-03T13:19:12Z | [4a8fb1a838bf](https://github.com/Batmancpu/CurrentLens/commit/4a8fb1a838bf836514e68d787a96de8f2227089b) | fix: broaden Explore and remove unvalidated UPSC score | +| 18 | 2026-11-03T13:10:20Z | [9173f4a98b3c](https://github.com/Batmancpu/CurrentLens/commit/9173f4a98b3c8bc581a762407f1fc0d2bb656814) | build: compile against Android API 37.0 | +| 17 | 2026-11-03T13:08:24Z | [8ccbe44968aa](https://github.com/Batmancpu/CurrentLens/commit/8ccbe44968aa1b53a88135eb6b4ec6c71ce8ace6) | fix: use Kotlin conditional expressions in reader CSS | +| 16 | 2026-11-03T13:06:52Z | [4a46163cfca2](https://github.com/Batmancpu/CurrentLens/commit/4a46163cfca251acfc073e118f4df51af76695c7) | fix: align glass tab API and remove duplicate settings screen | +| 15 | 2026-11-03T13:04:32Z | [b76a46cc7043](https://github.com/Batmancpu/CurrentLens/commit/b76a46cc704305dcdeaab7a8acfaaaacea662ccb) | fix: correct reader HTML and selection string escaping | +| 14 | 2026-11-03T13:01:32Z | [35232bdcb416](https://github.com/Batmancpu/CurrentLens/commit/35232bdcb416cc84c2734ce143fec92b77d8d924) | fix: use PrismalAGSL repository artifact coordinate | +| 13 | 2026-11-03T12:59:22Z | [a6538a63786c](https://github.com/Batmancpu/CurrentLens/commit/a6538a63786cce15d8b278d22e191e786c5ec001) | fix: use available Android SDK platform | +| 12 | 2026-11-03T12:58:26Z | [4e7a0e09f034](https://github.com/Batmancpu/CurrentLens/commit/4e7a0e09f034a05103b91ebfce0ec35b17d402db) | fix: restore CurrentLens build and public article reader | +| 11 | 2026-11-03T12:04:46Z | [a7791e2c6a5b](https://github.com/Batmancpu/CurrentLens/commit/a7791e2c6a5b677898f623551d344f2b15cb71c6) | build: use Prismal's published Maven artifact coordinates | +| 10 | 2026-11-03T12:02:59Z | [2255b3e2afa7](https://github.com/Batmancpu/CurrentLens/commit/2255b3e2afa7a19aacbed4bf3d782f0d44ce6cf3) | build: add JitPack for Prismal liquid glass library | +| 9 | 2026-11-03T12:01:17Z | [a9e0893e4b1c](https://github.com/Batmancpu/CurrentLens/commit/a9e0893e4b1ce3c83a69ed507fc0eba307ecfffc) | feat: ship four-tab Liquid Glass UI and in-app article reader | +| 8 | 2026-11-03T11:59:35Z | [c46217b4cbe8](https://github.com/Batmancpu/CurrentLens/commit/c46217b4cbe8476aef205e6aaeb2d71fd8075021) | feat: add four-tab liquid glass editorial interface and in-app reader | +| 7 | 2026-11-03T11:52:04Z | [7c2f4d55795d](https://github.com/Batmancpu/CurrentLens/commit/7c2f4d55795d6e7a141a2d78edf287805bc9b4bd) | build: target available Android SDK 36 platform | +| 6 | 2026-11-03T11:50:46Z | [58d5cc11d0a0](https://github.com/Batmancpu/CurrentLens/commit/58d5cc11d0a0defd81848e2e887477d19bb39ff6) | feat: redesign CurrentLens with liquid glass and daily editorial navigation | +| 5 | 2026-11-03T11:30:51Z | [6ce28b2c6642](https://github.com/Batmancpu/CurrentLens/commit/6ce28b2c66425300f07ec48e7eb83b597e6bf98a) | fix: normalize feed text and publish debug builds as prereleases | +| 4 | 2026-11-03T11:27:26Z | [b6060d6d95b6](https://github.com/Batmancpu/CurrentLens/commit/b6060d6d95b603c7d7fc25d0eecba74097df7337) | ci: publish installable APK as a direct GitHub release asset | +| 3 | 2026-11-03T11:09:55Z | [1973c29947da](https://github.com/Batmancpu/CurrentLens/commit/1973c29947da0b68e45366431e7db0c33395cfe5) | fix: Android SDK runner setup and dictionary parsing | +| 2 | 2026-11-03T11:08:11Z | [e7e5a8b1e892](https://github.com/Batmancpu/CurrentLens/commit/e7e5a8b1e892725364c9bca0a700548b64e3244b) | feat: add CurrentLens Android MVP and single APK workflow | +| 1 | 2026-11-03T11:02:16Z | [aa0521719a53](https://github.com/Batmancpu/CurrentLens/commit/aa0521719a53350cce41c77bc889c860a5d21bf8) | chore: initialise CurrentLens project | + +## How to use this index + +1. Find the relevant commit by date/subject. +2. Open the linked GitHub commit and inspect its full diff and parent. +3. Record exact changed files and before/after behaviour in SESSION_LEDGER.md. +4. Do not infer full intent from the commit subject alone. +5. If a commit fixed a failed run, record the exact failed log and corrective PR separately in BUILD_AND_DEBUG.md. From 5f478cab7865df9fda351a6de117c8d7cbf1d395 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 20:41:58 +0530 Subject: [PATCH 052/175] docs: clarify main-only release and temporary stability workflow --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 721ea886..5c9e5dd3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -68,7 +68,7 @@ For conversation-only decisions that do not produce a commit, append a dated ses - Inspect live main, all open PRs/branches, complete Actions history/queue, workflow, latest steps/logs, artifacts and Releases before proposing repository actions. - Check for equivalent existing PRs before opening another. Update an equivalent PR rather than duplicating it. - Use one isolated branch and one focused draft PR for material improvements. Keep work batched and evidence-backed. -- The current single workflow triggers on pushes to main, has contents:write and publishes a debug APK prerelease. Merging can publish a Release automatically; flag this before any merge discussion. +- The single workflow has `contents:write`; `main` pushes publish a debug APK prerelease, while the temporary active crash-stabilisation branch builds an Actions artifact only. Merging any branch into `main` can trigger a Release; flag this before any merge discussion. Remove temporary branch triggers when the stabilisation work is completed. - If no material change is justified, do not send a no-change alert or a generic UPSC news digest. ## Verification rules From 6aac8e502ccca33e645343c3346981923b6594ca Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 21:06:31 +0530 Subject: [PATCH 053/175] test: isolate Prismal startup rendering stages without disabling Liquid Glass --- .github/workflows/build-apk.yml | 12 +- AGENTS.md | 12 + app/build.gradle.kts | 4 +- .../currentlens/StabilityLaunchProbe.kt | 319 ++++++++++++++++-- docs/BUILD_AND_DEBUG.md | 18 + docs/KNOWN_ISSUES.md | 11 + docs/PROJECT_HANDOFF.md | 17 + docs/SESSION_LEDGER.md | 24 ++ 8 files changed, 386 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 70b7b827..565db582 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -10,8 +10,8 @@ permissions: contents: write concurrency: - group: currentlens-android-build - cancel-in-progress: false + group: currentlens-android-build-${{ github.ref }} + cancel-in-progress: true jobs: build: @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.5-stability-debug-apk + name: CurrentLens-v0.2.6-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -96,10 +96,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.5-build-${{ github.run_number }} - name: CurrentLens v0.2.5 (Build ${{ github.run_number }}) + tag_name: v0.2.6-build-${{ github.run_number }} + name: CurrentLens v0.2.6 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.5 testing build. + CurrentLens v0.2.6 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. diff --git a/AGENTS.md b/AGENTS.md index 5c9e5dd3..42f65983 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -137,3 +137,15 @@ The app has a recurring, user-observed native cold-start failure. Treat this as - Preserve independent open feature branches until their unique commits are reviewed, integrated or explicitly abandoned. Never delete a branch with unmerged unique work merely to reduce the branch count. - After merge/closure, delete truly stale refs when safe; do not force-move a branch to simulate deletion. If branch deletion is not available to the acting tool, say so and give the owner the GitHub Branches page rather than claiming deletion. - Enable repository-side automatic deletion of merged branches only after the owner approves the setting. Never merge PRs, close active feature PRs or delete unique work without an explicit user decision. + + +### Stability 0.2.5 device result and the next isolation protocol + +- The owner tested the 0.2.5 Stability build. Its privacy-minimised report recorded `CRASH_NATIVE (5)` / signal 11 after the checkpoint `Full brrrNews composition requested from stability probe`. No Java/Kotlin exception was captured. +- A user-supplied 21.36-second screen recording shows the plain Compose/Material probe rendering, followed by the app returning to the launcher/recovery flow after the full-app transition. Do not upload the recording or its device/launcher contents to this public repository. +- This is stronger evidence that the basic Activity and plain Compose probe can draw, while the transition into the full app fails. It does not prove which full-app component is responsible. +- The 0.2.3 Legacy build still crashed. PrismalAGSL v1.0.6 Legacy disables AGSL and RenderEffect, but its `rememberPrismalGlassLayer` / `prismalGlassLayer` path still records and draws Compose `GraphicsLayer` objects; `drawPrismalGlass` also creates and records graphics layers. Therefore the earlier Legacy test did not eliminate backdrop capture or layer composition as a cause. Source: https://github.com/styropyr0/PrismalAGSL/tree/v1.0.6/Prismal/src/main/java/com/styropyr0/prismal. +- Keep production and normal Stability full-app mode on Prismal's automatic pipeline with all current effects. Do not re-add the forced Legacy override. Do not permanently remove blur, refraction, specular, depth or chromatic effects on the basis of these reports. +- Stability 0.2.6 must isolate, in this order, (1) one root backdrop capture only, (2) one full Prismal glass surface, (3) two captured layers plus the merged hidden tab source, then (4) the full application. Each button must persist a coarse stage marker before changing Compose state; after three stable frames, mark that test stage complete. If it fails, the next local report identifies the last requested stage. +- If stages 1–3 all pass but the full app crashes, the issue lies beyond the tested primitive path (e.g. another composable, image decode, data-driven screen or interaction); isolate the app tree next. Do not infer from this short test alone. +- The shareable report remains minimised. Raw tombstones may contain device fingerprints, PIDs/TIDs, addresses and all-thread memory maps; never commit or include them in public GitHub text, screenshots or CI artifacts. Keep any raw trace app-private and only share a deliberately sanitised symbol-level summary. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a59d419d..9bd7dd5e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 7 - versionName = "0.2.5" + versionCode = 8 + versionName = "0.2.6" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" buildConfigField("boolean", "STABILITY_TEST_BUILD", stabilityTestBuild.toString()) } diff --git a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt index e56de51c..3d9a1e9c 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt @@ -2,49 +2,124 @@ package com.mangoloads.currentlens import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.foundation.verticalScroll import androidx.compose.material3.Button import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableIntStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.runtime.withFrameNanos +import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.graphicsLayer import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.Density +import androidx.compose.ui.unit.DpOffset import androidx.compose.ui.unit.dp -import androidx.compose.runtime.withFrameNanos +import com.styropyr0.prismal.PrismalBackdrop +import com.styropyr0.prismal.depth.PrismalDepthInset +import com.styropyr0.prismal.depth.PrismalDepthShadow +import com.styropyr0.prismal.drawPrismalGlass +import com.styropyr0.prismal.effects.PrismalAdaptiveTuning +import com.styropyr0.prismal.effects.applyPrismalGlassEffects +import com.styropyr0.prismal.shapes.PrismalCapsule +import com.styropyr0.prismal.shapes.PrismalRoundedRectangle +import com.styropyr0.prismal.sources.prismalGlassLayer +import com.styropyr0.prismal.sources.rememberPrismalGlassLayer +import com.styropyr0.prismal.sources.rememberPrismalMergedSource +import com.styropyr0.prismal.specular.PrismalSpecular /** - * Temporary first-launch isolation screen used only in Stability APKs. + * Stability-only rendering isolation menu. * - * It deliberately does not create Prismal backdrops, graphics-layer sampling, - * glass drawing modifiers, blur or shader effects. The button then loads the - * full app UI with Prismal's normal automatic pipeline enabled. + * Tests the same Prismal primitives used by the full app in increasing complexity: + * 1) one captured GraphicsLayer, 2) one complete glass draw, 3) two captured layers + * plus a merged source, and finally the complete app. The production entry path and + * Prismal automatic pipeline are not changed. */ @Composable internal fun StabilityLaunchProbe(onLaunchFullApp: () -> Unit) { val context = LocalContext.current + var selectedStage by remember { mutableIntStateOf(0) } - LaunchedEffect(Unit) { - LaunchCrashDiagnostics.recordStage(context, "Stability probe composition started") + LaunchedEffect(selectedStage) { + val stageName = when (selectedStage) { + 0 -> "Stability probe menu" + 1 -> "Probe stage 1 — root GraphicsLayer capture" + 2 -> "Probe stage 2 — single full Liquid Glass surface" + 3 -> "Probe stage 3 — hidden tab layer and merged backdrop" + else -> return@LaunchedEffect + } + LaunchCrashDiagnostics.recordStage(context, stageName + " composition started") repeat(3) { withFrameNanos { } } - LaunchCrashDiagnostics.markHealthy( - context, - "First Compose frames completed — stability probe" + LaunchCrashDiagnostics.markHealthy(context, stageName + " frames completed") + } + + when (selectedStage) { + 1 -> RootBackdropCaptureProbe { + LaunchCrashDiagnostics.recordStage(context, "Returning to Stability probe menu after root capture test") + selectedStage = 0 + } + 2 -> SingleLiquidGlassProbe { + LaunchCrashDiagnostics.recordStage(context, "Returning to Stability probe menu after single glass test") + selectedStage = 0 + } + 3 -> MergedTabBackdropProbe { + LaunchCrashDiagnostics.recordStage(context, "Returning to Stability probe menu after merged backdrop test") + selectedStage = 0 + } + else -> StabilityProbeMenu( + onRootCapture = { + LaunchCrashDiagnostics.recordStage(context, "Stability probe stage 1 requested — root GraphicsLayer capture") + selectedStage = 1 + }, + onSingleGlass = { + LaunchCrashDiagnostics.recordStage(context, "Stability probe stage 2 requested — single full Liquid Glass surface") + selectedStage = 2 + }, + onMergedBackdrop = { + LaunchCrashDiagnostics.recordStage(context, "Stability probe stage 3 requested — hidden tab layer and merged backdrop") + selectedStage = 3 + }, + onLaunchFullApp = { + LaunchCrashDiagnostics.recordStage(context, "Full brrrNews composition requested from stability probe") + onLaunchFullApp() + } ) } +} +@Composable +private fun StabilityProbeMenu( + onRootCapture: () -> Unit, + onSingleGlass: () -> Unit, + onMergedBackdrop: () -> Unit, + onLaunchFullApp: () -> Unit +) { Column( modifier = Modifier .fillMaxSize() .background(MaterialTheme.colorScheme.background) - .padding(horizontal = 26.dp, vertical = 32.dp), + .verticalScroll(rememberScrollState()) + .padding(horizontal = 24.dp, vertical = 28.dp), verticalArrangement = Arrangement.Center ) { Text( @@ -53,31 +128,229 @@ internal fun StabilityLaunchProbe(onLaunchFullApp: () -> Unit) { fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.onBackground ) - Spacer(Modifier.height(10.dp)) + Spacer(Modifier.height(8.dp)) Text( text = "Startup isolation check", style = MaterialTheme.typography.titleMedium, color = MaterialTheme.colorScheme.primary ) - Spacer(Modifier.height(14.dp)) + Spacer(Modifier.height(12.dp)) Text( - text = "This first screen uses standard Compose and Material only. It avoids Prismal backdrop capture and glass rendering so the initial launch can be checked separately.", + text = "The basic Compose screen has launched. Run the rendering checks below in order. Each check is isolated and records its stage locally before rendering.", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.onBackground ) - Spacer(Modifier.height(14.dp)) + Spacer(Modifier.height(18.dp)) + ProbeActionButton("1 · Test backdrop capture only", onRootCapture) + ProbeActionButton("2 · Test one full Liquid Glass surface", onSingleGlass) + ProbeActionButton("3 · Test merged tab backdrops", onMergedBackdrop) + Spacer(Modifier.height(10.dp)) Text( - text = "Next, open the complete app with the original Liquid Glass effects enabled. If that step crashes, the report will identify that the failure occurred after the full UI was requested.", - style = MaterialTheme.typography.bodyMedium, + text = "After the three checks, launch the complete app. Its original Liquid Glass pipeline and visual effects remain enabled.", + style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary ) - Spacer(Modifier.height(26.dp)) - Button( - onClick = onLaunchFullApp, - modifier = Modifier.fillMaxWidth(), - shape = RoundedCornerShape(18.dp) + Spacer(Modifier.height(12.dp)) + ProbeActionButton("Open full brrrNews", onLaunchFullApp) + } +} + +@Composable +private fun ProbeActionButton(label: String, onClick: () -> Unit) { + Button( + onClick = onClick, + modifier = Modifier.fillMaxWidth().padding(vertical = 4.dp), + shape = RoundedCornerShape(16.dp) + ) { + Text(label) + } +} + +@Composable +private fun RootBackdropCaptureProbe(onBack: () -> Unit) { + val backdrop = rememberPrismalGlassLayer() + Box( + Modifier + .fillMaxSize() + .background(MaterialTheme.colorScheme.background) + .prismalGlassLayer(backdrop) + ) { + Column( + Modifier.fillMaxSize().padding(24.dp), + verticalArrangement = Arrangement.Center, + horizontalAlignment = Alignment.CenterHorizontally ) { - Text("Open full brrrNews — Liquid Glass enabled") + Text("Stage 1 · Backdrop capture", style = MaterialTheme.typography.headlineSmall) + Spacer(Modifier.height(12.dp)) + Text( + "This screen records one Compose subtree into a single GraphicsLayer. No glass surface, shader, blur or merged source is drawn.", + color = MaterialTheme.colorScheme.secondary + ) + Spacer(Modifier.height(24.dp)) + ProbeActionButton("Back to test menu", onBack) } } } + +@Composable +private fun SingleLiquidGlassProbe(onBack: () -> Unit) { + val backdrop = rememberPrismalGlassLayer() + val density = LocalDensity.current + Box( + Modifier + .fillMaxSize() + .background(MaterialTheme.colorScheme.background) + .prismalGlassLayer(backdrop) + ) { + Column( + Modifier.fillMaxSize().padding(24.dp), + verticalArrangement = Arrangement.Center + ) { + Text("Stage 2 · Single Liquid Glass surface", style = MaterialTheme.typography.headlineSmall) + Spacer(Modifier.height(14.dp)) + Text( + "One root capture and one complete Prismal glass draw, using the normal automatic pipeline.", + color = MaterialTheme.colorScheme.secondary + ) + Spacer(Modifier.height(24.dp)) + Box( + Modifier + .fillMaxWidth() + .height(180.dp) + .probeLiquidGlass(backdrop, density) + .background(Color(0x223D72C7), RoundedCornerShape(24.dp)) + .padding(22.dp), + contentAlignment = Alignment.Center + ) { + Text( + "Liquid Glass rendering test", + style = MaterialTheme.typography.titleLarge, + fontWeight = FontWeight.SemiBold + ) + } + Spacer(Modifier.height(24.dp)) + ProbeActionButton("Back to test menu", onBack) + } + } +} + +@Composable +private fun MergedTabBackdropProbe(onBack: () -> Unit) { + val pageBackdrop = rememberPrismalGlassLayer() + val tabBackdrop = rememberPrismalGlassLayer() + val mergedBackdrop = rememberPrismalMergedSource(pageBackdrop, tabBackdrop) + val density = LocalDensity.current + + // Match the production bottom bar's second, hidden tab-glyph capture. + tabBackdrop.readSamplingState() + + Box(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { + Column( + Modifier + .fillMaxSize() + .padding(bottom = 94.dp) + .prismalGlassLayer(pageBackdrop) + .padding(horizontal = 24.dp, vertical = 28.dp), + verticalArrangement = Arrangement.Center + ) { + Text("Stage 3 · Merged tab backdrops", style = MaterialTheme.typography.headlineSmall) + Spacer(Modifier.height(12.dp)) + Text( + "This reproduces the production structure: a page GraphicsLayer, a second invisible tab-content GraphicsLayer, a merged source and glass surfaces sampling both.", + color = MaterialTheme.colorScheme.secondary + ) + } + + Row( + Modifier + .graphicsLayer { alpha = 0f } + .clearAndSetSemantics {} + .prismalGlassLayer(tabBackdrop) + .fillMaxWidth() + .height(70.dp) + .padding(horizontal = 8.dp), + horizontalArrangement = Arrangement.SpaceEvenly, + verticalAlignment = Alignment.CenterVertically + ) { + Text("Today") + Text("Explore") + Text("Search") + Text("You") + } + + Box( + Modifier + .align(Alignment.BottomCenter) + .fillMaxWidth() + .padding(horizontal = 18.dp, vertical = 12.dp) + .height(70.dp) + .probeLiquidGlass(pageBackdrop, density), + contentAlignment = Alignment.Center + ) { + Text("Base tab bar · page source") + } + + Box( + Modifier + .align(Alignment.BottomCenter) + .padding(bottom = 18.dp) + .fillMaxWidth(0.24f) + .height(58.dp) + .probeLiquidGlass(mergedBackdrop, density, capsule = true), + contentAlignment = Alignment.Center + ) { + Text("You", fontWeight = FontWeight.Bold) + } + + Box(Modifier.align(Alignment.TopCenter).padding(top = 12.dp)) { + ProbeActionButton("Back to test menu", onBack) + } + } +} + +private fun Modifier.probeLiquidGlass( + backdrop: PrismalBackdrop, + density: Density, + capsule: Boolean = false +): Modifier = drawPrismalGlass( + backdrop = backdrop, + shape = { + if (capsule) PrismalCapsule() else PrismalRoundedRectangle(24.dp) + }, + effects = { + applyPrismalGlassEffects( + density = density, + adaptiveLuminance = true, + luminance = 0.18f, + blurRadiusPx = with(density) { 13.dp.toPx() }, + refractionHeightPx = with(density) { 16.dp.toPx() }, + refractionAmountPx = with(density) { 20.dp.toPx() }, + depthEffect = true, + chromaticAberration = 0.012f, + adaptiveTuning = PrismalAdaptiveTuning.Subtle + ) + }, + specular = { + PrismalSpecular.Default.copy( + width = 0.55.dp, + blurRadius = 0.35.dp, + alpha = 0.28f + ) + }, + depthShadow = { + PrismalDepthShadow( + radius = 12.dp, + offset = DpOffset(0.dp, 2.dp), + color = Color.Black.copy(alpha = 0.09f), + alpha = 0.20f + ) + }, + depthInset = { + PrismalDepthInset( + radius = 4.dp, + offset = DpOffset(0.dp, 1.dp), + color = Color.Black.copy(alpha = 0.05f), + alpha = 0.05f + ) + } +) diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index 99e2eadd..30ba3781 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -122,3 +122,21 @@ This section supersedes the earlier PR #16 snapshot above where its head, render ### Runtime acceptance is mandatory CI establishes that the code compiles and JVM tests pass. It cannot establish that the app launches on the owner's device. Use the acceptance sequence in root `AGENTS.md` and record the actual device result separately from CI. + + +## Stability 0.2.5 — Build #161 and device result + +- Run #161: https://github.com/Batmancpu/CurrentLens/actions/runs/42240793437. +- Commit: `5f478cab7865df9fda351a6de117c8d7cbf1d395`. +- CI: WordNet generation, Gradle unit tests, APK compile, signing-key restore and artifact upload succeeded; Release publication was skipped. +- Artifact: `CurrentLens-v0.2.5-stability-debug-apk`, ID `13517165145`, 14-day retention. +- Owner tested 0.2.5. It still produced `CRASH_NATIVE (5)` / signal 11 after the checkpoint `Full brrrNews composition requested from stability probe`. The plain Compose/Material probe was visible in the supplied recording; the subsequent full-app transition returned to launcher/recovery. Root cause is not established. +- The video and raw report remain private; no media or device identifiers were committed. + +## Stability 0.2.6 — staged rendering isolation build + +- Branch: the existing PR #16 branch only. +- Adds incremental test modes: (1) a single root GraphicsLayer capture without a glass draw, (2) one full Prismal glass surface on that source, (3) the hidden second tab capture plus merged source, then (4) full app with existing effects. +- Build version code/name: 8 / `0.2.6-stability`; same Stability signing key for update installation. +- Workflow concurrency is scoped per Git ref and cancels older in-progress builds on the same ref only. A Stability push will not cancel a main-branch build. +- CI result/artifact must be appended after run completion. This is a diagnostic build, not a fix claim. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index 2e5093ac..8fe02a48 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -133,3 +133,14 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - Stability 0.2.5 adds a plain Compose/Material first-launch probe, then a manual transition to the full app with Prismal's normal pipeline. The automatic Legacy override was removed. Build #158 passed CI; physical-device result remains pending. - Required next test: confirm probe cold-launch, tap into the complete Liquid Glass app, then repeat at least five cold/warm launches. If failure occurs, note whether it happened before or after the full-app button using the privacy-minimised local report. - Do not publish raw traces, build fingerprints, device model/code, PIDs/TIDs, exact timestamps or memory addresses. See root `AGENTS.md`. + + +### KL-017 — Full-app first-frame native crash after the plain probe (Stability 0.2.5) +- Status: User-reproduced on physical device; source-level root cause unverified. +- Shareable report: `CRASH_NATIVE (5)`, signal 11; last coarse startup stage: `Full brrrNews composition requested from stability probe`; no Java/Kotlin exception. +- The attached 21.36-second recording shows the plain Compose/Material startup probe rendering; after the user transitions to the complete app, the process returns to the launcher/recovery flow. This narrows the failure to the full-app transition/initial composition or rendering path, not the plain probe. +- The 0.2.3 Legacy attempt still crashed. Legacy disables AGSL and RenderEffect but retains Prismal's sampled GraphicsLayer capture/draw path; it therefore did not rule out GraphicsLayer capture, merged sources or offscreen composition. +- Normal/production rendering remains on Prismal's automatic pipeline with full effects; no forced Legacy override is present in the current PR branch. +- Stability 0.2.6 adds three isolated, incremental checks: root capture only; one full Liquid Glass surface; two captured layers plus merged tab backdrop. Full app remains a separate final button. +- The 0.2.5 report and recording contain no raw identifiers in the repository. Do not upload the video or any raw tombstone to GitHub. +- Root cause must remain “not established” until a failing stage is reproduced with a sanitised symbol-level trace or a code-level trigger and then verified on repeated device launches. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index ccb2da5b..636d6f3e 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -181,3 +181,20 @@ Do not blindly merge. No PR branch CI result follows from Build #116. ## Session continuity The user continues in ChatGPT and does not want to repeat project context. Start the next chat inside the CurrentLens ChatGPT Project. Read CHATGPT_CONTINUITY.md for setup. GitHub is canonical for code/history, but Project sources are copies and need refresh after updates. Upload COMMIT_DETAILS.md to the Project as well. + + +## Live repository snapshot — 6 November 2026, supersedes older PR/branch counts above + +- `main`: `73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged in this session). +- Active crash work: PR #16, branch `fix/early-startup-crash-diagnostics-2026-11-06`; keep this as the single active integration branch for launch stabilisation. +- PR #16 remains draft/open and unmerged. Its 0.2.5 full-app test still crashed after the plain probe; current root cause is not established. +- Other open draft PRs with unique pending work: #6 Geography/editorial mapping, #8 off-main persistence, #11 publication/cache integrity, #12 Atom link selection, #13 adaptive glass contrast. Do not blindly merge or delete their branches. +- Closed historical PRs #1/#2/#3/#5/#7/#9/#10 were merged; their remote branch refs are historical clutter. PR #14 is closed and its continuity docs were imported into PR #16. PR #15 is closed unmerged; its redirect work was consolidated into PR #16. PR #4 is closed unmerged and shares a branch with earlier UI work; inspect its unique commits before considering deletion. +- Repository currently has 17 branch refs and automatic deletion of merged branches is disabled. Branch count does not affect installed APK runtime; it increases review/CI/continuity overhead. The available GitHub connection in this session can inspect and update branches/PRs but does not expose branch-ref deletion or repository-setting mutation. Do not claim refs were deleted. After reviewing unique commits, manually delete only stale refs in GitHub's Branches page; enable automatic deletion of merged branches in repository Settings → General → Pull Requests. +- New engineering work should stay on PR #16; do not create a branch per chat/session/agent. Batch related files into one commit to avoid redundant CI runs. + +### Latest device evidence +- Stability 0.2.5 report: native signal-11 crash after the user requested the full app from the stability probe. The short screen recording shows the plain Compose/Material probe renders, then the full-app transition returns to launcher/recovery. +- Prismal Legacy still uses GraphicsLayer capture/draw. The failed Legacy attempt did not exonerate the shared layer path. Normal rendering remains full Liquid Glass. +- Stability 0.2.6 is an incremental diagnostic APK, not a claimed fix. It tests backdrop capture, one Liquid Glass surface, merged tab capture, and full app separately. See root AGENTS.md and KL-017. + diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index f539cf75..02080801 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -294,3 +294,27 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - The downloaded artifact was extracted and confirmed present in the work container. APK SHA-256: `e44b8341d53a0e2fd41925f4d621ed6e0be5b25747a7ed8fbb0ea094d518abae`. - Physical device test has not yet happened. Build #158 does not prove the probe or complete Liquid Glass app survives cold launch. Do not state that the crash is fixed. - Keep PR #16 draft/unmerged. Main branch remains untouched. + + +## 6 November 2026 — Stability 0.2.5 probe result and staged Prismal isolation + +### Owner evidence +- User supplied a privacy-minimised 0.2.5 Stability report: `CRASH_NATIVE (5)`, signal 11, with last stage `Full brrrNews composition requested from stability probe`. The report excludes raw trace, device identifiers, process IDs and exact timestamps. +- User supplied a 21.36-second screen recording. Visual review shows the plain Compose/Material probe is displayed; after the full-app transition, the process returns to the Android launcher and the crash-recovery screen is seen again. The recording is private evidence and is not copied to the public repo. +- This supports the distinction “basic probe can render; full-app transition fails.” It does not prove whether the exact trigger is a Prismal layer, another Compose node, image decode, or another library/native finalizer. + +### Source review +- The previous 0.2.3 Legacy override disabled AGSL and RenderEffect but still retained Prismal `GraphicsLayer` recording/sampling and `drawLayer`; failure under Legacy therefore did not exclude the backdrop-capture path. +- Reviewed PrismalAGSL v1.0.6 source for `PrismalGlassLayer`, its modifier, merged sources and draw modifier. The layer path uses `rememberGraphicsLayer`, `GraphicsLayer.record`, and `drawLayer`; the draw node creates/releases a GraphicsLayer and may set an offscreen compositing strategy when RenderEffect is supported. +- The ordinary production build and Stability full-app path remain on Prismal automatic pipeline with existing full visual effects. No visual downgrade is applied. + +### Change in this session +- Extend the Stability-only probe to test one root GraphicsLayer capture, one full Prismal glass surface, a second hidden tab capture plus merged backdrop, then the complete app. +- Each stage writes an app-private coarse checkpoint synchronously before changing Compose state. Three stable frames mark the stage complete. The exported report continues to omit device/build identifiers, PIDs/TIDs, timestamps, raw traces and exception messages. +- Bump Stability-only build to 0.2.6 / versionCode 8. Production application ID/version behavior outside the Stability build is unchanged apart from the shared app version metadata. +- Update Actions concurrency to cancel obsolete builds only within the same Git ref; this avoids a burst of commits creating redundant builds while not cancelling a main-branch build because the Stability branch was pushed. + +### Verification and limits +- CI must run on the single existing PR #16 branch after this batched commit. Record exact unit-test/WordNet/build/artifact outcomes when the run completes. +- No device launch or GPU verification is possible here. Do not claim the native crash is fixed; 0.2.6 is an isolation build. +- Preserve the current main SHA and do not merge or publish a Release. From 8c5f29d3a53669b3d810e4318d949caef4922f1a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 21:21:33 +0530 Subject: [PATCH 054/175] fix: isolate Prismal backdrop from glass surfaces --- .../mangoloads/currentlens/MainActivity.kt | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index c2d4752c..996de285 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -544,6 +544,49 @@ private fun BrrrNewsApp() { if (searchExpanded) Color.Transparent else MaterialTheme.colorScheme.background ) ) { + // Prismal's capture source must contain background pixels only. Capturing the + // complete UI subtree here would also record glass surfaces that sample this + // same layer, creating a self-referential GraphicsLayer render dependency. + // Keep the live glass surfaces as siblings above this isolated ambient source. + Box( + Modifier.fillMaxSize() + .prismalGlassLayer(backdrop) + .background(MaterialTheme.colorScheme.background) + .drawBehind { + val topCenter = Offset(size.width * 0.82f, size.height * 0.12f) + val lowerCenter = Offset(size.width * 0.14f, size.height * 0.78f) + val glowRadius = size.width * 0.92f + val topGlow = if (dark) { + Color(0xFF5279B6).copy(alpha = 0.24f) + } else { + Color(0xFF8CB5F0).copy(alpha = 0.20f) + } + val lowerGlow = if (dark) { + Color(0xFF315B79).copy(alpha = 0.16f) + } else { + Color(0xFFB7C9E8).copy(alpha = 0.18f) + } + drawCircle( + brush = Brush.radialGradient( + colors = listOf(topGlow, Color.Transparent), + center = topCenter, + radius = glowRadius + ), + radius = glowRadius, + center = topCenter + ) + drawCircle( + brush = Brush.radialGradient( + colors = listOf(lowerGlow, Color.Transparent), + center = lowerCenter, + radius = glowRadius * 0.82f + ), + radius = glowRadius * 0.82f, + center = lowerCenter + ) + } + ) + val searchTransition = updateTransition(targetState = searchExpanded, label = "Search tab morph") val animatedSearchMorphProgress = searchTransition.animateFloat( transitionSpec = { @@ -583,7 +626,6 @@ private fun BrrrNewsApp() { Column( Modifier.fillMaxSize() .then(if (searchExpanded) Modifier.imePadding() else Modifier) - .prismalGlassLayer(backdrop) .background(if (searchExpanded) Color.Transparent else MaterialTheme.colorScheme.background) ) { when { From dce04ef37cae0b147131a8d3e3a65a6e5e2abe52 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Fri, 6 Nov 2026 21:23:26 +0530 Subject: [PATCH 055/175] docs: record Prismal backdrop capture fix --- .github/workflows/build-apk.yml | 8 ++++---- AGENTS.md | 10 ++++++++++ app/build.gradle.kts | 4 ++-- docs/BUILD_AND_DEBUG.md | 11 +++++++++++ docs/KNOWN_ISSUES.md | 10 ++++++++++ docs/PROJECT_HANDOFF.md | 12 ++++++++++++ docs/SESSION_LEDGER.md | 21 +++++++++++++++++++++ 7 files changed, 70 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 565db582..b03b6226 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.6-stability-debug-apk + name: CurrentLens-v0.2.7-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -96,10 +96,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.6-build-${{ github.run_number }} - name: CurrentLens v0.2.6 (Build ${{ github.run_number }}) + tag_name: v0.2.7-build-${{ github.run_number }} + name: CurrentLens v0.2.7 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.6 testing build. + CurrentLens v0.2.7 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. diff --git a/AGENTS.md b/AGENTS.md index 42f65983..340b98aa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -149,3 +149,13 @@ The app has a recurring, user-observed native cold-start failure. Treat this as - Stability 0.2.6 must isolate, in this order, (1) one root backdrop capture only, (2) one full Prismal glass surface, (3) two captured layers plus the merged hidden tab source, then (4) the full application. Each button must persist a coarse stage marker before changing Compose state; after three stable frames, mark that test stage complete. If it fails, the next local report identifies the last requested stage. - If stages 1–3 all pass but the full app crashes, the issue lies beyond the tested primitive path (e.g. another composable, image decode, data-driven screen or interaction); isolate the app tree next. Do not infer from this short test alone. - The shareable report remains minimised. Raw tombstones may contain device fingerprints, PIDs/TIDs, addresses and all-thread memory maps; never commit or include them in public GitHub text, screenshots or CI artifacts. Keep any raw trace app-private and only share a deliberately sanitised symbol-level summary. + + +## 6 November 2026 — Prismal backdrop self-capture correction + +- Source inspection found a concrete rendering-architecture defect in the prior PR #16 implementation: `BrrrNewsApp` attached `.prismalGlassLayer(backdrop)` to the full content `Column`, while glass surfaces inside that same subtree sampled the same `backdrop`. +- PrismalAGSL v1.0.6 documents this modifier for background content with glass surfaces drawn above it. Its layer modifier draws the subtree and then records that subtree to a GraphicsLayer; descendant glass draws referencing the same layer can therefore create a self-referential capture/sampling dependency. This is the strongest source-level diagnosis consistent with the full-app first-render failure and earlier GPU/HWUI trace. It is not proof that a specific native instruction caused the reported SIGSEGV. +- The code correction moves the Prismal capture to a separate background-only sibling (theme background plus two subtle ambient radial glows); the app content and all glass surfaces are drawn above/outside that capture. The full automatic Prismal pipeline and blur, refraction, chromatic aberration, specular, depth and spring effects remain enabled. No telemetry, upload or extra permissions are introduced. +- Do not reintroduce a capture modifier on a parent whose descendants sample that same backdrop. Keep every captured source tree free of glass surfaces that read from that source. +- The owner declined another staged diagnostic cycle. Do not keep asking for probe-stage tests. Rely on source inspection and CI first; report that device-level causality remains unverified unless the owner later volunteers a single runtime check. +- The previous KL-017 0.2.5 evidence remains valid. The old 0.2.6 staged probe is diagnostic history, not a required owner workflow. CI success must not be described as proof of device stability. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9bd7dd5e..134b0821 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 8 - versionName = "0.2.6" + versionCode = 9 + versionName = "0.2.7" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" buildConfigField("boolean", "STABILITY_TEST_BUILD", stabilityTestBuild.toString()) } diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index 30ba3781..f088f9d5 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -140,3 +140,14 @@ CI establishes that the code compiles and JVM tests pass. It cannot establish th - Build version code/name: 8 / `0.2.6-stability`; same Stability signing key for update installation. - Workflow concurrency is scoped per Git ref and cancels older in-progress builds on the same ref only. A Stability push will not cancel a main-branch build. - CI result/artifact must be appended after run completion. This is a diagnostic build, not a fix claim. + + +## Stability 0.2.7 — Prismal source-capture correction + +- Branch: existing draft PR #16, `fix/early-startup-crash-diagnostics-2026-11-06`; no new branch. +- Version code/name: 9 / `0.2.7-stability`; package suffix remains `.stability`; same dedicated Stability signing key allows update installation over 0.2.6. +- Source diagnosis: the root content `Column` was itself the Prismal backdrop capture target, even though glass descendants inside that same subtree sampled the same layer. Prismal v1.0.6 documents capture for background-only content; this self-referential layer usage is the strongest source-level defect consistent with the full-app native first-render failure. +- Correction: place the captured source on a background-only sibling containing only the app theme background and subtle radial ambient glows. All content and glass surfaces are siblings above it. The original Prismal automatic pipeline and blur/refraction/chromatic/specular/depth/spring effects are preserved. +- The previous separate tab-glyph capture/merged droplet source remains unchanged. +- Workflow artifact and prerelease labels are updated to 0.2.7. The active PR branch still produces an Actions artifact only; Release publication is skipped. +- Owner declined further staged device testing; none was run. CI success is not physical-device verification and the native signal-11 causal link remains unverified. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index 8fe02a48..da6dc9df 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -144,3 +144,13 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - Stability 0.2.6 adds three isolated, incremental checks: root capture only; one full Liquid Glass surface; two captured layers plus merged tab backdrop. Full app remains a separate final button. - The 0.2.5 report and recording contain no raw identifiers in the repository. Do not upload the video or any raw tombstone to GitHub. - Root cause must remain “not established” until a failing stage is reproduced with a sanitised symbol-level trace or a code-level trigger and then verified on repeated device launches. + + +### KL-018 — Prismal backdrop self-capture in the full app +- Status: **Resolved in code on draft PR #16; native-crash causality remains unverified without another device trace.** +- Source review found that `MainActivity.BrrrNewsApp` applied `.prismalGlassLayer(backdrop)` to the complete content `Column`, while descendant surfaces such as the home header, Explore/Search glass controls and reader/settings glass sampled that same `backdrop`. +- PrismalAGSL v1.0.6 specifies capture for background content with glass drawn above it. Its modifier draws the child subtree and then records that subtree into the backing GraphicsLayer. Descendant glass surfaces reading the same layer create a self-referential capture/sampling path, a strong explanation for a failure that begins only when the full UI is composed and rendered. +- Correction: move the captured layer to a background-only sibling and keep all app content/glass surfaces outside the captured subtree. Add subtle ambient background gradients so the full glass effects still have a non-flat source. +- Preserve the original automatic Prismal pipeline and all blur, refraction, chromatic, specular, depth and spring settings. The separate tab-glyph capture/merged droplet source remains intact. +- The Stability build is advanced to 0.2.7 / versionCode 9 so it can be installed as an update to 0.2.6 with the same test signing key. +- No new user test was requested or run. CI result is recorded separately; the native signal-11 causal link is still a strong diagnosis, not device-proven fact. No raw trace, device identifier or user media is committed. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 636d6f3e..d9d35de9 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -198,3 +198,15 @@ The user continues in ChatGPT and does not want to repeat project context. Start - Prismal Legacy still uses GraphicsLayer capture/draw. The failed Legacy attempt did not exonerate the shared layer path. Normal rendering remains full Liquid Glass. - Stability 0.2.6 is an incremental diagnostic APK, not a claimed fix. It tests backdrop capture, one Liquid Glass surface, merged tab capture, and full app separately. See root AGENTS.md and KL-017. + + +## Latest crash diagnosis and correction — 6 November 2026 + +- Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`; no direct main change, PR merge or Release. +- Work remains on existing draft PR #16 / `fix/early-startup-crash-diagnostics-2026-11-06`. +- Strongest code-level diagnosis: the full app had a Prismal backdrop capture on its root content `Column`, while glass descendants inside that captured subtree sampled the same layer. Prismal v1.0.6 documents the capture modifier for background-only content; the prior structure created a self-referential layer dependency. +- Correction commit: `8c5f29d3a53669b3d810e4318d949caef4922f1a`. The captured source is now a separate background-only sibling with subtle ambient gradients; app content and glass surfaces are outside it. +- All original Prismal effects and automatic pipeline remain enabled. No telemetry, upload, extra permissions or raw diagnostic material was introduced. +- Stability version is advanced to 0.2.7 / versionCode 9, preserving the same signing key and separate package so it can replace the prior Stability APK. +- The user declined another staged diagnostic round. Do not ask for one. CI and source review are the available verification in this session; device-level causality remains unverified. +- Fetch live PR #16 metadata for its exact current head and CI run; do not rely on a self-referential branch SHA inside this handoff. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 02080801..c8af5379 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -318,3 +318,24 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - CI must run on the single existing PR #16 branch after this batched commit. Record exact unit-test/WordNet/build/artifact outcomes when the run completes. - No device launch or GPU verification is possible here. Do not claim the native crash is fixed; 0.2.6 is an isolation build. - Preserve the current main SHA and do not merge or publish a Release. + + +## 6 November 2026 — One source-level diagnosis and Prismal capture correction + +### Diagnosis +- The 0.2.5 Stability report and supplied recording show the plain Compose/Material probe can render, but the request to enter the complete app is followed by a native signal-11 process exit. Earlier partial GPU/HWUI/Skia frames point to the rendering path but do not identify a faulting source line. +- Reviewed the live `MainActivity.kt` and PrismalAGSL v1.0.6 implementation. The app attached `.prismalGlassLayer(backdrop)` to the entire main content `Column`; that subtree contains glass surfaces that also sample `backdrop`. Prismal's modifier draws the subtree and then captures it into the same layer. This is a self-referential capture/sampling dependency and violates Prismal's documented background-only usage pattern. +- This is the strongest concrete source-level defect found and is consistent with the full-app first-render crash. The partial tombstone does not prove it was the exact SIGSEGV instruction; preserve that uncertainty. + +### Code change +- Commit `8c5f29d3a53669b3d810e4318d949caef4922f1a` — `fix: isolate Prismal backdrop from glass surfaces`. +- In `MainActivity.kt`, move `prismalGlassLayer(backdrop)` from the full content `Column` to a separate background-only full-screen sibling. That source contains only the theme background and two subtle radial ambient glows; all app content and all glass surfaces render above it and are excluded from the captured subtree. +- Keep the normal automatic Prismal pipeline and all current blur, refraction, chromatic aberration, specular, depth, adaptive tuning and spring effects. Keep the independent tab-glyph source/merged droplet path; this correction targets the more fundamental self-capture defect rather than weakening the navigation glass. +- Advance the Stability package to versionCode 9 / versionName `0.2.7-stability` for update installation using the existing Stability signing key; update workflow artifact/release labels to 0.2.7. +- No network, telemetry, permissions, raw crash data or user media were added. + +### Verification and limits +- The owner declined another staged diagnostic test. No additional device test was requested or run. +- The PR branch CI build should verify WordNet generation, Gradle/JVM tests, APK compilation, signing and artifact upload. Those results must be reported independently. +- Do not claim the native crash is definitively fixed from code or CI alone. Runtime causality remains unverified; a later owner-initiated normal launch is sufficient to supply the next evidence if they choose. +- Work remains on existing draft PR #16. Main is not changed, no merge or Release is performed. From d63c22d621a5e8c4c293d1c1b856e8afca478ead Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 00:27:11 +0530 Subject: [PATCH 056/175] fix: resolve recorded glass probe crash and polish reader UI --- .github/workflows/build-apk.yml | 8 +- app/build.gradle.kts | 4 +- .../ArticlePublicationDatePolicy.kt | 11 ++ .../mangoloads/currentlens/MainActivity.kt | 163 +++++++++++++++--- .../currentlens/StabilityLaunchProbe.kt | 29 ++-- .../ArticlePublicationDatePolicyTest.kt | 11 ++ docs/SESSION_LEDGER.md | 13 ++ 7 files changed, 188 insertions(+), 51 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index b03b6226..d7dfe253 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -87,7 +87,7 @@ jobs: - name: Upload installable APK artifact uses: actions/upload-artifact@v4 with: - name: CurrentLens-v0.2.7-stability-debug-apk + name: CurrentLens-v0.2.8-stability-debug-apk path: app/build/outputs/apk/debug/app-debug.apk if-no-files-found: error retention-days: 14 @@ -96,10 +96,10 @@ jobs: if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: - tag_name: v0.2.7-build-${{ github.run_number }} - name: CurrentLens v0.2.7 (Build ${{ github.run_number }}) + tag_name: v0.2.8-build-${{ github.run_number }} + name: CurrentLens v0.2.8 (Build ${{ github.run_number }}) body: | - CurrentLens v0.2.7 testing build. + CurrentLens v0.2.8 testing build. Package: com.mangoloads.currentlens Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 134b0821..f90b2deb 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -13,8 +13,8 @@ android { applicationId = "com.mangoloads.currentlens" minSdk = 26 targetSdk = 35 - versionCode = 9 - versionName = "0.2.7" + versionCode = 10 + versionName = "0.2.8" manifestPlaceholders["appLabel"] = if (stabilityTestBuild) "brrrNews Stability" else "brrrNews" buildConfigField("boolean", "STABILITY_TEST_BUILD", stabilityTestBuild.toString()) } diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticlePublicationDatePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticlePublicationDatePolicy.kt index a22042c3..9026ded8 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ArticlePublicationDatePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ArticlePublicationDatePolicy.kt @@ -11,6 +11,9 @@ internal object ArticlePublicationDatePolicy { private val formatter = DateTimeFormatter .ofPattern("d MMM uuuu", Locale.ENGLISH) .withZone(indiaZone) + private val compactFormatter = DateTimeFormatter + .ofPattern("d MMM uuuu · h:mm a 'IST'", Locale.ENGLISH) + .withZone(indiaZone) fun label(publishedAtMillis: Long?): String { if (publishedAtMillis == null) return "Date unavailable" @@ -18,4 +21,12 @@ internal object ArticlePublicationDatePolicy { "Date: ${formatter.format(Instant.ofEpochMilli(publishedAtMillis))} (IST)" }.getOrDefault("Date unavailable") } + + /** Compact card label with the publisher timestamp rendered in India Standard Time. */ + fun compactLabel(publishedAtMillis: Long?): String { + if (publishedAtMillis == null) return "Date unavailable" + return runCatching { + compactFormatter.format(Instant.ofEpochMilli(publishedAtMillis)) + }.getOrDefault("Date unavailable") + } } diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 996de285..3976a228 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -273,9 +273,10 @@ class MainActivity : ComponentActivity() { } } } - var showFullApp by remember { - mutableStateOf(!BuildConfig.STABILITY_TEST_BUILD) - } + // Stability packages now enter the complete app directly. The + // isolated rendering probes remain in source for engineering diagnosis, + // but are not part of the owner's ordinary launch experience. + var showFullApp by remember { mutableStateOf(true) } MaterialTheme(colorScheme = colors) { Surface( modifier = Modifier.fillMaxSize(), @@ -347,8 +348,8 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { addView(reportText) } val actions = android.widget.LinearLayout(this).apply { - orientation = android.widget.LinearLayout.HORIZONTAL - gravity = android.view.Gravity.CENTER_VERTICAL + orientation = android.widget.LinearLayout.VERTICAL + gravity = android.view.Gravity.CENTER_HORIZONTAL } val copyButton = android.widget.Button(this).apply { text = "Copy crash report" @@ -366,14 +367,24 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { } } val retryButton = android.widget.Button(this).apply { - text = "Try normal launch" + text = "Continue to brrrNews" setOnClickListener { LaunchCrashDiagnostics.clear(activity) activity.recreate() } } - actions.addView(copyButton, android.widget.LinearLayout.LayoutParams(0, dp(54), 1f)) - actions.addView(retryButton, android.widget.LinearLayout.LayoutParams(0, dp(54), 1f)) + actions.addView( + copyButton, + android.widget.LinearLayout.LayoutParams( + android.widget.LinearLayout.LayoutParams.MATCH_PARENT, dp(48) + ).apply { bottomMargin = dp(8) } + ) + actions.addView( + retryButton, + android.widget.LinearLayout.LayoutParams( + android.widget.LinearLayout.LayoutParams.MATCH_PARENT, dp(48) + ) + ) root.addView(title) root.addView(description) root.addView(actions) @@ -1869,6 +1880,20 @@ private fun NewsCard( tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(21.dp)) } } + Row(Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) { + Text(ArticlePublicationDatePolicy.compactLabel(article.publishedAtMillis), + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 1, overflow = TextOverflow.Ellipsis) + Spacer(Modifier.weight(1f)) + Text( + if (article.feedUrl.isBlank()) "Feed provenance unavailable" + else "Publisher RSS · secondary source", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 1, overflow = TextOverflow.Ellipsis + ) + } SelectionContainer { Column(verticalArrangement = Arrangement.spacedBy(6.dp)) { Text(article.title, style = MaterialTheme.typography.titleLarge, @@ -2647,16 +2672,21 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha } } } - if (reachedBottom) { + // Do not let the completion prompt occupy the dictionary popover's area. + // The prompt returns when the definition is dismissed. + if (reachedBottom && activeWord == null) { Card(Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 8.dp), shape = RoundedCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer)) { Row(Modifier.padding(14.dp), verticalAlignment = Alignment.CenterVertically) { Column(Modifier.weight(1f)) { Text("Finished reading?", fontWeight = FontWeight.Bold) - Text("Five practice questions based on the RSS headline/excerpt and indicative syllabus mapping.", fontSize = 12.sp) + Text( + "Five original practice prompts: headline, indicative GS mapping and answer-writing skills. Not official PYQs.", + fontSize = 12.sp + ) } - Button(onClick = onQuiz) { Text("Test") } + Button(onClick = onQuiz) { Text("Review") } } } } @@ -3222,32 +3252,113 @@ private fun DefinitionGlassOverlay( } @Composable -private fun GlassSettingsScreen(backdrop: PrismalBackdrop, glassAlpha: Float, onGlassAlphaChange: (Float) -> Unit, onBack: () -> Unit) { - Column(Modifier.fillMaxSize().padding(horizontal = 18.dp)) { - Row(Modifier.fillMaxWidth().padding(vertical = 12.dp), verticalAlignment = Alignment.CenterVertically) { +private fun GlassSettingsScreen( + backdrop: PrismalBackdrop, + glassAlpha: Float, + onGlassAlphaChange: (Float) -> Unit, + onBack: () -> Unit +) { + val dark = isSystemInDarkTheme() + val tint = if (dark) Color(0xFF30394B) else Color(0xFFEAF0FA) + val selectedPreset = when { + kotlin.math.abs(glassAlpha - 0.12f) < 0.015f -> "Clear" + kotlin.math.abs(glassAlpha - 0.32f) < 0.015f -> "Balanced" + kotlin.math.abs(glassAlpha - 0.55f) < 0.015f -> "Frosted" + else -> "Custom" + } + Column( + Modifier.fillMaxSize().verticalScroll(rememberScrollState()) + .padding(horizontal = 18.dp).padding(bottom = 28.dp), + verticalArrangement = Arrangement.spacedBy(14.dp) + ) { + Row(Modifier.fillMaxWidth().padding(top = 8.dp), verticalAlignment = Alignment.CenterVertically) { IconButton(onClick = onBack) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") } - Text("Appearance", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) + Column(verticalArrangement = Arrangement.spacedBy(1.dp)) { + Text("Appearance", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) + Text("Personalise the reading surfaces", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + } } - PrismalGlassSurface(backdrop = backdrop, modifier = Modifier.fillMaxWidth(), + PrismalGlassSurface( + backdrop = backdrop, modifier = Modifier.fillMaxWidth(), shape = { PrismalRoundedRectangle(26.dp) }, blurRadius = 11.dp, - tint = if (isSystemInDarkTheme()) Color(0xFF30394B) else Color(0xFFEAF0FA), tintAlpha = glassAlpha) { + tint = tint, tintAlpha = glassAlpha + ) { Column(Modifier.padding(20.dp), verticalArrangement = Arrangement.spacedBy(13.dp)) { Text("Liquid Glass", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text("Adjust the transparency of brrrNews glass surfaces.", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.secondary) + Text("Control how strongly the glass tint sits over the content beneath it.", + style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.secondary) Row(verticalAlignment = Alignment.CenterVertically) { Text("Clear", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) Spacer(Modifier.weight(1f)) - Text((glassAlpha * 100).toInt().toString() + "%", fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.primary) + Text((glassAlpha * 100).toInt().toString() + "%", fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.primary) Spacer(Modifier.weight(1f)) Text("Frosted", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) } - PrismalGlassSlider(value = { glassAlpha }, onValueChange = onGlassAlphaChange, - valueRange = 0.12f..0.55f, visibilityThreshold = 0.01f, backdrop = backdrop, - modifier = Modifier.fillMaxWidth()) + PrismalGlassSlider( + value = { glassAlpha }, onValueChange = onGlassAlphaChange, + valueRange = 0.12f..0.55f, visibilityThreshold = 0.01f, + backdrop = backdrop, modifier = Modifier.fillMaxWidth() + ) + } + } + Column(verticalArrangement = Arrangement.spacedBy(7.dp)) { + Text("Presets", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) + Text("Choose a starting point or fine-tune it with the slider.", + style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary) + Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), + horizontalArrangement = Arrangement.spacedBy(8.dp)) { + FilterChip(selected = selectedPreset == "Clear", onClick = { onGlassAlphaChange(0.12f) }, + label = { Text("Clear") }) + FilterChip(selected = selectedPreset == "Balanced", onClick = { onGlassAlphaChange(0.32f) }, + label = { Text("Balanced") }) + FilterChip(selected = selectedPreset == "Frosted", onClick = { onGlassAlphaChange(0.55f) }, + label = { Text("Frosted") }) + } + } + Column(verticalArrangement = Arrangement.spacedBy(8.dp)) { + Text("Live preview", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) + Text("Sample feed card · appearance only", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + PrismalGlassSurface( + backdrop = backdrop, modifier = Modifier.fillMaxWidth(), + shape = { PrismalRoundedRectangle(24.dp) }, blurRadius = 9.dp, + tint = tint, tintAlpha = glassAlpha + ) { + Column(Modifier.padding(17.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) { + Row(verticalAlignment = Alignment.CenterVertically) { + Text("THE HINDU", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold) + Spacer(Modifier.weight(1f)) + Text("GS II", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + } + Text("How a policy decision shapes India's federal balance", + style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold, + color = MaterialTheme.colorScheme.onSurface) + Text("6 Nov 2026 · Publisher report · Indicative syllabus link", + style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) + } + } + } + Card( + modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(20.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant) + ) { + Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { + Text("Designed for reading first", fontWeight = FontWeight.SemiBold) + Text( + "The app keeps text and article imagery readable while adapting the glass treatment. Your appearance choice is saved locally on this device.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) } } - Text("Four-tab navigation, editorial cards and adaptive glass effects. Heavy shader effects fall back on unsupported devices.", - style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary, modifier = Modifier.padding(vertical = 16.dp)) + Text( + "On devices without the required graphics support, unsupported shader effects fall back automatically. No cloud service is used for appearance settings.", + style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary + ) } } @@ -3278,11 +3389,11 @@ private fun QuizScreen( Column(Modifier.padding(14.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { Text("Question-source note", fontWeight = FontWeight.Bold) Text( - "This quiz uses the publisher's RSS headline and excerpt only. Extracted full-text reader content is not yet used to generate questions.", + "This review uses the publisher's RSS headline and excerpt for story context. It does not test the full article body.", style = MaterialTheme.typography.bodySmall ) Text( - "Q1: headline comprehension · Q2: indicative syllabus keyword mapping · Q3–Q5: original general UPSC skill practice. No official PYQ is included.", + "Q1: headline comprehension · Q2: indicative syllabus keyword mapping · Q3–Q5: original source-literacy and GS answer-framing practice. None is an official PYQ.", style = MaterialTheme.typography.bodySmall ) } diff --git a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt index 3d9a1e9c..245566b6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StabilityLaunchProbe.kt @@ -196,37 +196,28 @@ private fun RootBackdropCaptureProbe(onBack: () -> Unit) { private fun SingleLiquidGlassProbe(onBack: () -> Unit) { val backdrop = rememberPrismalGlassLayer() val density = LocalDensity.current - Box( - Modifier - .fillMaxSize() - .background(MaterialTheme.colorScheme.background) - .prismalGlassLayer(backdrop) - ) { - Column( - Modifier.fillMaxSize().padding(24.dp), - verticalArrangement = Arrangement.Center - ) { + val background = MaterialTheme.colorScheme.background + // Capture only the background. The glass surface is a sibling above this source, + // never a descendant of the GraphicsLayer that it samples. + Box(Modifier.fillMaxSize().background(background)) { + Box(Modifier.fillMaxSize().prismalGlassLayer(backdrop).background(background)) + Column(Modifier.fillMaxSize().padding(24.dp), verticalArrangement = Arrangement.Center) { Text("Stage 2 · Single Liquid Glass surface", style = MaterialTheme.typography.headlineSmall) Spacer(Modifier.height(14.dp)) Text( - "One root capture and one complete Prismal glass draw, using the normal automatic pipeline.", + "A background-only capture with one independent Prismal glass draw, using the normal automatic pipeline.", color = MaterialTheme.colorScheme.secondary ) Spacer(Modifier.height(24.dp)) Box( - Modifier - .fillMaxWidth() - .height(180.dp) + Modifier.fillMaxWidth().height(180.dp) .probeLiquidGlass(backdrop, density) .background(Color(0x223D72C7), RoundedCornerShape(24.dp)) .padding(22.dp), contentAlignment = Alignment.Center ) { - Text( - "Liquid Glass rendering test", - style = MaterialTheme.typography.titleLarge, - fontWeight = FontWeight.SemiBold - ) + Text("Liquid Glass rendering test", style = MaterialTheme.typography.titleLarge, + fontWeight = FontWeight.SemiBold) } Spacer(Modifier.height(24.dp)) ProbeActionButton("Back to test menu", onBack) diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticlePublicationDatePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticlePublicationDatePolicyTest.kt index 00743418..5e9360b8 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ArticlePublicationDatePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ArticlePublicationDatePolicyTest.kt @@ -17,6 +17,17 @@ class ArticlePublicationDatePolicyTest { assertEquals("Date: 4 Nov 2026 (IST)", ArticlePublicationDatePolicy.label(timestamp)) } + @Test + fun compactCardLabelIncludesPublicationTimeInIndiaTimeZone() { + val timestamp = Instant.parse("2026-11-04T20:00:00Z").toEpochMilli() + assertEquals("5 Nov 2026 · 1:30 AM IST", ArticlePublicationDatePolicy.compactLabel(timestamp)) + } + + @Test + fun compactCardLabelNeverInventsMissingDate() { + assertEquals("Date unavailable", ArticlePublicationDatePolicy.compactLabel(null)) + } + @Test fun neverInventsDateWhenFeedTimestampIsMissing() { assertEquals("Date unavailable", ArticlePublicationDatePolicy.label(null)) diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index c8af5379..e7500a6b 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -339,3 +339,16 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - The PR branch CI build should verify WordNet generation, Gradle/JVM tests, APK compilation, signing and artifact upload. Those results must be reported independently. - Do not claim the native crash is definitively fixed from code or CI alone. Runtime causality remains unverified; a later owner-initiated normal launch is sufficient to supply the next evidence if they choose. - Work remains on existing draft PR #16. Main is not changed, no merge or Release is performed. + +## 7 November 2026 — recording-led probe and UI corrections +- Reviewed the full 438.8-second user recording locally; no video or frame was copied to the public repository. +- At ~25 seconds, the recovery screen identifies CRASH_NATIVE (5) / signal 11 and last requested stage Probe stage 2 requested — single full Liquid Glass surface. +- This revises the earlier interpretation: the report is specific to the Stage 2 diagnostic probe. Later in the same recording the complete brrrNews app opens and the user navigates Today, Explore, Search, Reader, Appearance and You. Returning to launcher at the end is not proof of another crash. +- The version is treated as 0.2.7-stability based on the owner's confirmation that this was the latest GitHub APK. +- SingleLiquidGlassProbe captured a parent Column containing the test glass surface, while that surface sampled the same PrismalBackdrop. This recreated the self-referential GraphicsLayer capture/sampling architecture already removed from the main app. Stage 2 now captures a background-only sibling; the glass surface is drawn above/outside that source. +- Stability build now starts the complete app directly; the diagnostic menu no longer interrupts normal launch. +- NewsCard displays publisher publication date/time in Asia/Kolkata and labels configured RSS as secondary publisher reporting. Appearance adds Clear/Balanced/Frosted presets and a live glass preview. Reader hides the completion prompt while a dictionary definition overlay is open. +- Quiz wording states that prompts use RSS summary context and original skills practice; it does not claim full-text comprehension or official PYQs. +- Version advances to 0.2.8 / versionCode 10, retaining the Stability package suffix and signing identity. +- Added a JVM test for compact IST date labels. CI must be checked before sharing the next APK. +- No further user device-test round is requested. CI does not replace runtime evidence already present in the private recording. PR #16 remains draft/unmerged; main and Release state remain untouched. From 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:03:20 +0530 Subject: [PATCH 057/175] fix: minimise shareable process-exit diagnostics --- .../currentlens/LaunchCrashDiagnostics.kt | 31 ++++++++++++------- .../currentlens/LaunchCrashDiagnosticsTest.kt | 20 +++++++++--- docs/BUILD_AND_DEBUG.md | 9 ++++++ docs/KNOWN_ISSUES.md | 8 +++++ docs/PROJECT_HANDOFF.md | 15 +++++++-- docs/SESSION_LEDGER.md | 9 ++++++ 6 files changed, 74 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index ede61e1e..4a3cc57f 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -140,7 +140,8 @@ internal object LaunchCrashDiagnostics { lastCompletedStage: String, versionName: String? = null, packageName: String = "com.mangoloads.currentlens", - systemExitSummary: String? = null + systemExitReason: Int? = null, + systemExitStatus: Int? = null ): String = buildString { appendLine("CurrentLens startup interruption report") appendLine("App: " + versionName.orEmpty()) @@ -149,7 +150,12 @@ internal object LaunchCrashDiagnostics { appendLine("Report type: startup interrupted; no uncaught Java/Kotlin exception was captured") appendLine("Last completed startup stage: " + displayStartupStage(lastCompletedStage)) appendLine() - if (!systemExitSummary.isNullOrBlank()) { + val systemExitSummary = if (systemExitReason != null && systemExitStatus != null) { + formatExitSummary(systemExitReason, systemExitStatus) + } else { + null + } + if (systemExitSummary != null) { appendLine("Android historical process-exit record:") appendLine(systemExitSummary) } else { @@ -177,7 +183,8 @@ internal object LaunchCrashDiagnostics { lastCompletedStage = lastCompletedStage, versionName = versionName, packageName = context.packageName, - systemExitSummary = exitInfo?.let(::describeExitInfo) + systemExitReason = exitInfo?.reason, + systemExitStatus = exitInfo?.status ) ) } @@ -233,15 +240,15 @@ internal object LaunchCrashDiagnostics { else -> false } - private fun describeExitInfo(info: ApplicationExitInfo): String = buildString { - appendLine("Reason: " + exitReasonName(info.reason) + " (" + info.reason + ")") - appendLine("Status/signal: " + info.status) - appendLine("Importance: " + info.importance) - appendLine("PSS/RSS: " + info.pss + " KB / " + info.rss + " KB") - info.description?.take(240)?.let { - appendLine("System description: " + it) - } - }.trimEnd() + /** + * Export only the allow-listed numeric fields needed to distinguish an exit. + * Android's free-form description can contain opaque system diagnostics (including + * addresses); importance and memory measurements are unnecessary in a shareable report. + */ + internal fun formatExitSummary(reason: Int, status: Int): String = buildString { + appendLine("Reason: " + exitReasonName(reason) + " (" + reason + ")") + append("Status/signal: " + status) + } private fun exitReasonName(reason: Int): String = when (reason) { ApplicationExitInfo.REASON_UNKNOWN -> "UNKNOWN" diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index 1118bea2..eec4afdd 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -51,19 +51,31 @@ class LaunchCrashDiagnosticsTest { } @Test - fun interruptionReportIncludesExitReasonButOmitsRawTrace() { + fun interruptionReportIncludesAllowlistedExitReasonAndStatusButNoOpaqueDetails() { val report = LaunchCrashDiagnostics.formatInterruptedStartupReport( lastCompletedStage = "MainActivity.onCreate entered", - systemExitSummary = "Reason: CRASH_NATIVE (5)" + systemExitReason = 5, + systemExitStatus = 11 ) assertTrue(report.contains("Android historical process-exit record:")) - assertTrue(report.contains("Reason: CRASH_NATIVE")) - assertFalse(report.contains("AQID")) + assertTrue(report.contains("Reason: CRASH_NATIVE (5)")) + assertTrue(report.contains("Status/signal: 11")) + assertFalse(report.contains("System description:")) + assertFalse(report.contains("PSS/RSS:")) + assertFalse(report.contains("Importance:")) assertFalse(report.contains("Timestamp:")) assertFalse(report.contains("Process id:")) } + @Test + fun platformExitSummaryContainsOnlyReasonAndNumericStatus() { + assertEquals( + "Reason: CRASH_NATIVE (5)\nStatus/signal: 11", + LaunchCrashDiagnostics.formatExitSummary(5, 11) + ) + } + @Test fun startupStageIsSanitizedBeforeItIsDisplayed() { val stage = "2026-11-06T12:00:00Z | pid=29860 | MainActivity.onCreate entered" diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index f088f9d5..ee71eb2d 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -151,3 +151,12 @@ CI establishes that the code compiles and JVM tests pass. It cannot establish th - The previous separate tab-glyph capture/merged droplet source remains unchanged. - Workflow artifact and prerelease labels are updated to 0.2.7. The active PR branch still produces an Actions artifact only; Release publication is skipped. - Owner declined further staged device testing; none was run. CI success is not physical-device verification and the native signal-11 causal link remains unverified. + + +## Live Actions and artifact snapshot — 7 November 2026 +- Full Actions history was paginated: 166 runs total across two pages (91 success, 44 failure, 31 cancelled); zero queued or in-progress runs at inspection. +- Latest overall run #166 / https://github.com/Batmancpu/CurrentLens/actions/runs/42275323743 succeeded on PR #16 head d63c22d621a5e8c4c293d1c1b856e8afca478ead. WordNet builder tests, offline DB generation (151,456 unique words), :app:testDebugUnitTest, :app:assembleDebug and artifact upload passed. Gradle compilation/tests took about 1m34s; this is CI evidence only. +- Artifact: CurrentLens-v0.2.8-stability-debug-apk, ID 13533102905, 38,996,079 bytes, SHA-256 ZIP digest c107b424d120f25aa6316f7db6fe4e287769d33c8f021af02ec3b89ef59b4948, 14-day retention. Release publication was skipped. +- Latest main run remains #116 / https://github.com/Batmancpu/CurrentLens/actions/runs/42209037417, success on main SHA 73b8a0d1ba33503fede02db2c3c0af082d724a12; it published v0.2.0-build-116. The latest main Release does not contain the unmerged PR #16 changes. +- PR #18's read-only pull-request build / isolated release-write workflow passed run #165 / https://github.com/Batmancpu/CurrentLens/actions/runs/42260538402; PR #18 remains open/draft. Main still has the older push-only workflow with contents: write at workflow scope. Reconcile PR #16's branch-specific workflow and PR #18 before any merge; no workflow was changed in this review. +- The current PR #16 privacy-minimisation change adds focused JVM tests. Its new natural CI run must be checked before describing those tests as passed. No Actions workflow was manually dispatched or rerun. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index da6dc9df..19736c21 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -154,3 +154,11 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - Preserve the original automatic Prismal pipeline and all blur, refraction, chromatic, specular, depth and spring settings. The separate tab-glyph capture/merged droplet source remains intact. - The Stability build is advanced to 0.2.7 / versionCode 9 so it can be installed as an update to 0.2.6 with the same test signing key. - No new user test was requested or run. CI result is recorded separately; the native signal-11 causal link is still a strong diagnosis, not device-proven fact. No raw trace, device identifier or user media is committed. + + +### KL-019 — Opaque Android process-exit description in copyable diagnostics +- Status: Evidence-backed privacy defect; focused correction added to draft PR #16; natural CI verification pending. +- The full-app recovery screen exposes a selectable/copyable startup report. The previous describeExitInfo() copied ApplicationExitInfo.description directly and also included importance plus PSS/RSS. The free-form platform description is not an allow-listed field and may contain low-level system details; the UI's promise that the report omits raw system traces was therefore stronger than the implementation could guarantee. +- The PR #16 correction exports only the numeric exit reason and numeric status/signal. It no longer forwards the opaque description, importance or memory measurements. Java/Kotlin reports continue to omit exception messages and raw addresses/traces. +- Added focused JVM assertions for the exact allow-listed summary and the interrupted-startup report. Tests are added, not yet executed for this new commit. +- This change improves report minimisation only. It does not establish the native launch crash's root cause or prove the app launches on a physical device. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index d9d35de9..6a3bcbd4 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,12 +1,23 @@ -# CurrentLens — Latest project handoff (6 November 2026) +# CurrentLens — Latest project handoff (7 November 2026) > This is the newest status snapshot and supersedes older dated snapshots below where they conflict. Full chronological context remains in SESSION_LEDGER.md. + +## Live snapshot — 7 November 2026 +- Main remains 73b8a0d1ba33503fede02db2c3c0af082d724a12; no main write, PR merge or Release was performed in this review. +- The repository has 19 branch refs and eight open draft PRs: #6, #8, #11, #12, #13, #16, #17 and #18. No open issue records were returned in the live issue search. Preserve unique work on the independent PR branches; do not blindly merge diverged branches. +- Actions history was paginated across all 166 runs: 91 success, 44 failure and 31 cancelled; queue and in-progress lists were empty. Latest overall run #166 passed on PR #16; latest main run #116 passed on main; PR #18 run #165 passed. +- Main's latest release is v0.2.0-build-116 from main SHA 73b8a0d; it is older than the unmerged Stability branch. PR #16's Stability 0.2.8 / versionCode 10 APK is an Actions artifact, not a Release: artifact 13533102905, 38,996,079 bytes, 14-day retention. +- PR #16 remains draft/open on fix/early-startup-crash-diagnostics-2026-11-06; head before the current privacy-minimisation commit was d63c22d621a5e8c4c293d1c1b856e8afca478ead. The background-only Prismal capture correction is present. Device-level native-crash causality remains unverified; CI is not a physical-device launch test. +- Main still has one push-only Actions workflow with workflow-wide contents: write. PR #18 proposes normal pull-request CI with read-only build permissions and a separately gated main-release job; its own PR run #165 passed. PR #16 has a branch-specific workflow; reconcile the two workflow versions before any merge. +- The current quality-watch change in PR #16 removes the opaque Android process-exit description, importance and PSS/RSS from the selectable/copyable crash report, retaining only reason/status. Focused tests are added; check the natural CI result before marking them passed. +- Product gaps remain tracked: primary-source corroboration per story, labelled real-world false-positive/false-negative validation, GS I Geography integration, Atom alternate-link handling, date/cache precedence, tracking-URL deduplication, off-main persistence and adaptive glass contrast. Existing PRs #6/#8/#11/#12/#13/#17 cover portions; review their live diffs/ancestry before integration. + ## Current repository state - Main remains at `73b8a0d1ba33503fede02db2c3c0af082d724a12`; no direct-main edit, merge or production release was performed in this stabilisation session. - Active draft PR: [#16](https://github.com/Batmancpu/CurrentLens/pull/16), branch `fix/early-startup-crash-diagnostics-2026-11-06`. - The branch contains the launch diagnostics, privacy-minimised reports, network redirect/cookie guards and a Stability-only launch probe. Reuse this branch for this ongoing crash investigation; do not open another branch/PR for the same work. -- Current Stability code is v0.2.5, versionCode 7. CI Build #158 / run `42239425526` passed compilation, unit tests, APK assembly and artifact upload. The workflow did not publish a Release. +- Current Stability code is v0.2.8, versionCode 10. CI Build #166 / run `42275323743` passed WordNet generation, JVM tests, APK assembly and artifact upload. Artifact 13533102905 is a 14-day Actions artifact; the workflow did not publish a Release. - CI is not physical-device verification. The native launch crash is not yet marked fixed. ## Crash evidence and next action diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index e7500a6b..b6035948 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -352,3 +352,12 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - Version advances to 0.2.8 / versionCode 10, retaining the Stability package suffix and signing identity. - Added a JVM test for compact IST date labels. CI must be checked before sharing the next APK. - No further user device-test round is requested. CI does not replace runtime evidence already present in the private recording. PR #16 remains draft/unmerged; main and Release state remain untouched. + + +## 7 November 2026 — minimise the copyable Android process-exit report +- Review source: draft PR #16, branch fix/early-startup-crash-diagnostics-2026-11-06, parent/source head d63c22d621a5e8c4c293d1c1b856e8afca478ead; main remains 73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Evidence: MainActivity.showCrashRecoveryScreen() displays the local report in selectable text and provides a Copy action. LaunchCrashDiagnostics.describeExitInfo() previously passed the platform's free-form ApplicationExitInfo.description into that report and also exposed importance and PSS/RSS. The description is opaque and not constrained to the repository's privacy allow-list; the app therefore could not guarantee that copied reports omitted all low-level system details. +- Change: replace the free-form exit description with a pure, bounded formatter that emits only the Android exit-reason enum and numeric status/signal. Remove importance, PSS/RSS and the raw platform description from the shareable report. Existing local-only storage, no-upload behaviour, startup checkpoints and original Prismal rendering are unchanged. +- Tests: replace the string-injection test with exact assertions for CRASH_NATIVE (5) and status 11; assert that the report has no system-description, PSS/RSS or importance fields. A second test asserts the formatter's exact allow-listed output. Tests are added; the natural branch CI result is pending at commit time. +- Files changed: LaunchCrashDiagnostics.kt, LaunchCrashDiagnosticsTest.kt, KNOWN_ISSUES.md, SESSION_LEDGER.md, BUILD_AND_DEBUG.md and PROJECT_HANDOFF.md. +- Scope/limits: privacy minimisation only; no claim that the native startup crash is fixed. No physical-device run, raw crash trace, user media, workflow edit, manual Actions dispatch/rerun, main edit, merge or Release. From 976ebb0198665db69cc192a06a93f14e7de534e4 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:36:32 +0530 Subject: [PATCH 058/175] feat(reader): add deterministic chrome and completion policy --- .../currentlens/ReaderChromePolicy.kt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt new file mode 100644 index 00000000..e25d111d --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -0,0 +1,17 @@ +package com.mangoloads.currentlens + +/** Small, deterministic policies for Reader controls and completion presentation. */ +internal object ReaderChromePolicy { + const val MIN_FONT_SIZE_SP = 16 + const val MAX_FONT_SIZE_SP = 28 + + fun adjustFontSize(currentSp: Int, delta: Int): Int = + (currentSp.coerceIn(MIN_FONT_SIZE_SP, MAX_FONT_SIZE_SP) + delta) + .coerceIn(MIN_FONT_SIZE_SP, MAX_FONT_SIZE_SP) + + fun shouldShowCompletion( + reachedBottom: Boolean, + definitionOpen: Boolean, + dismissed: Boolean + ): Boolean = reachedBottom && !definitionOpen && !dismissed +} From 5cbcf5463a19e03f0fa444e1602287b17a1a2d6c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:36:34 +0530 Subject: [PATCH 059/175] test(reader): cover text size and completion visibility --- .../currentlens/ReaderChromePolicyTest.kt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt new file mode 100644 index 00000000..cba7d0ea --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -0,0 +1,30 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class ReaderChromePolicyTest { + @Test + fun fontSizeChangesInSingleStepsWithinAccessibleBounds() { + assertEquals(21, ReaderChromePolicy.adjustFontSize(20, 1)) + assertEquals(19, ReaderChromePolicy.adjustFontSize(20, -1)) + assertEquals(16, ReaderChromePolicy.adjustFontSize(16, -1)) + assertEquals(28, ReaderChromePolicy.adjustFontSize(28, 1)) + } + + @Test + fun invalidStoredFontSizeIsClampedBeforeApplyingChange() { + assertEquals(28, ReaderChromePolicy.adjustFontSize(40, 1)) + assertEquals(16, ReaderChromePolicy.adjustFontSize(10, -1)) + } + + @Test + fun completionAppearsOnlyAtEndWithoutOpenDefinitionOrDismissal() { + assertTrue(ReaderChromePolicy.shouldShowCompletion(true, false, false)) + assertFalse(ReaderChromePolicy.shouldShowCompletion(false, false, false)) + assertFalse(ReaderChromePolicy.shouldShowCompletion(true, true, false)) + assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, true)) + } +} From ab112cd174a8586f1f6ba591ab5cabca1e4fefbf Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:36:48 +0530 Subject: [PATCH 060/175] polish(reader): keep full definition word and accessible actions --- .../currentlens/DefinitionPopoverContent.kt | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt index 6e5ee8aa..7ae7b0aa 100644 --- a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt +++ b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt @@ -9,7 +9,14 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.heightIn import androidx.compose.foundation.layout.size +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.outlined.Close +import androidx.compose.material.icons.outlined.ContentCopy +import androidx.compose.material.icons.outlined.ExpandLess +import androidx.compose.material.icons.outlined.ExpandMore import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.material3.TextButton @@ -54,25 +61,28 @@ internal fun DefinitionPopoverContent( modifier = Modifier.weight(1f), style = if (expanded) MaterialTheme.typography.titleLarge else MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold, - maxLines = 1, - overflow = TextOverflow.Ellipsis + maxLines = 2, + softWrap = true, + overflow = TextOverflow.Clip, + lineHeight = 20.sp ) if (DictionaryOverlayPolicy.shouldShowCopy(expanded, hasCopyableContent)) { - TextButton(onClick = onCopy, modifier = Modifier.heightIn(min = 32.dp), - contentPadding = PaddingValues(horizontal = 6.dp, vertical = 0.dp)) { - Text("Copy", fontSize = 12.sp) + IconButton(onClick = onCopy, modifier = Modifier.size(48.dp)) { + Icon(Icons.Outlined.ContentCopy, contentDescription = "Copy definition", + modifier = Modifier.size(19.dp)) } } if (hasEntry) { - TextButton(onClick = { onExpandedChange(!expanded) }, - modifier = Modifier.heightIn(min = 32.dp), - contentPadding = PaddingValues(horizontal = 6.dp, vertical = 0.dp)) { - Text(if (expanded) "Less" else "More", fontSize = 12.sp) + IconButton(onClick = { onExpandedChange(!expanded) }, modifier = Modifier.size(48.dp)) { + Icon( + if (expanded) Icons.Outlined.ExpandLess else Icons.Outlined.ExpandMore, + contentDescription = if (expanded) "Show less" else "Show more", + modifier = Modifier.size(22.dp) + ) } } - TextButton(onClick = onClose, modifier = Modifier.heightIn(min = 32.dp), - contentPadding = PaddingValues(horizontal = 6.dp, vertical = 0.dp)) { - Text(closeLabel, fontSize = 12.sp) + IconButton(onClick = onClose, modifier = Modifier.size(48.dp)) { + Icon(Icons.Outlined.Close, contentDescription = closeLabel, modifier = Modifier.size(20.dp)) } } From 599c9fa595505e3c5bd76344aa7efc3dbc51b609 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:37:20 +0530 Subject: [PATCH 061/175] feat(reader): add compact Prismal toolbar and completion dock --- .../mangoloads/currentlens/MainActivity.kt | 203 +++++++++++++++--- 1 file changed, 170 insertions(+), 33 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 3976a228..a1efb8b8 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -92,6 +92,8 @@ import androidx.compose.material3.Button import androidx.compose.material3.Card import androidx.compose.material3.CardDefaults import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.DropdownMenu +import androidx.compose.material3.DropdownMenuItem import androidx.compose.material3.FilterChip import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon @@ -2401,6 +2403,7 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha var readerViewportWindowOrigin by remember(article.url) { mutableStateOf(Offset.Zero) } var readerViewportHeightPx by remember(article.url) { mutableIntStateOf(0) } var fontSize by remember(article.url) { mutableIntStateOf(20) } + var completionDismissed by remember(article.url) { mutableStateOf(false) } LaunchedEffect(article.url) { extracting = true @@ -2424,30 +2427,37 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha } } + val readerSourceStatus = when { + extractedHtml == null -> "In-app publisher view" + loadedFromCache -> "Saved public content · on this device" + else -> "Public publisher content · attributed" + } + Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { - Row(Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 7.dp), verticalAlignment = Alignment.CenterVertically) { - IconButton(onClick = { + ReaderGlassToolbar( + article = article, + sourceStatus = readerSourceStatus, + backdrop = backdrop, + glassAlpha = glassAlpha, + dark = dark, + fontSize = fontSize, + onBack = { readerWebViewHolder.value?.flushReadingPosition() onBack() - }) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") } - Column(Modifier.weight(1f)) { - Text(article.source, style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.Bold) - val readerSourceStatus = when { - extractedHtml == null -> "In-app publisher view" - loadedFromCache -> "Saved public content · on this device" - else -> "Public publisher content · attributed" - } - Text( - listOf( - ArticlePublicationDatePolicy.label(article.publishedAtMillis), - readerSourceStatus - ).joinToString(" · "), - style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary + }, + onFontSizeChange = { fontSize = it } + ) + if (savedReadingProgress > 0.005f && !reachedBottom) { + Box( + Modifier.fillMaxWidth().padding(horizontal = 18.dp, vertical = 2.dp) + .height(2.dp).clip(CircleShape) + .background(MaterialTheme.colorScheme.outline.copy(alpha = 0.18f)) + ) { + Box( + Modifier.fillMaxWidth(savedReadingProgress.coerceIn(0f, 1f)) + .fillMaxSize().background(MaterialTheme.colorScheme.primary) ) } - IconButton(onClick = { fontSize = (fontSize - 1).coerceIn(16, 28) }) { Icon(Icons.Outlined.TextDecrease, contentDescription = "Smaller text") } - IconButton(onClick = { fontSize = (fontSize + 1).coerceIn(16, 28) }) { Icon(Icons.Outlined.TextIncrease, contentDescription = "Larger text") } } if (extracting || (!pageLoaded && (extractedHtml != null || fallbackToPublisher))) androidx.compose.material3.LinearProgressIndicator(Modifier.fillMaxWidth()) Box(Modifier.weight(1f).fillMaxWidth().onGloballyPositioned { coordinates -> @@ -2672,21 +2682,148 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha } } } - // Do not let the completion prompt occupy the dictionary popover's area. - // The prompt returns when the definition is dismissed. - if (reachedBottom && activeWord == null) { - Card(Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 8.dp), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer)) { - Row(Modifier.padding(14.dp), verticalAlignment = Alignment.CenterVertically) { - Column(Modifier.weight(1f)) { - Text("Finished reading?", fontWeight = FontWeight.Bold) - Text( - "Five original practice prompts: headline, indicative GS mapping and answer-writing skills. Not official PYQs.", - fontSize = 12.sp - ) + if (ReaderChromePolicy.shouldShowCompletion( + reachedBottom = reachedBottom, + definitionOpen = activeWord != null, + dismissed = completionDismissed + ) + ) { + PrismalGlassSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth() + .padding(horizontal = 12.dp, vertical = 8.dp) + .navigationBarsPadding(), + shape = { PrismalRoundedRectangle(20.dp) }, + blurRadius = 7.dp, + refractionHeightPx = 10f, + refractionAmountPx = 12f, + depthEffect = true, + chromaticAberration = 0.004f, + tint = if (dark) Color(0xFF25354A) else Color(0xFFEAF0FA), + tintAlpha = (glassAlpha * 0.34f).coerceIn(0.05f, 0.20f) + ) { + Row( + Modifier.fillMaxWidth().padding(start = 14.dp, end = 4.dp, top = 4.dp, bottom = 4.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(1.dp)) { + Text("Reading complete", style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.SemiBold) + Text("Five original prompts · not official PYQs", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 1, overflow = TextOverflow.Ellipsis) + } + TextButton( + onClick = onQuiz, + modifier = Modifier.heightIn(min = 48.dp), + contentPadding = PaddingValues(horizontal = 8.dp, vertical = 0.dp) + ) { Text("Try 5 questions") } + IconButton( + onClick = { completionDismissed = true }, + modifier = Modifier.size(48.dp) + ) { + Icon(Icons.Outlined.Close, contentDescription = "Dismiss completion") + } + } + } + } + } +} + + +@Composable +private fun ReaderGlassToolbar( + article: Article, + sourceStatus: String, + backdrop: PrismalBackdrop, + glassAlpha: Float, + dark: Boolean, + fontSize: Int, + onBack: () -> Unit, + onFontSizeChange: (Int) -> Unit +) { + var textSizeMenuExpanded by remember(article.url) { mutableStateOf(false) } + val tint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA) + + PrismalGlassSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), + shape = { PrismalRoundedRectangle(22.dp) }, + blurRadius = 8.dp, + refractionHeightPx = 13f, + refractionAmountPx = 15f, + depthEffect = true, + chromaticAberration = 0.006f, + tint = tint, + tintAlpha = (glassAlpha * 0.42f).coerceIn(0.05f, 0.24f) + ) { + Row( + Modifier.fillMaxWidth().heightIn(min = 60.dp) + .padding(start = 4.dp, end = 4.dp, top = 4.dp, bottom = 4.dp), + verticalAlignment = Alignment.CenterVertically + ) { + IconButton(onClick = onBack, modifier = Modifier.size(48.dp)) { + Icon(Icons.Outlined.ArrowBack, contentDescription = "Back to article list", + modifier = Modifier.size(22.dp)) + } + Column( + Modifier.weight(1f).padding(vertical = 3.dp), + verticalArrangement = Arrangement.spacedBy(2.dp) + ) { + Text( + article.source, + style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.Bold, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + Text( + "${ArticlePublicationDatePolicy.label(article.publishedAtMillis)} · $sourceStatus", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 2, + overflow = TextOverflow.Ellipsis, + lineHeight = 14.sp + ) + } + Box { + IconButton( + onClick = { textSizeMenuExpanded = true }, + modifier = Modifier.size(48.dp).semantics { + contentDescription = "Text size, $fontSize sp" } - Button(onClick = onQuiz) { Text("Review") } + ) { + Text("Aa", style = MaterialTheme.typography.titleMedium, + fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.primary) + } + DropdownMenu( + expanded = textSizeMenuExpanded, + onDismissRequest = { textSizeMenuExpanded = false } + ) { + DropdownMenuItem( + text = { Text("Smaller text") }, + leadingIcon = { Icon(Icons.Outlined.TextDecrease, contentDescription = null) }, + enabled = fontSize > ReaderChromePolicy.MIN_FONT_SIZE_SP, + onClick = { + onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, -1)) + textSizeMenuExpanded = false + } + ) + DropdownMenuItem( + text = { Text("Larger text") }, + leadingIcon = { Icon(Icons.Outlined.TextIncrease, contentDescription = null) }, + enabled = fontSize < ReaderChromePolicy.MAX_FONT_SIZE_SP, + onClick = { + onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, 1)) + textSizeMenuExpanded = false + } + ) + DropdownMenuItem( + text = { Text("Current size · $fontSize sp") }, + enabled = false, + onClick = {} + ) } } } From 8944d392647fd022b467e9dd679e17a9c1fa831e Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:37:45 +0530 Subject: [PATCH 062/175] chore(reader): remove obsolete definition action imports --- .../com/mangoloads/currentlens/DefinitionPopoverContent.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt index 7ae7b0aa..d53969a5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt +++ b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt @@ -4,10 +4,8 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row -import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height -import androidx.compose.foundation.layout.heightIn import androidx.compose.foundation.layout.size import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.Close @@ -19,7 +17,6 @@ import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text -import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier From 0530551dfb56fb68314ae855faeaca7c5f6a30d6 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:38:30 +0530 Subject: [PATCH 063/175] docs(ui): track liquid glass coverage and performance roadmap --- docs/LIQUID_GLASS_UI_ROADMAP.md | 107 ++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 docs/LIQUID_GLASS_UI_ROADMAP.md diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md new file mode 100644 index 00000000..a1e2eab9 --- /dev/null +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -0,0 +1,107 @@ +# Liquid Glass UI Roadmap + +**Status:** Active, incremental implementation +**Feature branch:** `ui/liquid-glass-system-2026-11-07` +**Source branch:** `fix/early-startup-crash-diagnostics-2026-11-06` +**Source SHA at branch creation:** `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` +**Draft PR base:** `fix/early-startup-crash-diagnostics-2026-11-06` (PR #16) +**Baseline check:** source was 57 commits ahead of `main` at `73b8a0d1ba33503fede02db2c3c0af082d724a12`, with zero commits behind. PR #16 is open, draft and unmerged. The source contains the background-only Prismal capture correction; this feature PR intentionally depends on PR #16 until that work is integrated. + +## Product and material principles + +Liquid Glass is a functional interaction material, not a universal card background. Use it to clarify navigation, toolbars, search/filter controls and transient actions. Keep article text, article cards, statistics, quiz questions and other dense information surfaces calm, high-contrast and easy to read. + +Use one coherent material hierarchy: + +1. **Primary floating glass:** navigation and compact Reader chrome; strongest restrained refraction/specular response. +2. **Interactive control glass:** search, category/filter rails, toolbars, contextual controls and popovers. +3. **Supporting surfaces:** quiet translucent tint, continuous corners and restrained edge/depth treatments on dashboard/stat destinations where useful; no per-card live blur. +4. **Editorial/content surfaces:** opaque or near-opaque readable surfaces for article text, cards, statistics and quiz questions. + +Preserve the existing PrismalAGSL implementation. Do not create a parallel glass engine, recursively capture descendants, add dependencies, or disable all glass to work around a rendering defect. The root backdrop must remain a background-only sibling; the UI and glass surfaces stay outside the captured source. + +## Verified branch selection and dependency register + +The complete remote branch inventory contained 19 branches at the start of this iteration. The chosen source is the latest safe UI baseline, not the most recently named or timestamped UI branch. + +- `fix/early-startup-crash-diagnostics-2026-11-06` — PR #16 head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; 57 ahead / 0 behind main. Selected because it contains the latest corrected Prismal capture and launch/privacy work. +- `ui/liquid-glass-performance-2026-11-06` — `2e9c7f62ca65a899e18d9026e1535392835b3724`; diverged from PR #16 by 3 unique commits and 75 commits behind. Not used as a base. Its first material/UI commit was merged through PR #3; the Search source-height adjustment is already present in PR #16; the remaining icon-import change is superseded by current imports. +- `redesign/v0.3-search-reader` — `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8`; 151 commits behind PR #16. Stale and not used. +- PR #13 / `ui/foreground-adaptive-glass-contrast-2026-11-06` — one unique commit based on older code. It proposes an 8×8 GPU readback every 1.5 seconds on newer Android versions. Not ported: the current PR #16 shell deliberately uses theme-derived contrast to avoid recurring readback synchronization, and no OPPO trace demonstrates that the probe is a net improvement. +- PR #18 / `ci/read-only-pr-validation-isolated-release-write-2026-11-06` — independent workflow-only change. Left untouched; this feature branch does not overwrite its read-only build/release separation proposal. +- PRs #6, #8, #11, #12 and #17 contain independent editorial, persistence, date/provenance, Atom-link and URL-deduplication work. They are not assumed to be included in PR #16 and are not blindly cherry-picked into this UI branch. Review their current heads/dependencies before any future integration. + +Recheck the entire branch graph, open PRs, merge state and exact source/base SHAs before every subsequent implementation pass. Never reset, force-push, overwrite or discard another branch's commits. + +## Screen coverage matrix + +| Screen / component | Material tier | Intended treatment | Current status | +|---|---|---|---| +| Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Existing Prismal glass; contrast/hierarchy polish remains | +| Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Existing Prismal droplet, hidden glyph capture and merged source; no new sampler | +| Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Planned; not implemented | +| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph and clear callback; clear hit target still needs 48dp | +| Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | Existing glass rail; touch-target/semantics polish remains | +| Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | +| You dashboard | Supporting surfaces | Consistent metric/destination geometry and restrained tint/edge hierarchy | Standard cards; geometry pass remains | +| Saved | Interactive controls + editorial content | Clear filters; standard readable saved-story cards | Existing filters/cards; consistency pass remains | +| Reading / Quiz Stats | Supporting surfaces | Consistent metric tiles, filter states and readable charts/data | Standard content surfaces; hierarchy pass remains | +| Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control | Implemented in this batch | +| Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | +| Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | +| Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; no overlap with definition | Implemented in this batch | +| Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | +| Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Existing standard surfaces; preserve | +| Quiz action controls | Interactive control glass where useful | Compact, accessible action layer without glassifying questions | Planned | +| Appearance settings | Interactive control glass | Clear↔Frosted control and live preview using existing components | Existing slider, presets and preview; low-effects option/preview polish remains | +| Dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | + +## Paired performance matrix + +| Component | Live effect / scope | Cost-control strategy | Fallback / verification | +|---|---|---|---| +| Root backdrop | One full-window background-only Prismal capture source | Capture background pixels only; no descendants; reuse same source | Do not reintroduce self-capture; code reviewed, device launch still unverified | +| Navigation | One floating capsule plus existing tab-glyph source/merged droplet | Preserve existing two-source architecture; no new sampler/readback | Static/low-effects presentation under Reduce Motion; OPPO GPU cost unmeasured | +| Home header | One small header glass surface | Existing shared backdrop; no duplicate captures | Theme-derived contrast; no adaptive readback added | +| Search | One morphing capsule | Reuse existing anchor/dock geometry and single backdrop | Preserve IME; clear affordance must not alter layout or focus | +| Explore filters | One shared capsule, not one glass surface per chip | Reuse same backdrop; keep chip fills/borders as simple drawing | >=48dp target and selected semantics still require device/TalkBack checks | +| Feed cards | No live blur | One Coil request per image; palette sampled from that decoded bitmap; cached per article | Standard content card if palette unavailable; no duplicate decode | +| Reader toolbar | One 8dp-blur glass toolbar, 60dp minimum height | Reuse root backdrop; one small bounded surface; Aa menu exists only when opened | Static material/Reduce Motion fallback; device GPU cost unmeasured | +| Reader progress | 2dp content indicator | Reuse existing debounced `savedReadingProgress`; no polling, WebView injection or readback | Hidden at zero/completion; visual timing needs device validation | +| Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | +| Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | +| Dashboard / stats / quiz | No new live blur in this batch | Standard content surfaces and shared shape/spacing tokens in later pass | Avoid glass on dense data/questions | +| Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Low-effects option and slider coalescing remain future work | + +## Implemented batch — Reader toolbar and completion + +**Changes on this feature branch:** + +- Replaced the plain cramped Reader row with a compact Prismal glass toolbar containing Back, publisher identity, the publisher-supplied date in IST, source-status wording and an Aa entry point. +- Moved the existing font-size range (16–28sp) behind an accessible dropdown. The menu uses deterministic clamping and is only composed when opened. +- Added a subtle 2dp progress line that reuses the existing debounced `savedReadingProgress` state. No new WebView polling, scroll observer, GPU readback or JavaScript was added. +- Replaced the large fixed “Finished reading?” card with a compact Prismal completion dock. It appears only after the existing end detector fires, hides while a definition is open, remains dismissible, and retains the five-question CTA with explicit “not official PYQs” provenance. +- Reworked the definition title/actions so the selected word can use two lines and Copy/More/Done are compact icon actions with accessible descriptions and 48dp targets. +- Added `ReaderChromePolicy` and focused JVM tests for font-size bounds and completion visibility. + +**Rendering delta:** one small Reader toolbar surface is now active while reading; one small completion surface is active only after completion. Both reuse the existing root backdrop. The definition popover remains the existing single anchored surface. No per-card blur, extra backdrop capture, sampler, image decode, GPU readback, dependency, network request or persistent data format was added. + +**Not included yet:** Reader chrome auto-hide/directional pinning, feed-only compact navigation, Search clear target increase, dashboard/stat geometry and the full appearance-preview refinement remain separate future batches. + +## Verification status and limitations + +- Branch creation source was rechecked against PR #16 head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +- PR #16's latest natural run before this branch, Build #167, passed WordNet builder tests (4/4), offline database generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. This result does **not** validate this feature branch. +- The current PR #16 workflow only triggers pushes to `main` and the PR #16 branch; it has no pull-request trigger. The PR #18 read-only PR workflow is a separate, unmerged branch and targets `main`, not this feature PR's base. No workflow was manually dispatched or rerun. Therefore this feature batch has **no CI result yet**; do not claim compilation or tests passed until a natural run validates this exact head. +- No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement was available. Those checks remain **UNVERIFIED**. CI/JVM success cannot establish native launch stability or real-device smoothness. +- The native launch fault remains unproven as fixed until a post-change physical-device launch test is available. + +## Next implementation sequence + +1. Reader chrome auto-hide: directional thresholds/hysteresis, reveal on upward scroll/tap, pin while selection/ActionMode/definition/IME/accessibility needs controls; no per-pixel Compose updates. +2. Search pass: raise the existing clear affordance to >=48dp while preserving focus, keyboard and filters; keep the current IME morph geometry. +3. Feed-only navigation morph: Today/Explore/Search only; compact active-name pill on sustained downward scroll, expand on upward scroll/top/tab action; prove You/nested screens never collapse. +4. Explore filter touch targets/semantics and selected contrast; You/Saved/stats card geometry; Appearance preview and low-effects option. +5. Whole-app consistency and measured performance/accessibility pass on representative screens. + +Do not mark the redesign complete until every screen in the matrix has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. From 7950cba7ca31507fe065a9796180e91f725d8c87 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:40:09 +0530 Subject: [PATCH 064/175] fix(reader): preserve definition title line height --- .../java/com/mangoloads/currentlens/DefinitionPopoverContent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt index d53969a5..8f4e5ff4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt +++ b/app/src/main/java/com/mangoloads/currentlens/DefinitionPopoverContent.kt @@ -61,7 +61,7 @@ internal fun DefinitionPopoverContent( maxLines = 2, softWrap = true, overflow = TextOverflow.Clip, - lineHeight = 20.sp + lineHeight = if (expanded) 26.sp else 20.sp ) if (DictionaryOverlayPolicy.shouldShowCopy(expanded, hasCopyableContent)) { IconButton(onClick = onCopy, modifier = Modifier.size(48.dp)) { From 6bc66cc360cdc80a56c68269af05ba771d20ccd5 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:40:12 +0530 Subject: [PATCH 065/175] fix(reader): distinguish unavailable and publisher fallback status --- .../main/java/com/mangoloads/currentlens/MainActivity.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a1efb8b8..7f494898 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2428,9 +2428,10 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha } val readerSourceStatus = when { - extractedHtml == null -> "In-app publisher view" - loadedFromCache -> "Saved public content · on this device" - else -> "Public publisher content · attributed" + extractedHtml != null && loadedFromCache -> "Saved public content · on this device" + extractedHtml != null -> "Public publisher content · attributed" + fallbackToPublisher -> "Publisher fallback · scripts disabled" + else -> "Public article unavailable" } Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { From 9f09b9cf13de30e7e35f778af20d9b4034d67041 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:40:20 +0530 Subject: [PATCH 066/175] docs(ui): clarify reader provenance status states From 7b6ef8809fde8a1e3cc65a53c5371e3f45d63da9 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:41:19 +0530 Subject: [PATCH 067/175] fix(reader): pin completion while native selection is active --- .../java/com/mangoloads/currentlens/ReaderChromePolicy.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index e25d111d..e5bf1872 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -12,6 +12,7 @@ internal object ReaderChromePolicy { fun shouldShowCompletion( reachedBottom: Boolean, definitionOpen: Boolean, - dismissed: Boolean - ): Boolean = reachedBottom && !definitionOpen && !dismissed + dismissed: Boolean, + selectionActive: Boolean = false + ): Boolean = reachedBottom && !definitionOpen && !dismissed && !selectionActive } From 27ef99bd54f077212486a5738d53630ba5946e97 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:41:21 +0530 Subject: [PATCH 068/175] test(reader): cover native selection completion guard --- .../java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt index cba7d0ea..5b14c013 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -26,5 +26,6 @@ class ReaderChromePolicyTest { assertFalse(ReaderChromePolicy.shouldShowCompletion(false, false, false)) assertFalse(ReaderChromePolicy.shouldShowCompletion(true, true, false)) assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, true)) + assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, false, selectionActive = true)) } } From 1f245e686c45878fe7115ae1959fb7679cefad87 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:41:23 +0530 Subject: [PATCH 069/175] fix(reader): keep completion clear of native selection actions --- .../java/com/mangoloads/currentlens/MainActivity.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 7f494898..154aebf3 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2404,6 +2404,7 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha var readerViewportHeightPx by remember(article.url) { mutableIntStateOf(0) } var fontSize by remember(article.url) { mutableIntStateOf(20) } var completionDismissed by remember(article.url) { mutableStateOf(false) } + var selectionActionModeActive by remember(article.url) { mutableStateOf(false) } LaunchedEffect(article.url) { extracting = true @@ -2534,6 +2535,9 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha savedReadingProgress = 0f reachedBottom = true } + webView.onSelectionActionModeChanged = { active -> + selectionActionModeActive = active + } webView.onDefineWord = { word, selectionRect -> val webViewLocation = IntArray(2) webView.getLocationInWindow(webViewLocation) @@ -2686,7 +2690,8 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha if (ReaderChromePolicy.shouldShowCompletion( reachedBottom = reachedBottom, definitionOpen = activeWord != null, - dismissed = completionDismissed + dismissed = completionDismissed, + selectionActive = selectionActionModeActive ) ) { PrismalGlassSurface( @@ -2859,6 +2864,7 @@ private fun readerDocument(article: Article, content: String, fontSize: Int, dar private class ReaderWebView(context: android.content.Context) : WebView(context) { var loadedKey: String? = null var onReachedBottom: () -> Unit = {} + var onSelectionActionModeChanged: (Boolean) -> Unit = {} var onDefineWord: (String, RectF?) -> Unit = { _, _ -> } var onReaderPageFinished: () -> Unit = {} var onReaderMainFrameError: () -> Unit = {} @@ -3040,6 +3046,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelReadingPositionRestore() cancelShortPageEndCheck(resetStability = true) cancelPendingAutoDefine() + onSelectionActionModeChanged(false) super.onDetachedFromWindow() } @@ -3089,6 +3096,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) object : ActionMode.Callback2() { override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean { val created = original.onCreateActionMode(mode, menu) + if (created) onSelectionActionModeChanged(true) if (created && selectionBridgeEnabled) { menu.add(0, MENU_DEFINE_WORD, menu.size(), "Define") .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS) @@ -3154,6 +3162,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) override fun onDestroyActionMode(mode: ActionMode) { cancelPendingAutoDefine() + onSelectionActionModeChanged(false) original.onDestroyActionMode(mode) } From 1f7cd2e5ddc5d169d1443035a8334538e44efc40 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 01:41:36 +0530 Subject: [PATCH 070/175] docs(reader): record native selection collision guard --- docs/LIQUID_GLASS_UI_ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a1e2eab9..a4f4cdd9 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -80,7 +80,7 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA - Replaced the plain cramped Reader row with a compact Prismal glass toolbar containing Back, publisher identity, the publisher-supplied date in IST, source-status wording and an Aa entry point. - Moved the existing font-size range (16–28sp) behind an accessible dropdown. The menu uses deterministic clamping and is only composed when opened. - Added a subtle 2dp progress line that reuses the existing debounced `savedReadingProgress` state. No new WebView polling, scroll observer, GPU readback or JavaScript was added. -- Replaced the large fixed “Finished reading?” card with a compact Prismal completion dock. It appears only after the existing end detector fires, hides while a definition is open, remains dismissible, and retains the five-question CTA with explicit “not official PYQs” provenance. +- Replaced the large fixed “Finished reading?” card with a compact Prismal completion dock. It appears only after the existing end detector fires, hides while a definition or native selection ActionMode is open, remains dismissible, and retains the five-question CTA with explicit “not official PYQs” provenance. - Reworked the definition title/actions so the selected word can use two lines and Copy/More/Done are compact icon actions with accessible descriptions and 48dp targets. - Added `ReaderChromePolicy` and focused JVM tests for font-size bounds and completion visibility. From b09fd8608de2d58372283425d1e6ac7c48f71519 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 03:10:54 +0530 Subject: [PATCH 071/175] ci: validate PRs stacked on startup stability branch --- .github/workflows/build-apk.yml | 41 +++++++++++++++++++++++---------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index d7dfe253..1564fd3a 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -5,19 +5,27 @@ on: branches: - main - fix/early-startup-crash-diagnostics-2026-11-06 + - ci/stacked-pr-validation-2026-11-07 + pull_request: + branches: + - fix/early-startup-crash-diagnostics-2026-11-06 + types: [ opened, synchronize, reopened, ready_for_review ] +# Build and test jobs are read-only. Release write access is isolated below. permissions: - contents: write + contents: read concurrency: - group: currentlens-android-build-${{ github.ref }} - cancel-in-progress: true + group: currentlens-android-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: build: - name: Build debug APK + name: Build and test debug APK runs-on: ubuntu-latest timeout-minutes: 40 + permissions: + contents: read steps: - name: Checkout source uses: actions/checkout@v5 @@ -28,11 +36,6 @@ jobs: distribution: temurin java-version: '17' - - name: Set up Android SDK - uses: android-actions/setup-android@v3 - with: - packages: platform-tools - - name: Restore stable Stability test signing key id: stability-signing-cache uses: actions/cache@v4 @@ -74,7 +77,7 @@ jobs: --min-unique-words 100000 test -s app/src/main/assets/wordnet.db - - name: Compile APK + - name: Compile APK and run JVM tests shell: bash run: | set -euo pipefail @@ -92,8 +95,22 @@ jobs: if-no-files-found: error retention-days: 14 + publish: + name: Publish main-branch testing release + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + needs: build + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: write + steps: + - name: Download APK built and tested by this workflow run + uses: actions/download-artifact@v4 + with: + name: CurrentLens-v0.2.8-stability-debug-apk + path: release-assets + - name: Publish direct APK download in GitHub Releases - if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: tag_name: v0.2.8-build-${{ github.run_number }} @@ -104,6 +121,6 @@ jobs: Includes the four-tab editorial redesign, Prismal AGSL glass controls, a 30-day local article metadata cache, Express Sunday Eye RSS, best-effort public-page extraction with in-app publisher fallback, offline WordNet definitions. Debug-signed APK for testing; not a production or Play Store release. - files: app/build/outputs/apk/debug/app-debug.apk + files: release-assets/app-debug.apk prerelease: true make_latest: false From 5dc3179361835b77fb3186a99d9b5791301463fd Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 03:11:27 +0530 Subject: [PATCH 072/175] ci: restore Android SDK setup before sdkmanager --- .github/workflows/build-apk.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 1564fd3a..3d146495 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -50,6 +50,11 @@ jobs: mkdir -p .ci keytool -genkeypair -noprompt -v -keystore .ci/stability-debug.keystore -storetype JKS -storepass currentlens-stability-test-only -keypass currentlens-stability-test-only -alias currentlens-stability -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=CurrentLens Stability Debug,O=CurrentLens,C=IN" + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + with: + packages: platform-tools + - name: Install Android platform run: | yes | sdkmanager --licenses From 0e01bd5df661de6110ed8e045eb344f3219317fa Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:26:31 +0530 Subject: [PATCH 073/175] ci: validate the consolidated Black Box Bihar News branch --- .github/workflows/build-apk.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 3d146495..6cef6ca1 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -5,10 +5,12 @@ on: branches: - main - fix/early-startup-crash-diagnostics-2026-11-06 - - ci/stacked-pr-validation-2026-11-07 + - black-box-bihar-news pull_request: branches: + - main - fix/early-startup-crash-diagnostics-2026-11-06 + - black-box-bihar-news types: [ opened, synchronize, reopened, ready_for_review ] # Build and test jobs are read-only. Release write access is isolated below. From 4f9edd80c41ee2f4a58f2c60a3dd2dd6703a3d1c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:30:46 +0530 Subject: [PATCH 074/175] feat: consolidate publication dates and provenance policies --- .../currentlens/ArticleCachePolicy.kt | 22 +++++-- .../currentlens/ArticleProvenancePolicy.kt | 26 ++++++++ .../mangoloads/currentlens/FeedDateParser.kt | 17 ++++++ .../mangoloads/currentlens/MainActivity.kt | 3 +- .../mangoloads/currentlens/NewsRepository.kt | 23 +++++-- .../currentlens/ArticleCachePolicyTest.kt | 60 ++++++++++++++++++- .../ArticleProvenancePolicyTest.kt | 33 ++++++++++ .../currentlens/FeedDateParserTest.kt | 40 +++++++++++++ 8 files changed, 208 insertions(+), 16 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ArticleProvenancePolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ArticleProvenancePolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleCachePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleCachePolicy.kt index b52cae78..54f0dbc1 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ArticleCachePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleCachePolicy.kt @@ -1,22 +1,32 @@ package com.mangoloads.currentlens /** - * Retains the newest article metadata within the local cache budget while treating - * bookmarked stories as pinned entries. The cache may exceed the soft limit only - * when the user has explicitly saved more stories than that limit. + * Retains the newest dated article metadata within the local cache budget while treating + * bookmarked stories as pinned entries. Undated and materially future-dated feed items + * cannot be placed reliably on the Today/Explore timeline, so they are excluded unless + * the user explicitly saves them. */ internal object ArticleCachePolicy { + private const val FUTURE_DATE_TOLERANCE_MILLIS = 5L * 60L * 1000L + fun retain( articles: List
, bookmarkedUrls: Set, cutoffMillis: Long, - maxArticles: Int + maxArticles: Int, + nowMillis: Long = System.currentTimeMillis() ): List
{ + val latestAllowedMillis = nowMillis + FUTURE_DATE_TOLERANCE_MILLIS val eligible = articles .distinctBy { it.url.ifBlank { it.id } } .filter { article -> - val publishedAt = article.publishedAtMillis - publishedAt == null || publishedAt >= cutoffMillis || article.url in bookmarkedUrls + if (article.url in bookmarkedUrls) { + true + } else { + article.publishedAtMillis?.let { publishedAt -> + publishedAt >= cutoffMillis && publishedAt <= latestAllowedMillis + } == true + } } .sortedByDescending { it.publishedAtMillis ?: Long.MIN_VALUE } diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleProvenancePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleProvenancePolicy.kt new file mode 100644 index 00000000..7c775b3b --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleProvenancePolicy.kt @@ -0,0 +1,26 @@ +package com.mangoloads.currentlens + +import java.util.Locale + +/** + * Distinguishes publisher-feed metadata from official primary-source evidence. + * Unknown and legacy provenance is never promoted to a primary-source label. + */ +internal object ArticleProvenancePolicy { + private val publisherRssSources = setOf( + "the hindu", + "indian express", + "bbc", + "dw", + "al jazeera" + ) + + fun label(source: String, feedUrl: String): String { + if (feedUrl.isBlank()) return "Feed provenance unavailable" + return if (source.trim().lowercase(Locale.ROOT) in publisherRssSources) { + "Publisher RSS · secondary source" + } else { + "Source type unverified" + } + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedDateParser.kt b/app/src/main/java/com/mangoloads/currentlens/FeedDateParser.kt index fa6c7502..e7673a72 100644 --- a/app/src/main/java/com/mangoloads/currentlens/FeedDateParser.kt +++ b/app/src/main/java/com/mangoloads/currentlens/FeedDateParser.kt @@ -43,3 +43,20 @@ internal object FeedDateParser { }.getOrNull() } } + + +/** + * Chooses the publisher's original publication timestamp before any later update timestamp. + * An updated timestamp is only a fallback when no valid original publication date exists. + */ +internal object FeedPublicationDatePolicy { + fun select( + rssPubDate: String, + atomPublished: String, + atomUpdated: String, + genericDate: String + ): String = listOf(rssPubDate, atomPublished, atomUpdated, genericDate) + .firstOrNull { FeedDateParser.parse(it) != null } + ?.trim() + .orEmpty() +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 154aebf3..01bb8b53 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1889,8 +1889,7 @@ private fun NewsCard( maxLines = 1, overflow = TextOverflow.Ellipsis) Spacer(Modifier.weight(1f)) Text( - if (article.feedUrl.isBlank()) "Feed provenance unavailable" - else "Publisher RSS · secondary source", + ArticleProvenancePolicy.label(article.source, article.feedUrl), style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary, maxLines = 1, overflow = TextOverflow.Ellipsis diff --git a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt index 3866f84a..0e633171 100644 --- a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt +++ b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt @@ -157,7 +157,10 @@ object NewsRepository { var title = "" var description = "" var link = "" - var published = "" + var rssPubDate = "" + var atomPublished = "" + var atomUpdated = "" + var genericDate = "" var image: String? = null while (event != XmlPullParser.END_DOCUMENT) { when (event) { @@ -168,7 +171,10 @@ object NewsRepository { title = "" description = "" link = "" - published = "" + rssPubDate = "" + atomPublished = "" + atomUpdated = "" + genericDate = "" image = null } else if (inItem) { when (tag) { @@ -182,8 +188,10 @@ object NewsRepository { if (!href.isNullOrBlank()) link = href else if (link.isBlank()) link = runCatching { parser.nextText().trim() }.getOrDefault("") } - "pubdate", "published", "updated", "date" -> - published = runCatching { parser.nextText().trim() }.getOrDefault("") + "pubdate" -> rssPubDate = runCatching { parser.nextText().trim() }.getOrDefault("") + "published" -> atomPublished = runCatching { parser.nextText().trim() }.getOrDefault("") + "updated" -> atomUpdated = runCatching { parser.nextText().trim() }.getOrDefault("") + "date" -> genericDate = runCatching { parser.nextText().trim() }.getOrDefault("") "enclosure" -> image = parser.getAttributeValue(null, "url") "thumbnail", "content" -> { val candidate = parser.getAttributeValue(null, "url") @@ -204,7 +212,12 @@ object NewsRepository { url = link, source = source.name, section = source.section, - published = published, + published = FeedPublicationDatePolicy.select( + rssPubDate = rssPubDate, + atomPublished = atomPublished, + atomUpdated = atomUpdated, + genericDate = genericDate + ), imageUrl = image, weekendRead = source.weekendRead, feedUrl = source.url diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleCachePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleCachePolicyTest.kt index ec528ab3..1b202aa8 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ArticleCachePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleCachePolicyTest.kt @@ -3,10 +3,13 @@ package com.mangoloads.currentlens import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test +import java.time.Instant import java.time.LocalDate import java.time.ZoneOffset class ArticleCachePolicyTest { + private val nowMillis = Instant.parse("2026-11-04T12:00:00Z").toEpochMilli() + private fun article(id: String, date: String) = Article( id = id, title = id, @@ -28,7 +31,8 @@ class ArticleCachePolicyTest { listOf(pinned, newest, nextNewest), bookmarkedUrls = setOf(pinned.url), cutoffMillis = cutoff, - maxArticles = 2 + maxArticles = 2, + nowMillis = nowMillis ) assertEquals(listOf("newest", "pinned"), retained.map { it.id }) @@ -46,7 +50,8 @@ class ArticleCachePolicyTest { listOf(sectionFeed, broadFeed), bookmarkedUrls = emptySet(), cutoffMillis = 0L, - maxArticles = 10 + maxArticles = 10, + nowMillis = nowMillis ) assertEquals(1, retained.size) @@ -63,10 +68,59 @@ class ArticleCachePolicyTest { listOf(first, second), bookmarkedUrls = setOf(first.url, second.url), cutoffMillis = cutoff, - maxArticles = 1 + maxArticles = 1, + nowMillis = nowMillis ) assertEquals(2, retained.size) assertTrue(retained.map { it.url }.containsAll(listOf(first.url, second.url))) } + + @Test + fun undatedAndStaleItemsAreExcludedUnlessExplicitlyBookmarked() { + val undated = article("undated", "") + val stale = article("stale", "2026-10-03T23:59:59Z") + val recent = article("recent", "2026-11-03T10:00:00Z") + val cutoff = LocalDate.of(2026, 10, 4).atStartOfDay(ZoneOffset.UTC).toInstant().toEpochMilli() + + val unpinned = ArticleCachePolicy.retain( + listOf(undated, stale, recent), + bookmarkedUrls = emptySet(), + cutoffMillis = cutoff, + maxArticles = 10, + nowMillis = nowMillis + ) + assertEquals(listOf("recent"), unpinned.map { it.id }) + + val pinned = ArticleCachePolicy.retain( + listOf(undated, stale), + bookmarkedUrls = setOf(undated.url, stale.url), + cutoffMillis = cutoff, + maxArticles = 10, + nowMillis = nowMillis + ) + assertEquals(setOf("undated", "stale"), pinned.map { it.id }.toSet()) + } + + @Test + fun materiallyFutureDatedItemsAreExcludedButSmallClockSkewIsTolerated() { + val slightFuture = article( + "slight-future", + Instant.ofEpochMilli(nowMillis + 2L * 60L * 1000L).toString() + ) + val future = article( + "future", + Instant.ofEpochMilli(nowMillis + 10L * 60L * 1000L).toString() + ) + + val retained = ArticleCachePolicy.retain( + listOf(slightFuture, future), + bookmarkedUrls = emptySet(), + cutoffMillis = 0L, + maxArticles = 10, + nowMillis = nowMillis + ) + + assertEquals(listOf("slight-future"), retained.map { it.id }) + } } diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleProvenancePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleProvenancePolicyTest.kt new file mode 100644 index 00000000..becaccb6 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleProvenancePolicyTest.kt @@ -0,0 +1,33 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class ArticleProvenancePolicyTest { + @Test + fun configuredPublisherRssIsExplicitlyLabelledSecondary() { + assertEquals( + "Publisher RSS · secondary source", + ArticleProvenancePolicy.label( + "The Hindu", + "https://www.thehindu.com/business/Economy/feeder/default.rss" + ) + ) + } + + @Test + fun legacyCachedArticleDoesNotClaimFeedProvenance() { + assertEquals( + "Feed provenance unavailable", + ArticleProvenancePolicy.label("The Hindu", "") + ) + } + + @Test + fun unrecognisedSourceIsNotPresentedAsPrimaryEvidence() { + assertEquals( + "Source type unverified", + ArticleProvenancePolicy.label("PIB", "https://pib.gov.in/example.rss") + ) + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedDateParserTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedDateParserTest.kt index 26c544f2..fd2d965c 100644 --- a/app/src/test/java/com/mangoloads/currentlens/FeedDateParserTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/FeedDateParserTest.kt @@ -43,6 +43,46 @@ class FeedDateParserTest { assertEquals(expected, FeedDateParser.parse("2026-11-03")) } + @Test + fun rssPubDateAndAtomPublishedTakePrecedenceOverLaterUpdatedTimestamps() { + val rssPubDate = "Tue, 03 Nov 2026 10:00:00 +0530" + val atomPublished = "2026-11-03T04:30:00Z" + val atomUpdated = "2026-11-05T10:00:00Z" + + assertEquals( + rssPubDate, + FeedPublicationDatePolicy.select( + rssPubDate = rssPubDate, + atomPublished = atomPublished, + atomUpdated = atomUpdated, + genericDate = "" + ) + ) + assertEquals( + atomPublished, + FeedPublicationDatePolicy.select( + rssPubDate = "", + atomPublished = atomPublished, + atomUpdated = atomUpdated, + genericDate = "" + ) + ) + } + + @Test + fun updatedTimestampIsOnlyUsedWhenNoValidOriginalPublicationDateExists() { + val updated = "2026-11-05T10:00:00Z" + assertEquals( + updated, + FeedPublicationDatePolicy.select( + rssPubDate = "", + atomPublished = "malformed", + atomUpdated = updated, + genericDate = "" + ) + ) + } + @Test fun malformedAndEmptyValuesRemainUndated() { assertNull(FeedDateParser.parse("")) From 53e07a5beabc01088af21a8fe13431d83e33ba40 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:33:49 +0530 Subject: [PATCH 075/175] fix: select Atom article alternate links safely --- .../mangoloads/currentlens/FeedLinkPolicy.kt | 59 +++++++++++++++++ .../mangoloads/currentlens/NewsRepository.kt | 25 ++++++-- .../currentlens/FeedLinkPolicyTest.kt | 64 +++++++++++++++++++ 3 files changed, 141 insertions(+), 7 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/FeedLinkPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/FeedLinkPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedLinkPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedLinkPolicy.kt new file mode 100644 index 00000000..3de8d0ae --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/FeedLinkPolicy.kt @@ -0,0 +1,59 @@ +package com.mangoloads.currentlens + +import java.net.URI +import java.util.Locale + +/** + * Selects an article destination from RSS/Atom link elements. + * + * Atom entries may contain both a feed-level rel="self" link and an article + * rel="alternate" link. Their document order is not significant, so selection + * must be based on relation and media type rather than the last href parsed. + */ +internal data class FeedLinkCandidate( + val href: String, + val rel: String = "", + val type: String = "" +) + +internal object FeedLinkPolicy { + fun select(candidates: List): String? { + val alternates = candidates.mapNotNull { candidate -> + val href = candidate.href.trim() + if (isHttpUrl(href) && isAlternate(candidate.rel)) { + candidate.copy(href = href) + } else { + null + } + } + + return alternates.firstOrNull { isHtml(it.type) }?.href + ?: alternates.firstOrNull { it.type.isBlank() }?.href + ?: alternates.firstOrNull { !isFeedType(it.type) }?.href + } + + private fun isAlternate(rel: String): Boolean { + val value = rel.trim() + if (value.isBlank() || value.equals("alternate", ignoreCase = true)) return true + return value.substringAfterLast('/').equals("alternate", ignoreCase = true) + } + + private fun isHtml(type: String): Boolean { + val mediaType = type.substringBefore(';').trim().lowercase(Locale.ROOT) + return mediaType == "text/html" || mediaType == "application/xhtml+xml" + } + + private fun isFeedType(type: String): Boolean { + val mediaType = type.substringBefore(';').trim().lowercase(Locale.ROOT) + return mediaType == "application/atom+xml" || + mediaType == "application/rss+xml" || + mediaType == "application/rdf+xml" + } + + private fun isHttpUrl(value: String): Boolean = runCatching { + val uri = URI(value) + (uri.scheme.equals("https", ignoreCase = true) || + uri.scheme.equals("http", ignoreCase = true)) && + !uri.host.isNullOrBlank() + }.getOrDefault(false) +} diff --git a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt index 0e633171..32075967 100644 --- a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt +++ b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt @@ -156,7 +156,7 @@ object NewsRepository { var inItem = false var title = "" var description = "" - var link = "" + val links = mutableListOf() var rssPubDate = "" var atomPublished = "" var atomUpdated = "" @@ -170,7 +170,7 @@ object NewsRepository { inItem = true title = "" description = "" - link = "" + links.clear() rssPubDate = "" atomPublished = "" atomUpdated = "" @@ -185,8 +185,18 @@ object NewsRepository { } "link" -> { val href = parser.getAttributeValue(null, "href") - if (!href.isNullOrBlank()) link = href - else if (link.isBlank()) link = runCatching { parser.nextText().trim() }.getOrDefault("") + if (!href.isNullOrBlank()) { + links.add( + FeedLinkCandidate( + href = href.trim(), + rel = parser.getAttributeValue(null, "rel").orEmpty(), + type = parser.getAttributeValue(null, "type").orEmpty() + ) + ) + } else { + val textLink = runCatching { parser.nextText().trim() }.getOrDefault("") + if (textLink.isNotBlank()) links.add(FeedLinkCandidate(href = textLink)) + } } "pubdate" -> rssPubDate = runCatching { parser.nextText().trim() }.getOrDefault("") "published" -> atomPublished = runCatching { parser.nextText().trim() }.getOrDefault("") @@ -203,13 +213,14 @@ object NewsRepository { XmlPullParser.END_TAG -> { val tag = parser.name?.lowercase(Locale.ROOT).orEmpty() if (tag == "item" || tag == "entry") { - if (title.isNotBlank() && link.startsWith("http")) { + val articleUrl = FeedLinkPolicy.select(links) + if (title.isNotBlank() && articleUrl != null) { result.add( Article( - id = link, + id = articleUrl, title = title, description = description.take(420), - url = link, + url = articleUrl, source = source.name, section = source.section, published = FeedPublicationDatePolicy.select( diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedLinkPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedLinkPolicyTest.kt new file mode 100644 index 00000000..71956774 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/FeedLinkPolicyTest.kt @@ -0,0 +1,64 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNull +import org.junit.Test + +class FeedLinkPolicyTest { + private val self = FeedLinkCandidate( + href = "https://example.test/feed.xml", + rel = "self", + type = "application/atom+xml" + ) + private val article = FeedLinkCandidate( + href = "https://example.test/story", + rel = "alternate", + type = "text/html" + ) + + @Test + fun htmlAlternateWinsOverSelfRegardlessOfDocumentOrder() { + assertEquals("https://example.test/story", FeedLinkPolicy.select(listOf(self, article))) + assertEquals("https://example.test/story", FeedLinkPolicy.select(listOf(article, self))) + } + + @Test + fun rssTextLinkWithoutAtomAttributesRemainsSupported() { + assertEquals( + "https://example.test/rss-story", + FeedLinkPolicy.select(listOf(FeedLinkCandidate("https://example.test/rss-story"))) + ) + } + + @Test + fun alternateHtmlIsPreferredOverAnUnspecifiedAlternate() { + val unspecified = FeedLinkCandidate("https://example.test/generic") + assertEquals( + "https://example.test/story", + FeedLinkPolicy.select(listOf(unspecified, article)) + ) + } + + @Test + fun selfEnclosureAndUnsafeSchemesAreNotArticleDestinations() { + val enclosure = FeedLinkCandidate( + href = "https://example.test/audio.mp3", + rel = "enclosure", + type = "audio/mpeg" + ) + val unsafe = FeedLinkCandidate( + href = "javascript:alert(1)", + rel = "alternate", + type = "text/html" + ) + assertNull(FeedLinkPolicy.select(listOf(self, enclosure, unsafe))) + } + + @Test + fun absoluteAlternateRelationUriIsRecognised() { + val alternate = article.copy( + rel = "http://www.iana.org/assignments/relation/alternate" + ) + assertEquals("https://example.test/story", FeedLinkPolicy.select(listOf(alternate))) + } +} From a0d28e920e17abac3a3af10d4c5bfcccdca1902c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:34:43 +0530 Subject: [PATCH 076/175] perf: move local history persistence off main and bound new reads --- .../com/mangoloads/currentlens/LocalStore.kt | 116 ++++++++++++++++-- .../currentlens/ReadHistoryPolicy.kt | 42 +++++++ .../currentlens/ReadHistoryPolicyTest.kt | 67 ++++++++++ 3 files changed, 217 insertions(+), 8 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ReadHistoryPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ReadHistoryPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt index 1a189dfd..ab6b93c1 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt @@ -6,11 +6,17 @@ import org.json.JSONObject import java.time.LocalDate import java.time.ZoneId import java.util.UUID +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.sync.Mutex +import kotlinx.coroutines.sync.withLock +import kotlinx.coroutines.withContext object LocalStore { private const val PREFS = "currentlens_local" private const val BOOKMARKS = "bookmarks" private const val READ = "read_history" + // Ordered window for new markers; the legacy unordered set is preserved unchanged. + private const val RECENT_READ = "read_history_recent_v1" private const val ARTICLE_CACHE = "article_cache" private const val GLASS_ALPHA = "glass_alpha" private const val MAX_CACHED_ARTICLES = 500 @@ -23,6 +29,8 @@ object LocalStore { private const val MAX_READER_POSITIONS = ReaderPositionPolicy.MAX_ENTRIES private const val MAX_QUIZ_ATTEMPTS = 5_000 private const val MAX_DETAILED_QUIZ_ATTEMPTS = 500 + private val historyWriteMutex = Mutex() + private val readerPositionWriteMutex = Mutex() fun bookmarks(context: Context): Set = runCatching { @@ -50,19 +58,62 @@ object LocalStore { fun readHistory(context: Context): Set = runCatching { - context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - .getStringSet(READ, emptySet())?.toSet() ?: emptySet() + val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + val legacy = runCatching { + prefs.getStringSet(READ, emptySet())?.toSet() ?: emptySet() + }.getOrDefault(emptySet()) + val recentRaw = runCatching { prefs.getString(RECENT_READ, null) }.getOrNull() + ReadHistoryPolicy.visibleHistory(legacy, parseRecentReadHistory(recentRaw) ?: emptyList()) }.getOrDefault(emptySet()) + /** + * Legacy read markers remain frozen because their unordered StringSet has no timestamps. + * Only new reads enter the bounded, ordered JSON window. + */ fun markRead(context: Context, url: String) { - val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - val next = runCatching { - prefs.getStringSet(READ, emptySet())?.toMutableSet() ?: mutableSetOf() - }.getOrDefault(mutableSetOf()) - next.add(url) - prefs.edit().putStringSet(READ, next.toSet()).apply() + if (url.isBlank() || url.length > ReadHistoryPolicy.MAX_URL_LENGTH) return + runCatching { + val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + val legacy = runCatching { + prefs.getStringSet(READ, emptySet())?.toSet() ?: emptySet() + }.getOrDefault(emptySet()) + if (url in legacy) return@runCatching + + // A malformed or wrong-typed value is preserved for recovery, never overwritten. + val rawResult = runCatching { prefs.getString(RECENT_READ, null) } + if (rawResult.isFailure) return@runCatching + val current = parseRecentReadHistory(rawResult.getOrNull()) ?: return@runCatching + val next = ReadHistoryPolicy.add(current, url) + if (next == current) return@runCatching + + val array = JSONArray() + next.forEach { array.put(it) } + prefs.edit().putString(RECENT_READ, array.toString()).apply() + } + } + + private fun parseRecentReadHistory(raw: String?): List? { + if (raw == null) return emptyList() + return runCatching { + val array = JSONArray(raw) + buildList { + for (index in 0 until array.length()) { + val url = array.optString(index) + if (url.isNotBlank()) add(url) + } + } + }.getOrNull()?.let { ReadHistoryPolicy.retain(it) } } + /** Updates read markers and returns the latest set off the article-opening UI path. */ + internal suspend fun markReadAndRead(context: Context, url: String): Set = + withContext(Dispatchers.IO) { + historyWriteMutex.withLock { + markRead(context, url) + readHistory(context) + } + } + fun cachedArticles(context: Context): List
{ val raw = runCatching { context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).getString(ARTICLE_CACHE, null) @@ -173,6 +224,26 @@ object LocalStore { ) } + /** Serialize reader-position JSON writes on IO; scroll callbacks do not parse preferences on main. */ + internal suspend fun saveReaderPositionAndWrite( + context: Context, + articleUrl: String, + progress: Float, + updatedAtMillis: Long = System.currentTimeMillis() + ): Boolean = withContext(Dispatchers.IO) { + readerPositionWriteMutex.withLock { + saveReaderPosition(context, articleUrl, progress, updatedAtMillis) + } + } + + /** A completed article clears its position only after earlier queued saves finish. */ + internal suspend fun clearReaderPositionAndWrite(context: Context, articleUrl: String) = + withContext(Dispatchers.IO) { + readerPositionWriteMutex.withLock { + clearReaderPosition(context, articleUrl) + } + } + private fun savedReaderPositions(context: Context, nowMillis: Long): List { val raw = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) .getString(READER_POSITIONS, null) ?: return emptyList() @@ -285,6 +356,20 @@ object LocalStore { return true } + /** Persist and reload bounded reading history on IO, serialized with quiz/read-marker writes. */ + internal suspend fun recordReadingSessionAndRead( + context: Context, + article: Article, + startedAtMillis: Long, + durationMillis: Long + ): List? = withContext(Dispatchers.IO) { + historyWriteMutex.withLock { + if (recordReadingSession(context, article, startedAtMillis, durationMillis)) { + readingSessions(context) + } else null + } + } + internal fun quizAttempts(context: Context): List { val raw = runCatching { context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).getString(QUIZ_ATTEMPTS, null) @@ -351,6 +436,21 @@ object LocalStore { }.getOrDefault(emptyList()) } + /** Persist and reload quiz history off main; quiz data remains submit-only. */ + internal suspend fun recordQuizAttemptAndRead( + context: Context, + article: Article, + answers: Map, + questions: List, + submittedAtMillis: Long = System.currentTimeMillis() + ): List? = withContext(Dispatchers.IO) { + historyWriteMutex.withLock { + if (recordQuizAttempt(context, article, answers, questions, submittedAtMillis) != null) { + quizAttempts(context) + } else null + } + } + internal fun recordQuizAttempt( context: Context, article: Article, diff --git a/app/src/main/java/com/mangoloads/currentlens/ReadHistoryPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReadHistoryPolicy.kt new file mode 100644 index 00000000..d1debc45 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ReadHistoryPolicy.kt @@ -0,0 +1,42 @@ +package com.mangoloads.currentlens + +/** + * Ordered retention for newly written read markers. + * + * The legacy SharedPreferences StringSet is intentionally kept as a frozen, + * unordered snapshot; only new markers enter this bounded insertion-ordered window. + */ +internal object ReadHistoryPolicy { + const val MAX_RECENT_ENTRIES = 5_000 + const val MAX_URL_LENGTH = 2_048 + + fun retain( + existing: List, + maxEntries: Int = MAX_RECENT_ENTRIES + ): List { + if (maxEntries <= 0) return emptyList() + val unique = LinkedHashSet() + existing.forEach { url -> + if (url.isNotBlank() && url.length <= MAX_URL_LENGTH) unique.add(url) + } + return unique.toList().takeLast(maxEntries) + } + + fun visibleHistory( + legacy: Set, + recent: List, + maxEntries: Int = MAX_RECENT_ENTRIES + ): Set = legacy + retain(recent, maxEntries) + + fun add( + existing: List, + url: String, + maxEntries: Int = MAX_RECENT_ENTRIES + ): List { + val retained = retain(existing, maxEntries) + if (url.isBlank() || url.length > MAX_URL_LENGTH || maxEntries <= 0 || url in retained) { + return retained + } + return (retained + url).takeLast(maxEntries) + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/ReadHistoryPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReadHistoryPolicyTest.kt new file mode 100644 index 00000000..cd909a6e --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ReadHistoryPolicyTest.kt @@ -0,0 +1,67 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class ReadHistoryPolicyTest { + @Test + fun addsNewUrlWithoutDroppingExistingMarkers() { + val existing = listOf("https://example.test/old") + assertEquals( + listOf("https://example.test/old", "https://example.test/new"), + ReadHistoryPolicy.add(existing, "https://example.test/new") + ) + } + + @Test + fun duplicateUrlIsIdempotent() { + val existing = listOf("https://example.test/story") + assertEquals(existing, ReadHistoryPolicy.add(existing, "https://example.test/story")) + } + + @Test + fun blankUrlDoesNotCreateAReadMarker() { + val existing = listOf("https://example.test/story") + assertEquals(existing, ReadHistoryPolicy.add(existing, " ")) + } + + @Test + fun recentWindowEvictsOnlyTheOldestNewMarker() { + val existing = listOf("oldest", "middle", "newest") + assertEquals( + listOf("middle", "newest", "next"), + ReadHistoryPolicy.add(existing, "next", maxEntries = 3) + ) + } + + @Test + fun retainDeduplicatesAndKeepsInsertionOrderOfNewestEntries() { + assertEquals( + listOf("b", "c"), + ReadHistoryPolicy.retain(listOf("a", "b", "a", "c"), maxEntries = 2) + ) + } + + @Test + fun oversizedUrlIsRejectedWithoutChangingHistory() { + val existing = listOf("https://example.test/story") + assertEquals( + existing, + ReadHistoryPolicy.add(existing, "x".repeat(ReadHistoryPolicy.MAX_URL_LENGTH + 1)) + ) + } + + @Test + fun visibleHistoryPreservesLegacyMarkersWhileBoundingRecentWindow() { + val legacy = setOf("legacy-a", "legacy-b") + assertEquals( + setOf("legacy-a", "legacy-b", "middle", "new"), + ReadHistoryPolicy.visibleHistory(legacy, listOf("old", "middle", "new"), maxEntries = 2) + ) + } + + @Test + fun zeroCapacityRetainsNoRecentMarkers() { + assertEquals(emptyList(), ReadHistoryPolicy.add(listOf("old"), "new", maxEntries = 0)) + } +} From ca5fbe55318262256030a78e93c6778cd601951f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:35:50 +0530 Subject: [PATCH 077/175] perf: move read and reader persistence off main --- .../mangoloads/currentlens/MainActivity.kt | 92 ++++++++++++++----- 1 file changed, 68 insertions(+), 24 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 01bb8b53..866569f2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -203,7 +203,9 @@ import java.time.format.DateTimeFormatter import java.util.Locale import kotlin.math.roundToInt import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.NonCancellable import kotlinx.coroutines.flow.first +import kotlinx.coroutines.launch import kotlinx.coroutines.withContext private const val INDIA_ZONE = "Asia/Kolkata" @@ -415,6 +417,7 @@ private data class LocalAppSnapshot( @Composable private fun BrrrNewsApp() { val context = LocalContext.current + val persistenceScope = rememberCoroutineScope() LaunchedEffect(Unit) { LaunchCrashDiagnostics.recordStage(context, "BrrrNewsApp composition started") repeat(3) { withFrameNanos { } } @@ -646,19 +649,50 @@ private fun BrrrNewsApp() { article = selectedArticle!!, onBack = { quizMode = false }, onSubmit = { answers, questions -> - LocalStore.recordQuizAttempt(context, selectedArticle!!, answers, questions) - quizAttempts = LocalStore.quizAttempts(context) + val article = selectedArticle!! + persistenceScope.launch { + val updated = withContext(NonCancellable) { + LocalStore.recordQuizAttemptAndRead(context, article, answers, questions) + } + if (updated != null) quizAttempts = updated + } } ) - selectedArticle != null -> ReaderScreen( - article = selectedArticle!!, - backdrop = backdrop, - glassAlpha = glassAlpha, - dark = dark, - onBack = { selectedArticle = null }, - onQuiz = { quizMode = true }, - onSessionRecorded = { readingSessions = LocalStore.readingSessions(context) } - ) + selectedArticle != null -> { + val article = selectedArticle!! + ReaderScreen( + article = article, + backdrop = backdrop, + glassAlpha = glassAlpha, + dark = dark, + onBack = { selectedArticle = null }, + onQuiz = { quizMode = true }, + onSessionWindow = { window -> + persistenceScope.launch { + val updated = withContext(NonCancellable) { + LocalStore.recordReadingSessionAndRead( + context, article, window.startedAtMillis, window.durationMillis + ) + } + if (updated != null) readingSessions = updated + } + }, + onSaveReaderPosition = { url, progress -> + persistenceScope.launch { + withContext(NonCancellable) { + LocalStore.saveReaderPositionAndWrite(context, url, progress) + } + } + }, + onClearReaderPosition = { url -> + persistenceScope.launch { + withContext(NonCancellable) { + LocalStore.clearReaderPositionAndWrite(context, url) + } + } + } + ) + } showSettings -> GlassSettingsScreen( backdrop = backdrop, glassAlpha = glassAlpha, @@ -693,11 +727,15 @@ private fun BrrrNewsApp() { searchQuery = searchQuery, searchExpanded = searchExpanded, onSettings = { showSettings = true }, - onOpenArticle = { + onOpenArticle = { article -> searchExpanded = false - LocalStore.markRead(context, it.url) - readHistory = readHistory + it.url - selectedArticle = it + selectedArticle = article + persistenceScope.launch { + val updated = withContext(NonCancellable) { + LocalStore.markReadAndRead(context, article.url) + } + readHistory = updated + } }, onToggleBookmark = { val added = LocalStore.toggleBookmark(context, it.url) @@ -2346,7 +2384,17 @@ private fun matchesSearchTerms(article: Article, query: String): Boolean = ExploreFilters.matchesSearchTerms(article, query) @Composable -private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha: Float, dark: Boolean, onBack: () -> Unit, onQuiz: () -> Unit, onSessionRecorded: () -> Unit) { +private fun ReaderScreen( + article: Article, + backdrop: PrismalBackdrop, + glassAlpha: Float, + dark: Boolean, + onBack: () -> Unit, + onQuiz: () -> Unit, + onSessionWindow: (ReadingSessionWindow) -> Unit, + onSaveReaderPosition: (String, Float) -> Unit, + onClearReaderPosition: (String) -> Unit +) { val context = LocalContext.current val readerWebViewHolder = remember { mutableStateOf(null) } var savedReadingProgress by remember(article.url) { @@ -2365,11 +2413,7 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha } fun flushSession() { readerWebViewHolder.value?.flushReadingPosition() - clock.pause(SystemClock.elapsedRealtime())?.let { window -> - if (LocalStore.recordReadingSession(context, article, window.startedAtMillis, window.durationMillis)) { - onSessionRecorded() - } - } + clock.pause(SystemClock.elapsedRealtime())?.let(onSessionWindow) } val observer = LifecycleEventObserver { _, event -> when (event) { @@ -2525,12 +2569,12 @@ private fun ReaderScreen(article: Article, backdrop: PrismalBackdrop, glassAlpha update = { webView -> val articleChanged = webView.beginArticle(article.url) webView.onReadingProgressChanged = { progress -> - val persisted = LocalStore.saveReaderPosition(context, article.url, progress) - savedReadingProgress = if (persisted) progress else 0f + savedReadingProgress = progress + onSaveReaderPosition(article.url, progress) } webView.onReachedBottom = { webView.markReadingPositionCompleted() - LocalStore.clearReaderPosition(context, article.url) + onClearReaderPosition(article.url) savedReadingProgress = 0f reachedBottom = true } From 3981295e291f262d7457a40754cfddde562f9883 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:37:12 +0530 Subject: [PATCH 078/175] fix: deduplicate RSS tracking variants without losing read state --- .../currentlens/ArticleUrlIdentityPolicy.kt | 114 +++++++++++++ .../com/mangoloads/currentlens/LocalStore.kt | 8 +- .../mangoloads/currentlens/NewsRepository.kt | 6 +- .../ArticleUrlIdentityPolicyTest.kt | 151 ++++++++++++++++++ 4 files changed, 274 insertions(+), 5 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt new file mode 100644 index 00000000..7f64410d --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt @@ -0,0 +1,114 @@ +package com.mangoloads.currentlens + +import java.net.URI +import java.util.Locale + +/** + * Builds a comparison key for publisher article URLs without changing the URL used by the reader. + * + * Only well-known campaign/click identifiers are removed. Publisher query parameters that may + * select content (for example, article IDs, editions or output formats) are preserved. + */ +internal object ArticleUrlIdentityPolicy { + private val trackingKeys = setOf( + "fbclid", + "gclid", + "dclid", + "msclkid", + "gbraid", + "wbraid", + "mc_cid", + "mc_eid", + "igshid", + "twclid", + "li_fat_id" + ) + + fun key(value: String): String { + val raw = value.trim() + if (raw.isBlank()) return "" + + val uri = runCatching { URI(raw) }.getOrNull() ?: return raw + val scheme = uri.scheme?.lowercase(Locale.ROOT) ?: return raw + val host = uri.host?.lowercase(Locale.ROOT)?.trimEnd('.') ?: return raw + if (scheme !in setOf("http", "https") || host.isBlank() || uri.rawUserInfo != null) { + return raw + } + + val port = when { + scheme == "https" && uri.port == 443 -> "" + scheme == "http" && uri.port == 80 -> "" + uri.port >= 0 -> ":${uri.port}" + else -> "" + } + val path = uri.normalize().rawPath.orEmpty().ifBlank { "/" } + val query = uri.rawQuery + ?.split('&') + ?.filter { part -> + part.isNotBlank() && !isTrackingParameter(part.substringBefore('=')) + } + ?.joinToString("&") + ?.takeIf { it.isNotBlank() } + + return buildString { + append(scheme) + append("://") + append(host) + append(port) + append(path) + if (query != null) { + append('?') + append(query) + } + } + } + + /** + * Deduplicates URL variants while retaining the exact publisher URL for navigation. + * Explicitly saved variants win over newer incoming tracking variants; otherwise the + * newest publication date wins. Original order breaks ties, preserving section-feed + * provenance when section feeds are fetched before broad feeds. + */ + fun deduplicate( + articles: List
, + bookmarkedUrls: Set, + readUrls: Set = emptySet() + ): List
{ + val bookmarkedKeys = bookmarkedUrls.mapTo(HashSet(), ::key) + val readKeys = readUrls.mapTo(HashSet(), ::key) + + data class Candidate( + val article: Article, + val identity: String, + val bookmarked: Boolean, + val previouslyRead: Boolean, + val publishedAt: Long, + val originalIndex: Int + ) + + return articles.mapIndexed { index, article -> + val urlKey = key(article.url) + Candidate( + article = article, + identity = urlKey.ifBlank { article.id.ifBlank { article.title } }, + bookmarked = urlKey.isNotBlank() && urlKey in bookmarkedKeys, + previouslyRead = urlKey.isNotBlank() && urlKey in readKeys, + publishedAt = article.publishedAtMillis ?: Long.MIN_VALUE, + originalIndex = index + ) + } + .sortedWith( + compareBy { if (it.bookmarked) 0 else 1 } + .thenBy { if (it.previouslyRead) 0 else 1 } + .thenByDescending { it.publishedAt } + .thenBy { it.originalIndex } + ) + .distinctBy { it.identity } + .map { it.article } + } + + private fun isTrackingParameter(name: String): Boolean { + val normalized = name.lowercase(Locale.ROOT) + return normalized.startsWith("utm_") || normalized in trackingKeys + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt index ab6b93c1..b2f1e3e9 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt @@ -150,9 +150,15 @@ object LocalStore { val zone = ZoneId.of("Asia/Kolkata") val cutoff = LocalDate.now(zone).minusDays(CACHE_DAYS.toLong()) .atStartOfDay(zone).toInstant().toEpochMilli() - val merged = ArticleCachePolicy.retain( + val readUrls = readHistory(context) + val deduplicated = ArticleUrlIdentityPolicy.deduplicate( incoming + cachedArticles(context), bookmarkedUrls = savedUrls, + readUrls = readUrls + ) + val merged = ArticleCachePolicy.retain( + deduplicated, + bookmarkedUrls = savedUrls, cutoffMillis = cutoff, maxArticles = MAX_CACHED_ARTICLES ) diff --git a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt index 32075967..bb8c08c2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt +++ b/app/src/main/java/com/mangoloads/currentlens/NewsRepository.kt @@ -58,12 +58,10 @@ object NewsRepository { ) suspend fun fetchAll(): List
= withContext(Dispatchers.IO) { - feeds.map { source -> async { fetchOne(source) } } + val fetched = feeds.map { source -> async { fetchOne(source) } } .awaitAll() .flatten() - .distinctBy { it.url.ifBlank { it.title } } - .sortedByDescending { it.publishedAtMillis ?: 0L } - .take(250) + ArticleUrlIdentityPolicy.deduplicate(fetched, bookmarkedUrls = emptySet()).take(250) } private fun fetchOne(source: FeedSource): List
{ diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicyTest.kt new file mode 100644 index 00000000..439ae303 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicyTest.kt @@ -0,0 +1,151 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class ArticleUrlIdentityPolicyTest { + private fun article( + id: String, + url: String, + published: String, + feedUrl: String = "" + ) = Article( + id = id, + title = id, + description = "", + url = url, + source = "Test", + section = "Test", + published = published, + feedUrl = feedUrl + ) + + @Test + fun removesKnownTrackingParametersAndFragmentFromIdentityOnly() { + val original = "HTTPS://www.example.com:443/world/story?utm_source=rss&id=42&fbclid=click#section" + + assertEquals( + "https://www.example.com/world/story?id=42", + ArticleUrlIdentityPolicy.key(original) + ) + } + + @Test + fun preservesPublisherQueryParametersAndTheirOrder() { + assertEquals( + "https://example.com/story?edition=print&output=1", + ArticleUrlIdentityPolicy.key( + "https://example.com/story?edition=print&utm_campaign=weekly&output=1" + ) + ) + } + + @Test + fun newestUnbookmarkedTrackingVariantWinsWithoutRewritingItsUrl() { + val older = article( + "older", + "https://example.com/story?utm_source=section", + "2026-11-05T08:00:00Z", + "https://example.com/section-feed.xml" + ) + val newer = article( + "newer", + "https://example.com/story?fbclid=campaign", + "2026-11-06T08:00:00Z", + "https://example.com/latest-feed.xml" + ) + + val retained = ArticleUrlIdentityPolicy.deduplicate( + listOf(older, newer), + bookmarkedUrls = emptySet() + ) + + assertEquals(1, retained.size) + assertEquals("newer", retained.single().id) + assertEquals(newer.url, retained.single().url) + } + + @Test + fun bookmarkedUrlVariantWinsOverNewerIncomingTrackingVariant() { + val incoming = article( + "incoming", + "https://example.com/story?utm_source=latest", + "2026-11-06T08:00:00Z" + ) + val saved = article( + "saved", + "https://example.com/story?fbclid=old-share", + "2026-11-05T08:00:00Z" + ) + + val retained = ArticleUrlIdentityPolicy.deduplicate( + listOf(incoming, saved), + bookmarkedUrls = setOf(saved.url) + ) + + assertEquals(1, retained.size) + assertEquals("saved", retained.single().id) + assertEquals(saved.url, retained.single().url) + } + + @Test + fun equalDateDuplicatesKeepEarlierSectionFeedProvenance() { + val section = article( + "section", + "https://example.com/story?utm_source=section", + "2026-11-06T08:00:00Z", + "https://example.com/economy-feed.xml" + ) + val broad = article( + "broad", + "https://example.com/story?utm_medium=all", + "2026-11-06T08:00:00Z", + "https://example.com/all-feed.xml" + ) + + val retained = ArticleUrlIdentityPolicy.deduplicate( + listOf(section, broad), + bookmarkedUrls = emptySet() + ) + + assertEquals(1, retained.size) + assertEquals(section.feedUrl, retained.single().feedUrl) + } + + @Test + fun previouslyReadVariantWinsOverNewerIncomingTrackingVariant() { + val previouslyRead = article( + "read", + "https://example.com/story?utm_source=section", + "2026-11-05T08:00:00Z" + ) + val newer = article( + "newer", + "https://example.com/story?fbclid=campaign", + "2026-11-06T08:00:00Z" + ) + + val retained = ArticleUrlIdentityPolicy.deduplicate( + listOf(newer, previouslyRead), + bookmarkedUrls = emptySet(), + readUrls = setOf(previouslyRead.url) + ) + + assertEquals(1, retained.size) + assertEquals("read", retained.single().id) + assertEquals(previouslyRead.url, retained.single().url) + } + + @Test + fun meaningfulQueryDifferencesRemainSeparateStories() { + val first = article("first", "https://example.com/story?id=1", "2026-11-06T08:00:00Z") + val second = article("second", "https://example.com/story?id=2", "2026-11-06T08:00:00Z") + + val retained = ArticleUrlIdentityPolicy.deduplicate( + listOf(first, second), + bookmarkedUrls = emptySet() + ) + + assertEquals(listOf("first", "second"), retained.map { it.id }) + } +} From e23e021db0cd11fd337ac184743a828eab7d0a9b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:41:03 +0530 Subject: [PATCH 079/175] feat: consolidate GS I Geography and editorial false-positive safeguards --- .../currentlens/ArticleCardMetaPolicy.kt | 8 +- .../mangoloads/currentlens/ExploreFilters.kt | 8 ++ .../mangoloads/currentlens/MainActivity.kt | 20 ++-- .../com/mangoloads/currentlens/UpscEngine.kt | 11 +- .../mangoloads/currentlens/UpscFeedPolicy.kt | 28 ++++- .../EditorialConsolidationRegressionTest.kt | 113 ++++++++++++++++++ .../GeographyEditorialCoverageTest.kt | 85 +++++++++++++ docs/UPSC_EDITORIAL_BASELINE.md | 52 ++++++++ 8 files changed, 304 insertions(+), 21 deletions(-) create mode 100644 app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/GeographyEditorialCoverageTest.kt create mode 100644 docs/UPSC_EDITORIAL_BASELINE.md diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleCardMetaPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleCardMetaPolicy.kt index a7146b43..da720bba 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ArticleCardMetaPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleCardMetaPolicy.kt @@ -1,15 +1,17 @@ package com.mangoloads.currentlens -/** Keeps the feed's syllabus hint concise and exposes the actual matched signal. */ +/** Keeps the feed's syllabus hint concise and exposes both its evidence and syllabus connection. */ internal object ArticleCardMetaPolicy { fun syllabusHint( gsPaper: String, subject: String, - matchedTerms: List + matchedTerms: List, + syllabusLink: String ): String? { if (matchedTerms.isEmpty()) return null if (gsPaper.isBlank() || gsPaper.equals("Unmapped", ignoreCase = true)) return null if (subject.isBlank() || subject.equals("Unmapped", ignoreCase = true)) return null + if (syllabusLink.isBlank()) return null val signals = matchedTerms.map { it.trim() } .filter { it.isNotEmpty() } @@ -17,6 +19,6 @@ internal object ArticleCardMetaPolicy { .take(2) if (signals.isEmpty()) return null - return "Indicative · $gsPaper · $subject\nSignal: " + signals.joinToString(", ") + return "Indicative · $gsPaper · $subject\nSignals: ${signals.joinToString(", ")}\nSyllabus: $syllabusLink" } } diff --git a/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt b/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt index 2e89483b..8c7f13fe 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt @@ -9,12 +9,19 @@ internal object ExploreFilters { if (category.equals("All", true)) return true val section = article.section.lowercase() val text = (article.title + " " + article.description + " " + article.section).lowercase() + val normalizedText = EditorialTextMatcher.normalize(text) return when (category.lowercase()) { "india" -> section.contains("india") || listOf("india", "indian", "new delhi").any { text.contains(it) } "world" -> section.contains("world") || section.contains("international") || listOf("international", "global", "geopolitical", "united nations").any { text.contains(it) } "politics" -> section.contains("politic") || listOf("government", "parliament", "election", "minister", "political", "legislature", "cabinet", "opposition", "constitution").any { text.contains(it) } + "geography" -> listOf( + "physical geography", "monsoon", "river basin", "river systems", "glacier", + "ocean current", "tectonic plate", "earthquake", "tsunami", "cyclone", + "volcanic activity", "coastal erosion", "mineral resources", + "industrial location", "rainfall distribution", "groundwater aquifer" + ).any { EditorialTextMatcher.contains(normalizedText, it) } "economy" -> section.contains("econom") || listOf("econom", "rbi", "inflation", "budget", "fiscal", "monetary", "banking", "taxation", "trade", "employment", "gdp").any { text.contains(it) } "science" -> section.contains("science") || section.contains("technology") || @@ -42,6 +49,7 @@ internal object ExploreFilters { "world", "global", "international" -> article.section.contains("world", true) || article.section.contains("international", true) || text.contains("global") "economy", "economic" -> text.contains("econom") || text.contains("rbi") || text.contains("inflation") "environment", "climate" -> text.contains("environment") || text.contains("climate") || text.contains("biodiversity") + "geography", "geographic", "geographical" -> UpscEngine.classify(article).subject == "Geography" "science", "technology", "tech" -> text.contains("science") || text.contains("technology") || text.contains("space") || text.contains("isro") || text.contains("semiconductor") else -> text.contains(raw.lowercase()) } diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 866569f2..d713f0f2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -67,6 +67,7 @@ import androidx.compose.foundation.layout.requiredHeight import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation.rememberScrollState +import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.verticalScroll import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape @@ -144,6 +145,7 @@ import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription +import androidx.compose.ui.semantics.Role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.selected import androidx.compose.ui.platform.LocalFocusManager @@ -1059,7 +1061,8 @@ private fun ExploreGlassCategories( .background(if (selected) MaterialTheme.colorScheme.primary.copy(alpha = 0.20f) else surfaceTint.copy(alpha = 0.12f)) .border(1.dp, borderColor, chipShape) - .clickable { onCategory(category) } + .selectable(selected = selected, role = Role.Tab) { onCategory(category) } + .heightIn(min = 48.dp) .padding(horizontal = 14.dp, vertical = 8.dp) ) { Text(category, fontSize = 13.sp, @@ -1156,7 +1159,7 @@ private fun ExploreFeed( glassAlpha: Float, dark: Boolean ) { - val categories = listOf("All", "India", "World", "Politics", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") + val categories = listOf("All", "India", "World", "Politics", "Geography", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") val filtered = remember(articles, selectedCategory) { articles.filter { article -> ExploreFilters.matches(article, selectedCategory, "") } } @@ -1211,7 +1214,7 @@ private fun SearchFeed( val eligibleArticles = articles val density = LocalDensity.current val glassSurfaceColor = MaterialTheme.colorScheme.surface - val categories = listOf("All", "India", "World", "Politics", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") + val categories = listOf("All", "India", "World", "Politics", "Geography", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") val subjects = remember(eligibleArticles) { listOf("All") + eligibleArticles.map { UpscEngine.classify(it).subject }.distinct().sorted() } @@ -1842,12 +1845,13 @@ private fun NewsCard( ) { val context = LocalContext.current val density = LocalDensity.current - val relevance = remember(article.id) { UpscEngine.classify(article) } - val syllabusHint = remember(article.id, relevance.gsPaper, relevance.subject, relevance.matchedTerms) { + val relevance = remember(article.id, article.title, article.description) { UpscEngine.classify(article) } + val syllabusHint = remember(article.id, article.title, article.description, relevance.gsPaper, relevance.subject, relevance.matchedTerms, relevance.syllabusLink) { ArticleCardMetaPolicy.syllabusHint( gsPaper = relevance.gsPaper, subject = relevance.subject, - matchedTerms = relevance.matchedTerms + matchedTerms = relevance.matchedTerms, + syllabusLink = relevance.syllabusLink ) } val hasImage = !article.imageUrl.isNullOrBlank() @@ -1860,7 +1864,7 @@ private fun NewsCard( .build() } } - var imagePalette by remember(article.id) { mutableStateOf(null) } + var imagePalette by remember(article.id, article.imageUrl) { mutableStateOf(null) } val palette = imagePalette Box( @@ -1947,7 +1951,7 @@ private fun NewsCard( syllabusHint?.let { hint -> Text(hint, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.SemiBold, - maxLines = 2, overflow = TextOverflow.Ellipsis) + maxLines = 4, overflow = TextOverflow.Ellipsis) } } } diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt index b39f1c8c..cad65ef4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt @@ -63,7 +63,7 @@ object UpscEngine { listOf("federalism", "centre-state", "centre state", "inter-state", "fiscal federal", "governor", "state government")), Rule("constitution", "GS II", "Constitution", "Indian Constitution, its features, amendments, significant provisions and basic structure.", - listOf("constitution", "constitutional", "supreme court", "high court", "parliament", "bill", "ordinance", "judiciary", "election commission", "gst council", "representation of people act", "constitutional body", "statutory body", "regulatory body")), + listOf("constitution", "constitutional", "supreme court", "high court", "parliament", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", "bill passed by lok sabha", "bill passed by rajya sabha", "ordinance", "judiciary", "election commission", "gst council", "representation of people act", "constitutional body", "statutory body", "regulatory body")), Rule("governance", "GS II", "Governance", "Government policies, interventions, transparency, accountability and e-governance.", listOf("governance", "scheme", "policy", "public service", "accountability", "transparency", "welfare", "social justice", "panchayat", "municipal corporation", "right to information", "rti", "social audit", "direct benefit transfer", "lokpal", "comptroller and auditor general", "central vigilance commission", "civil services reform", "film certification", "cinematograph act", "censor board", "central board of film certification", "broadcasting regulation", "media regulation", "ott regulation", "copyright act", "press freedom", "sports governance", "anti-doping", "national sports policy", "sports ministry", "olympic charter", "sports federation reform")), @@ -72,19 +72,22 @@ object UpscEngine { listOf("foreign policy", "bilateral", "bilateral relations", "diplomacy", "india-us", "india china", "united nations", "treaty", "international treaty", "geopolitics", "geopolitical")), Rule("economy", "GS III", "Indian Economy", "Indian economy, mobilisation of resources, growth, development and employment.", - listOf("economy", "inflation", "gdp", "fiscal", "monetary", "budget", "tax", "taxation", "trade", "employment", "unemployment", "rbi", "reserve bank", "repo rate", "banking", "banking sector", "banking regulation", "current account deficit", "financial inclusion", "non performing assets", "payment system", "gst", "goods and services tax", "union budget", "government budgeting", "fiscal responsibility", "trade agreement", "free trade agreement", "world trade organization", "wto", "foreign exchange reserves", "employment guarantee", "unemployment rate", "labour code", "labor code", "labour force participation", "plfs")), + listOf("economy", "inflation", "gdp", "finance bill", "fiscal", "monetary", "budget", "tax", "taxation", "trade", "employment", "unemployment", "rbi", "reserve bank", "repo rate", "banking", "banking sector", "banking regulation", "current account deficit", "financial inclusion", "non performing assets", "payment system", "gst", "goods and services tax", "union budget", "government budgeting", "fiscal responsibility", "trade agreement", "free trade agreement", "world trade organization", "wto", "foreign exchange reserves", "employment guarantee", "unemployment rate", "labour code", "labor code", "labour force participation", "plfs")), Rule("agriculture", "GS III", "Agriculture", "Major crops, irrigation, agricultural marketing, e-technology and food security.", listOf("agriculture", "agricultural", "farmer", "crop", "irrigation", "food security", "public distribution system", "fertiliser", "fertiliser subsidy", "msp", "minimum support price", "crop insurance", "agricultural marketing", "food processing", "land reforms")), + Rule("geography", "GS I", "Geography", + "Salient features of physical geography; distribution of key natural resources; factors responsible for the location of industries; important geophysical phenomena and changes in critical geographical features.", + listOf("physical geography", "world geography", "monsoon", "river basin", "river systems", "glacier", "ice cap", "ice caps", "ocean current", "tectonic plate", "plate boundary", "earthquake", "tsunami", "cyclone", "volcano", "volcanoes", "volcanic activity", "coastal erosion", "natural resource distribution", "resource distribution", "mineral resources", "industrial location", "location of industries", "rainfall distribution", "groundwater aquifer", "geomorphology", "landform", "geophysical phenomena", "weathering", "desertification")), Rule("environment", "GS III", "Environment", "Conservation, environmental pollution and degradation, environmental impact assessment.", listOf("climate", "environment", "biodiversity", "pollution", "forest", "wildlife", "emission", "renewable energy", "sustainability", "greenhouse gas", "environmental impact assessment", "air pollution", "water pollution", "climate change", "forest conservation", "wildlife protection")), Rule("disaster-management", "GS III", "Disaster Management", "Disaster and disaster management.", - listOf("disaster management", "earthquake", "cyclone", "flood", "drought", "landslide", "heatwave", "early warning system")), + listOf("disaster management", "earthquake", "cyclone", "flood", "drought", "landslide", "heatwave", "heat wave", "heat action plan", "heat wave action plan", "early warning system")), Rule("science-tech", "GS III", "Science & Technology", "Science and technology developments and applications in everyday life.", - listOf("artificial intelligence", "technology", "semiconductor", "space", "isro", "biotechnology", "quantum", "cyber", "digital", "genome", "satellite launch", "data protection", "deepfake", "digital public infrastructure")), + listOf("artificial intelligence", "technology", "semiconductor", "photovoltaic", "solar cell", "thin film", "space", "isro", "biotechnology", "quantum", "cyber", "digital", "genome", "satellite launch", "data protection", "deepfake", "digital public infrastructure")), Rule("security", "GS III", "Internal Security", "Internal security, cyber security, border management and extremism.", listOf("security", "terrorism", "cybersecurity", "cyber security", "border", "defence", "military", "insurgency", "left wing extremism")), diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt index 4dd61aa9..a151fc57 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt @@ -11,15 +11,18 @@ package com.mangoloads.currentlens internal object UpscFeedPolicy { private val noiseTerms = listOf( "ranbir kapoor", "salman khan", "celebrity", "celebrity news", - "box office", "box-office", "opening weekend", "entertainment", - "film", "movie", "cinema", "actor", "actress", "trailer", "teaser", + "box office", "box-office", "opening weekend", "entertainment", "film", + "movie", "cinema", "actor", "actress", "trailer", "teaser", "reality show", "reality tv", "reality television", "contestant", "bigg boss", "tv show", "tv series", "television show", "television series", "series premiere", "season premiere", "season finale", "show promotion", "cast announcement", "match result", "scorecard", "live score", "red carpet", "paparazzi", "celebrity gossip", "film review", "movie review", "streaming release", "cricket", "ipl", "football match", "match highlights", - "sports score", "transfer window", "player signs", "tournament result", "league table" + "sports score", "transfer window", "player signs", "tournament result", "league table", + "final score", "match score", "points table", "league standings", "medal tally", + "viral challenge", "social media trend", "trending now", "internet sensation", + "meme", "memes", "influencer feud", "influencer drama" ) private val policyExceptions = listOf( @@ -49,7 +52,9 @@ internal object UpscFeedPolicy { "gdp", "fiscal deficit", "monetary policy", "current account deficit", "financial inclusion", "banking sector", "banking regulation", "non performing assets", "payment system", "gst", "taxation", - "union budget", "government budgeting", "trade agreement", + "union budget", "government budgeting", "finance bill", "money bill", "amendment bill", + "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", + "bill passed by lok sabha", "bill passed by rajya sabha", "trade agreement", "free trade agreement", "world trade organization", "foreign exchange reserves", "employment guarantee", "unemployment rate", "labour code", "labor code", "labour force participation", "plfs", @@ -76,7 +81,14 @@ internal object UpscFeedPolicy { "direct benefit transfer", "public service delivery", "lokpal", "comptroller and auditor general", "central vigilance commission", "disaster management", "earthquake", "cyclone", "flood", "drought", - "landslide", "heatwave" + "landslide", "heatwave", "heat wave", "heat action plan", "heat wave action plan", + "physical geography", "monsoon", "river basin", "river systems", "glacier", + "ice cap", "ocean current", "tectonic plate", "plate boundary", + "tsunami", "volcano", "volcanoes", "volcanic activity", "coastal erosion", + "natural resource distribution", "resource distribution", "mineral resources", + "industrial location", "location of industries", "rainfall distribution", + "groundwater aquifer", "geomorphology", "landform", "geophysical phenomena", + "weathering", "desertification" ) fun shouldInclude(article: Article): Boolean { @@ -89,8 +101,12 @@ internal object UpscFeedPolicy { val hasPolicyException = policyExceptions.any { EditorialTextMatcher.contains(title, it) } && policyActionTerms.any { EditorialTextMatcher.contains(title, it) } + // Film promotion stays noise; only a clearly technical thin-film solar headline is exempt. + val hasThinFilmScienceException = + EditorialTextMatcher.contains(title, "thin film") && + listOf("photovoltaic", "solar cell").any { EditorialTextMatcher.contains(title, it) } - if (hasNoise && !hasPolicyException) return false + if (hasNoise && !hasPolicyException && !hasThinFilmScienceException) return false val relevance = UpscEngine.classify(article) if (relevance.gsPaper == "Unmapped" || relevance.matchedTerms.isEmpty()) return false diff --git a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt new file mode 100644 index 00000000..a052e17e --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt @@ -0,0 +1,113 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +/** + * Synthetic editorial fixtures only; these are not verbatim news stories or UPSC PYQs. + * They guard both missed syllabus topics and entertainment/viral false positives. + */ +class EditorialConsolidationRegressionTest { + private fun article(title: String, description: String = "", section: String = "India") = Article( + id = title, + title = title, + description = description, + url = "https://example.test/" + title.hashCode(), + source = "Test", + section = section, + published = "2026-11-06T10:00:00Z" + ) + + @Test + fun physicalGeographySignalsMapAndEnterEditorialFeed() { + val story = article("Monsoon onset shifts across the river basin", "Rainfall distribution changes across the region") + val relevance = UpscEngine.classify(story) + assertEquals("GS I", relevance.gsPaper) + assertEquals("Geography", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + assertTrue(ExploreFilters.matchesCategory(story, "Geography")) + } + + @Test + fun thinFilmPhotovoltaicTechnologyIsRetainedDespiteFilmNoiseTerm() { + val story = article("Thin-film photovoltaic solar cells improve conversion efficiency") + val relevance = UpscEngine.classify(story) + assertEquals("GS III", relevance.gsPaper) + assertEquals("Science & Technology", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun genericFilmPromotionWithIncidentalClimateTermsIsSuppressed() { + val story = article("New film explores climate change in the Himalayas") + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun viralChallengeWithIncidentalBiodiversityTermsIsSuppressed() { + val story = article("Viral challenge trends online", "The clip uses biodiversity and forest imagery") + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun routineSportsScoreIsSuppressed() { + val story = article("India cricket final score and match highlights", "Full scorecard and league table") + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun financeBillMapsToGsThreeEconomy() { + val story = article("Finance Bill changes direct tax provisions") + val relevance = UpscEngine.classify(story) + assertEquals("GS III", relevance.gsPaper) + assertEquals("Indian Economy", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun namedPersonWithBillInNameDoesNotMapToConstitution() { + val story = article("Bill Gates visits a local community", "A philanthropic foundation event") + assertEquals("Unmapped", UpscEngine.classify(story).gsPaper) + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun specificParliamentaryBillPhraseMapsToConstitution() { + val story = article("Bill introduced in Lok Sabha to amend a constitutional provision") + val relevance = UpscEngine.classify(story) + assertEquals("GS II", relevance.gsPaper) + assertEquals("Constitution", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun spacedHeatWaveActionPlanMapsToDisasterManagement() { + val story = article("NDMA issues heat wave action plan guidelines") + val relevance = UpscEngine.classify(story) + assertEquals("GS III", relevance.gsPaper) + assertEquals("Disaster Management", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun ndmaNameAloneDoesNotQualifyAdministrativeStory() { + val story = article("NDMA announces routine staffing and office administration changes") + assertEquals("Unmapped", UpscEngine.classify(story).gsPaper) + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun syllabusHintShowsSpecificThemeRatherThanOnlyKeywordSignals() { + val hint = ArticleCardMetaPolicy.syllabusHint( + gsPaper = "GS I", + subject = "Geography", + matchedTerms = listOf("monsoon", "river basin"), + syllabusLink = "Physical geography; distribution of key natural resources and geophysical phenomena." + ) + assertTrue(hint!!.contains("GS I")) + assertTrue(hint.contains("Geography")) + assertTrue(hint.contains("Syllabus: Physical geography")) + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/GeographyEditorialCoverageTest.kt b/app/src/test/java/com/mangoloads/currentlens/GeographyEditorialCoverageTest.kt new file mode 100644 index 00000000..bc8798cc --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/GeographyEditorialCoverageTest.kt @@ -0,0 +1,85 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class GeographyEditorialCoverageTest { + private fun article(title: String, description: String, section: String = "India") = Article( + id = title, + title = title, + description = description, + url = "https://example.test/" + title.hashCode(), + source = "Test", + section = section, + published = "2026-11-03T10:00:00Z" + ) + + @Test + fun previouslyMissedPhysicalGeographyStoryMapsToGsOneAndPassesEligibility() { + val story = article( + "Monsoon onset shifts across the Indo-Gangetic plain", + "IMD tracks rainfall distribution and changing river basin flows." + ) + + val relevance = UpscEngine.classify(story) + + assertEquals("GS I", relevance.gsPaper) + assertEquals("Geography", relevance.subject) + assertTrue(relevance.matchedTerms.containsAll(listOf("monsoon", "rainfall distribution", "river basin"))) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun entertainmentNoiseStillOverridesIncidentalGeographyTerms() { + val story = article( + "Film trailer celebrates Himalayan glaciers", + "The movie uses glacier retreat and river basin imagery in a fictional landscape.", + "Entertainment" + ) + + assertEquals("Geography", UpscEngine.classify(story).subject) + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun volcanoesAreNotDroppedBetweenGeographyClassificationAndFeedEligibility() { + val story = article( + "Volcanoes erupt after renewed tectonic activity", + "Scientists monitor ash plumes and changes around the volcanic region." + ) + + val relevance = UpscEngine.classify(story) + + assertEquals("GS I", relevance.gsPaper) + assertEquals("Geography", relevance.subject) + assertTrue(relevance.matchedTerms.contains("volcanoes")) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun geographyCategoryAndSearchAreWiredToTheGsOneMapping() { + val story = article( + "Monsoon onset shifts across the Indo-Gangetic plain", + "Rainfall distribution and river basin flows are changing." + ) + + assertTrue(ExploreFilters.matchesCategory(story, "Geography")) + assertTrue(ExploreFilters.matches(story, "Geography", "GS1, geography")) + assertFalse(ExploreFilters.matchesCategory(story, "Science")) + } + + @Test + fun cardExplainsTheIndicativeSyllabusConnection() { + assertEquals( + "Indicative · GS I · Geography\nSignals: monsoon, river basin\nSyllabus: Salient features of physical geography and distribution of key natural resources.", + ArticleCardMetaPolicy.syllabusHint( + gsPaper = "GS I", + subject = "Geography", + matchedTerms = listOf("monsoon", "river basin", "rainfall distribution"), + syllabusLink = "Salient features of physical geography and distribution of key natural resources." + ) + ) + } +} diff --git a/docs/UPSC_EDITORIAL_BASELINE.md b/docs/UPSC_EDITORIAL_BASELINE.md new file mode 100644 index 00000000..c5440c87 --- /dev/null +++ b/docs/UPSC_EDITORIAL_BASELINE.md @@ -0,0 +1,52 @@ +# UPSC editorial baseline + +**Snapshot:** 6 November 2026 + +## Official syllabus + +Use the current UPSC Civil Services Examination 2026 notice, **Notice No. 05/2026-CSE, Section III**, as the syllabus source of truth: + +- [UPSC CSE 2026 examination notice (PDF)](https://www.upsc.gov.in/sites/default/files/Notif-CSP-2026-Engl-060226Rev.pdf) +- [UPSC CSE 2026 examination page](https://www.upsc.gov.in/examinations/Civil%20Services%20%28Preliminary%29%20Examination%2C%202026) + +For topical current-affairs mapping, the relevant baseline includes Prelims General Studies Paper I and Mains General Studies Papers I–IV. Prelims General Studies Paper II (CSAT) remains part of the examination but is an aptitude paper, not a topical-news classification target. + +The GS I geography scope explicitly includes physical geography, distribution of key natural resources, location factors for industries, geophysical phenomena, and changes in critical geographical features. The Geography rule in CurrentLens is intended to cover these syllabus themes without treating a generic place-name or a broad publisher section as sufficient evidence. + +## Official previous-year question-paper window + +The latest ten official CSE paper years available at this snapshot are **2017–2026 inclusive**: + +- [UPSC Previous Year Question Papers — current page](https://www.upsc.gov.in/examinations/previous-question-papers) +- [UPSC Previous Year Question Papers — archives](https://www.upsc.gov.in/examinations/previous-question-papers/archives) + +Use Prelims GS Paper I and Mains GS Papers I–IV from this window as the topical coverage reference. The official 2026 page lists Prelims GS Papers I–II and Mains GS Papers I–IV; the archive lists the earlier CSE years through 2017. + +This is a coverage baseline, **not** a frequency-weighted prediction model. The current keyword rules have not been statistically validated against all questions in the ten-year corpus. Do not describe a matched-term count as a relevance score, probability, validated ranking, or prediction of a future UPSC question. + +## Editorial decision contract + +1. A default-feed item must map to a defensible GS paper and a named syllabus theme. +2. The card exposes the matched RSS terms and the syllabus connection as an **indicative reason**, not as proof that the full article is relevant. +3. Entertainment, celebrity, box-office, reality-show, routine sports and generic viral noise is excluded unless the headline itself identifies a concrete law, regulatory action, institutional decision or policy change. +4. Publisher RSS titles, excerpts, publication dates and feed URLs are publisher-supplied metadata. They are **not** primary-source corroboration. +5. Verify material claims against the original public document. CurrentLens does not yet attach an independently verified official-source document to each publisher report. +6. A question is labelled an official PYQ only after its year, paper and official UPSC source have been verified. Original practice prompts remain labelled as original or PYQ-style. + +## Labelled editorial fixtures + +The unit-test fixtures are synthetic examples designed to expose classification errors; they are **not** verbatim UPSC questions. + +| Label | Example | Expected decision | Reason | +|---|---|---|---| +| Previously missed positive | “Monsoon onset shifts across the Indo-Gangetic plain”; excerpt mentions rainfall distribution and river-basin flows | Include — GS I, Geography | Physical geography and changing water systems are explicit GS I syllabus themes | +| Positive | “RBI holds repo rate amid inflation concerns” | Include — GS III, Indian Economy | Monetary policy, repo rate and inflation are specific economy signals | +| False-positive rejection | “Film trailer celebrates Himalayan glaciers”; excerpt mentions glacier and river-basin imagery | Exclude | Entertainment noise in the headline overrides incidental geography words in the excerpt | +| False-positive rejection | Generic consumer-technology trend story in an “UPSC” publisher section | Exclude | A broad section label and generic technology wording do not establish a specific syllabus theme | +| False-positive rejection | Celebrity film-release story whose excerpt merely mentions film-certification rules | Exclude | A policy exception must be established by a concrete action in the headline itself | + +The fixtures are regression checks for this deterministic rule set. They do not establish precision/recall, validate a score, or predict examination questions. + +## Source-provenance limitation + +The current RSS registry is publisher-led (The Hindu, Indian Express, BBC, DW and Al Jazeera). The stored `feedUrl` records which publisher feed supplied an item; it does not prove that the report is supported by PIB, the Gazette of India, a ministry, Parliament, PRS, RBI, the Supreme Court or a statutory/regulatory body. Do not display publisher RSS metadata as an official primary source. Official-source feeds and per-story corroboration require endpoint validation and an explicit provenance model before being presented as verified. From 94bce18f5ca5919ad3a10608fc12cb3d04dad967 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:45:43 +0530 Subject: [PATCH 080/175] fix: preserve exact saved/read variants and update syllabus tests --- .../currentlens/ArticleUrlIdentityPolicy.kt | 10 ++++++---- .../currentlens/ArticleCardMetaPolicyTest.kt | 11 ++++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt index 7f64410d..a613a9e5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleUrlIdentityPolicy.kt @@ -74,8 +74,10 @@ internal object ArticleUrlIdentityPolicy { bookmarkedUrls: Set, readUrls: Set = emptySet() ): List
{ - val bookmarkedKeys = bookmarkedUrls.mapTo(HashSet(), ::key) - val readKeys = readUrls.mapTo(HashSet(), ::key) + // Exact URL membership matters: canonical identity membership would mark every + // tracking-parameter variant as bookmarked/read and let the newer one win by date. + val bookmarkedVariants = bookmarkedUrls + val readVariants = readUrls data class Candidate( val article: Article, @@ -91,8 +93,8 @@ internal object ArticleUrlIdentityPolicy { Candidate( article = article, identity = urlKey.ifBlank { article.id.ifBlank { article.title } }, - bookmarked = urlKey.isNotBlank() && urlKey in bookmarkedKeys, - previouslyRead = urlKey.isNotBlank() && urlKey in readKeys, + bookmarked = article.url in bookmarkedVariants, + previouslyRead = article.url in readVariants, publishedAt = article.publishedAtMillis ?: Long.MIN_VALUE, originalIndex = index ) diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt index add343bf..47197bcf 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt @@ -12,20 +12,21 @@ class ArticleCardMetaPolicyTest { ArticleCardMetaPolicy.syllabusHint( gsPaper = "GS III", subject = "Indian Economy", - matchedTerms = listOf("rbi", "inflation", "monetary") + matchedTerms = listOf("rbi", "inflation", "monetary"), + syllabusLink = "Indian economy; mobilisation of resources, growth and development." ) ) } @Test fun hidesUnmappedAndNegativeClassifierStates() { - assertNull(ArticleCardMetaPolicy.syllabusHint("Unmapped", "Unmapped", emptyList())) - assertNull(ArticleCardMetaPolicy.syllabusHint("GS II", "Governance", emptyList())) + assertNull(ArticleCardMetaPolicy.syllabusHint("Unmapped", "Unmapped", emptyList(), "No syllabus match")) + assertNull(ArticleCardMetaPolicy.syllabusHint("GS II", "Governance", emptyList(), "Governance and accountability")) } @Test fun hidesHintsWhenPaperOrSubjectIsMissing() { - assertNull(ArticleCardMetaPolicy.syllabusHint(" ", "Governance", listOf("law"))) - assertNull(ArticleCardMetaPolicy.syllabusHint("GS II", "", listOf("law"))) + assertNull(ArticleCardMetaPolicy.syllabusHint(" ", "Governance", listOf("law"), "Governance")) + assertNull(ArticleCardMetaPolicy.syllabusHint("GS II", "", listOf("law"), "Governance")) } } From 88b0fdf5ed49552820bdfeffb1619c67e803aa8a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:46:20 +0530 Subject: [PATCH 081/175] test: assert syllabus rationale in article cards --- .../com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt index 47197bcf..36bde45e 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt @@ -8,7 +8,7 @@ class ArticleCardMetaPolicyTest { @Test fun showsTheGsMappingAndConcreteMatchedSignals() { assertEquals( - "Indicative · GS III · Indian Economy\nSignal: rbi, inflation", + "Indicative · GS III · Indian Economy\nSignals: rbi, inflation\\nSyllabus: Indian economy; mobilisation of resources, growth and development.", ArticleCardMetaPolicy.syllabusHint( gsPaper = "GS III", subject = "Indian Economy", From f031bf21229f43a992384cc23fa0f4da57e547a1 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:48:34 +0530 Subject: [PATCH 082/175] fix: finish syllabus metadata and thin-film feed eligibility --- app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt | 2 +- .../com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt index a151fc57..902144c3 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt @@ -88,7 +88,7 @@ internal object UpscFeedPolicy { "natural resource distribution", "resource distribution", "mineral resources", "industrial location", "location of industries", "rainfall distribution", "groundwater aquifer", "geomorphology", "landform", "geophysical phenomena", - "weathering", "desertification" + "weathering", "desertification", "photovoltaic", "solar cell", "thin film" ) fun shouldInclude(article: Article): Boolean { diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt index 36bde45e..c20bcc3c 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleCardMetaPolicyTest.kt @@ -8,7 +8,7 @@ class ArticleCardMetaPolicyTest { @Test fun showsTheGsMappingAndConcreteMatchedSignals() { assertEquals( - "Indicative · GS III · Indian Economy\nSignals: rbi, inflation\\nSyllabus: Indian economy; mobilisation of resources, growth and development.", + "Indicative · GS III · Indian Economy\nSignals: rbi, inflation\nSyllabus: Indian economy; mobilisation of resources, growth and development.", ArticleCardMetaPolicy.syllabusHint( gsPaper = "GS III", subject = "Indian Economy", From d80916691eb5e72ee5448bd543433cdabe2a1e5a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 08:54:32 +0530 Subject: [PATCH 083/175] feat: hide Reader glass chrome during downward reading scroll --- .../mangoloads/currentlens/MainActivity.kt | 142 ++++++++++++++---- .../currentlens/ReaderChromePolicy.kt | 43 ++++++ .../currentlens/ReaderChromePolicyTest.kt | 43 ++++++ 3 files changed, 201 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d713f0f2..ecaf0fc1 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -15,6 +15,7 @@ import android.view.MenuItem import android.view.MotionEvent import android.view.View import android.view.ViewConfiguration +import android.view.accessibility.AccessibilityManager import android.os.SystemClock import android.webkit.WebResourceRequest import android.webkit.CookieManager @@ -1483,7 +1484,7 @@ private fun SearchMorphField( IconButton( onClick = onClear, enabled = enabled, - modifier = Modifier.size(38.dp).graphicsLayer { alpha = progress } + modifier = Modifier.size(48.dp).graphicsLayer { alpha = progress } ) { Icon( Icons.Outlined.Close, @@ -2452,6 +2453,11 @@ private fun ReaderScreen( var fontSize by remember(article.url) { mutableIntStateOf(20) } var completionDismissed by remember(article.url) { mutableStateOf(false) } var selectionActionModeActive by remember(article.url) { mutableStateOf(false) } + var readerChromeVisible by remember(article.url) { mutableStateOf(true) } + val imeVisible = WindowInsets.ime.getBottom(LocalDensity.current) > 0 + val accessibilityEnabled = context.getSystemService(AccessibilityManager::class.java)?.isEnabled == true + val readerChromePinned = activeWord != null || selectionActionModeActive || imeVisible || accessibilityEnabled + val readerChromeMotionMs = if (ValueAnimator.areAnimatorsEnabled()) 160 else 0 LaunchedEffect(article.url) { extracting = true @@ -2483,29 +2489,39 @@ private fun ReaderScreen( } Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { - ReaderGlassToolbar( - article = article, - sourceStatus = readerSourceStatus, - backdrop = backdrop, - glassAlpha = glassAlpha, - dark = dark, - fontSize = fontSize, - onBack = { - readerWebViewHolder.value?.flushReadingPosition() - onBack() - }, - onFontSizeChange = { fontSize = it } - ) - if (savedReadingProgress > 0.005f && !reachedBottom) { - Box( - Modifier.fillMaxWidth().padding(horizontal = 18.dp, vertical = 2.dp) - .height(2.dp).clip(CircleShape) - .background(MaterialTheme.colorScheme.outline.copy(alpha = 0.18f)) - ) { - Box( - Modifier.fillMaxWidth(savedReadingProgress.coerceIn(0f, 1f)) - .fillMaxSize().background(MaterialTheme.colorScheme.primary) + AnimatedVisibility( + visible = readerChromeVisible, + enter = fadeIn(animationSpec = tween(readerChromeMotionMs)) + + slideInVertically(animationSpec = tween(readerChromeMotionMs)) { -it / 4 }, + exit = fadeOut(animationSpec = tween(readerChromeMotionMs)) + + slideOutVertically(animationSpec = tween(readerChromeMotionMs)) { -it / 4 } + ) { + Column { + ReaderGlassToolbar( + article = article, + sourceStatus = readerSourceStatus, + backdrop = backdrop, + glassAlpha = glassAlpha, + dark = dark, + fontSize = fontSize, + onBack = { + readerWebViewHolder.value?.flushReadingPosition() + onBack() + }, + onFontSizeChange = { fontSize = it } ) + if (savedReadingProgress > 0.005f && !reachedBottom) { + Box( + Modifier.fillMaxWidth().padding(horizontal = 18.dp, vertical = 2.dp) + .height(2.dp).clip(CircleShape) + .background(MaterialTheme.colorScheme.outline.copy(alpha = 0.18f)) + ) { + Box( + Modifier.fillMaxWidth(savedReadingProgress.coerceIn(0f, 1f)) + .fillMaxSize().background(MaterialTheme.colorScheme.primary) + ) + } + } } } if (extracting || (!pageLoaded && (extractedHtml != null || fallbackToPublisher))) androidx.compose.material3.LinearProgressIndicator(Modifier.fillMaxWidth()) @@ -2576,6 +2592,10 @@ private fun ReaderScreen( savedReadingProgress = progress onSaveReaderPosition(article.url, progress) } + webView.onReaderChromeVisibilityChanged = { visible -> + readerChromeVisible = visible + } + webView.setReaderChromePinned(readerChromePinned) webView.onReachedBottom = { webView.markReadingPositionCompleted() onClearReaderPosition(article.url) @@ -2718,7 +2738,7 @@ private fun ReaderScreen( } } } - if (fallbackToPublisher && !extracting) { + if (readerChromeVisible && fallbackToPublisher && !extracting) { Row( Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 5.dp), verticalAlignment = Alignment.CenterVertically @@ -2734,12 +2754,17 @@ private fun ReaderScreen( } } } - if (ReaderChromePolicy.shouldShowCompletion( + AnimatedVisibility( + visible = readerChromeVisible && ReaderChromePolicy.shouldShowCompletion( reachedBottom = reachedBottom, definitionOpen = activeWord != null, dismissed = completionDismissed, selectionActive = selectionActionModeActive - ) + ), + enter = fadeIn(animationSpec = tween(readerChromeMotionMs)) + + slideInVertically(animationSpec = tween(readerChromeMotionMs)) { it / 4 }, + exit = fadeOut(animationSpec = tween(readerChromeMotionMs)) + + slideOutVertically(animationSpec = tween(readerChromeMotionMs)) { it / 4 } ) { PrismalGlassSurface( backdrop = backdrop, @@ -2918,6 +2943,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) var allowReaderNavigation: (String) -> Boolean = { false } var onOpenPublisherLink: (String) -> Unit = {} var onReadingProgressChanged: (Float) -> Unit = {} + var onReaderChromeVisibilityChanged: (Boolean) -> Unit = {} var selectionBridgeEnabled: Boolean = false set(value) { if (field != value) { @@ -2936,6 +2962,43 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) private var stableRestoreSamples = 0 private var restoringReadingPosition = false private var readingPositionCompleted = false + private var readerChromeVisible = true + private var readerChromePinned = false + private var readerChromeScrollState = ReaderChromeScrollState() + private var pendingReaderChromeHide: Runnable? = null + + fun setReaderChromePinned(pinned: Boolean) { + if (readerChromePinned == pinned) return + readerChromePinned = pinned + readerChromeScrollState = ReaderChromeScrollState() + if (pinned) { + cancelPendingReaderChromeHide() + setReaderChromeVisible(true) + } + } + + private fun setReaderChromeVisible(visible: Boolean) { + if (readerChromeVisible == visible) return + readerChromeVisible = visible + onReaderChromeVisibilityChanged(visible) + } + + private fun cancelPendingReaderChromeHide() { + pendingReaderChromeHide?.let { removeCallbacks(it) } + pendingReaderChromeHide = null + } + + private fun scheduleReaderChromeHide() { + cancelPendingReaderChromeHide() + val hide = Runnable { + pendingReaderChromeHide = null + if (!readerChromePinned && scrollY > 0 && !restoringReadingPosition) { + setReaderChromeVisible(false) + } + } + pendingReaderChromeHide = hide + postDelayed(hide, ReaderChromePolicy.HIDE_SETTLE_DELAY_MS) + } fun beginArticle(url: String): Boolean { val changed = progressGate.beginArticle(url) @@ -2946,6 +3009,10 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelShortPageEndCheck(resetStability = true) cancelPendingAutoDefine() cancelReadingPositionRestore() + cancelPendingReaderChromeHide() + readerChromeScrollState = ReaderChromeScrollState() + readerChromePinned = false + setReaderChromeVisible(true) readingPositionCompleted = false } return changed @@ -3093,6 +3160,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelReadingPositionRestore() cancelShortPageEndCheck(resetStability = true) cancelPendingAutoDefine() + cancelPendingReaderChromeHide() onSelectionActionModeChanged(false) super.onDetachedFromWindow() } @@ -3303,7 +3371,27 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) override fun onScrollChanged(scrollX: Int, scrollY: Int, oldScrollX: Int, oldScrollY: Int) { super.onScrollChanged(scrollX, scrollY, oldScrollX, oldScrollY) - if (scrollY != oldScrollY) scheduleReadingPositionSave() + val deltaY = scrollY - oldScrollY + if (deltaY != 0) { + scheduleReadingPositionSave() + if (deltaY < 0) cancelPendingReaderChromeHide() + readerChromeScrollState = ReaderChromePolicy.onScroll( + state = readerChromeScrollState, + deltaY = deltaY, + hideThresholdPx = (ReaderChromePolicy.HIDE_THRESHOLD_DP * resources.displayMetrics.density).roundToInt(), + showThresholdPx = (ReaderChromePolicy.SHOW_THRESHOLD_DP * resources.displayMetrics.density).roundToInt(), + pinned = readerChromePinned || restoringReadingPosition, + atTop = scrollY <= 0 + ) + if (readerChromeScrollState.visible) { + cancelPendingReaderChromeHide() + setReaderChromeVisible(true) + } else if (deltaY > 0 && !readerChromePinned && !restoringReadingPosition) { + // Only downward movement can schedule a hide; upward movement cancels it + // immediately and reveals chrome once the smaller threshold is crossed. + scheduleReaderChromeHide() + } + } val fullHeight = (contentHeight * scale).toInt() if (fullHeight > height + 120 && ReaderEndDetector.isAtEnd(fullHeight, height, scrollY) && diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index e5bf1872..a9a09653 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -1,7 +1,50 @@ package com.mangoloads.currentlens +/** Scroll-direction hysteresis state; Compose is notified only when visibility changes. */ +internal data class ReaderChromeScrollState( + val visible: Boolean = true, + val direction: Int = 0, + val accumulatedDeltaPx: Int = 0 +) + /** Small, deterministic policies for Reader controls and completion presentation. */ internal object ReaderChromePolicy { + const val HIDE_THRESHOLD_DP = 24 + const val SHOW_THRESHOLD_DP = 12 + const val HIDE_SETTLE_DELAY_MS = 160L + + /** + * Downward document movement hides chrome after a larger threshold; upward movement + * reveals it after a smaller threshold. Direction changes reset accumulated distance. + * Pinning (selection/definition/IME/accessibility) and returning to the top always reveal. + */ + fun onScroll( + state: ReaderChromeScrollState, + deltaY: Int, + hideThresholdPx: Int, + showThresholdPx: Int, + pinned: Boolean, + atTop: Boolean + ): ReaderChromeScrollState { + if (pinned || atTop) return ReaderChromeScrollState() + if (deltaY == 0) return state + val direction = if (deltaY > 0) 1 else -1 + val magnitude = kotlin.math.abs(deltaY.toLong()).coerceAtMost(Int.MAX_VALUE.toLong()).toInt() + val accumulated = if (state.direction == direction) { + (state.accumulatedDeltaPx.toLong() + magnitude).coerceAtMost(Int.MAX_VALUE.toLong()).toInt() + } else { + magnitude + } + val threshold = (if (direction > 0) hideThresholdPx else showThresholdPx).coerceAtLeast(1) + if (accumulated < threshold) { + return ReaderChromeScrollState( + visible = state.visible, + direction = direction, + accumulatedDeltaPx = accumulated + ) + } + return ReaderChromeScrollState(visible = direction < 0) + } const val MIN_FONT_SIZE_SP = 16 const val MAX_FONT_SIZE_SP = 28 diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt index 5b14c013..f4b24e9a 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -28,4 +28,47 @@ class ReaderChromePolicyTest { assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, true)) assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, false, selectionActive = true)) } + @Test + fun downwardScrollHidesOnlyAfterLargerThreshold() { + var state = ReaderChromeScrollState() + state = ReaderChromePolicy.onScroll(state, 10, 24, 12, pinned = false, atTop = false) + assertTrue(state.visible) + state = ReaderChromePolicy.onScroll(state, 14, 24, 12, pinned = false, atTop = false) + assertFalse(state.visible) + } + + @Test + fun upwardScrollRevealsAfterSmallerThresholdAndDirectionChangeResetsDistance() { + var state = ReaderChromeScrollState(visible = false) + state = ReaderChromePolicy.onScroll(state, 20, 24, 12, pinned = false, atTop = false) + assertFalse(state.visible) + state = ReaderChromePolicy.onScroll(state, -8, 24, 12, pinned = false, atTop = false) + assertFalse(state.visible) + assertEquals(8, state.accumulatedDeltaPx) + state = ReaderChromePolicy.onScroll(state, -4, 24, 12, pinned = false, atTop = false) + assertTrue(state.visible) + } + + @Test + fun pinnedChromeAndFeedTopAlwaysRevealControls() { + val hidden = ReaderChromeScrollState(visible = false, direction = 1, accumulatedDeltaPx = 30) + assertTrue( + ReaderChromePolicy.onScroll(hidden, 4, 24, 12, pinned = true, atTop = false).visible + ) + assertTrue( + ReaderChromePolicy.onScroll(hidden, 4, 24, 12, pinned = false, atTop = true).visible + ) + } + + @Test + fun repeatedSameDirectionBelowThresholdAccumulatesButDirectionChangeResets() { + var state = ReaderChromeScrollState() + state = ReaderChromePolicy.onScroll(state, 10, 24, 12, pinned = false, atTop = false) + state = ReaderChromePolicy.onScroll(state, 8, 24, 12, pinned = false, atTop = false) + assertEquals(18, state.accumulatedDeltaPx) + state = ReaderChromePolicy.onScroll(state, -4, 24, 12, pinned = false, atTop = false) + assertEquals(4, state.accumulatedDeltaPx) + assertEquals(-1, state.direction) + } + } From 050f3ad7fc62b242c58419ee34bd7b54b5f9c8f2 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:01:28 +0530 Subject: [PATCH 084/175] feat: compact feed navigation on scroll --- .../currentlens/FeedNavigationPolicy.kt | 78 ++++ .../mangoloads/currentlens/MainActivity.kt | 419 +++++++++++------- .../currentlens/FeedNavigationPolicyTest.kt | 55 +++ 3 files changed, 382 insertions(+), 170 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt new file mode 100644 index 00000000..2f2621b5 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt @@ -0,0 +1,78 @@ +package com.mangoloads.currentlens + +/** Directional hysteresis state for the one shared home navigation component. */ +internal data class FeedNavigationScrollState( + val compact: Boolean = false, + val direction: Int = 0, + val accumulatedDeltaPx: Int = 0 +) + +/** + * Scroll down through a feed to compact the navigation; scroll up to restore it. + * The larger hide threshold and smaller show threshold avoid flicker around touch slop. + */ +internal object FeedNavigationPolicy { + const val HIDE_THRESHOLD_DP = 44 + const val SHOW_THRESHOLD_DP = 16 + + fun update( + state: FeedNavigationScrollState, + deltaPx: Int, + hideThresholdPx: Int, + showThresholdPx: Int, + eligible: Boolean, + atTop: Boolean + ): FeedNavigationScrollState { + if (!eligible || atTop) return FeedNavigationScrollState() + if (deltaPx == 0) return state + + // Positive nested-scroll deltas mean the list advances down the document. + val direction = if (deltaPx > 0) 1 else -1 + val magnitude = kotlin.math.abs(deltaPx.toLong()) + .coerceAtMost(Int.MAX_VALUE.toLong()).toInt() + val accumulated = if (state.direction == direction) { + (state.accumulatedDeltaPx.toLong() + magnitude) + .coerceAtMost(Int.MAX_VALUE.toLong()).toInt() + } else { + magnitude + } + val threshold = (if (direction > 0) hideThresholdPx else showThresholdPx) + .coerceAtLeast(1) + if (accumulated < threshold) { + return FeedNavigationScrollState( + compact = state.compact, + direction = direction, + accumulatedDeltaPx = accumulated + ) + } + return FeedNavigationScrollState(compact = direction > 0) + } +} + +/** Mutable event accumulator kept outside Compose state; only compact-mode transitions recompose. */ +internal class FeedNavigationScrollTracker { + private var state = FeedNavigationScrollState() + + fun onScroll( + deltaPx: Int, + hideThresholdPx: Int, + showThresholdPx: Int, + eligible: Boolean, + atTop: Boolean = false + ): Boolean { + state = FeedNavigationPolicy.update( + state = state, + deltaPx = deltaPx, + hideThresholdPx = hideThresholdPx, + showThresholdPx = showThresholdPx, + eligible = eligible, + atTop = atTop + ) + return state.compact + } + + fun reset(): Boolean { + state = FeedNavigationScrollState() + return false + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index ecaf0fc1..9d0a381d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -126,6 +126,9 @@ import androidx.compose.runtime.setValue import androidx.compose.runtime.withFrameNanos import androidx.compose.ui.Alignment import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.input.nestedscroll.NestedScrollConnection +import androidx.compose.ui.input.nestedscroll.NestedScrollSource +import androidx.compose.ui.input.nestedscroll.nestedScroll import androidx.compose.ui.geometry.Size import androidx.compose.ui.geometry.CornerRadius import androidx.compose.ui.Modifier @@ -457,6 +460,40 @@ private fun BrrrNewsApp() { val density = LocalDensity.current // WindowInsets.ime is a composable local; capture it here before entering an effect. val imeInsets = WindowInsets.ime + var compactNavigation by remember { mutableStateOf(false) } + val feedNavigationTracker = remember { FeedNavigationScrollTracker() } + val feedNavigationEnabled = selectedArticle == null && !quizMode && !showSettings && + selectedTab in 0..2 && !searchExpanded + val feedNavigationConnection = remember(feedNavigationEnabled) { + object : NestedScrollConnection { + override fun onPostScroll( + consumed: Offset, + available: Offset, + source: NestedScrollSource + ): Offset { + if (!feedNavigationEnabled) return Offset.Zero + // LazyColumn scrolls forward with positive consumed Y; pulling past its + // top edge leaves a negative unconsumed delta. + val atTopEdge = consumed.y == 0f && available.y < 0f + val nextCompact = when { + atTopEdge -> feedNavigationTracker.reset() + consumed.y != 0f -> feedNavigationTracker.onScroll( + deltaPx = consumed.y.roundToInt(), + hideThresholdPx = with(density) { FeedNavigationPolicy.HIDE_THRESHOLD_DP.dp.roundToPx() }, + showThresholdPx = with(density) { FeedNavigationPolicy.SHOW_THRESHOLD_DP.dp.roundToPx() }, + eligible = true + ) + else -> compactNavigation + } + if (nextCompact != compactNavigation) compactNavigation = nextCompact + return Offset.Zero + } + } + } + LaunchedEffect(selectedTab, searchExpanded, selectedArticle?.url, showSettings, quizMode) { + feedNavigationTracker.reset() + compactNavigation = false + } val lifecycleOwner = context as? LifecycleOwner var reduceMotion by remember { mutableStateOf(!ValueAnimator.areAnimatorsEnabled()) } DisposableEffect(lifecycleOwner) { @@ -645,6 +682,7 @@ private fun BrrrNewsApp() { Column( Modifier.fillMaxSize() .then(if (searchExpanded) Modifier.imePadding() else Modifier) + .then(if (feedNavigationEnabled) Modifier.nestedScroll(feedNavigationConnection) else Modifier) .background(if (searchExpanded) Color.Transparent else MaterialTheme.colorScheme.background) ) { when { @@ -760,11 +798,20 @@ private fun BrrrNewsApp() { luminance = glassLuminance.luminance, adaptiveContentColor = glassLuminance.contentColor, reduceMotion = reduceMotion, + compact = compactNavigation && feedNavigationEnabled, + onExpandCompact = { + compactNavigation = false + feedNavigationTracker.reset() + }, morphProgress = if (selectedTab == SearchNavigationPolicy.SEARCH_TAB && searchMorphActive) { searchMorphProgress } else 0f, onSearchAnchor = { searchTabAnchorState.value = it }, onSelect = { tab -> + if (tab != selectedTab) { + compactNavigation = false + feedNavigationTracker.reset() + } val destination = SearchNavigationPolicy.selectTab(tab) selectedTab = destination.selectedTab searchExpanded = destination.searchExpanded @@ -2071,6 +2118,8 @@ private fun GlassTabBar( luminance: Float, adaptiveContentColor: Color, reduceMotion: Boolean, + compact: Boolean, + onExpandCompact: () -> Unit, morphProgress: Float, onSearchAnchor: (Offset) -> Unit, onSelect: (Int) -> Unit @@ -2079,10 +2128,10 @@ private fun GlassTabBar( val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr val animationScope = rememberCoroutineScope() val latestOnSelect = rememberUpdatedState(onSelect) + // These sources are reused by the expanded state; the compact state does not + // read or render the hidden glyph capture or selected droplet. val tabsBackdrop = rememberPrismalGlassLayer() val dropletBackdrop = rememberPrismalMergedSource(backdrop, tabsBackdrop) - tabsBackdrop.readSamplingState() - val barAlpha = SearchMorphGeometryPolicy.tabBarAlpha(morphProgress) val glassTint = if (adaptiveContentColor == Color.Black) Color(0xFFEAF0FA) else Color(0xFF1C2E49) val baseTintAlpha = GlassOpticsPolicy.adaptiveTintAlpha( baseAlpha = glassAlpha * 0.12f, @@ -2090,19 +2139,28 @@ private fun GlassTabBar( minAlpha = 0.035f, maxAlpha = 0.13f ) + val compactTransition = updateTransition(targetState = compact, label = "Feed navigation compact morph") + val compactProgress = compactTransition.animateFloat( + transitionSpec = { if (reduceMotion) snap() else tween(180) }, + label = "Feed navigation compact progress" + ) { if (it) 1f else 0f }.value.coerceIn(0f, 1f) BoxWithConstraints( - modifier = Modifier.fillMaxWidth().height(70.dp), - contentAlignment = Alignment.CenterStart + modifier = Modifier.fillMaxWidth() + .height(70.dp + (54.dp - 70.dp) * compactProgress), + contentAlignment = Alignment.Center ) { - val tabWidthPx = ( - constraints.maxWidth.toFloat() - with(density) { 8.dp.toPx() } - ).div(4f).coerceAtLeast(1f) - val tabWidth = with(density) { tabWidthPx.toDp() } - val contentStartPx = with(density) { 4.dp.toPx() } - val contentHeight = 64.dp + val fullWidth = maxWidth + val compactWidth = 148.dp.coerceAtMost(maxWidth) + val barWidth = fullWidth + (compactWidth - fullWidth) * compactProgress + val barHeight = 70.dp + (54.dp - 70.dp) * compactProgress + val barWidthPx = with(density) { barWidth.toPx() } + val barHeightPx = with(density) { barHeight.toPx() } + val barOffsetXPx = (constraints.maxWidth.toFloat() - barWidthPx) / 2f + val tabWidthPx = (barWidthPx - with(density) { 8.dp.toPx() }).div(4f).coerceAtLeast(1f) + val contentStartPx = barOffsetXPx + with(density) { 4.dp.toPx() } + val contentHeight = 64.dp + (48.dp - 64.dp) * compactProgress val contentHeightPx = with(density) { contentHeight.toPx() } - val barHeightPx = with(density) { 70.dp.toPx() } val dropletWidth = with(density) { GlassTabGeometryPolicy.expandedDimension(tabWidthPx, 12.dp.toPx()).toDp() } @@ -2132,15 +2190,13 @@ private fun GlassTabBar( }, onDrag = { _, delta -> val direction = if (isLtr) 1f else -1f - val next = (targetValue + delta.x / tabWidthPx * direction) - .coerceIn(0f, 3f) + val next = (targetValue + delta.x / tabWidthPx * direction).coerceIn(0f, 3f) if (reduceMotion) snapToValue(next) else updateValue(next) dragHighlightIndex = next.roundToInt().coerceIn(0, 3) } ) } - - LaunchedEffect(selectedTab, reduceMotion) { + LaunchedEffect(selectedTab, reduceMotion, compact) { dragHighlightIndex = null if (reduceMotion) motion.snapToValue(selectedTab.toFloat()) else motion.animateToValue(selectedTab.toFloat()) @@ -2149,7 +2205,6 @@ private fun GlassTabBar( val highlightedIndex = dragHighlightIndex ?: selectedTab val pillPress = GlassOpticsPolicy.interactionProgress(motion.pressProgress, reduceMotion) val pillVelocity = if (reduceMotion) 0f else motion.velocity.coerceIn(-2f, 2f) - val contentTopPx = (barHeightPx - contentHeightPx) / 2f val dropletOptics = GlassOpticsPolicy.droplet(pillPress, reduceMotion) val dropletTint = if (adaptiveContentColor == Color.Black) Color(0xFFE8F1FF) else Color(0xFF1C2E49) val dropletTintAlpha = GlassOpticsPolicy.adaptiveTintAlpha( @@ -2159,196 +2214,220 @@ private fun GlassTabBar( maxAlpha = 0.14f ) - // Reuse Prismal's touch ripple and keep it on the expanded optical droplet. - // The ripple is drawn over the base material; its centre follows the selected tab. val tabRipple = remember(animationScope, tabWidthPx, contentStartPx) { PrismalPressRipple(animationScope) { size, _ -> - val center = GlassTabGeometryPolicy.tabCenterPx( - contentStartPx, motion.value, tabWidthPx - ) + val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) Offset(center, size.height / 2f) } } - // Prismal's pre-33 fallback is a flat white flash, not a shader ripple. - // Keep spring/lens feedback on those devices without that visual regression. val rippleEnabled = GlassOpticsPolicy.rippleEnabled(Build.VERSION.SDK_INT, reduceMotion) - val rippleDrawModifier = if (rippleEnabled) tabRipple.modifier else Modifier - val rippleGestureModifier = if (rippleEnabled) tabRipple.gestureModifier else Modifier - - // The sampled root includes the page background and content, but excludes this - // overlay bar; the tab-content layer is merged only for the selected droplet. - Box( - Modifier.fillMaxSize().graphicsLayer { alpha = barAlpha }.drawPrismalGlass( - backdrop = backdrop, - shape = { PrismalCapsule() }, - effects = { - applyPrismalGlassEffects( - density = density, - adaptiveLuminance = true, - luminance = luminance, - blurRadiusPx = with(density) { 6.dp.toPx() }, - refractionHeightPx = with(density) { 14.dp.toPx() }, - refractionAmountPx = with(density) { 20.dp.toPx() }, - depthEffect = true, - chromaticAberration = 0.015f, - adaptiveTuning = PrismalAdaptiveTuning.Subtle - ) - }, - specular = { - PrismalSpecular.Default.copy( - width = 0.6.dp, - blurRadius = 0.4.dp, - alpha = 0.48f - ) - }, - depthShadow = { - PrismalDepthShadow( - radius = 18.dp, - offset = DpOffset(0.dp, 3.dp), - color = Color.Black.copy(alpha = 0.10f), - alpha = 0.28f - ) - }, - depthInset = { - PrismalDepthInset( - radius = 4.dp, - offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.06f), - alpha = 0.06f - ) - }, - onDrawSurface = { - drawRect(glassTint.copy(alpha = baseTintAlpha)) - } - ) - ) - Box(Modifier.fillMaxSize().clip(PrismalCapsule()).then(rippleDrawModifier)) {} - - CompositionLocalProvider( - LocalPrismalBottomTabHighlightedIndex provides { highlightedIndex } - ) { - // Capture the tab glyphs once as a second source; keep this hidden layer - // out of the accessibility tree so each destination is announced only once. - Row( - Modifier.graphicsLayer { alpha = 0f } - .clearAndSetSemantics {} - .prismalGlassLayer(tabsBackdrop) - .fillMaxSize() - .padding(horizontal = 4.dp, vertical = 3.dp), - verticalAlignment = Alignment.CenterVertically - ) { - GlassTab(0, "Today", Icons.Outlined.Today, onSelect, adaptiveContentColor) - GlassTab(1, "Explore", Icons.Outlined.Explore, onSelect, adaptiveContentColor) - GlassTab(2, "Search", Icons.Outlined.Search, onSelect, adaptiveContentColor) - GlassTab(3, "You", Icons.Outlined.Person, onSelect, adaptiveContentColor) - } - - Row( - Modifier.fillMaxSize() - .padding(horizontal = 4.dp, vertical = 3.dp) - .graphicsLayer { alpha = barAlpha }, - verticalAlignment = Alignment.CenterVertically - ) { - GlassTab(0, "Today", Icons.Outlined.Today, onSelect, adaptiveContentColor) - GlassTab(1, "Explore", Icons.Outlined.Explore, onSelect, adaptiveContentColor) - GlassTab(2, "Search", Icons.Outlined.Search, onSelect, adaptiveContentColor, onSearchAnchor) - GlassTab(3, "You", Icons.Outlined.Person, onSelect, adaptiveContentColor) - } - } - - // The expanded droplet itself is the drag target. Its touch bounds now match - // the refracted rim rather than a narrower, visually detached tab-cell target. + val rippleDrawModifier = if (rippleEnabled && !compact) tabRipple.modifier else Modifier + val rippleGestureModifier = if (rippleEnabled && !compact) tabRipple.gestureModifier else Modifier + val barAlpha = SearchMorphGeometryPolicy.tabBarAlpha(morphProgress) + // One shared Prismal surface changes bounds with the existing bar. No duplicate + // expanded/compact layer is composed; live blur remains restricted to this small control. Box( - Modifier.offset { - val center = GlassTabGeometryPolicy.tabCenterPx( - contentStartPx, motion.value, tabWidthPx - ) - IntOffset( - GlassTabGeometryPolicy.leftPx(center, dropletWidthPx).roundToInt(), - GlassTabGeometryPolicy.topPx(barHeightPx, dropletHeightPx).roundToInt() - ) - } - .size(dropletWidth, dropletHeight) - .graphicsLayer { - alpha = barAlpha - val velocity = (pillVelocity / 10f).coerceIn(-0.2f, 0.2f) - scaleX = GlassTabGeometryPolicy.horizontalScale(restingScaleX, motion.scaleX, velocity) - scaleY = GlassTabGeometryPolicy.verticalScale(restingScaleY, motion.scaleY, velocity) - clip = false - } - .then(rippleGestureModifier) - .then(motion.modifier) - ) { - Box( - Modifier.fillMaxSize().drawPrismalGlass( - backdrop = dropletBackdrop, + Modifier.align(Alignment.Center).width(barWidth).height(barHeight) + .graphicsLayer { alpha = barAlpha } + .drawPrismalGlass( + backdrop = backdrop, shape = { PrismalCapsule() }, effects = { applyPrismalGlassEffects( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { dropletOptics.blurDp.dp.toPx() }, - refractionHeightPx = with(density) { dropletOptics.refractionHeightDp.dp.toPx() }, - refractionAmountPx = with(density) { dropletOptics.refractionAmountDp.dp.toPx() }, + blurRadiusPx = with(density) { (6f - 2f * compactProgress).dp.toPx() }, + refractionHeightPx = with(density) { (14f - 6f * compactProgress).dp.toPx() }, + refractionAmountPx = with(density) { (20f - 10f * compactProgress).dp.toPx() }, depthEffect = true, - chromaticAberration = dropletOptics.chromaticAberration, + chromaticAberration = 0.015f * (1f - compactProgress), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, specular = { PrismalSpecular.Default.copy( - width = 0.7.dp, + width = 0.6.dp, blurRadius = 0.4.dp, - alpha = dropletOptics.specularAlpha, - style = PrismalSpecularStyle.Default( - angle = GlassOpticsPolicy.specularAngle(pillVelocity, reduceMotion) - ) + alpha = 0.48f * (1f - 0.18f * compactProgress) ) }, depthShadow = { PrismalDepthShadow( - radius = 12.dp, - offset = DpOffset(0.dp, 2.dp), - color = Color.Black.copy(alpha = 0.12f), - alpha = dropletOptics.shadowAlpha + radius = 18.dp - 4.dp * compactProgress, + offset = DpOffset(0.dp, 3.dp), + color = Color.Black.copy(alpha = 0.10f), + alpha = 0.28f ) }, depthInset = { PrismalDepthInset( - radius = 5.dp, + radius = 4.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.08f), - alpha = dropletOptics.insetAlpha + color = Color.Black.copy(alpha = 0.06f), + alpha = 0.06f ) }, - onDrawSurface = { - drawRect(dropletTint.copy(alpha = dropletTintAlpha)) - } + onDrawSurface = { drawRect(glassTint.copy(alpha = baseTintAlpha)) } ) + ) + + if (!compact) { + Box( + Modifier.align(Alignment.Center).width(barWidth).height(barHeight) + .clip(PrismalCapsule()).then(rippleDrawModifier) ) - } + tabsBackdrop.readSamplingState() + CompositionLocalProvider( + LocalPrismalBottomTabHighlightedIndex provides { highlightedIndex } + ) { + // Hidden glyph capture is active only in expanded navigation. Compact mode + // draws no glyph source, droplet, or merged-source sampling layer. + Row( + Modifier.align(Alignment.Center).width(barWidth).height(barHeight) + .graphicsLayer { alpha = 0f } + .clearAndSetSemantics {} + .prismalGlassLayer(tabsBackdrop) + .padding(horizontal = 4.dp, vertical = 3.dp), + verticalAlignment = Alignment.CenterVertically + ) { + GlassTab(0, "Today", Icons.Outlined.Today, onSelect, adaptiveContentColor) + GlassTab(1, "Explore", Icons.Outlined.Explore, onSelect, adaptiveContentColor) + GlassTab(2, "Search", Icons.Outlined.Search, onSelect, adaptiveContentColor) + GlassTab(3, "You", Icons.Outlined.Person, onSelect, adaptiveContentColor) + } - val activeGlyph = when (highlightedIndex) { - 0 -> Icons.Outlined.Today - 1 -> Icons.Outlined.Explore - 2 -> Icons.Outlined.Search - else -> Icons.Outlined.Person - } - Box( - Modifier.offset { - val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) - val iconSizePx = with(density) { 29.dp.toPx() } - IntOffset((center - iconSizePx / 2f).roundToInt(), - ((barHeightPx - iconSizePx) / 2f).roundToInt()) + Row( + Modifier.align(Alignment.Center).width(barWidth).height(barHeight) + .padding(horizontal = 4.dp, vertical = 3.dp) + .graphicsLayer { alpha = barAlpha }, + verticalAlignment = Alignment.CenterVertically + ) { + GlassTab(0, "Today", Icons.Outlined.Today, onSelect, adaptiveContentColor) + GlassTab(1, "Explore", Icons.Outlined.Explore, onSelect, adaptiveContentColor) + GlassTab(2, "Search", Icons.Outlined.Search, onSelect, adaptiveContentColor, onSearchAnchor) + GlassTab(3, "You", Icons.Outlined.Person, onSelect, adaptiveContentColor) + } + } + + val dropletTopPx = (barHeightPx - dropletHeightPx) / 2f + Box( + Modifier.offset { + val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) + IntOffset( + GlassTabGeometryPolicy.leftPx(center, dropletWidthPx).roundToInt(), + dropletTopPx.roundToInt() + ) + } + .size(dropletWidth, dropletHeight) + .graphicsLayer { + alpha = barAlpha + val velocity = (pillVelocity / 10f).coerceIn(-0.2f, 0.2f) + scaleX = GlassTabGeometryPolicy.horizontalScale(restingScaleX, motion.scaleX, velocity) + scaleY = GlassTabGeometryPolicy.verticalScale(restingScaleY, motion.scaleY, velocity) + clip = false + } + .then(rippleGestureModifier) + .then(motion.modifier) + ) { + Box( + Modifier.fillMaxSize().drawPrismalGlass( + backdrop = dropletBackdrop, + shape = { PrismalCapsule() }, + effects = { + applyPrismalGlassEffects( + density = density, + adaptiveLuminance = true, + luminance = luminance, + blurRadiusPx = with(density) { dropletOptics.blurDp.dp.toPx() }, + refractionHeightPx = with(density) { dropletOptics.refractionHeightDp.dp.toPx() }, + refractionAmountPx = with(density) { dropletOptics.refractionAmountDp.dp.toPx() }, + depthEffect = true, + chromaticAberration = dropletOptics.chromaticAberration, + adaptiveTuning = PrismalAdaptiveTuning.Subtle + ) + }, + specular = { + PrismalSpecular.Default.copy( + width = 0.7.dp, + blurRadius = 0.4.dp, + alpha = dropletOptics.specularAlpha, + style = PrismalSpecularStyle.Default( + angle = GlassOpticsPolicy.specularAngle(pillVelocity, reduceMotion) + ) + ) + }, + depthShadow = { + PrismalDepthShadow( + radius = 12.dp, + offset = DpOffset(0.dp, 2.dp), + color = Color.Black.copy(alpha = 0.12f), + alpha = dropletOptics.shadowAlpha + ) + }, + depthInset = { + PrismalDepthInset( + radius = 5.dp, + offset = DpOffset(0.dp, 1.dp), + color = Color.Black.copy(alpha = 0.08f), + alpha = dropletOptics.insetAlpha + ) + }, + onDrawSurface = { drawRect(dropletTint.copy(alpha = dropletTintAlpha)) } + ) + ) + } + + val activeGlyph = when (highlightedIndex) { + 0 -> Icons.Outlined.Today + 1 -> Icons.Outlined.Explore + 2 -> Icons.Outlined.Search + else -> Icons.Outlined.Person + } + Box( + Modifier.offset { + val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) + val iconSizePx = with(density) { 29.dp.toPx() } + IntOffset((center - iconSizePx / 2f).roundToInt(), + ((barHeightPx - iconSizePx) / 2f).roundToInt()) + } + .size(29.dp) + .clearAndSetSemantics {}, + contentAlignment = Alignment.Center + ) { + Icon(activeGlyph, contentDescription = null, tint = adaptiveContentColor, + modifier = Modifier.size(29.dp)) + } + } else { + val activeLabel = when (selectedTab) { + 0 -> "Today" + 1 -> "Explore" + 2 -> "Search" + else -> "You" + } + val activeIcon = when (selectedTab) { + 0 -> Icons.Outlined.Today + 1 -> Icons.Outlined.Explore + 2 -> Icons.Outlined.Search + else -> Icons.Outlined.Person + } + Row( + Modifier.align(Alignment.Center).width(barWidth).height(barHeight) + .clip(PrismalCapsule()) + .clickable(onClick = onExpandCompact, role = Role.Button) + .semantics(mergeDescendants = true) { + contentDescription = "$activeLabel navigation, compact. Expand navigation." + } + .padding(horizontal = 18.dp), + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.Center + ) { + Icon(activeIcon, contentDescription = null, tint = adaptiveContentColor, modifier = Modifier.size(20.dp)) + Spacer(Modifier.width(9.dp)) + Text(activeLabel, color = adaptiveContentColor, style = MaterialTheme.typography.labelLarge, + fontWeight = FontWeight.SemiBold, maxLines = 1) } - .size(29.dp) - .clearAndSetSemantics {}, - contentAlignment = Alignment.Center - ) { - Icon(activeGlyph, contentDescription = null, tint = adaptiveContentColor, - modifier = Modifier.size(29.dp)) } } } diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt new file mode 100644 index 00000000..4de872c5 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt @@ -0,0 +1,55 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class FeedNavigationPolicyTest { + @Test + fun downwardFeedScrollCompactsOnlyAfterHysteresisThreshold() { + var state = FeedNavigationScrollState() + state = FeedNavigationPolicy.update(state, 20, 44, 16, eligible = true, atTop = false) + assertFalse(state.compact) + state = FeedNavigationPolicy.update(state, 24, 44, 16, eligible = true, atTop = false) + assertTrue(state.compact) + } + + @Test + fun upwardScrollRestoresWithSmallerThreshold() { + var state = FeedNavigationScrollState(compact = true) + state = FeedNavigationPolicy.update(state, -8, 44, 16, eligible = true, atTop = false) + assertTrue(state.compact) + state = FeedNavigationPolicy.update(state, -8, 44, 16, eligible = true, atTop = false) + assertFalse(state.compact) + } + + @Test + fun directionChangeResetsAccumulatedDistance() { + var state = FeedNavigationScrollState() + state = FeedNavigationPolicy.update(state, 30, 44, 16, eligible = true, atTop = false) + state = FeedNavigationPolicy.update(state, -10, 44, 16, eligible = true, atTop = false) + assertFalse(state.compact) + assertEquals(10, state.accumulatedDeltaPx) + assertEquals(-1, state.direction) + } + + @Test + fun ineligibleScreensAndFeedTopAlwaysExpandNavigation() { + val compact = FeedNavigationScrollState(compact = true, direction = 1, accumulatedDeltaPx = 64) + assertFalse( + FeedNavigationPolicy.update(compact, 10, 44, 16, eligible = false, atTop = false).compact + ) + assertFalse( + FeedNavigationPolicy.update(compact, 10, 44, 16, eligible = true, atTop = true).compact + ) + } + + @Test + fun trackerReportsOnlyCompactStateAndCanReset() { + val tracker = FeedNavigationScrollTracker() + assertFalse(tracker.onScroll(44, 44, 16, eligible = true)) + assertTrue(tracker.onScroll(1, 44, 16, eligible = true)) + assertFalse(tracker.reset()) + } +} From 78d93a42aeb9df85f9443ab2b429c0ad29910448 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:04:42 +0530 Subject: [PATCH 085/175] feat: consolidate feed navigation and adaptive glass contrast --- README.md | 2 +- .../GlassLuminanceActivationPolicy.kt | 11 ++++ .../currentlens/GlassLuminanceProbe.kt | 5 +- .../mangoloads/currentlens/MainActivity.kt | 49 ++++++++++++--- .../GlassLuminanceActivationPolicyTest.kt | 59 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 40 +++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 58 ++++++++++++++---- 7 files changed, 202 insertions(+), 22 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt create mode 100644 docs/BRANCH_CONSOLIDATION.md diff --git a/README.md b/README.md index b381dbf5..b341c127 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ There is no Archive destination and no Saved bottom tab. **Saved** is a section ## Liquid Glass rendering -Navigation and Search share one foreground-only 8×8 luminance probe over a full-width 104 dp band at the bottom of the captured page. The region follows the root content height when the IME opens, so adaptive contrast reflects the scene immediately behind the floating controls rather than averaging unrelated content across the whole screen. Sampling retains PrismalAGSL v1.0.4's 600 ms RenderEffect / 1500 ms legacy cadence and adds no dependency. +Navigation and Search use the existing Prismal background-only root capture and one shared foreground-luminance probe. The probe reads an 8×8 sample from a 104 dp bottom band, which follows the root content edge when the IME opens. It runs only on foreground home surfaces while the feed is idle, pauses during scrolling, Reader, Settings and background operation, and uses a conservative 4 s cadence on Android 12+ / 6 s on older versions. The selected foreground uses linearized sRGB relative luminance. No second backdrop source or per-card sampler is created. Device frame-time and battery impact still require physical-device profiling. ## Personal data and study statistics diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt new file mode 100644 index 00000000..546a1ab5 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt @@ -0,0 +1,11 @@ +package com.mangoloads.currentlens + +/** Prevents the shared glass sampler from running outside visible, idle home surfaces. */ +internal object GlassLuminanceActivationPolicy { + fun shouldSample( + isResumed: Boolean, + readerOpen: Boolean, + settingsOpen: Boolean, + feedScrolling: Boolean = false + ): Boolean = isResumed && !readerOpen && !settingsOpen && !feedScrolling +} diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceProbe.kt b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceProbe.kt index 7b9260d0..38353e55 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceProbe.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceProbe.kt @@ -82,8 +82,9 @@ internal fun rememberBottomBandGlassLuminance( val pixelBuffer = IntArray(probeSizePx * probeSizePx) val probeSize = IntSize(probeSizePx, probeSizePx) val requestedBandHeightPx = with(density) { bandHeight.toPx().roundToInt() } - // Readback captures only 8x8 pixels; lower cadence avoids competing with flings. - val sampleIntervalMs = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) 1500L else 2500L + // Readback captures only 8x8 pixels. Keep a conservative cadence; + // the caller also disables this loop during feed motion and outside home surfaces. + val sampleIntervalMs = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) 4_000L else 6_000L while (isActive) { try { diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 9d0a381d..51489484 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -209,6 +209,8 @@ import java.time.format.DateTimeFormatter import java.util.Locale import kotlin.math.roundToInt import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.Job +import kotlinx.coroutines.delay import kotlinx.coroutines.NonCancellable import kotlinx.coroutines.flow.first import kotlinx.coroutines.launch @@ -461,6 +463,11 @@ private fun BrrrNewsApp() { // WindowInsets.ime is a composable local; capture it here before entering an effect. val imeInsets = WindowInsets.ime var compactNavigation by remember { mutableStateOf(false) } + var feedIsScrolling by remember { mutableStateOf(false) } + val feedScrollSettleJob = remember { arrayOfNulls(1) } + DisposableEffect(Unit) { + onDispose { feedScrollSettleJob[0]?.cancel() } + } val feedNavigationTracker = remember { FeedNavigationScrollTracker() } val feedNavigationEnabled = selectedArticle == null && !quizMode && !showSettings && selectedTab in 0..2 && !searchExpanded @@ -472,6 +479,14 @@ private fun BrrrNewsApp() { source: NestedScrollSource ): Offset { if (!feedNavigationEnabled) return Offset.Zero + if (consumed.y != 0f) { + if (!feedIsScrolling) feedIsScrolling = true + feedScrollSettleJob[0]?.cancel() + feedScrollSettleJob[0] = persistenceScope.launch { + delay(550L) + feedIsScrolling = false + } + } // LazyColumn scrolls forward with positive consumed Y; pulling past its // top edge leaves a negative unconsumed delta. val atTopEdge = consumed.y == 0f && available.y < 0f @@ -493,23 +508,43 @@ private fun BrrrNewsApp() { LaunchedEffect(selectedTab, searchExpanded, selectedArticle?.url, showSettings, quizMode) { feedNavigationTracker.reset() compactNavigation = false + feedIsScrolling = false + feedScrollSettleJob[0]?.cancel() } val lifecycleOwner = context as? LifecycleOwner + var appResumed by remember { + mutableStateOf(lifecycleOwner?.lifecycle?.currentState?.isAtLeast(Lifecycle.State.RESUMED) == true) + } var reduceMotion by remember { mutableStateOf(!ValueAnimator.areAnimatorsEnabled()) } DisposableEffect(lifecycleOwner) { val observer = LifecycleEventObserver { _, event -> - if (event == Lifecycle.Event.ON_RESUME) reduceMotion = !ValueAnimator.areAnimatorsEnabled() + when (event) { + Lifecycle.Event.ON_RESUME -> { + appResumed = true + reduceMotion = !ValueAnimator.areAnimatorsEnabled() + } + Lifecycle.Event.ON_PAUSE, Lifecycle.Event.ON_STOP -> appResumed = false + else -> Unit + } } lifecycleOwner?.lifecycle?.addObserver(observer) onDispose { lifecycleOwner?.lifecycle?.removeObserver(observer) } } - // Theme-derived contrast avoids recurring GPU readback synchronisation during flings. - val glassLuminance = remember(dark) { - GlassLuminanceState(if (dark) 0.08f else 0.92f).also { - it.contentColor = if (dark) Color.White else Color.Black - } - } + // One shared 8x8 bottom-band probe supplies Navigation and Search contrast. + // It pauses outside foreground home surfaces and during feed motion; the readback + // cadence is deliberately conservative to avoid synchronising with active flings. + val glassLuminance = rememberBottomBandGlassLuminance( + enabled = GlassLuminanceActivationPolicy.shouldSample( + isResumed = appResumed, + readerOpen = selectedArticle != null || quizMode, + settingsOpen = showSettings, + feedScrolling = feedIsScrolling + ), + source = backdrop, + isLightTheme = !dark, + bandHeight = 104.dp + ) val todayDate = LocalDate.now(ZoneId.of(INDIA_ZONE)) var feedIndex by remember { mutableStateOf(EditorialFeedIndex(emptyList(), emptyList(), emptyList())) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt new file mode 100644 index 00000000..49ea68af --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt @@ -0,0 +1,59 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class GlassLuminanceActivationPolicyTest { + @Test + fun samplesOnlyOnForegroundIdleHomeSurfaces() { + assertTrue( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = true, + readerOpen = false, + settingsOpen = false + ) + ) + } + + @Test + fun pausesWhenAppIsBackgrounded() { + assertFalse( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = false, + readerOpen = false, + settingsOpen = false + ) + ) + } + + @Test + fun pausesWhileReaderOrSettingsIsVisible() { + assertFalse( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = true, + readerOpen = true, + settingsOpen = false + ) + ) + assertFalse( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = true, + readerOpen = false, + settingsOpen = true + ) + ) + } + + @Test + fun pausesDuringFeedMotion() { + assertFalse( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = true, + readerOpen = false, + settingsOpen = false, + feedScrolling = true + ) + ) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md new file mode 100644 index 00000000..7a35295d --- /dev/null +++ b/docs/BRANCH_CONSOLIDATION.md @@ -0,0 +1,40 @@ +# Black Box Bihar News — branch consolidation record + +**Integration branch:** `black-box-bihar-news` +**Repository:** `Batmancpu/CurrentLens` +**Main SHA at integration start:** `73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Integration source:** PR #16 startup/stability head, which carries the corrected background-only Prismal capture, diagnostics and publisher/network guards. +**Safety:** main remains unchanged. No source branch was deleted. Keep all source branches until the owner has reviewed the integrated branch and its natural CI status. + +## Consolidated work + +| Existing source | Treatment on this branch | +|---|---| +| PR #16 — startup/network/Prismal | Integration ancestor; retains background-only capture, redirect checks, local diagnostics and privacy guards | +| PR #19 — Reader Liquid Glass | Integrated: compact toolbar, Aa controls, progress, completion dock, definition improvements | +| PR #20 — stacked read-only CI | Integrated into the one workflow; source branch retained | +| PR #18 — main read-only CI | Compatible read-only build / isolated main-push release workflow intent ported into the single workflow | +| PR #11 — date/cache/provenance | Selectively ported: original publication timestamp precedence, stale/future/undated cache policy, publisher RSS explicitly labelled secondary | +| PR #12 — Atom alternate links | Selectively ported: HTML alternate destinations, RSS text links, excludes self/enclosure/feed URLs and unsafe schemes | +| PR #17 — RSS tracking dedupe | Selectively ported and improved: canonical comparison while preserving original destination; exact bookmarked/read variant preferred before date | +| PR #8 — off-main persistence | Selectively ported: serialized IO persistence for reading sessions, quiz submissions, read markers and reader-position writes | +| PR #22 — bounded recent read markers | Selectively ported: ordered cap for new markers; legacy unordered set preserved | +| PR #6 — GS I Geography/editorial | Selectively ported and reconciled with #21: Geography mapping/filter, syllabus metadata, content-aware cache invalidation, accessible filters | +| PR #21 — bill/heat-wave editorial | Selectively ported: precise parliamentary bill phrases, Finance Bill GS III, heat-wave variants GS III, NDMA-alone rejection | +| PR #13 — adaptive glass contrast | Selectively integrated with safeguards: shared 8×8 bottom-band probe, idle foreground-home only, 4s/6s cadence, paused during feed motion, Reader, Settings and background | +| Feed-only compact navigation | Added to the same existing GlassTabBar; no second bar or duplicate backdrop. Today/Explore/Search only; You/nested surfaces stay expanded | +| PR #15 — older publisher redirect allowlist | Not copied wholesale: superseded by newer PR #16 per-hop/final host checks and cookie/privacy restrictions; verify current source diff before deletion | +| Old Liquid Glass / v0.3 redesign branches | Not used as baseline; stale. Relevant surviving changes are present in the PR #16/#19 lineage or superseded | + +## Known limits — no “perfect/bug-free” claim + +- The legacy `read_history` SharedPreferences StringSet is unordered and cannot be safely trimmed without a migration. Only new markers are capped to a 5,000-entry ordered supplemental window; total legacy storage is not bounded. +- Article-level primary-source corroboration is not implemented. Publisher RSS remains secondary reporting. The UI must not imply verification against PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court or regulators without a linked source document. +- No physical OPPO Reno10 runtime/logcat/tombstone/Perfetto/screenshot/TalkBack validation is available. Native launch stability, GPU cost, frame jank, memory, thermal and battery effects are not certified. +- Adaptive contrast has a conservative cadence and pauses during motion, but still needs device profiling. +- CI validates Kotlin compilation, JVM tests, APK assembly and artifact upload; it does not prove every app flow or physical-device behaviour. +- No source branch has been deleted or reset. The owner should wait for final branch inventory, PR comparison and exact tested head before deleting source branches. + +## Validation + +The consolidated branch uses the single existing workflow. Build job has read-only permissions; Release write access is isolated to successful main pushes. Integration-branch pushes and pull requests trigger build/test only. No manual dispatch or rerun is used. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a4f4cdd9..24c97a47 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,11 +1,12 @@ # Liquid Glass UI Roadmap -**Status:** Active, incremental implementation -**Feature branch:** `ui/liquid-glass-system-2026-11-07` -**Source branch:** `fix/early-startup-crash-diagnostics-2026-11-06` -**Source SHA at branch creation:** `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` -**Draft PR base:** `fix/early-startup-crash-diagnostics-2026-11-06` (PR #16) -**Baseline check:** source was 57 commits ahead of `main` at `73b8a0d1ba33503fede02db2c3c0af082d724a12`, with zero commits behind. PR #16 is open, draft and unmerged. The source contains the background-only Prismal capture correction; this feature PR intentionally depends on PR #16 until that work is integrated. +**Status:** Consolidated integration branch; incremental validation in progress +**Feature branch:** `black-box-bihar-news` +**Integration base:** PR #16 stability head `6ab1e6a02ac8e91027b21900d64d63b9f2e6a02` +**Current validated Reader/Search head:** `d80916691eb5e72ee5448bd543433cdabe2a1e5a` +**Current feed-navigation head:** `050f3ad7fc62b242c58419ee34bd7b54b5f9c8f2` +**Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Dependency:** the integration branch preserves PR #16's background-only Prismal capture, startup diagnostics and redirect protections. No source branch has been deleted. Keep source branches until final review and test status are confirmed. ## Product and material principles @@ -27,9 +28,9 @@ The complete remote branch inventory contained 19 branches at the start of this - `fix/early-startup-crash-diagnostics-2026-11-06` — PR #16 head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; 57 ahead / 0 behind main. Selected because it contains the latest corrected Prismal capture and launch/privacy work. - `ui/liquid-glass-performance-2026-11-06` — `2e9c7f62ca65a899e18d9026e1535392835b3724`; diverged from PR #16 by 3 unique commits and 75 commits behind. Not used as a base. Its first material/UI commit was merged through PR #3; the Search source-height adjustment is already present in PR #16; the remaining icon-import change is superseded by current imports. - `redesign/v0.3-search-reader` — `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8`; 151 commits behind PR #16. Stale and not used. -- PR #13 / `ui/foreground-adaptive-glass-contrast-2026-11-06` — one unique commit based on older code. It proposes an 8×8 GPU readback every 1.5 seconds on newer Android versions. Not ported: the current PR #16 shell deliberately uses theme-derived contrast to avoid recurring readback synchronization, and no OPPO trace demonstrates that the probe is a net improvement. -- PR #18 / `ci/read-only-pr-validation-isolated-release-write-2026-11-06` — independent workflow-only change. Left untouched; this feature branch does not overwrite its read-only build/release separation proposal. -- PRs #6, #8, #11, #12 and #17 contain independent editorial, persistence, date/provenance, Atom-link and URL-deduplication work. They are not assumed to be included in PR #16 and are not blindly cherry-picked into this UI branch. Review their current heads/dependencies before any future integration. +- PR #13 / `ui/foreground-adaptive-glass-contrast-2026-11-06` — its shared 8×8 bottom-band luminance probe and linear-luminance policy are selectively integrated. The original 1.5 s / 2.5 s cadence was not retained: the consolidated implementation uses 4 s on Android 12+ / 6 s on older Android and suspends sampling during feed motion, Reader, Settings and background operation. It remains one shared root source; device-side jank/battery impact is unverified. +- PR #18 / `ci/read-only-pr-validation-isolated-release-write-2026-11-06` and PR #20 / `ci/stacked-pr-validation-2026-11-07` — their compatible workflow intent is consolidated into the one workflow on `black-box-bihar-news`: read-only build job, separately gated main-push release job, and natural PR validation for main, PR #16 and this integration branch. Source branches are retained. +- PRs #6 and #21 are reconciled into one editorial policy: GS I Geography, Finance Bill / parliamentary bill / heat-wave signals, entertainment and viral/sports false-positive suppression, narrow thin-film science exception, content-aware card metadata and labelled synthetic regression fixtures. PR #8 and #22 are reconciled into off-main local persistence with an ordered 5,000-entry window for new read markers while preserving the legacy unordered set. PR #11, #12 and #17 are selectively ported into the latest redirect-guarded feed code: publication-date precedence/cache/provenance, Atom alternate-link selection, tracking-URL identity and exact bookmark/read-variant preference. These changes were hand-reconciled, not blindly merged. Recheck the entire branch graph, open PRs, merge state and exact source/base SHAs before every subsequent implementation pass. Never reset, force-push, overwrite or discard another branch's commits. @@ -39,9 +40,9 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA |---|---|---|---| | Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Existing Prismal glass; contrast/hierarchy polish remains | | Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Existing Prismal droplet, hidden glyph capture and merged source; no new sampler | -| Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Planned; not implemented | -| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph and clear callback; clear hit target still needs 48dp | -| Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | Existing glass rail; touch-target/semantics polish remains | +| Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; run #184 pending at time of note | +| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph preserved; clear target is 48dp (run #183 passed) | +| Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp minimum and selected-tab semantics integrated with Geography filter | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | | You dashboard | Supporting surfaces | Consistent metric/destination geometry and restrained tint/edge hierarchy | Standard cards; geometry pass remains | | Saved | Interactive controls + editorial content | Clear filters; standard readable saved-story cards | Existing filters/cards; consistency pass remains | @@ -105,3 +106,36 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA 5. Whole-app consistency and measured performance/accessibility pass on representative screens. Do not mark the redesign complete until every screen in the matrix has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. + + +## Consolidation implementation log + +The following work is represented on `black-box-bihar-news`; source PRs/branches remain intact and must not be deleted until final review: + +| Source work | Consolidated treatment | Verification | +|---|---|---| +| PR #16 startup / network / Prismal | Integration ancestor; background-only capture and publisher guards retained | Run #172 baseline passed; prior PR #16 run #167 passed | +| PR #20 + PR #18 workflow | Compatible read-only build / separately gated release workflow combined; branch PR validation enabled | Run #172 onward natural pushes; run #183 passed | +| PR #19 Reader Liquid Glass | Reader toolbar, Aa, progress, completion dock and definition improvements integrated | Run #173 and #183 passed | +| PR #11 dates/cache/provenance | Ported policy and parser precedence into current NewsRepository; publisher RSS clearly secondary | Run #174 and #183 passed | +| PR #12 Atom alternate links | HTML alternate / RSS text / safe HTTP(S) link selection ported into current guarded parser | Run #175 and #183 passed | +| PR #8 + #22 persistence/history | IO + mutex wrappers and capped ordered recent markers; legacy StringSet preserved | Run #176, #182 and #183 passed | +| PR #17 URL deduplication | Canonical comparison; exact bookmark/read URL variant wins before newest publication | Run #182 and #183 passed | +| PR #6 + #21 editorial | GS I Geography, bill/Finance Bill, heat-wave; film/viral/sports safeguards; labelled synthetic tests | Run #182 and #183 passed | +| PR #13 adaptive glass contrast | Shared 8×8 band probe, foreground/idle-only, 4s/6s cadence, pauses during feed motion, Reader, Settings and background | Run #184 pending at time of note; physical-device profile unverified | +| Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/collapsed Search; hidden glyph/droplet omitted while compact | Run #184 pending at time of note | + +### Deliberately excluded / superseded + +- Older `ui/liquid-glass-performance-2026-11-06` and `redesign/v0.3-search-reader` are stale; surviving useful changes are already present in merged ancestry or superseded. +- The standalone PR #15 publisher-redirect branch is not copied wholesale because PR #16's newer per-hop/final host validation and cookie restrictions supersede its older implementation; confirm through the final full source diff before deleting it. +- No old `MainActivity.kt` was copied wholesale from PR #6/#11/#13/#17/#19/#22. Their independent policies and tests were reconciled while preserving the current Reader, redirect and backdrop code. +- PR #13's original 1.5 s / 2.5 s readback cadence was rejected. The integrated probe is less frequent and idle-only; it still needs OPPO profiling. +- A “bug-free” claim is not supported by CI. Physical-device launch, TalkBack, Reduce Motion, visual transitions, frame timing, memory, thermal and battery remain outstanding. + +## Current validation record + +- Run #182, exact SHA `f031bf21229f43a992384cc23fa0f4da57e547a1`: success — JVM tests, APK assembly and artifact upload. +- Run #183, exact SHA `d80916691eb5e72ee5448bd543433cdabe2a1e5a`: success — JVM tests, APK assembly and artifact upload. Validates Reader auto-hide policy and Search clear 48dp. +- Run #184, exact SHA `050f3ad7fc62b242c58419ee34bd7b54b5f9c8f2`: queued/in progress at the time of writing; validates feed-only compact navigation if successful. +- No manual dispatch/rerun; Release job is skipped off main. From 6f15200325d3d333b3abff16c6f290fc81287b9c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:05:43 +0530 Subject: [PATCH 086/175] test: correct compact navigation threshold boundary --- .../java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt index 4de872c5..43fa2cea 100644 --- a/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt @@ -48,7 +48,7 @@ class FeedNavigationPolicyTest { @Test fun trackerReportsOnlyCompactStateAndCanReset() { val tracker = FeedNavigationScrollTracker() - assertFalse(tracker.onScroll(44, 44, 16, eligible = true)) + assertFalse(tracker.onScroll(43, 44, 16, eligible = true)) assertTrue(tracker.onScroll(1, 44, 16, eligible = true)) assertFalse(tracker.reset()) } From ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:09:10 +0530 Subject: [PATCH 087/175] ui: unify dashboard cards and refine glass appearance preview --- .../mangoloads/currentlens/MainActivity.kt | 123 ++++++++++++++---- 1 file changed, 96 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 51489484..71f3900e 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1680,8 +1680,9 @@ private fun YouDashboard( if (attempts.isEmpty()) { item { Card( - modifier = Modifier.fillMaxWidth(), - shape = RoundedCornerShape(21.dp), + modifier = Modifier.fillMaxWidth() + .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp)), + shape = RoundedCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { @@ -1729,8 +1730,10 @@ private fun YouDashboard( @Composable private fun MetricTile(label: String, value: String, modifier: Modifier = Modifier) { Card( - modifier = modifier, - shape = RoundedCornerShape(20.dp), + modifier = modifier.border( + 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) + ), + shape = RoundedCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), elevation = CardDefaults.cardElevation(defaultElevation = 1.dp) ) { @@ -1746,8 +1749,10 @@ private fun MetricTile(label: String, value: String, modifier: Modifier = Modifi @Composable private fun DestinationRow(title: String, description: String, trailing: String, onClick: () -> Unit) { Card( - modifier = Modifier.fillMaxWidth().clickable(onClick = onClick), - shape = RoundedCornerShape(18.dp), + modifier = Modifier.fillMaxWidth().heightIn(min = 68.dp) + .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp)) + .clickable(onClick = onClick), + shape = RoundedCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface) ) { Row(Modifier.fillMaxWidth().padding(16.dp), verticalAlignment = Alignment.CenterVertically) { @@ -1775,8 +1780,12 @@ private fun FilterChipRow( horizontalArrangement = Arrangement.spacedBy(6.dp) ) { options.distinct().forEach { option -> - FilterChip(selected = selected == option, onClick = { onSelected(option) }, - label = { Text(option, fontSize = 11.sp) }) + FilterChip( + selected = selected == option, + onClick = { onSelected(option) }, + modifier = Modifier.heightIn(min = 48.dp), + label = { Text(option, fontSize = 11.sp) } + ) } } } @@ -1821,8 +1830,14 @@ private fun ReadingStatsScreen(sessions: List) { fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.3.sp) } items(summary.days, key = { it.date.toString() }) { day -> - Card(shape = RoundedCornerShape(17.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface)) { + Card( + modifier = Modifier.border( + 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) + ), + shape = RoundedCornerShape(22.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) + ) { Row(Modifier.fillMaxWidth().padding(14.dp), verticalAlignment = Alignment.CenterVertically) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { Text(day.date.format(DateTimeFormatter.ofPattern("EEE, d MMM", Locale.ENGLISH)), @@ -1882,8 +1897,14 @@ private fun QuizStatsScreen(attempts: List) { verticalArrangement = Arrangement.spacedBy(9.dp) ) { items(summary.attempts, key = { it.id }) { attempt -> - Card(shape = RoundedCornerShape(17.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface)) { + Card( + modifier = Modifier.border( + 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) + ), + shape = RoundedCornerShape(22.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) + ) { Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { Text(attempt.articleTitle, fontWeight = FontWeight.SemiBold, maxLines = 2, overflow = TextOverflow.Ellipsis) @@ -3706,35 +3727,83 @@ private fun GlassSettingsScreen( Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), horizontalArrangement = Arrangement.spacedBy(8.dp)) { FilterChip(selected = selectedPreset == "Clear", onClick = { onGlassAlphaChange(0.12f) }, - label = { Text("Clear") }) + modifier = Modifier.heightIn(min = 48.dp), label = { Text("Clear") }) FilterChip(selected = selectedPreset == "Balanced", onClick = { onGlassAlphaChange(0.32f) }, - label = { Text("Balanced") }) + modifier = Modifier.heightIn(min = 48.dp), label = { Text("Balanced") }) FilterChip(selected = selectedPreset == "Frosted", onClick = { onGlassAlphaChange(0.55f) }, - label = { Text("Frosted") }) + modifier = Modifier.heightIn(min = 48.dp), label = { Text("Frosted") }) } } Column(verticalArrangement = Arrangement.spacedBy(8.dp)) { Text("Live preview", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) - Text("Sample feed card · appearance only", style = MaterialTheme.typography.labelSmall, + Text("The control material changes with the slider; the article card stays readable.", + style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) PrismalGlassSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth(), shape = { PrismalRoundedRectangle(24.dp) }, blurRadius = 9.dp, tint = tint, tintAlpha = glassAlpha ) { - Column(Modifier.padding(17.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) { - Row(verticalAlignment = Alignment.CenterVertically) { - Text("THE HINDU", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold) + Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(11.dp)) { + Row( + Modifier.fillMaxWidth().heightIn(min = 48.dp).padding(horizontal = 4.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Text("brrrNEWS", style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.onSurface) Spacer(Modifier.weight(1f)) - Text("GS II", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) + Text("Today", style = MaterialTheme.typography.labelMedium, + color = MaterialTheme.colorScheme.primary) + Icon(Icons.Outlined.Search, contentDescription = "Search preview", + tint = MaterialTheme.colorScheme.onSurfaceVariant, + modifier = Modifier.padding(start = 10.dp).size(20.dp)) + } + Card( + modifier = Modifier.fillMaxWidth(), + shape = RoundedCornerShape(18.dp), + colors = CardDefaults.cardColors( + containerColor = MaterialTheme.colorScheme.surface.copy(alpha = 0.94f) + ), + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) + ) { + Column(Modifier.padding(14.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) { + Row(verticalAlignment = Alignment.CenterVertically) { + Text("THE HINDU", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold) + Spacer(Modifier.weight(1f)) + Text("GS II", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + } + Text("How a policy decision shapes India's federal balance", + style = MaterialTheme.typography.titleMedium, + fontWeight = FontWeight.SemiBold, + color = MaterialTheme.colorScheme.onSurface) + Text("Publisher report · Indicative syllabus connection", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + } + } + Row( + Modifier.fillMaxWidth().heightIn(min = 48.dp), + horizontalArrangement = Arrangement.SpaceEvenly, + verticalAlignment = Alignment.CenterVertically + ) { + listOf("Today", "Explore", "Search").forEachIndexed { index, label -> + Row( + Modifier.clip(CircleShape) + .background( + if (index == 0) MaterialTheme.colorScheme.primary.copy(alpha = 0.13f) + else MaterialTheme.colorScheme.surface.copy(alpha = 0.60f) + ) + .padding(horizontal = 11.dp, vertical = 8.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Text(label, style = MaterialTheme.typography.labelSmall, + color = if (index == 0) MaterialTheme.colorScheme.primary + else MaterialTheme.colorScheme.onSurfaceVariant) + } + } } - Text("How a policy decision shapes India's federal balance", - style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold, - color = MaterialTheme.colorScheme.onSurface) - Text("6 Nov 2026 · Publisher report · Indicative syllabus link", - style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) } } } From 208e6063baa1865af20b4e0f0f86b2239e718151 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:17:20 +0530 Subject: [PATCH 088/175] fix: require specific parliamentary syllabus signals --- .../com/mangoloads/currentlens/UpscEngine.kt | 2 +- .../mangoloads/currentlens/UpscFeedPolicy.kt | 5 +-- .../EditorialConsolidationRegressionTest.kt | 35 +++++++++++++++++++ docs/UPSC_EDITORIAL_BASELINE.md | 9 +++-- 4 files changed, 46 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt index cad65ef4..7e2ecad6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt @@ -63,7 +63,7 @@ object UpscEngine { listOf("federalism", "centre-state", "centre state", "inter-state", "fiscal federal", "governor", "state government")), Rule("constitution", "GS II", "Constitution", "Indian Constitution, its features, amendments, significant provisions and basic structure.", - listOf("constitution", "constitutional", "supreme court", "high court", "parliament", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", "bill passed by lok sabha", "bill passed by rajya sabha", "ordinance", "judiciary", "election commission", "gst council", "representation of people act", "constitutional body", "statutory body", "regulatory body")), + listOf("constitution", "constitutional", "supreme court", "high court", "parliament passes a bill", "parliament passed a bill", "parliament introduces a bill", "parliament introduced a bill", "parliament clears a bill", "parliament cleared a bill", "parliament approves a bill", "parliament approved a bill", "parliament debates a bill", "parliament debated a bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", "bill passed by lok sabha", "bill passed by rajya sabha", "ordinance", "judiciary", "election commission", "gst council", "representation of people act", "constitutional body", "statutory body", "regulatory body")), Rule("governance", "GS II", "Governance", "Government policies, interventions, transparency, accountability and e-governance.", listOf("governance", "scheme", "policy", "public service", "accountability", "transparency", "welfare", "social justice", "panchayat", "municipal corporation", "right to information", "rti", "social audit", "direct benefit transfer", "lokpal", "comptroller and auditor general", "central vigilance commission", "civil services reform", "film certification", "cinematograph act", "censor board", "central board of film certification", "broadcasting regulation", "media regulation", "ott regulation", "copyright act", "press freedom", "sports governance", "anti-doping", "national sports policy", "sports ministry", "olympic charter", "sports federation reform")), diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt index 902144c3..e80cad1b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt @@ -44,9 +44,10 @@ internal object UpscFeedPolicy { "framework", "charter", "ban", "review", "overhaul" ) + // GS-II lists Parliament's functions, not mere institutional mentions; require a concrete process or power. private val specificSyllabusSignals = listOf( "supreme court", "high court", "constitution", "constitutional amendment", - "parliament", "election commission", "federalism", "centre-state", + "election commission", "federalism", "centre-state", "inter-state", "panchayat", "municipal corporation", "gst council", "reserve bank", "rbi", "repo rate", "inflation", "gross domestic product", "gdp", "fiscal deficit", "monetary policy", "current account deficit", @@ -54,7 +55,7 @@ internal object UpscFeedPolicy { "non performing assets", "payment system", "gst", "taxation", "union budget", "government budgeting", "finance bill", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", - "bill passed by lok sabha", "bill passed by rajya sabha", "trade agreement", + "bill passed by lok sabha", "bill passed by rajya sabha", "parliament passes a bill", "parliament passed a bill", "parliament introduces a bill", "parliament introduced a bill", "parliament clears a bill", "parliament cleared a bill", "parliament approves a bill", "parliament approved a bill", "parliament debates a bill", "parliament debated a bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "representation of people act", "trade agreement", "free trade agreement", "world trade organization", "foreign exchange reserves", "employment guarantee", "unemployment rate", "labour code", "labor code", "labour force participation", "plfs", diff --git a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt index a052e17e..8a071b3b 100644 --- a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt @@ -82,6 +82,41 @@ class EditorialConsolidationRegressionTest { assertTrue(UpscFeedPolicy.shouldInclude(story)) } + @Test + fun parliamentFacilityMentionAloneIsRejected() { + val story = article( + "Parliament opens a new visitor centre and cafeteria", + "The facility will serve visitors and staff." + ) + assertEquals("Unmapped", UpscEngine.classify(story).gsPaper) + assertFalse(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun parliamentPassesBillIsRecoveredAsGsTwoFalseNegative() { + val story = article( + "Parliament passes a bill to amend electoral rules", + "The measure changes the Representation of the People Act." + ) + val relevance = UpscEngine.classify(story) + assertEquals("GS II", relevance.gsPaper) + assertEquals("Constitution", relevance.subject) + assertTrue(relevance.matchedTerms.contains("parliament passes a bill")) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + + @Test + fun standingCommitteeScrutinyRemainsEligible() { + val story = article( + "Standing committee reviews a bill on parliamentary privileges", + "The report examines legislative scrutiny and accountability." + ) + val relevance = UpscEngine.classify(story) + assertEquals("GS II", relevance.gsPaper) + assertEquals("Constitution", relevance.subject) + assertTrue(UpscFeedPolicy.shouldInclude(story)) + } + @Test fun spacedHeatWaveActionPlanMapsToDisasterManagement() { val story = article("NDMA issues heat wave action plan guidelines") diff --git a/docs/UPSC_EDITORIAL_BASELINE.md b/docs/UPSC_EDITORIAL_BASELINE.md index c5440c87..6506dcbb 100644 --- a/docs/UPSC_EDITORIAL_BASELINE.md +++ b/docs/UPSC_EDITORIAL_BASELINE.md @@ -1,6 +1,6 @@ # UPSC editorial baseline -**Snapshot:** 6 November 2026 +**Snapshot:** 7 November 2026 ## Official syllabus @@ -13,6 +13,8 @@ For topical current-affairs mapping, the relevant baseline includes Prelims Gene The GS I geography scope explicitly includes physical geography, distribution of key natural resources, location factors for industries, geophysical phenomena, and changes in critical geographical features. The Geography rule in CurrentLens is intended to cover these syllabus themes without treating a generic place-name or a broad publisher section as sufficient evidence. +The GS II Parliament and State Legislatures scope explicitly covers structure, functioning, conduct of business, powers and privileges, and issues arising from these. A bare mention of Parliament is therefore not a sufficient syllabus theme; default-feed eligibility requires a concrete legislative process, committee, privilege or parliamentary-function signal. + ## Official previous-year question-paper window The latest ten official CSE paper years available at this snapshot are **2017–2026 inclusive**: @@ -39,10 +41,13 @@ The unit-test fixtures are synthetic examples designed to expose classification | Label | Example | Expected decision | Reason | |---|---|---|---| -| Previously missed positive | “Monsoon onset shifts across the Indo-Gangetic plain”; excerpt mentions rainfall distribution and river-basin flows | Include — GS I, Geography | Physical geography and changing water systems are explicit GS I syllabus themes | +| False-negative recovery | “Monsoon onset shifts across the Indo-Gangetic plain”; excerpt mentions rainfall distribution and river-basin flows | Include — GS I, Geography | Physical geography and changing water systems are explicit GS I syllabus themes | | Positive | “RBI holds repo rate amid inflation concerns” | Include — GS III, Indian Economy | Monetary policy, repo rate and inflation are specific economy signals | | False-positive rejection | “Film trailer celebrates Himalayan glaciers”; excerpt mentions glacier and river-basin imagery | Exclude | Entertainment noise in the headline overrides incidental geography words in the excerpt | | False-positive rejection | Generic consumer-technology trend story in an “UPSC” publisher section | Exclude | A broad section label and generic technology wording do not establish a specific syllabus theme | +| False-positive rejection | “Parliament opens a new visitor centre and cafeteria” | Exclude | An institution-only mention does not establish Parliament’s structure, functioning, conduct of business, powers or privileges | +| False-negative recovery | “Parliament passes a bill to amend electoral rules” | Include — GS II, Constitution/Polity | A concrete legislative action and Representation of the People Act theme are explicit GS II signals | +| Positive | “Standing committee reviews a bill on parliamentary privileges” | Include — GS II, Constitution/Polity | Committee scrutiny and parliamentary privileges map to the syllabus’ functioning and powers themes | | False-positive rejection | Celebrity film-release story whose excerpt merely mentions film-certification rules | Exclude | A policy exception must be established by a concrete action in the headline itself | The fixtures are regression checks for this deterministic rule set. They do not establish precision/recall, validate a score, or predict examination questions. From 9d754953a29c0355ce55306ce4fd5463193c9dbb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:19:44 +0530 Subject: [PATCH 089/175] test: preserve Parliament bill headline variants --- app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt | 2 +- app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt | 2 +- .../currentlens/EditorialConsolidationRegressionTest.kt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt index 7e2ecad6..0d7607f6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscEngine.kt @@ -63,7 +63,7 @@ object UpscEngine { listOf("federalism", "centre-state", "centre state", "inter-state", "fiscal federal", "governor", "state government")), Rule("constitution", "GS II", "Constitution", "Indian Constitution, its features, amendments, significant provisions and basic structure.", - listOf("constitution", "constitutional", "supreme court", "high court", "parliament passes a bill", "parliament passed a bill", "parliament introduces a bill", "parliament introduced a bill", "parliament clears a bill", "parliament cleared a bill", "parliament approves a bill", "parliament approved a bill", "parliament debates a bill", "parliament debated a bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", "bill passed by lok sabha", "bill passed by rajya sabha", "ordinance", "judiciary", "election commission", "gst council", "representation of people act", "constitutional body", "statutory body", "regulatory body")), + listOf("constitution", "constitutional", "supreme court", "high court", "parliament passes a bill", "parliament passes bill", "parliament passed a bill", "parliament passed bill", "parliament introduces a bill", "parliament introduces bill", "parliament introduced a bill", "parliament introduced bill", "parliament clears a bill", "parliament clears bill", "parliament cleared a bill", "parliament cleared bill", "parliament approves a bill", "parliament approves bill", "parliament approved a bill", "parliament approved bill", "parliament debates a bill", "parliament debates bill", "parliament debated a bill", "parliament debated bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", "bill passed by lok sabha", "bill passed by rajya sabha", "ordinance", "judiciary", "election commission", "gst council", "representation of the people act", "representation of people act", "constitutional body", "statutory body", "regulatory body")), Rule("governance", "GS II", "Governance", "Government policies, interventions, transparency, accountability and e-governance.", listOf("governance", "scheme", "policy", "public service", "accountability", "transparency", "welfare", "social justice", "panchayat", "municipal corporation", "right to information", "rti", "social audit", "direct benefit transfer", "lokpal", "comptroller and auditor general", "central vigilance commission", "civil services reform", "film certification", "cinematograph act", "censor board", "central board of film certification", "broadcasting regulation", "media regulation", "ott regulation", "copyright act", "press freedom", "sports governance", "anti-doping", "national sports policy", "sports ministry", "olympic charter", "sports federation reform")), diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt index e80cad1b..9ee81528 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt @@ -55,7 +55,7 @@ internal object UpscFeedPolicy { "non performing assets", "payment system", "gst", "taxation", "union budget", "government budgeting", "finance bill", "money bill", "amendment bill", "bill introduced in parliament", "bill passed by parliament", "bill introduced in lok sabha", - "bill passed by lok sabha", "bill passed by rajya sabha", "parliament passes a bill", "parliament passed a bill", "parliament introduces a bill", "parliament introduced a bill", "parliament clears a bill", "parliament cleared a bill", "parliament approves a bill", "parliament approved a bill", "parliament debates a bill", "parliament debated a bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "representation of people act", "trade agreement", + "bill passed by lok sabha", "bill passed by rajya sabha", "parliament passes a bill", "parliament passes bill", "parliament passed a bill", "parliament passed bill", "parliament introduces a bill", "parliament introduces bill", "parliament introduced a bill", "parliament introduced bill", "parliament clears a bill", "parliament clears bill", "parliament cleared a bill", "parliament cleared bill", "parliament approves a bill", "parliament approves bill", "parliament approved a bill", "parliament approved bill", "parliament debates a bill", "parliament debates bill", "parliament debated a bill", "parliament debated bill", "parliamentary committee", "standing committee", "joint parliamentary committee", "question hour", "zero hour", "parliamentary privilege", "parliamentary procedure", "legislative scrutiny", "legislative oversight", "motion of no confidence", "no confidence motion", "motion of thanks", "budget session", "monsoon session", "winter session", "joint session", "representation of the people act", "representation of people act", "trade agreement", "free trade agreement", "world trade organization", "foreign exchange reserves", "employment guarantee", "unemployment rate", "labour code", "labor code", "labour force participation", "plfs", diff --git a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt index 8a071b3b..3505d546 100644 --- a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt @@ -102,6 +102,7 @@ class EditorialConsolidationRegressionTest { assertEquals("GS II", relevance.gsPaper) assertEquals("Constitution", relevance.subject) assertTrue(relevance.matchedTerms.contains("parliament passes a bill")) + assertTrue(relevance.matchedTerms.contains("representation of the people act")) assertTrue(UpscFeedPolicy.shouldInclude(story)) } From 67d1f6a32b483535dcecf2d0f803e8ce5cac7e16 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:22:23 +0530 Subject: [PATCH 090/175] docs: record full CurrentLens branch consolidation and validation --- docs/BRANCH_CONSOLIDATION.md | 137 ++++++++++++++++++++++++-------- docs/LIQUID_GLASS_UI_ROADMAP.md | 33 ++++---- 2 files changed, 120 insertions(+), 50 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 7a35295d..159fa9c9 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,40 +1,107 @@ -# Black Box Bihar News — branch consolidation record +# Black Box Bihar News — complete branch consolidation -**Integration branch:** `black-box-bihar-news` **Repository:** `Batmancpu/CurrentLens` -**Main SHA at integration start:** `73b8a0d1ba33503fede02db2c3c0af082d724a12` -**Integration source:** PR #16 startup/stability head, which carries the corrected background-only Prismal capture, diagnostics and publisher/network guards. -**Safety:** main remains unchanged. No source branch was deleted. Keep all source branches until the owner has reviewed the integrated branch and its natural CI status. +**Chosen integration branch:** `black-box-bihar-news` +**Current HEAD at this audit:** `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` +**Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Live branch inventory:** 25 refs (including `main` and this integration branch); no branch was deleted. +**Latest natural validation:** Actions run [#187](https://github.com/Batmancpu/CurrentLens/actions/runs/42334981467), success on this exact HEAD. +**No Release was published.** No manual workflow dispatch or rerun was used. -## Consolidated work +The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. -| Existing source | Treatment on this branch | +## 1. Feature consolidation by area + +### Startup, performance and reliability +- Retained PR #16's background-only Prismal capture, startup-stage diagnostics, local crash recovery and publisher/network restrictions. +- Integrated the shared `EditorialFeedIndexPolicy`: editorial eligibility and Today/Explore indexing are computed off the UI thread and reused instead of re-filtered repeatedly. +- Local app state is restored on `Dispatchers.IO` after first composition; OEM window styling is guarded; lazy feed items have content types; image requests are bounded and palette sampling checks recycled bitmaps. +- Startup diagnostics are more privacy-restricted than the early diagnostic branch: no raw device identifiers, process IDs, opaque Android exit descriptions or complete stack traces are added to the user-shareable report. +- Local persistence writes for article-read markers, Reader positions, reading sessions and submitted quizzes run on IO and are serialized where read-modify-write races matter. + +### Editorial and UPSC engine +- GS I Geography was added to the classifier and Explore topic filter. +- Finance Bill / specific parliamentary bill phrases and heat-wave / heat-action-plan signals map to their intended GS themes. +- Whole-token / whole-phrase matching avoids substring errors such as treating `rbi` inside `arbitrary` as a Reserve Bank signal. +- Celebrity, film promotion, box-office, reality-show, routine sports and generic viral noise are suppressed; policy exceptions require an institutional action in the headline. A narrow thin-film photovoltaic/solar-cell exception avoids blocking a legitimate Science & Technology topic. +- Cards expose a concise indicative GS mapping, matched signal and syllabus rationale. The UI and tests do not describe this heuristic as a validated UPSC score or question predictor. +- Synthetic regression fixtures explicitly cover both eligible cases and false positives; they are not represented as actual PYQs or real news articles. + +### Feeds, dates, sources and URLs +- RSS/Atom parsing prefers safe HTML alternate destinations over feed self-links/enclosures, while supporting RSS text links. +- Original publication time is preferred over a later update time; date/cache policy rejects inappropriate stale/future/undated entries according to its tests. +- Publisher RSS provenance is identified as secondary reporting, not primary-source verification. +- RSS-feed and article-page redirects are followed manually: every next URL is checked against the same publisher allowlist, HTTPS, normal ports and a bounded hop count. Automatic redirect following is disabled. +- Tracking parameters are removed for story identity, while the original destination URL is preserved. Duplicate selection prioritises an exact bookmarked variant, then an exact previously-read variant, then publication recency. +- No cookies, proxies, paywall circumvention or publisher subscription bypass is used. + +### Personal data and study features +- Reading-session accounting remains foreground-only; quiz records are persisted only on submission. +- New read markers use an insertion-ordered 5,000-entry supplemental window. Legacy `read_history` is an unordered SharedPreferences set; it is preserved rather than destructively trimmed. **Total lifetime legacy read-marker storage is therefore not bounded.** +- Reader-position and quiz storage retain their existing policies and limits; old schemas are not replaced by a wholesale branch copy. + +### Liquid Glass and screen behaviour +- Reader toolbar, Aa/font controls, progress indicator, compact/dismissible completion dock and definition overlay refinements are consolidated from the Reader UI work. +- Reader chrome hides after sustained downward scroll and reappears on upward movement; definition popover, native selection/Copy/Share ActionMode, IME and accessibility keep the controls pinned. +- Search's trailing clear action reuses its original callback and now has a 48dp target; clearing retains the expanded Search and existing filter/focus model. +- On Today, Explore and collapsed Search only, the existing four-tab GlassTabBar compacts to a named active-destination pill on downward feed scroll and expands on upward scroll/top edge. You, Saved, stats, Reader, Quiz, Settings and the keyboard Search overlay are excluded. +- Adaptive contrast uses one shared 8×8 bottom-band probe. The consolidated cadence is 4 seconds on Android 12+ and 6 seconds on older Android, and sampling pauses during feed motion, Reader, Settings and background operation. +- You and stats cards use consistent geometry; stats and appearance filter targets are at least 48dp. Appearance's existing preview now shows a compact header, readable article surface and control rail responding to the slider. +- Article text, story cards, statistics and quiz questions remain readable non-glass surfaces; no second root capture or per-card blur sampler was added. + +## 2. Remote branch-by-branch disposition + +This is the live 25-ref inventory audited against the selected integration branch. “Integrated” means the useful code/policy/test is in this branch, not that the old source commit was merged into its Git ancestry. Source branches were deliberately retained. + +| Remote branch | Disposition | |---|---| -| PR #16 — startup/network/Prismal | Integration ancestor; retains background-only capture, redirect checks, local diagnostics and privacy guards | -| PR #19 — Reader Liquid Glass | Integrated: compact toolbar, Aa controls, progress, completion dock, definition improvements | -| PR #20 — stacked read-only CI | Integrated into the one workflow; source branch retained | -| PR #18 — main read-only CI | Compatible read-only build / isolated main-push release workflow intent ported into the single workflow | -| PR #11 — date/cache/provenance | Selectively ported: original publication timestamp precedence, stale/future/undated cache policy, publisher RSS explicitly labelled secondary | -| PR #12 — Atom alternate links | Selectively ported: HTML alternate destinations, RSS text links, excludes self/enclosure/feed URLs and unsafe schemes | -| PR #17 — RSS tracking dedupe | Selectively ported and improved: canonical comparison while preserving original destination; exact bookmarked/read variant preferred before date | -| PR #8 — off-main persistence | Selectively ported: serialized IO persistence for reading sessions, quiz submissions, read markers and reader-position writes | -| PR #22 — bounded recent read markers | Selectively ported: ordered cap for new markers; legacy unordered set preserved | -| PR #6 — GS I Geography/editorial | Selectively ported and reconciled with #21: Geography mapping/filter, syllabus metadata, content-aware cache invalidation, accessible filters | -| PR #21 — bill/heat-wave editorial | Selectively ported: precise parliamentary bill phrases, Finance Bill GS III, heat-wave variants GS III, NDMA-alone rejection | -| PR #13 — adaptive glass contrast | Selectively integrated with safeguards: shared 8×8 bottom-band probe, idle foreground-home only, 4s/6s cadence, paused during feed motion, Reader, Settings and background | -| Feed-only compact navigation | Added to the same existing GlassTabBar; no second bar or duplicate backdrop. Today/Explore/Search only; You/nested surfaces stay expanded | -| PR #15 — older publisher redirect allowlist | Not copied wholesale: superseded by newer PR #16 per-hop/final host checks and cookie/privacy restrictions; verify current source diff before deletion | -| Old Liquid Glass / v0.3 redesign branches | Not used as baseline; stale. Relevant surviving changes are present in the PR #16/#19 lineage or superseded | - -## Known limits — no “perfect/bug-free” claim - -- The legacy `read_history` SharedPreferences StringSet is unordered and cannot be safely trimmed without a migration. Only new markers are capped to a 5,000-entry ordered supplemental window; total legacy storage is not bounded. -- Article-level primary-source corroboration is not implemented. Publisher RSS remains secondary reporting. The UI must not imply verification against PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court or regulators without a linked source document. -- No physical OPPO Reno10 runtime/logcat/tombstone/Perfetto/screenshot/TalkBack validation is available. Native launch stability, GPU cost, frame jank, memory, thermal and battery effects are not certified. -- Adaptive contrast has a conservative cadence and pauses during motion, but still needs device profiling. -- CI validates Kotlin compilation, JVM tests, APK assembly and artifact upload; it does not prove every app flow or physical-device behaviour. -- No source branch has been deleted or reset. The owner should wait for final branch inventory, PR comparison and exact tested head before deleting source branches. - -## Validation - -The consolidated branch uses the single existing workflow. Build job has read-only permissions; Release write access is isolated to successful main pushes. Integration-branch pushes and pull requests trigger build/test only. No manual dispatch or rerun is used. +| `black-box-bihar-news` | **Selected active integration branch.** All future consolidation work goes here. | +| `main` | Default branch; unchanged. Keep. | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | PR #18 workflow intent integrated: read-only build/test permissions and a separately gated main-push-only Release job. Source PR #18 remains open/draft. | +| `ci/stacked-pr-validation-2026-11-07` | PR #20 merged into `black-box-bihar-news`; natural validation for stacked work. Source PR #20 is closed/merged into this branch, not main. | +| `docs/ai-agent-handoff-2026-11-06` | Identical to the audited `main` SHA; no unique implementation. Redundant. | +| `feat/gs1-geography-editorial-coverage` | Geography classifier/filter, syllabus metadata, feed eligibility and baseline docs/tests selectively integrated. PR #6 remains open/draft. | +| `fix/atom-alternate-link-selection-2026-11-06` | Atom/RSS link candidate policy and parser regression tests integrated. PR #12 remains open/draft. | +| `fix/cache-publication-date-integrity-2026-11-06` | Publication-date precedence, cache-retention policy, publisher provenance and tests integrated. PR #11 remains open/draft and is based on this integration branch; its remaining diff should be reconciled/closed before source deletion. | +| `fix/early-startup-crash-diagnostics-2026-11-06` | Integration ancestor from PR #16; corrected Prismal capture, startup safeguards and network policy retained. PR #16 remains open/draft against main. | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | Bill/Finance Bill/heat-wave classifier and feed tests integrated with the Geography and entertainment-noise rules. PR #21 remains open/draft. | +| `fix/editorial-signal-count-test` | Updated repo-rate signal-count expectation integrated; current classifier test expects four matched economy signals. | +| `fix/editorial-token-boundaries-2026-11-06` | Whole-token matcher and negative substring fixtures are present; current editorial policy is a later, expanded version with more specific syllabus and noise rules. | +| `fix/navigation-icon-imports-2026-11-06` | Supported Today/Person glyphs are present in the current four-tab bar. Superseded. | +| `fix/publisher-redirect-allowlist-2026-11-06` | Per-hop RSS and article-page redirect checks, host allowlist and rejection tests are present in the current branch. PR #15 is closed unmerged; equivalent policy was retained through the newer stability/network implementation. | +| `fix/rss-tracking-variant-dedup-2026-11-06` | Tracking-variant story identity and exact saved/read variant preference integrated, with regression tests. PR #17 remains open/draft. | +| `fix/search-glass-theme-capture-2026-11-06` | Search material color is captured before the draw callback; integrated. | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | Shared editorial feed index and local startup diagnostics are present. The integration uses the later privacy-minimised diagnostic implementation, not the older raw device/stack report. | +| `fix/startup-stability-performance-2026-11-06` | Off-main local-state restore, OEM-safe window styling, lazy content types, bounded image requests and palette safeguards are present. Its original 1.5s/2.5s luminance cadence was made more conservative. | +| `perf/bounded-read-history-2026-11-07` | Bounded new-marker window integrated with malformed/wrong-type preference preservation; PR #22 remains open/draft. | +| `perf/off-main-session-persistence-2026-11-06` | IO/mutex persistence and Reader/quiz call-site changes selectively reconciled; PR #8 remains open/draft. | +| `redesign/v0.3-search-reader` | Very stale relative to PR #16/current Reader; no unique change justified replaying. Do not use as a base. | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | Shared probe and activation policy integrated with a slower cadence and feed-scroll gating. PR #13 remains open/draft. | +| `ui/liquid-glass-performance-2026-11-06` | Three older commits' useful header/category/skeleton/card/search/nav work is present in the newer PR #16/#19-derived UI; old version and icon treatment are superseded. | +| `ui/liquid-glass-system-2026-11-07` | Reader UI PR #19 merged into `black-box-bihar-news`; it was not merged into main. | +| `ui/liquid-glass-system-continuation-2026-11-07` | Earlier validated integration checkpoint (run #182); current branch is ahead of it, with no unique commit remaining. | + +## 3. Pull-request state at the audit + +- PR #19 (Reader Liquid Glass) and PR #20 (stacked read-only CI) are **closed/merged into `black-box-bihar-news`**, not into main. +- PR #15 (publisher redirect allowlist) is closed/unmerged; its safe redirect behaviour is present in the integration branch. +- PRs #6, #8, #11, #12, #13, #16, #17, #18, #21 and #22 remain open/draft. Their useful code is represented in the consolidated branch; they are source-history records, not independent implementation targets. +- No source branch was deleted. The owner should review the consolidated PR/branch before deleting source refs. PR #11 is especially redundant because it was retargeted to the integration branch and its changes were separately reconciled there. + +## 4. Validation record + +- Run #182, SHA `f031bf21229f43a992384cc23fa0f4da57e547a1`: passed JVM tests, APK assembly and artifact upload. +- Run #183, SHA `d80916691eb5e72ee5448bd543433cdabe2a1e5a`: passed Reader auto-hide and Search clear-target changes. +- Runs #184 and #185 failed one newly added navigation threshold-boundary test; that assertion was corrected without weakening the threshold. +- Run #186, SHA `6f15200325d3d333b3abff16c6f290fc81287b9c`: passed after that correction. +- **Run #187, SHA `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f`: passed** Android setup, WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload. Artifact `CurrentLens-v0.2.8-stability-debug-apk`, ID `13559292205`, 39,052,427 bytes; expires 21 November 2026. [Open run #187](https://github.com/Batmancpu/CurrentLens/actions/runs/42334981467). +- No Release job ran on the feature branch. No main edit, merge, manual dispatch or rerun occurred. + +## 5. Remaining limits + +- CI proves JVM tests, Kotlin/Android compilation, APK assembly and artifact upload for the tested commit. It does not prove “bug-free” runtime behaviour on a physical device. +- No OPPO Reno10 logcat/tombstone/Perfetto capture, TalkBack session, Reduce Motion hardware check, frame-time, memory, thermal or battery profile has been performed for this exact build. +- The adaptive GPU readback is slower and paused during motion/non-home states, but its real device cost remains unmeasured. +- The legacy unordered read-marker set remains unbounded; only new markers are capped. +- Publisher RSS is secondary reporting. Automated primary-source corroboration against PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court or regulators is not yet implemented. +- Do not call the product perfectly working or bug-free until device and end-to-end checks are completed. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 24c97a47..e215dcfd 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,12 +1,12 @@ # Liquid Glass UI Roadmap -**Status:** Consolidated integration branch; incremental validation in progress +**Status:** Consolidated branch; current natural CI build is green **Feature branch:** `black-box-bihar-news` -**Integration base:** PR #16 stability head `6ab1e6a02ac8e91027b21900d64d63b9f2e6a02` -**Current validated Reader/Search head:** `d80916691eb5e72ee5448bd543433cdabe2a1e5a` -**Current feed-navigation head:** `050f3ad7fc62b242c58419ee34bd7b54b5f9c8f2` +**Current HEAD:** `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` +**Integration base:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` +**Latest successful run:** #187 on this exact HEAD; JVM tests, APK assembly and artifact upload passed. **Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -**Dependency:** the integration branch preserves PR #16's background-only Prismal capture, startup diagnostics and redirect protections. No source branch has been deleted. Keep source branches until final review and test status are confirmed. +**Safety:** no source branch has been deleted and no Release has been published. The user retains all source refs until review. ## Product and material principles @@ -40,9 +40,9 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA |---|---|---|---| | Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Existing Prismal glass; contrast/hierarchy polish remains | | Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Existing Prismal droplet, hidden glyph capture and merged source; no new sampler | -| Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; run #184 pending at time of note | -| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph preserved; clear target is 48dp (run #183 passed) | -| Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp minimum and selected-tab semantics integrated with Geography filter | +| Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; state policy validated in runs #186 and #187; physical animation still needs device validation | +| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph/focus callback preserved; clear target is 48dp (run #183 and #187 passed) | +| Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | | You dashboard | Supporting surfaces | Consistent metric/destination geometry and restrained tint/edge hierarchy | Standard cards; geometry pass remains | | Saved | Interactive controls + editorial content | Clear filters; standard readable saved-story cards | Existing filters/cards; consistency pass remains | @@ -122,20 +122,23 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches | PR #8 + #22 persistence/history | IO + mutex wrappers and capped ordered recent markers; legacy StringSet preserved | Run #176, #182 and #183 passed | | PR #17 URL deduplication | Canonical comparison; exact bookmark/read URL variant wins before newest publication | Run #182 and #183 passed | | PR #6 + #21 editorial | GS I Geography, bill/Finance Bill, heat-wave; film/viral/sports safeguards; labelled synthetic tests | Run #182 and #183 passed | -| PR #13 adaptive glass contrast | Shared 8×8 band probe, foreground/idle-only, 4s/6s cadence, pauses during feed motion, Reader, Settings and background | Run #184 pending at time of note; physical-device profile unverified | -| Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/collapsed Search; hidden glyph/droplet omitted while compact | Run #184 pending at time of note | +| PR #13 adaptive glass contrast | Shared 8×8 band probe, foreground/idle-only, 4s/6s cadence, pauses during feed motion, Reader, Settings and background | Run #187 passed; physical-device profile unverified | +| Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/collapsed Search; You/nested surfaces remain expanded | Run #186 policy tests and #187 integration build passed; visual motion needs device validation | ### Deliberately excluded / superseded - Older `ui/liquid-glass-performance-2026-11-06` and `redesign/v0.3-search-reader` are stale; surviving useful changes are already present in merged ancestry or superseded. -- The standalone PR #15 publisher-redirect branch is not copied wholesale because PR #16's newer per-hop/final host validation and cookie restrictions supersede its older implementation; confirm through the final full source diff before deleting it. +- PR #15's per-hop RSS and article-page redirect validation is present in the integration code together with the publisher-host policy and focused tests. The branch was not copied wholesale; the equivalent safeguards are retained in the newer feed and Reader repositories. - No old `MainActivity.kt` was copied wholesale from PR #6/#11/#13/#17/#19/#22. Their independent policies and tests were reconciled while preserving the current Reader, redirect and backdrop code. - PR #13's original 1.5 s / 2.5 s readback cadence was rejected. The integrated probe is less frequent and idle-only; it still needs OPPO profiling. - A “bug-free” claim is not supported by CI. Physical-device launch, TalkBack, Reduce Motion, visual transitions, frame timing, memory, thermal and battery remain outstanding. ## Current validation record -- Run #182, exact SHA `f031bf21229f43a992384cc23fa0f4da57e547a1`: success — JVM tests, APK assembly and artifact upload. -- Run #183, exact SHA `d80916691eb5e72ee5448bd543433cdabe2a1e5a`: success — JVM tests, APK assembly and artifact upload. Validates Reader auto-hide policy and Search clear 48dp. -- Run #184, exact SHA `050f3ad7fc62b242c58419ee34bd7b54b5f9c8f2`: queued/in progress at the time of writing; validates feed-only compact navigation if successful. -- No manual dispatch/rerun; Release job is skipped off main. +- Run #182, exact SHA `f031bf21229f43a992384cc23fa0f4da57e547a1`: passed JVM tests, APK assembly and artifact upload. +- Run #183, exact SHA `d80916691eb5e72ee5448bd543433cdabe2a1e5a`: passed Reader auto-hide and Search clear-target work. +- Runs #184/#185 exposed one threshold-boundary assertion in the new feed-nav policy test; the test was corrected to 43px + 1px without reducing the 44px threshold. +- Run #186, exact SHA `6f15200325d3d333b3abff16c6f290fc81287b9c`: passed the corrected compact-navigation policy test suite and APK build. +- **Run #187, exact SHA `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f`: passed** `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact ID `13559292205`, 39,052,427 bytes, expires 21 November 2026. [Open run #187](https://github.com/Batmancpu/CurrentLens/actions/runs/42334981467). +- The Release job is skipped on the integration branch. No manual dispatch/rerun or main edit was made. +- CI verifies build and JVM tests; physical-device launch, accessibility, animation smoothness and performance remain unverified. From e411c394e8d48b3f547b6d6fb9039a8935bd05eb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:27:19 +0530 Subject: [PATCH 091/175] docs: include parliamentary gate and final branch inventory --- docs/BRANCH_CONSOLIDATION.md | 10 ++++++---- docs/LIQUID_GLASS_UI_ROADMAP.md | 17 ++++++++++------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 159fa9c9..a3682f39 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,10 +2,10 @@ **Repository:** `Batmancpu/CurrentLens` **Chosen integration branch:** `black-box-bihar-news` -**Current HEAD at this audit:** `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` +**Current HEAD at this audit:** `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2` **Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12` -**Live branch inventory:** 25 refs (including `main` and this integration branch); no branch was deleted. -**Latest natural validation:** Actions run [#187](https://github.com/Batmancpu/CurrentLens/actions/runs/42334981467), success on this exact HEAD. +**Live branch inventory:** 26 refs (including `main` and this integration branch); no branch was deleted. +**Latest completed validation:** Actions run [#190](https://github.com/Batmancpu/CurrentLens/actions/runs/42335940352), success on the documentation commit before the PR #23 merge. Natural post-merge run #192 is validating this exact HEAD. **No Release was published.** No manual workflow dispatch or rerun was used. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -26,6 +26,7 @@ The integration was started from PR #16's corrected stability/network baseline, - Celebrity, film promotion, box-office, reality-show, routine sports and generic viral noise are suppressed; policy exceptions require an institutional action in the headline. A narrow thin-film photovoltaic/solar-cell exception avoids blocking a legitimate Science & Technology topic. - Cards expose a concise indicative GS mapping, matched signal and syllabus rationale. The UI and tests do not describe this heuristic as a validated UPSC score or question predictor. - Synthetic regression fixtures explicitly cover both eligible cases and false positives; they are not represented as actual PYQs or real news articles. +- Parliamentary classification now requires concrete function/process signals—bill introduction/passage/debate, committee scrutiny, Question Hour/Zero Hour, privileges, motions, sessions or legislative oversight. A bare institution mention (for example, a visitor-centre story) is rejected. The full “Representation of the People Act” phrase is recognised. ### Feeds, dates, sources and URLs - RSS/Atom parsing prefers safe HTML alternate destinations over feed self-links/enclosures, while supporting RSS text links. @@ -64,6 +65,7 @@ This is the live 25-ref inventory audited against the selected integration branc | `fix/atom-alternate-link-selection-2026-11-06` | Atom/RSS link candidate policy and parser regression tests integrated. PR #12 remains open/draft. | | `fix/cache-publication-date-integrity-2026-11-06` | Publication-date precedence, cache-retention policy, publisher provenance and tests integrated. PR #11 remains open/draft and is based on this integration branch; its remaining diff should be reconciled/closed before source deletion. | | `fix/early-startup-crash-diagnostics-2026-11-06` | Integration ancestor from PR #16; corrected Prismal capture, startup safeguards and network policy retained. PR #16 remains open/draft against main. | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | Bare Parliament mention removed as a sufficient GS-II signal; concrete parliamentary functions and bill actions retained; institution-only false-positive and bill/committee positive fixtures added. PR #23 merged into this branch, not main. | | `fix/editorial-heatwave-bill-signals-2026-11-07` | Bill/Finance Bill/heat-wave classifier and feed tests integrated with the Geography and entertainment-noise rules. PR #21 remains open/draft. | | `fix/editorial-signal-count-test` | Updated repo-rate signal-count expectation integrated; current classifier test expects four matched economy signals. | | `fix/editorial-token-boundaries-2026-11-06` | Whole-token matcher and negative substring fixtures are present; current editorial policy is a later, expanded version with more specific syllabus and noise rules. | @@ -83,7 +85,7 @@ This is the live 25-ref inventory audited against the selected integration branc ## 3. Pull-request state at the audit -- PR #19 (Reader Liquid Glass) and PR #20 (stacked read-only CI) are **closed/merged into `black-box-bihar-news`**, not into main. +- PR #19 (Reader Liquid Glass), PR #20 (stacked read-only CI) and PR #23 (specific parliamentary syllabus gate) are **closed/merged into `black-box-bihar-news`**, not into main. - PR #15 (publisher redirect allowlist) is closed/unmerged; its safe redirect behaviour is present in the integration branch. - PRs #6, #8, #11, #12, #13, #16, #17, #18, #21 and #22 remain open/draft. Their useful code is represented in the consolidated branch; they are source-history records, not independent implementation targets. - No source branch was deleted. The owner should review the consolidated PR/branch before deleting source refs. PR #11 is especially redundant because it was retargeted to the integration branch and its changes were separately reconciled there. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index e215dcfd..a4701bdc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -2,9 +2,9 @@ **Status:** Consolidated branch; current natural CI build is green **Feature branch:** `black-box-bihar-news` -**Current HEAD:** `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` +**Current HEAD:** `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2` **Integration base:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` -**Latest successful run:** #187 on this exact HEAD; JVM tests, APK assembly and artifact upload passed. +**Last completed successful run:** #190 passed the documentation commit; post-PR #23 merge run #192 is validating this current HEAD. **Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. **Safety:** no source branch has been deleted and no Release has been published. The user retains all source refs until review. @@ -137,8 +137,11 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches - Run #182, exact SHA `f031bf21229f43a992384cc23fa0f4da57e547a1`: passed JVM tests, APK assembly and artifact upload. - Run #183, exact SHA `d80916691eb5e72ee5448bd543433cdabe2a1e5a`: passed Reader auto-hide and Search clear-target work. -- Runs #184/#185 exposed one threshold-boundary assertion in the new feed-nav policy test; the test was corrected to 43px + 1px without reducing the 44px threshold. -- Run #186, exact SHA `6f15200325d3d333b3abff16c6f290fc81287b9c`: passed the corrected compact-navigation policy test suite and APK build. -- **Run #187, exact SHA `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f`: passed** `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact ID `13559292205`, 39,052,427 bytes, expires 21 November 2026. [Open run #187](https://github.com/Batmancpu/CurrentLens/actions/runs/42334981467). -- The Release job is skipped on the integration branch. No manual dispatch/rerun or main edit was made. -- CI verifies build and JVM tests; physical-device launch, accessibility, animation smoothness and performance remain unverified. +- Runs #184/#185 exposed one new navigation threshold test assertion; it was corrected to 43px + 1px without reducing the 44px threshold. +- Run #186, exact SHA `6f15200325d3d333b3abff16c6f290fc81287b9c`: passed the corrected compact-navigation policy tests and APK build. +- Run #187, exact SHA `ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f`: passed the UI, dashboard and Appearance preview integration; artifact ID `13559292205`, 39,052,427 bytes. +- Run #189, PR #23 head `9d754953a29c0355ce55306ce4fd5463193c9dbb`: passed the more-specific parliamentary syllabus gate and regression tests. +- Run #190, integration SHA `67d1f6a32b483535dcecf2d0f803e8ce5cac7e16`: passed after consolidation documentation update. +- The parliamentary signal gate (PR #23) is merged into `black-box-bihar-news`; current merged head is `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2`. Natural post-merge run #192 is in progress; wait for that exact run before claiming the newest head passed. +- Release publishing is skipped off main. No manual dispatch/rerun; no main edit/merge. +- CI does not verify physical-device launch, animation smoothness, accessibility or performance. These remain unverified. From 5e966a1b2d27bc08e01af3cd40e6573d6e8328be Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:36:03 +0530 Subject: [PATCH 092/175] ui: unify supporting glass surfaces across You and stats --- .../currentlens/GlassSurfacePolicy.kt | 26 +++ .../mangoloads/currentlens/MainActivity.kt | 163 +++++++++++------- .../currentlens/GlassSurfacePolicyTest.kt | 31 ++++ 3 files changed, 161 insertions(+), 59 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt new file mode 100644 index 00000000..96fc60ad --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -0,0 +1,26 @@ +package com.mangoloads.currentlens + +/** + * Shared tokens for supporting content surfaces that borrow Liquid Glass tint and rim + * without adding live backdrop capture, blur, refraction or a second material pipeline. + */ +internal object GlassSurfacePolicy { + const val SUPPORTING_CORNER_RADIUS_DP = 22f + const val SUPPORTING_VALUE_SIZE_SP = 20f + + private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.96f + private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.985f + private const val SUPPORTING_TINT_ALPHA_DARK = 0.085f + private const val SUPPORTING_TINT_ALPHA_LIGHT = 0.045f + private const val SUPPORTING_RIM_ALPHA_DARK = 0.22f + private const val SUPPORTING_RIM_ALPHA_LIGHT = 0.14f + + fun supportingSurfaceAlpha(dark: Boolean): Float = + if (dark) SUPPORTING_SURFACE_ALPHA_DARK else SUPPORTING_SURFACE_ALPHA_LIGHT + + fun supportingTintAlpha(dark: Boolean): Float = + if (dark) SUPPORTING_TINT_ALPHA_DARK else SUPPORTING_TINT_ALPHA_LIGHT + + fun supportingRimAlpha(dark: Boolean): Float = + if (dark) SUPPORTING_RIM_ALPHA_DARK else SUPPORTING_RIM_ALPHA_LIGHT +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 71f3900e..88538c75 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1592,17 +1592,23 @@ private fun SavedFeed( var selectedSubject by remember { mutableStateOf("All") } var selectedGsPaper by remember { mutableStateOf("All") } val today = LocalDate.now(ZoneId.of(INDIA_ZONE)) - val savedArticles = articles.filter { bookmarks.contains(it.url) } + val savedArticles = remember(articles, bookmarks) { + articles.filter { bookmarks.contains(it.url) } + } val subjects = remember(savedArticles) { listOf("All") + savedArticles.map { UpscEngine.classify(it).subject }.distinct().sorted() } - val filtered = StudyStatsPolicy.filterArticles( - savedArticles, dateRange, selectedSubject, selectedGsPaper, today - ) - val previouslyOpened = articles.filter { - readHistory.contains(it.url) && !bookmarks.contains(it.url) && UpscFeedPolicy.shouldInclude(it) + val filtered = remember(savedArticles, dateRange, selectedSubject, selectedGsPaper, today) { + StudyStatsPolicy.filterArticles( + savedArticles, dateRange, selectedSubject, selectedGsPaper, today + ) + } + val previouslyOpened = remember(articles, readHistory, bookmarks) { + articles.filter { + readHistory.contains(it.url) && !bookmarks.contains(it.url) && UpscFeedPolicy.shouldInclude(it) + } + .sortedByDescending { it.publishedAtMillis ?: 0L }.take(15) } - .sortedByDescending { it.publishedAtMillis ?: 0L }.take(15) Column(Modifier.fillMaxSize()) { FilterChipRow("Published", StatsDateRange.values().map { it.label }, dateRange.label) { label -> @@ -1654,8 +1660,8 @@ private fun YouDashboard( onQuizStats: () -> Unit, onSettings: () -> Unit ) { - val answersAttempted = attempts.sumOf { it.answeredCount } - val correctAnswers = attempts.sumOf { it.correctCount } + val answersAttempted = remember(attempts) { attempts.sumOf { it.answeredCount } } + val correctAnswers = remember(attempts) { attempts.sumOf { it.correctCount } } val accuracy = if (answersAttempted == 0) "—" else ((correctAnswers * 100f / answersAttempted).toInt().toString() + "%") LazyColumn( @@ -1679,13 +1685,7 @@ private fun YouDashboard( } if (attempts.isEmpty()) { item { - Card( - modifier = Modifier.fillMaxWidth() - .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp)), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), - elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) - ) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { Column(Modifier.fillMaxWidth().padding(17.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { Text("Practice when you're ready", @@ -1728,39 +1728,94 @@ private fun YouDashboard( } @Composable -private fun MetricTile(label: String, value: String, modifier: Modifier = Modifier) { +private fun SupportingGlassCard( + modifier: Modifier = Modifier, + content: @Composable () -> Unit +) { + val colors = MaterialTheme.colorScheme + val dark = isSystemInDarkTheme() + val shape = remember { + PrismalRoundedRectangle(GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP.dp) + } + val tintAlpha = GlassSurfacePolicy.supportingTintAlpha(dark) + val rimAlpha = GlassSurfacePolicy.supportingRimAlpha(dark) + val rimBrush = remember(colors.primary, colors.outline, dark) { + Brush.linearGradient( + colors = listOf( + Color.White.copy(alpha = if (dark) 0.24f else 0.64f), + colors.primary.copy(alpha = rimAlpha), + colors.outline.copy(alpha = if (dark) 0.30f else 0.18f) + ) + ) + } + val tintBrush = remember(colors.primary, colors.surface, dark) { + Brush.verticalGradient( + colors = listOf( + colors.primary.copy(alpha = tintAlpha), + Color.Transparent + ) + ) + } Card( - modifier = modifier.border( - 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) + modifier = modifier.border(1.dp, rimBrush, shape), + shape = shape, + colors = CardDefaults.cardColors( + containerColor = colors.surface.copy( + alpha = GlassSurfacePolicy.supportingSurfaceAlpha(dark) + ) ), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), - elevation = CardDefaults.cardElevation(defaultElevation = 1.dp) + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { - Column(Modifier.padding(horizontal = 14.dp, vertical = 13.dp), - verticalArrangement = Arrangement.spacedBy(5.dp)) { - Text(value, style = MaterialTheme.typography.headlineSmall, fontWeight = FontWeight.Bold, - color = MaterialTheme.colorScheme.primary) - Text(label, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) + Box(Modifier.fillMaxWidth().background(tintBrush)) { + content() + } + } +} + +@Composable +private fun MetricTile(label: String, value: String, modifier: Modifier = Modifier) { + SupportingGlassCard(modifier = modifier.heightIn(min = 82.dp)) { + Column( + Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 13.dp), + verticalArrangement = Arrangement.spacedBy(4.dp) + ) { + Text( + value, + style = MaterialTheme.typography.titleLarge, + fontSize = GlassSurfacePolicy.SUPPORTING_VALUE_SIZE_SP.sp, + fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.primary, + maxLines = 1, + softWrap = false, + overflow = TextOverflow.Ellipsis + ) + Text( + label, + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 2, + overflow = TextOverflow.Ellipsis + ) } } } @Composable private fun DestinationRow(title: String, description: String, trailing: String, onClick: () -> Unit) { - Card( - modifier = Modifier.fillMaxWidth().heightIn(min = 68.dp) - .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp)) - .clickable(onClick = onClick), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface) - ) { - Row(Modifier.fillMaxWidth().padding(16.dp), verticalAlignment = Alignment.CenterVertically) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth().heightIn(min = 72.dp)) { + Row( + Modifier.fillMaxWidth() + .clickable(role = Role.Button, onClick = onClick) + .padding(16.dp), + verticalAlignment = Alignment.CenterVertically + ) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { Text(title, style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) - Text(description, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary) + Text(description, style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.secondary) } - Text(trailing, style = MaterialTheme.typography.titleLarge, color = MaterialTheme.colorScheme.primary) + Text(trailing, style = MaterialTheme.typography.titleLarge, + color = MaterialTheme.colorScheme.primary, maxLines = 1, softWrap = false) } } } @@ -1800,9 +1855,11 @@ private fun ReadingStatsScreen(sessions: List) { val subjects = remember(sessions) { listOf("All") + sessions.map { it.subject }.distinct().sorted() } - val summary = StudyStatsPolicy.readingSummary( - sessions, dateRange, selectedSubject, selectedGsPaper, today - ) + val summary = remember(sessions, dateRange, selectedSubject, selectedGsPaper, today) { + StudyStatsPolicy.readingSummary( + sessions, dateRange, selectedSubject, selectedGsPaper, today + ) + } Column(Modifier.fillMaxSize()) { FilterChipRow("Date", StatsDateRange.values().map { it.label }, dateRange.label) { label -> dateRange = StatsDateRange.values().first { it.label == label } @@ -1830,14 +1887,7 @@ private fun ReadingStatsScreen(sessions: List) { fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.3.sp) } items(summary.days, key = { it.date.toString() }) { day -> - Card( - modifier = Modifier.border( - 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) - ), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), - elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) - ) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { Row(Modifier.fillMaxWidth().padding(14.dp), verticalAlignment = Alignment.CenterVertically) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { Text(day.date.format(DateTimeFormatter.ofPattern("EEE, d MMM", Locale.ENGLISH)), @@ -1864,9 +1914,11 @@ private fun QuizStatsScreen(attempts: List) { val subjects = remember(attempts) { listOf("All") + attempts.map { it.subject }.distinct().sorted() } - val summary = StudyStatsPolicy.quizSummary( - attempts, dateRange, selectedSubject, selectedGsPaper, today - ) + val summary = remember(attempts, dateRange, selectedSubject, selectedGsPaper, today) { + StudyStatsPolicy.quizSummary( + attempts, dateRange, selectedSubject, selectedGsPaper, today + ) + } val accuracy = if (summary.answersAttempted == 0) "—" else ((summary.correctAnswers * 100f / summary.answersAttempted).toInt().toString() + "%") Column(Modifier.fillMaxSize()) { @@ -1897,14 +1949,7 @@ private fun QuizStatsScreen(attempts: List) { verticalArrangement = Arrangement.spacedBy(9.dp) ) { items(summary.attempts, key = { it.id }) { attempt -> - Card( - modifier = Modifier.border( - 1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.12f), RoundedCornerShape(22.dp) - ), - shape = RoundedCornerShape(22.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), - elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) - ) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { Text(attempt.articleTitle, fontWeight = FontWeight.SemiBold, maxLines = 2, overflow = TextOverflow.Ellipsis) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt new file mode 100644 index 00000000..dcbc522f --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -0,0 +1,31 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertTrue +import org.junit.Test + +class GlassSurfacePolicyTest { + @Test + fun supportingContentRemainsNearlyOpaqueForReadability() { + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = true) >= 0.95f) + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) >= 0.98f) + } + + @Test + fun opticalTintAndRimStaySubtleAndBounded() { + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0f..0.10f) + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = false) in 0f..0.06f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = true) in 0f..0.25f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = false) in 0f..0.16f) + assertTrue( + GlassSurfacePolicy.supportingTintAlpha(dark = true) > + GlassSurfacePolicy.supportingTintAlpha(dark = false) + ) + } + + @Test + fun sharedGeometryAndMetricTypeScaleAreExplicit() { + assertEquals(22f, GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP, 0f) + assertEquals(20f, GlassSurfacePolicy.SUPPORTING_VALUE_SIZE_SP, 0f) + } +} From c8afed0a78c536a36567c286f19fdafcada1ac70 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 09:37:04 +0530 Subject: [PATCH 093/175] docs: refresh liquid glass roadmap and branch graph audit --- docs/BRANCH_CONSOLIDATION.md | 48 +++++++++++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 86 ++++++++++++++++++++------------- 2 files changed, 98 insertions(+), 36 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index a3682f39..8e4d278b 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,10 +2,10 @@ **Repository:** `Batmancpu/CurrentLens` **Chosen integration branch:** `black-box-bihar-news` -**Current HEAD at this audit:** `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2` +**Latest code change:** `5e966a1b2d27bc08e01af3cd40e6573d6e8328be` (parent `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`) **Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12` **Live branch inventory:** 26 refs (including `main` and this integration branch); no branch was deleted. -**Latest completed validation:** Actions run [#190](https://github.com/Batmancpu/CurrentLens/actions/runs/42335940352), success on the documentation commit before the PR #23 merge. Natural post-merge run #192 is validating this exact HEAD. +**Latest completed validation before the current code commit:** Actions run [#193](https://github.com/Batmancpu/CurrentLens/actions/runs/42336282039), success on exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; artifact `13559372948` (39,052,734 bytes). Commit `5e966a1` awaits its own natural CI result. **No Release was published.** No manual workflow dispatch or rerun was used. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -107,3 +107,47 @@ This is the live 25-ref inventory audited against the selected integration branc - The legacy unordered read-marker set remains unbounded; only new markers are capped. - Publisher RSS is secondary reporting. Automated primary-source corroboration against PIB, Gazette, ministries, Parliament, PRS, RBI, Supreme Court or regulators is not yet implemented. - Do not call the product perfectly working or bug-free until device and end-to-end checks are completed. + + +## Fresh branch-graph audit — 7 November 2026, 09:30 IST + +The repository API returned 26 remote branches on page 1 and none on page 2. The default branch is `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Before the current UI batch, `black-box-bihar-news@e411c394e8d48b3f547b6d6fb9039a8935bd05eb` compared as 94 ahead / 0 behind main and 37 ahead / 0 behind PR #16. It descends from PR #16's corrected stability/backdrop baseline. PR #19, #20 and #23 are ancestors of the integration branch. The following table records every branch head, last commit timestamp/message and its PR relationship at audit time. + +| Branch | Head SHA | Latest commit (UTC) | PR / state and treatment | +|---|---|---|---| +| `black-box-bihar-news` | `e411c394e8d48b3f547b6d6fb9039a8935bd05eb` | 2026-11-07 03:57:19 — docs: include parliamentary gate and final branch inventory | Active integration line; source for this batch | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — ci: validate pull requests with read-only build permissions | PR #18 open; compatible workflow design integrated, source retained | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — ci: restore Android SDK setup before sdkmanager | PR #20 merged into black-box; 35 commits behind current integration | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | PR #14 closed unmerged; head equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 — fix: refresh article card metadata when feed content changes | PR #6 open; editorial policy selectively ported; no wholesale merge | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — fix: select Atom article alternate links deterministically | PR #12 open; FeedLinkPolicy equivalent integrated | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — feat: expose publication date and publisher RSS provenance on cards | PR #11 open against black-box but head diverges (3 ahead / 94 behind); equivalent cache/date/provenance policies present; do not merge blindly | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — fix: minimise shareable process-exit diagnostics | PR #16 open; integration ancestor (37 commits behind current) | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open; combined editorial policy/tests ported | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — test: align economy signal count with repo-rate mapping | PR #2 merged to main; retained | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 — fix: tighten UPSC editorial signal matching | PR #1 merged to main; retained | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 — fix: use supported calendar navigation glyph | PR #5 merged to main; retained | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 — test: preserve Parliament bill headline variants | PR #23 merged into black-box; current integration is 3 commits ahead | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 — Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; equivalent host/redirect guards are in current code | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 — fix: deduplicate RSS tracking URL variants | PR #17 open; equivalent URL identity policy ported | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 — fix: capture Search glass tint before draw callback | PR #10 merged to main; current Prismal draw-scope fix retained | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 — fix: diagnose launch crashes and move feed indexing off main | PR #9 merged to main; current startup/indexing work retained | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 — fix: harden cold start and reduce feed rendering workload | PR #7 merged to main; current startup path retained | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | Default branch; current integration is 94 ahead / 0 behind | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 — Verify legacy markers survive recent-history retention | PR #22 open on PR #8 lineage; 9 ahead / 107 behind; current policy reconciled, legacy markers retained | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 — perf: move read-marker persistence off main thread | PR #8 open; IO/mutex persistence represented in current code; source retained | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 — fix: make selection decoding fallback valid JSON | Stale; 188 commits behind current integration; not used | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 — ui: restore low-cadence foreground adaptive glass contrast | PR #13 open; one shared 8×8 probe selectively ported with 4s/6s idle cadence; original faster cadence rejected | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 — fix: import bottom navigation glyphs | PR #3 merged; PR #4 closed unmerged; 3 unique commits / 112 behind current; stale, useful changes superseded | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 — docs(reader): record native selection collision guard | PR #19 merged into black-box; 24 commits behind current | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 — fix: finish syllabus metadata and thin-film feed eligibility | No separate PR; ancestor of black-box, 10 commits behind current | + +### Comparison and safety rationale + +- `main...black-box-bihar-news`: 94 ahead / 0 behind; merge base is main. +- `fix/early-startup-crash-diagnostics...black-box-bihar-news`: 37 ahead / 0 behind; PR #16 is the safe stability/Prismal ancestor. +- `ui/liquid-glass-system`, `ci/stacked-pr-validation`, `fix/parliamentary-syllabus-signal-gate` and `ui/liquid-glass-system-continuation` are ancestors of the integration branch; their deltas are already included. +- PR #11, #13, #12, #8, #22, #6, #21, #17, #18 and #15 have independent commits on divergent older lineages. Their useful policies were compared and selectively represented in current code; their branches were not merged or rewritten. +- The current workflow on black-box has read-only build permissions, pull-request validation for main/PR #16/black-box, and an isolated main-push release job. No workflow was dispatched manually. The current code commit awaits its natural workflow. +- No source branch was deleted, no main commit was made, and no Release was published. + diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a4701bdc..a1ee36e2 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,12 +1,12 @@ # Liquid Glass UI Roadmap -**Status:** Consolidated branch; current natural CI build is green +**Status:** Active incremental redesign; current code commit awaits its natural CI run. **Feature branch:** `black-box-bihar-news` -**Current HEAD:** `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2` -**Integration base:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` -**Last completed successful run:** #190 passed the documentation commit; post-PR #23 merge run #192 is validating this current HEAD. +**Latest code commit:** `5e966a1b2d27bc08e01af3cd40e6573d6e8328be` (parent/source baseline `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`). +**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; current branch is 37 commits ahead / 0 behind PR #16 and 94 ahead / 0 behind main. +**Last completed successful run:** #193, exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`, passed JVM tests, APK assembly and artifact upload; artifact `13559372948`. This does not validate commit `5e966a1`. **Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -**Safety:** no source branch has been deleted and no Release has been published. The user retains all source refs until review. +**Safety:** no source branch has been deleted, no Release has been published, and no workflow has been manually dispatched or rerun. ## Product and material principles @@ -23,16 +23,18 @@ Preserve the existing PrismalAGSL implementation. Do not create a parallel glass ## Verified branch selection and dependency register -The complete remote branch inventory contained 19 branches at the start of this iteration. The chosen source is the latest safe UI baseline, not the most recently named or timestamped UI branch. +A fresh complete inventory on 7 November 2026 at 09:30 IST returned **26 remote branches** (page 1: 26; page 2: 0). The repository default remains `main` at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. The selected integration line is `black-box-bihar-news`, not a timestamp-only branch choice: before this batch it was `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`, 94 commits ahead / 0 behind main and 37 ahead / 0 behind PR #16. It descends from PR #16's corrected background-only Prismal/launch baseline and contains the merged PR #19 Reader, PR #20 read-only stacked CI, and PR #23 editorial-gate work. The supporting-surface change in this batch is based directly on that verified head; no other branch was modified. -- `fix/early-startup-crash-diagnostics-2026-11-06` — PR #16 head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; 57 ahead / 0 behind main. Selected because it contains the latest corrected Prismal capture and launch/privacy work. -- `ui/liquid-glass-performance-2026-11-06` — `2e9c7f62ca65a899e18d9026e1535392835b3724`; diverged from PR #16 by 3 unique commits and 75 commits behind. Not used as a base. Its first material/UI commit was merged through PR #3; the Search source-height adjustment is already present in PR #16; the remaining icon-import change is superseded by current imports. -- `redesign/v0.3-search-reader` — `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8`; 151 commits behind PR #16. Stale and not used. -- PR #13 / `ui/foreground-adaptive-glass-contrast-2026-11-06` — its shared 8×8 bottom-band luminance probe and linear-luminance policy are selectively integrated. The original 1.5 s / 2.5 s cadence was not retained: the consolidated implementation uses 4 s on Android 12+ / 6 s on older Android and suspends sampling during feed motion, Reader, Settings and background operation. It remains one shared root source; device-side jank/battery impact is unverified. -- PR #18 / `ci/read-only-pr-validation-isolated-release-write-2026-11-06` and PR #20 / `ci/stacked-pr-validation-2026-11-07` — their compatible workflow intent is consolidated into the one workflow on `black-box-bihar-news`: read-only build job, separately gated main-push release job, and natural PR validation for main, PR #16 and this integration branch. Source branches are retained. -- PRs #6 and #21 are reconciled into one editorial policy: GS I Geography, Finance Bill / parliamentary bill / heat-wave signals, entertainment and viral/sports false-positive suppression, narrow thin-film science exception, content-aware card metadata and labelled synthetic regression fixtures. PR #8 and #22 are reconciled into off-main local persistence with an ordered 5,000-entry window for new read markers while preserving the legacy unordered set. PR #11, #12 and #17 are selectively ported into the latest redirect-guarded feed code: publication-date precedence/cache/provenance, Atom alternate-link selection, tracking-URL identity and exact bookmark/read-variant preference. These changes were hand-reconciled, not blindly merged. +The branch-by-branch head SHA, last commit timestamp/message, PR relationship and comparison treatment are recorded in `docs/BRANCH_CONSOLIDATION.md` under the 7 November 09:30 IST freshness audit. Important non-ancestor work was reviewed rather than blindly merged: -Recheck the entire branch graph, open PRs, merge state and exact source/base SHAs before every subsequent implementation pass. Never reset, force-push, overwrite or discard another branch's commits. +- PR #11's date/cache/provenance policy is present in current `ArticleCachePolicy`, `ArticleProvenancePolicy`, `FeedPublicationDatePolicy`, and repository code; its branch remains divergent (3 ahead / 94 behind) and is not merged wholesale. +- PR #22 / PR #8 read-history changes are represented by the current ordered 5,000-entry new-marker window plus preserved legacy unordered markers; the source branches remain divergent and are not merged. +- PR #13's original 1.5 s / 2.5 s adaptive probe cadence was not copied. The current single shared probe uses the documented 4 s / 6 s cadence and pauses outside foreground home/while scrolling; physical-device cost remains unverified. +- PR #6 / #21 editorial policies, PR #12 Atom link selection and PR #17 URL identity are represented by selectively ported current policies/tests. PR #18 / #20 workflow intent is already in the single current workflow. +- PR #16 is the integration ancestor. PR #19, #20 and #23 are merged into this integration branch only. PR #11 is still open against this branch but its head is divergent; do not merge it without re-review. +- Older `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain stale; no branch was deleted. + +Recheck every branch head and dependency before each future implementation commit. Never reset, force-push, overwrite or discard another branch's commits. ## Screen coverage matrix @@ -41,20 +43,20 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA | Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Existing Prismal glass; contrast/hierarchy polish remains | | Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Existing Prismal droplet, hidden glyph capture and merged source; no new sampler | | Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; state policy validated in runs #186 and #187; physical animation still needs device validation | -| Search morph field | Interactive control glass | Preserve tab-to-IME geometry and focus; trailing clear affordance | Existing morph/focus callback preserved; clear target is 48dp (run #183 and #187 passed) | +| Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; run #183 passed | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | -| You dashboard | Supporting surfaces | Consistent metric/destination geometry and restrained tint/edge hierarchy | Standard cards; geometry pass remains | -| Saved | Interactive controls + editorial content | Clear filters; standard readable saved-story cards | Existing filters/cards; consistency pass remains | -| Reading / Quiz Stats | Supporting surfaces | Consistent metric tiles, filter states and readable charts/data | Standard content surfaces; hierarchy pass remains | -| Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control | Implemented in this batch | +| You dashboard | Supporting glass | Shared non-blurred tinted/rim card, continuous 22dp geometry, single-line metric values | Integrated in code commit 5e966; OPPO contrast check unverified | +| Saved | Interactive controls + editorial content | Readable story cards; stable date/GS/subject filters | Saved article/subject/filter derivations memoized in 5e966; grouped filter material remains | +| Reading / Quiz Stats | Supporting glass + editorial data | Shared metric tiles and quiet supporting tint/rim on day/attempt records; data stays high contrast | Integrated in 5e966; summaries memoized; device contrast/performance unverified | +| Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control; direction-aware auto-hide | Implemented; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | -| Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; no overlap with definition | Implemented in this batch | +| Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; hide with reader chrome and avoid definition/action-mode overlap | Implemented; physical safe-area/selection checks unverified | | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | | Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Existing standard surfaces; preserve | | Quiz action controls | Interactive control glass where useful | Compact, accessible action layer without glassifying questions | Planned | -| Appearance settings | Interactive control glass | Clear↔Frosted control and live preview using existing components | Existing slider, presets and preview; low-effects option/preview polish remains | +| Appearance settings | Interactive control glass | Clear↔Frosted slider, presets and small live header/navigation/article preview | Preview integrated; accessible low-effects/reduced-transparency option remains next | | Dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | ## Paired performance matrix @@ -71,7 +73,7 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA | Reader progress | 2dp content indicator | Reuse existing debounced `savedReadingProgress`; no polling, WebView injection or readback | Hidden at zero/completion; visual timing needs device validation | | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | -| Dashboard / stats / quiz | No new live blur in this batch | Standard content surfaces and shared shape/spacing tokens in later pass | Avoid glass on dense data/questions | +| You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | | Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Low-effects option and slider coalescing remain future work | ## Implemented batch — Reader toolbar and completion @@ -87,26 +89,26 @@ Recheck the entire branch graph, open PRs, merge state and exact source/base SHA **Rendering delta:** one small Reader toolbar surface is now active while reading; one small completion surface is active only after completion. Both reuse the existing root backdrop. The definition popover remains the existing single anchored surface. No per-card blur, extra backdrop capture, sampler, image decode, GPU readback, dependency, network request or persistent data format was added. -**Not included yet:** Reader chrome auto-hide/directional pinning, feed-only compact navigation, Search clear target increase, dashboard/stat geometry and the full appearance-preview refinement remain separate future batches. +**Subsequently implemented:** Reader chrome auto-hide/directional pinning, 48dp Search clear, feed-only compact navigation, dashboard/stat supporting surfaces and the Appearance live preview. Low-effects/reduced-transparency preference, grouped Saved/stat filter material and the remaining quiz action-area polish remain future batches. ## Verification status and limitations -- Branch creation source was rechecked against PR #16 head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -- PR #16's latest natural run before this branch, Build #167, passed WordNet builder tests (4/4), offline database generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. This result does **not** validate this feature branch. -- The current PR #16 workflow only triggers pushes to `main` and the PR #16 branch; it has no pull-request trigger. The PR #18 read-only PR workflow is a separate, unmerged branch and targets `main`, not this feature PR's base. No workflow was manually dispatched or rerun. Therefore this feature batch has **no CI result yet**; do not claim compilation or tests passed until a natural run validates this exact head. -- No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement was available. Those checks remain **UNVERIFIED**. CI/JVM success cannot establish native launch stability or real-device smoothness. +- The complete 26-branch graph was re-enumerated on 7 November 2026 at 09:30 IST. The source baseline was `black-box-bihar-news@e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; it was 94 ahead / 0 behind main and 37 ahead / 0 behind PR #16. The current code commit is `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`. +- The last completed natural workflow before the current code commit was run #193 on exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`. Its build job passed WordNet builder tests/database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact ID `13559372948`, 39,052,734 bytes, SHA-256 `095bb848171516892b33e8e7742d8d46034b7514410179fb002eeb5d274f5c24`. The release job was skipped. This run does **not** validate the newer `5e966a1` commit. +- The current supporting-glass batch adds a focused `GlassSurfacePolicyTest`; its natural CI result is pending. Do not claim this commit compiles or passes until a workflow run reports the exact new SHA. +- No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement is available. Visual transitions, contrast on image backdrops, real-device launch stability and resource cost remain **UNVERIFIED**. +- Source-level cost controls for this batch: no Prismal capture, live blur, refraction, sampler, readback, graphics layer, image decode or dependency was added; only a small gradient tint/rim on already-visible supporting cards. This is a code-scope statement, not a measured performance win. - The native launch fault remains unproven as fixed until a post-change physical-device launch test is available. ## Next implementation sequence -1. Reader chrome auto-hide: directional thresholds/hysteresis, reveal on upward scroll/tap, pin while selection/ActionMode/definition/IME/accessibility needs controls; no per-pixel Compose updates. -2. Search pass: raise the existing clear affordance to >=48dp while preserving focus, keyboard and filters; keep the current IME morph geometry. -3. Feed-only navigation morph: Today/Explore/Search only; compact active-name pill on sustained downward scroll, expand on upward scroll/top/tab action; prove You/nested screens never collapse. -4. Explore filter touch targets/semantics and selected contrast; You/Saved/stats card geometry; Appearance preview and low-effects option. -5. Whole-app consistency and measured performance/accessibility pass on representative screens. - -Do not mark the redesign complete until every screen in the matrix has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. +1. Appearance: add an accessible low-effects/reduced-transparency preference that changes the real shared material parameters; coalesce slider preview updates and avoid whole-app/backdrop rebuilds. +2. Saved and stats controls: group date/GS/subject controls into a restrained shared control material without creating multiple heavy blur plates; preserve 48dp targets and horizontal scroll. +3. Quiz action area and transient menus/sheets: add the same restrained control-glass vocabulary only where it improves hierarchy; keep questions/options and explanatory content on clear surfaces. +4. Whole-app audit: reconcile the header, filters, reader, navigation, dashboard, saved, stats and quiz resting/transient states; run accessibility and visual checks on both light/dark and scaled text. +5. Measure on OPPO Reno10 5G (or explicitly keep device metrics unverified): startup, scroll jank/frame timing, allocation churn, GPU overdraw/layers, thermal and battery against the same base build. +Do not mark the redesign complete until every screen has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. ## Consolidation implementation log @@ -123,7 +125,8 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches | PR #17 URL deduplication | Canonical comparison; exact bookmark/read URL variant wins before newest publication | Run #182 and #183 passed | | PR #6 + #21 editorial | GS I Geography, bill/Finance Bill, heat-wave; film/viral/sports safeguards; labelled synthetic tests | Run #182 and #183 passed | | PR #13 adaptive glass contrast | Shared 8×8 band probe, foreground/idle-only, 4s/6s cadence, pauses during feed motion, Reader, Settings and background | Run #187 passed; physical-device profile unverified | -| Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/collapsed Search; You/nested surfaces remain expanded | Run #186 policy tests and #187 integration build passed; visual motion needs device validation | +| Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/Search; You/nested surfaces remain expanded | Run #186 policy tests and #187 integration build passed; visual motion needs device validation | +| Supporting glass surfaces | Shared non-blurred tier for You metrics, practice-empty and destinations plus stats day/attempt cards | Code commit 5e966; focused policy tests added; natural CI pending | ### Deliberately excluded / superseded @@ -145,3 +148,18 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches - The parliamentary signal gate (PR #23) is merged into `black-box-bihar-news`; current merged head is `46c7d77f66a1a2eba87bad77e5345f2b0e1ec3b2`. Natural post-merge run #192 is in progress; wait for that exact run before claiming the newest head passed. - Release publishing is skipped off main. No manual dispatch/rerun; no main edit/merge. - CI does not verify physical-device launch, animation smoothness, accessibility or performance. These remain unverified. + + +## Supporting-surface implementation batch — 7 November 2026 + +**Source / lineage:** `black-box-bihar-news`, baseline `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; 94 ahead / 0 behind `main`, 37 ahead / 0 behind PR #16. New code commit: `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`. + +- Added `GlassSurfacePolicy` as shared tokens for 22dp continuous geometry, 20sp metric values, nearly opaque supporting fills, low-alpha theme-aware tint and restrained rim. +- Added one reusable `SupportingGlassCard` used by You metric tiles, the practice-empty panel, library destinations, Reading Stats day rows and Quiz Stats attempt rows. It uses the existing Prismal rounded geometry but deliberately **does not** capture, blur, refract or sample the backdrop. +- Kept dense text/data on high-opacity surfaces; metric values are single-line and labels are bounded to two lines to avoid the clipping/wrapping seen in the recording. +- Memoized You totals, Reading/Quiz Stats summaries and SavedFeed's saved/previously-opened/filter derivations by their actual immutable inputs. This avoids reclassifying every article on unrelated filter recompositions. +- Added `GlassSurfacePolicyTest` for contrast reserve, tint/rim bounds and shared geometry/type scale. + +**Rendering delta:** one cached vertical tint brush and one cached rim brush per composed supporting card; no new blur pass, root capture, tab-glyph capture, sampler/readback, graphics layer, bitmap work, network or persistent data change. Existing lazy composition remains bounded to visible list items. No measured frame-time or battery improvement is claimed. + +**Verification:** parent run #193 passed at exact SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; artifact `13559372948`. It does not validate this new commit. Natural CI for `5e966a1` is pending. OPPO/TalkBack/visual/performance checks remain unverified. From cfe0b3e8319374df5cb29423f04a79c77d4fe10e Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 10:35:40 +0530 Subject: [PATCH 094/175] perf(reader): restore saved position off the UI thread --- .../mangoloads/currentlens/MainActivity.kt | 60 +++++++++++------- docs/BRANCH_CONSOLIDATION.md | 62 +++++++++++++++++-- docs/LIQUID_GLASS_UI_ROADMAP.md | 29 +++++++-- 3 files changed, 120 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 88538c75..17fa9095 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2582,8 +2582,18 @@ private fun ReaderScreen( ) { val context = LocalContext.current val readerWebViewHolder = remember { mutableStateOf(null) } - var savedReadingProgress by remember(article.url) { - mutableFloatStateOf(LocalStore.readerPosition(context, article.url)?.progress ?: 0f) + var savedReadingProgress by remember(article.url) { mutableFloatStateOf(0f) } + var readerPositionLoaded by remember(article.url) { mutableStateOf(false) } + LaunchedEffect(article.url) { + readerPositionLoaded = false + savedReadingProgress = 0f + val restoredProgress = withContext(Dispatchers.IO) { + runCatching { + LocalStore.readerPosition(context, article.url)?.progress ?: 0f + }.getOrDefault(0f) + } + savedReadingProgress = restoredProgress + readerPositionLoaded = true } var contentLoaded by remember(article.url) { mutableStateOf(false) } @@ -2704,7 +2714,9 @@ private fun ReaderScreen( } } } - if (extracting || (!pageLoaded && (extractedHtml != null || fallbackToPublisher))) androidx.compose.material3.LinearProgressIndicator(Modifier.fillMaxWidth()) + if (extracting || !readerPositionLoaded || + (!pageLoaded && (extractedHtml != null || fallbackToPublisher)) + ) androidx.compose.material3.LinearProgressIndicator(Modifier.fillMaxWidth()) Box(Modifier.weight(1f).fillMaxWidth().onGloballyPositioned { coordinates -> // Both this viewport and the WebView selection rectangle are converted // in window coordinates; mixing screen and window origins double-counts @@ -2843,26 +2855,28 @@ private fun ReaderScreen( activeWordAnchor = null activeWordPreferAbove = false } - val cleanHtml = extractedHtml - if (cleanHtml != null) { - val key = "reader:" + article.url + ":" + fontSize + ":" + dark - if (webView.loadedKey != key) { - if (!articleChanged) webView.flushReadingPosition() - webView.queueReadingPositionRestore(savedReadingProgress) - webView.loadedKey = key - pageLoaded = false - contentLoaded = false - webView.loadDataWithBaseURL(article.url, readerDocument(article, cleanHtml, fontSize, dark), "text/html", "UTF-8", null) - } - } else if (fallbackToPublisher) { - val key = "publisher:" + article.url + ":" + fontSize - if (webView.loadedKey != key) { - if (!articleChanged) webView.flushReadingPosition() - webView.queueReadingPositionRestore(savedReadingProgress) - webView.loadedKey = key - pageLoaded = false - contentLoaded = false - webView.loadUrl(article.url) + if (readerPositionLoaded) { + val cleanHtml = extractedHtml + if (cleanHtml != null) { + val key = "reader:" + article.url + ":" + fontSize + ":" + dark + if (webView.loadedKey != key) { + if (!articleChanged) webView.flushReadingPosition() + webView.queueReadingPositionRestore(savedReadingProgress) + webView.loadedKey = key + pageLoaded = false + contentLoaded = false + webView.loadDataWithBaseURL(article.url, readerDocument(article, cleanHtml, fontSize, dark), "text/html", "UTF-8", null) + } + } else if (fallbackToPublisher) { + val key = "publisher:" + article.url + ":" + fontSize + if (webView.loadedKey != key) { + if (!articleChanged) webView.flushReadingPosition() + webView.queueReadingPositionRestore(savedReadingProgress) + webView.loadedKey = key + pageLoaded = false + contentLoaded = false + webView.loadUrl(article.url) + } } } } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 8e4d278b..5a43123e 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,11 +2,11 @@ **Repository:** `Batmancpu/CurrentLens` **Chosen integration branch:** `black-box-bihar-news` -**Latest code change:** `5e966a1b2d27bc08e01af3cd40e6573d6e8328be` (parent `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`) +**Pre-iteration branch HEAD:** `c8afed0a78c536a36567c286f19fdafcada1ac70`; follow the live branch ref for the new Reader resume-I/O commit **Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12` -**Live branch inventory:** 26 refs (including `main` and this integration branch); no branch was deleted. -**Latest completed validation before the current code commit:** Actions run [#193](https://github.com/Batmancpu/CurrentLens/actions/runs/42336282039), success on exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; artifact `13559372948` (39,052,734 bytes). Commit `5e966a1` awaits its own natural CI result. -**No Release was published.** No manual workflow dispatch or rerun was used. +**Live branch inventory:** 28 refs (page 1: 28; page 2: 0) at the pre-implementation audit; no branch was deleted. +**Latest completed validation before this iteration:** Actions run [#196](https://github.com/Batmancpu/CurrentLens/actions/runs/42337007726), success on exact SHA `c8afed0a78c536a36567c286f19fdafcada1ac70`; artifact `13560390670` (39,057,437 bytes). Run #195 also passed the exact supporting-glass code SHA `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`. +**No feature-branch Release was published; the main-only publish job was skipped.** Existing latest Release remains `v0.2.0-build-116`. No manual workflow dispatch or rerun was used. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -151,3 +151,57 @@ The repository API returned 26 remote branches on page 1 and none on page 2. The - The current workflow on black-box has read-only build permissions, pull-request validation for main/PR #16/black-box, and an isolated main-push release job. No workflow was dispatched manually. The current code commit awaits its natural workflow. - No source branch was deleted, no main commit was made, and no Release was published. + + +## Live branch-graph audit — 7 November 2026 (pre-implementation source state) + +The complete GitHub branch endpoint returned **28 remote refs** on page 1 and **0** on page 2. Default branch: `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The table records the exact source graph before this iteration's commit; branch refs must be refreshed on the next run. + +| Branch | Head SHA | Latest commit (UTC) | PR relationship / disposition | +|---|---|---|---| +| `black-box-bihar-news` | `c8afed0a78c536a36567c286f19fdafcada1ac70` | 2026-11-07 04:07:04 — docs: refresh liquid glass roadmap and branch graph audit | Owner-selected active consolidation branch; PRs #19, #20, #23 merged into this branch; no open PR from this head | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 — ui: consolidate lightweight supporting glass surfaces | Divergent rename/validation line; PR #24 targets it; not selected under the single-branch instruction | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — ci: validate pull requests with read-only build permissions | PR #18 open/draft, base main; compatible workflow design already integrated | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — ci: restore Android SDK setup before sdkmanager | PR #20 merged into black-box | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | PR #14 closed unmerged; head equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 — fix: refresh article card metadata when feed content changes | PR #6 open/draft, base main; policy selectively represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — fix: select Atom article alternate links deterministically | PR #12 open/draft, base main; FeedLinkPolicy equivalent integrated | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — feat: expose publication date and publisher RSS provenance on cards | PR #11 open/draft, base black-box; divergent older base, do not merge wholesale | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — fix: minimise shareable process-exit diagnostics | PR #16 open/draft, base main; required stability/Prismal ancestor | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open/draft, base main; useful policy already reconciled | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 — fix(editorial): match policy action and target as separate words | PR #24 open/draft, base brrrNEWS; 3-file editorial-only diff, not ported | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — test: align economy signal count with repo-rate mapping | PR #2 merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 — fix: tighten UPSC editorial signal matching | PR #1 merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 — fix: use supported calendar navigation glyph | PR #5 merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 — test: preserve Parliament bill headline variants | PR #23 merged into black-box | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 — Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; equivalent guards retained | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 — fix: deduplicate RSS tracking URL variants | PR #17 open/draft, base main; URL identity policy ported | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 — fix: capture Search glass tint before draw callback | PR #10 merged into main | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 — fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 — fix: harden cold start and reduce feed rendering workload | PR #7 merged into main | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 — Verify legacy markers survive recent-history retention | PR #22 open/draft, base perf/off-main; reconciled policy represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 — perf: move read-marker persistence off main thread | PR #8 open/draft, base main; persistence policy represented | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 — fix: make selection decoding fallback valid JSON | Stale; not used | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 — ui: restore low-cadence foreground adaptive glass contrast | PR #13 open/draft, base main; safeguarded probe integrated | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 — fix: import bottom navigation glyphs | PR #3 merged into main; PR #4 closed unmerged; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 — docs(reader): record native selection collision guard | PR #19 merged into black-box | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 — fix: finish syllabus metadata and thin-film feed eligibility | No separate PR; ancestor of black-box | + +### Comparison and CI state at this audit + +- `main...black-box-bihar-news`: 96 ahead / 0 behind; merge base main. +- `fix/early-startup-crash-diagnostics...black-box-bihar-news`: 39 ahead / 0 behind; corrected PR #16 baseline retained. +- `black-box-bihar-news...brrrNEWS`: 4 ahead / 2 behind; merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`. Only the Reader resume-I/O commit was useful to this task and is selectively ported in the current implementation. The visible-label/workflow rename is deliberately excluded. +- `ui/liquid-glass-system-continuation...black-box-bihar-news`: 12 ahead / 0 behind; latest relevant UI continuation is included. +- Open PRs: #24 (base brrrNEWS), #11 (base black-box), #13, #6, #17, #22, #21, #16, #18, #8 and #12. Closed/merged PRs: #23, #19 and #20 into black-box; #10, #9, #7, #5, #3, #2 and #1 into main. #14, #15 and #4 are closed unmerged. +- Actions history: 199 runs, fully paginated (100 + 99 + 0); no queued or in-progress runs. Latest overall run #199 is PR #24 on its exact head and is not validation of black-box. +- Latest black-box validation before this iteration: run #196 on exact SHA `c8afed0`, success; artifact `13560390670` (39,057,437 bytes, SHA-256 `ced7d2283572550e3e74a9d159ba485ace818aa02d0c358f9fba0296b48c7254`). Run #195 on exact supporting-glass code SHA `5e966a1` also succeeded; artifact `13559698985`. +- Run #196 build steps: WordNet builder tests passed; offline WordNet generated 151,456 unique words; `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. The isolated publish job was skipped. +- The single workflow on black-box has read-only build permissions and a separately gated `contents: write` job only for a main-branch push. Push and PR triggers include main, PR #16 and black-box. No workflow was manually dispatched or rerun. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No feature-branch Release was published. +- No branch other than `black-box-bihar-news` was modified; no source ref was deleted; main remains unchanged. + +## Reader resume-I/O port from brrrNEWS + +Commit `e161a9a53a3d85d06b4908eb690aecb02a716015` was reviewed at full diff and ported selectively: the existing saved Reader progress is now restored on `Dispatchers.IO` before the WebView queues its content restore. The rest of the `brrrNEWS` branch's branch-specific workflow and visible app-label changes were not ported. No source branch was modified or deleted. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a1ee36e2..093ea2ad 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,10 +1,10 @@ # Liquid Glass UI Roadmap -**Status:** Active incremental redesign; current code commit awaits its natural CI run. +**Status:** Active incremental redesign; supporting-surface code and its documentation baseline have passed natural CI; the Reader resume-I/O batch in this iteration awaits its own natural CI run. **Feature branch:** `black-box-bihar-news` -**Latest code commit:** `5e966a1b2d27bc08e01af3cd40e6573d6e8328be` (parent/source baseline `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`). -**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; current branch is 37 commits ahead / 0 behind PR #16 and 94 ahead / 0 behind main. -**Last completed successful run:** #193, exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`, passed JVM tests, APK assembly and artifact upload; artifact `13559372948`. This does not validate commit `5e966a1`. +**Pre-iteration source HEAD:** `c8afed0a78c536a36567c286f19fdafcada1ac70`; follow the live `black-box-bihar-news` ref for this iteration's new HEAD. +**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; pre-iteration branch head is 39 commits ahead / 0 behind PR #16 and 96 ahead / 0 behind main. +**Last completed successful run:** #196, exact pre-iteration HEAD `c8afed0a78c536a36567c286f19fdafcada1ac70`, passed WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; artifact `13560390670`. Run #195 also passed the exact supporting-glass code commit `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`; these runs do not validate the new Reader resume-I/O commit. **Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. **Safety:** no source branch has been deleted, no Release has been published, and no workflow has been manually dispatched or rerun. @@ -163,3 +163,24 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches **Rendering delta:** one cached vertical tint brush and one cached rim brush per composed supporting card; no new blur pass, root capture, tab-glyph capture, sampler/readback, graphics layer, bitmap work, network or persistent data change. Existing lazy composition remains bounded to visible list items. No measured frame-time or battery improvement is claimed. **Verification:** parent run #193 passed at exact SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; artifact `13559372948`. It does not validate this new commit. Natural CI for `5e966a1` is pending. OPPO/TalkBack/visual/performance checks remain unverified. + + +## Reader resume restoration off-main batch — 7 November 2026 + +**Selected development branch:** `black-box-bihar-news`; source before this iteration `c8afed0a78c536a36567c286f19fdafcada1ac70`. This remains the single active consolidation branch under the owner's explicit branch instruction. + +**Fresh sibling-branch review:** `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` is a newer, divergent rename/validation line (4 commits ahead / 2 behind `black-box-bihar-news`, common ancestor `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`). Its commit `e161a9a53a3d85d06b4908eb690aecb02a716015` (“perf(reader): restore saved position off the UI thread”) was reviewed and selectively ported. Its other changes were not copied: +- `d4f0458` changes the single workflow's branch filter and artifact naming to `brrrNEWS`; the active branch's read-only PR workflow remains unchanged. +- `c9a1d53` changes the visible app label/docs to uppercase `brrrNEWS`; not adopted because this task preserves the existing app identity. +- `e6fcfc2` repeats the supporting-glass implementation already present in `black-box-bihar-news` as `5e966a1`; no duplicate system was added. +- PR #24 targets `brrrNEWS` and changes only `UpscFeedPolicy.kt`, its tests and editorial baseline documentation. It is editorial-only and was not ported into this UI pass. + +**Implementation:** `ReaderScreen` no longer reads and parses the saved Reader-position JSON synchronously during composition. A per-article `LaunchedEffect` restores the existing value on `Dispatchers.IO`, publishes it to Compose state, and only then allows the existing WebView content/fallback load to queue its resume point. The existing linear progress indicator remains visible while the resume point is being restored. Article-key scoping cancels stale restore work when the user changes articles. + +**Data and behaviour:** no preference key, JSON format, retention rule, WebView permission, publisher fallback, JavaScript/DOM-storage policy, scroll-save debounce, completion rule, selection bridge or quiz persistence semantics changed. The existing `ReaderPositionPolicy` and `ReaderPositionPolicyTest` remain the policy/geometry regression coverage; this batch adds coroutine sequencing rather than a new policy, so no wrapper-only test was added. + +**Paired performance strategy:** removes the bounded SharedPreferences/JSON lookup from the Reader composition path and performs one restore read on IO per article open. It adds no timer, polling, network request, bitmap decode, blur, shader, graphics layer, Prismal capture, sampler or readback. This is a source-level main-thread-work reduction, not a measured frame-time or battery result. + +**Verification:** pre-iteration run #196 passed on exact source SHA `c8afed0`; run #195 passed on `5e966a1`. The new Reader resume-I/O commit requires its own natural push workflow. OPPO Reno10 launch/scroll traces, restore timing, memory, thermal and battery remain **UNVERIFIED**. + +**Next implementation:** add an accessible low-effects/reduced-transparency preference that changes the real shared Prismal material parameters consistently, with a low-cost fallback and a restrained live preview; then consolidate Saved/stat filters and polish the Quiz action area. Preserve one root backdrop source and do not add a second sampler. From 2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 11:43:13 +0530 Subject: [PATCH 095/175] feat(appearance): add app-wide reduced-transparency mode --- .../GlassLuminanceActivationPolicy.kt | 5 +- .../currentlens/GlassRenderingPolicy.kt | 44 +++ .../com/mangoloads/currentlens/LocalStore.kt | 12 + .../mangoloads/currentlens/MainActivity.kt | 264 +++++++++++------- .../GlassLuminanceActivationPolicyTest.kt | 12 + .../currentlens/GlassRenderingPolicyTest.kt | 41 +++ docs/BRANCH_CONSOLIDATION.md | 60 +++- docs/BUILD_AND_DEBUG.md | 10 + docs/DECISION_LOG.md | 5 + docs/LIQUID_GLASS_UI_ROADMAP.md | 25 +- docs/PROJECT_HANDOFF.md | 10 + docs/SESSION_LEDGER.md | 13 + 12 files changed, 388 insertions(+), 113 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/GlassRenderingPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/GlassRenderingPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt index 546a1ab5..3fb291f7 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicy.kt @@ -6,6 +6,7 @@ internal object GlassLuminanceActivationPolicy { isResumed: Boolean, readerOpen: Boolean, settingsOpen: Boolean, - feedScrolling: Boolean = false - ): Boolean = isResumed && !readerOpen && !settingsOpen && !feedScrolling + feedScrolling: Boolean = false, + reduceTransparency: Boolean = false + ): Boolean = isResumed && !readerOpen && !settingsOpen && !feedScrolling && !reduceTransparency } diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassRenderingPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassRenderingPolicy.kt new file mode 100644 index 00000000..c84469ac --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/GlassRenderingPolicy.kt @@ -0,0 +1,44 @@ +package com.mangoloads.currentlens + +/** + * Shared, testable fallback for users who prefer less transparency and fewer live optics. + * The normal material remains unchanged unless the local preference is enabled. + */ +internal object GlassRenderingPolicy { + const val REDUCED_MIN_TINT_ALPHA = 0.24f + private const val REDUCED_SPECULAR_SCALE = 0.42f + + fun blurDp(baseDp: Float, reduceTransparency: Boolean): Float = + if (reduceTransparency) 0f else nonNegative(baseDp) + + fun refractionDp(baseDp: Float, reduceTransparency: Boolean): Float = + if (reduceTransparency) 0f else nonNegative(baseDp) + + fun refractionPx(basePx: Float, reduceTransparency: Boolean): Float = + if (reduceTransparency) 0f else nonNegative(basePx) + + fun chromaticAberration(base: Float, reduceTransparency: Boolean): Float = + if (reduceTransparency) 0f else nonNegative(base) + + fun depthEnabled(base: Boolean, reduceTransparency: Boolean): Boolean = + base && !reduceTransparency + + fun specularAlpha(base: Float, reduceTransparency: Boolean): Float { + val alpha = unitInterval(base) + return if (reduceTransparency) alpha * REDUCED_SPECULAR_SCALE else alpha + } + + fun shadowAlpha(base: Float, reduceTransparency: Boolean): Float = + if (reduceTransparency) 0f else unitInterval(base) + + fun tintAlpha(base: Float, reduceTransparency: Boolean): Float { + val alpha = unitInterval(base) + return if (reduceTransparency) maxOf(alpha, REDUCED_MIN_TINT_ALPHA) else alpha + } + + private fun nonNegative(value: Float): Float = + if (value.isFinite()) value.coerceAtLeast(0f) else 0f + + private fun unitInterval(value: Float): Float = + if (value.isFinite()) value.coerceIn(0f, 1f) else 0f +} diff --git a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt index b2f1e3e9..8044e48b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt @@ -19,6 +19,7 @@ object LocalStore { private const val RECENT_READ = "read_history_recent_v1" private const val ARTICLE_CACHE = "article_cache" private const val GLASS_ALPHA = "glass_alpha" + private const val REDUCE_TRANSPARENCY = "glass_reduce_transparency" private const val MAX_CACHED_ARTICLES = 500 private const val CACHE_DAYS = 30 private const val DEFAULT_GLASS_ALPHA = 0.28f @@ -529,4 +530,15 @@ object LocalStore { context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) .edit().putFloat(GLASS_ALPHA, value.coerceIn(0.12f, 0.55f)).apply() } + + fun reduceTransparency(context: Context): Boolean = + runCatching { + context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + .getBoolean(REDUCE_TRANSPARENCY, false) + }.getOrDefault(false) + + fun saveReduceTransparency(context: Context, enabled: Boolean) { + context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + .edit().putBoolean(REDUCE_TRANSPARENCY, enabled).apply() + } } diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 17fa9095..5136a792 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -103,6 +103,8 @@ import androidx.compose.material3.IconButton import androidx.compose.material3.MaterialTheme import androidx.compose.material3.ModalBottomSheet import androidx.compose.material3.Surface +import androidx.compose.material3.Slider +import androidx.compose.material3.Switch import androidx.compose.material3.OutlinedButton import androidx.compose.material3.Text import androidx.compose.material3.TextButton @@ -123,6 +125,7 @@ import androidx.compose.runtime.rememberUpdatedState import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.runtime.snapshotFlow import androidx.compose.runtime.setValue +import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.runtime.withFrameNanos import androidx.compose.ui.Alignment import androidx.compose.ui.geometry.Offset @@ -190,7 +193,6 @@ import com.styropyr0.prismal.specular.PrismalSpecular import com.styropyr0.prismal.specular.PrismalSpecularStyle import com.styropyr0.prismal.components.LocalPrismalBottomTabHighlightedIndex import com.styropyr0.prismal.components.PrismalGlassBottomTab -import com.styropyr0.prismal.components.PrismalGlassSlider import com.styropyr0.prismal.interactive.PrismalPressRipple import com.styropyr0.prismal.interactive.PrismalSpringMotion import com.styropyr0.prismal.shapes.PrismalCapsule @@ -216,6 +218,8 @@ import kotlinx.coroutines.flow.first import kotlinx.coroutines.launch import kotlinx.coroutines.withContext +private val LocalGlassReduceTransparency = staticCompositionLocalOf { false } + private const val INDIA_ZONE = "Asia/Kolkata" class MainActivity : ComponentActivity() { @@ -451,6 +455,7 @@ private fun BrrrNewsApp() { var quizMode by remember { mutableStateOf(false) } var showSettings by remember { mutableStateOf(false) } var glassAlpha by remember { mutableFloatStateOf(LocalStore.glassAlpha(context)) } + var reduceTransparency by remember { mutableStateOf(LocalStore.reduceTransparency(context)) } var searchQuery by remember { mutableStateOf("") } var searchExpanded by remember { mutableStateOf(false) } var searchCollapseRequested by remember { mutableStateOf(false) } @@ -539,7 +544,8 @@ private fun BrrrNewsApp() { isResumed = appResumed, readerOpen = selectedArticle != null || quizMode, settingsOpen = showSettings, - feedScrolling = feedIsScrolling + feedScrolling = feedIsScrolling, + reduceTransparency = reduceTransparency ), source = backdrop, isLightTheme = !dark, @@ -630,7 +636,8 @@ private fun BrrrNewsApp() { } } - BoxWithConstraints( + CompositionLocalProvider(LocalGlassReduceTransparency provides reduceTransparency) { + BoxWithConstraints( Modifier.fillMaxSize().background( if (searchExpanded) Color.Transparent else MaterialTheme.colorScheme.background ) @@ -772,6 +779,11 @@ private fun BrrrNewsApp() { showSettings -> GlassSettingsScreen( backdrop = backdrop, glassAlpha = glassAlpha, + reduceTransparency = reduceTransparency, + onReduceTransparencyChange = { enabled -> + reduceTransparency = enabled + LocalStore.saveReduceTransparency(context, enabled) + }, onGlassAlphaChange = { glassAlpha = it LocalStore.saveGlassAlpha(context, it) @@ -914,8 +926,8 @@ private fun BrrrNewsApp() { } } } + } } - @Composable private fun HomeScreen( backdrop: PrismalBackdrop, @@ -1041,6 +1053,7 @@ private fun HomeGlassHeader( onBack: () -> Unit ) { val density = LocalDensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val surfaceTint = MaterialTheme.colorScheme.surface val luminance = if (dark) 0.12f else 0.82f Box( @@ -1051,25 +1064,26 @@ private fun HomeGlassHeader( effects = { applyPrismalGlassEffects( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { 13.dp.toPx() }, - refractionHeightPx = with(density) { 4.dp.toPx() }, - refractionAmountPx = with(density) { 6.dp.toPx() }, - depthEffect = true, chromaticAberration = 0.003f, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(13f, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(4f, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(6f, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.003f, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, specular = { - PrismalSpecular.Default.copy(width = 0.55.dp, blurRadius = 0.35.dp, alpha = 0.28f) + PrismalSpecular.Default.copy(width = 0.55.dp, blurRadius = 0.35.dp, alpha = GlassRenderingPolicy.specularAlpha(0.28f, reduceTransparency)) }, depthShadow = { PrismalDepthShadow(radius = 12.dp, offset = DpOffset(0.dp, 2.dp), - color = Color.Black.copy(alpha = 0.09f), alpha = 0.20f) + color = Color.Black.copy(alpha = 0.09f), alpha = GlassRenderingPolicy.shadowAlpha(0.20f, reduceTransparency)) }, depthInset = { PrismalDepthInset(radius = 4.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.05f), alpha = 0.05f) + color = Color.Black.copy(alpha = 0.05f), alpha = GlassRenderingPolicy.shadowAlpha(0.05f, reduceTransparency)) }, - onDrawSurface = { drawRect(surfaceTint.copy(alpha = glassAlpha * 0.13f)) } + onDrawSurface = { drawRect(surfaceTint.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.13f, reduceTransparency))) } ) ) { Row(Modifier.fillMaxWidth().padding(start = 14.dp, end = 8.dp, top = 8.dp, bottom = 8.dp), @@ -1100,6 +1114,7 @@ private fun ExploreGlassCategories( dark: Boolean ) { val density = LocalDensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val surfaceTint = MaterialTheme.colorScheme.surface val luminance = if (dark) 0.14f else 0.80f val chipShape = ContinuousCornerShape(18.dp) @@ -1111,25 +1126,26 @@ private fun ExploreGlassCategories( effects = { applyPrismalGlassEffects( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { 8.dp.toPx() }, - refractionHeightPx = with(density) { 3.dp.toPx() }, - refractionAmountPx = with(density) { 4.dp.toPx() }, - depthEffect = true, chromaticAberration = 0.0015f, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(8f, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(3f, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(4f, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.0015f, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, specular = { - PrismalSpecular.Default.copy(width = 0.45.dp, blurRadius = 0.30.dp, alpha = 0.20f) + PrismalSpecular.Default.copy(width = 0.45.dp, blurRadius = 0.30.dp, alpha = GlassRenderingPolicy.specularAlpha(0.20f, reduceTransparency)) }, depthShadow = { PrismalDepthShadow(radius = 9.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.07f), alpha = 0.12f) + color = Color.Black.copy(alpha = 0.07f), alpha = GlassRenderingPolicy.shadowAlpha(0.12f, reduceTransparency)) }, depthInset = { PrismalDepthInset(radius = 3.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.04f), alpha = 0.04f) + color = Color.Black.copy(alpha = 0.04f), alpha = GlassRenderingPolicy.shadowAlpha(0.04f, reduceTransparency)) }, - onDrawSurface = { drawRect(surfaceTint.copy(alpha = glassAlpha * 0.09f)) } + onDrawSurface = { drawRect(surfaceTint.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.09f, reduceTransparency))) } ) ) { Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()) @@ -1296,6 +1312,7 @@ private fun SearchFeed( val keyboardController = LocalSoftwareKeyboardController.current val eligibleArticles = articles val density = LocalDensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val glassSurfaceColor = MaterialTheme.colorScheme.surface val categories = listOf("All", "India", "World", "Politics", "Geography", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") val subjects = remember(eligibleArticles) { @@ -1331,27 +1348,27 @@ private fun SearchFeed( density = density, adaptiveLuminance = true, luminance = if (dark) 0.10f else 0.90f, - blurRadiusPx = with(density) { 7.dp.toPx() }, - refractionHeightPx = with(density) { 3.dp.toPx() }, - refractionAmountPx = with(density) { 4.dp.toPx() }, - depthEffect = true, - chromaticAberration = 0.001f, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(3f, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(4f, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.001f, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, specular = { - PrismalSpecular.Default.copy(width = 0.42.dp, blurRadius = 0.28.dp, alpha = 0.19f) + PrismalSpecular.Default.copy(width = 0.42.dp, blurRadius = 0.28.dp, alpha = GlassRenderingPolicy.specularAlpha(0.19f, reduceTransparency)) }, depthShadow = { PrismalDepthShadow(radius = 8.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.06f), alpha = 0.12f) + color = Color.Black.copy(alpha = 0.06f), alpha = GlassRenderingPolicy.shadowAlpha(0.12f, reduceTransparency)) }, depthInset = { PrismalDepthInset(radius = 3.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.04f), alpha = 0.04f) + color = Color.Black.copy(alpha = 0.04f), alpha = GlassRenderingPolicy.shadowAlpha(0.04f, reduceTransparency)) }, onDrawSurface = { - drawRect(glassSurfaceColor.copy(alpha = glassAlpha * 0.10f)) + drawRect(glassSurfaceColor.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.10f, reduceTransparency))) } ) ) { @@ -1461,14 +1478,18 @@ private fun SearchMorphField( onClear: () -> Unit ) { val density = LocalDensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val progress = morphProgress.coerceIn(0f, 1f) val optics = GlassOpticsPolicy.search(progress) val glassTint = if (adaptiveContentColor == Color.Black) Color(0xFFF5F8FC) else Color(0xFF202B3A) - val tintAlpha = GlassOpticsPolicy.adaptiveTintAlpha( - baseAlpha = glassAlpha * optics.tintAlpha, - luminance = luminance, - minAlpha = 0.04f, - maxAlpha = 0.12f + val tintAlpha = GlassRenderingPolicy.tintAlpha( + GlassOpticsPolicy.adaptiveTintAlpha( + baseAlpha = glassAlpha * optics.tintAlpha, + luminance = luminance, + minAlpha = 0.04f, + maxAlpha = 0.12f + ), + reduceTransparency ) val iconOffset = with(density) { SearchMorphGeometryPolicy.iconOffset(collapsedIconOffsetPx, progress).toDp() @@ -1486,11 +1507,11 @@ private fun SearchMorphField( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { optics.blurDp.dp.toPx() }, - refractionHeightPx = with(density) { optics.refractionHeightDp.dp.toPx() }, - refractionAmountPx = with(density) { optics.refractionAmountDp.dp.toPx() }, - depthEffect = true, - chromaticAberration = optics.chromaticAberration, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(optics.blurDp, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(optics.refractionHeightDp, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(optics.refractionAmountDp, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(optics.chromaticAberration, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, @@ -1498,7 +1519,7 @@ private fun SearchMorphField( PrismalSpecular.Default.copy( width = (0.55f + 0.20f * progress).dp, blurRadius = (0.30f + 0.15f * progress).dp, - alpha = optics.specularAlpha + alpha = GlassRenderingPolicy.specularAlpha(optics.specularAlpha, reduceTransparency) ) }, depthShadow = { @@ -1506,7 +1527,7 @@ private fun SearchMorphField( radius = (12f + 6f * progress).dp, offset = DpOffset(0.dp, (2f + progress).dp), color = Color.Black.copy(alpha = 0.12f), - alpha = optics.shadowAlpha + alpha = GlassRenderingPolicy.shadowAlpha(optics.shadowAlpha, reduceTransparency) ) }, depthInset = { @@ -1514,7 +1535,7 @@ private fun SearchMorphField( radius = (4f + progress).dp, offset = DpOffset(0.dp, 1.dp), color = Color.Black.copy(alpha = 0.07f), - alpha = optics.insetAlpha + alpha = GlassRenderingPolicy.shadowAlpha(optics.insetAlpha, reduceTransparency) ) }, onDrawSurface = { @@ -2226,6 +2247,7 @@ private fun GlassTabBar( onSelect: (Int) -> Unit ) { val density = LocalDensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr val animationScope = rememberCoroutineScope() val latestOnSelect = rememberUpdatedState(onSelect) @@ -2234,11 +2256,14 @@ private fun GlassTabBar( val tabsBackdrop = rememberPrismalGlassLayer() val dropletBackdrop = rememberPrismalMergedSource(backdrop, tabsBackdrop) val glassTint = if (adaptiveContentColor == Color.Black) Color(0xFFEAF0FA) else Color(0xFF1C2E49) - val baseTintAlpha = GlassOpticsPolicy.adaptiveTintAlpha( - baseAlpha = glassAlpha * 0.12f, - luminance = luminance, - minAlpha = 0.035f, - maxAlpha = 0.13f + val baseTintAlpha = GlassRenderingPolicy.tintAlpha( + GlassOpticsPolicy.adaptiveTintAlpha( + baseAlpha = glassAlpha * 0.12f, + luminance = luminance, + minAlpha = 0.035f, + maxAlpha = 0.13f + ), + reduceTransparency ) val compactTransition = updateTransition(targetState = compact, label = "Feed navigation compact morph") val compactProgress = compactTransition.animateFloat( @@ -2308,11 +2333,14 @@ private fun GlassTabBar( val pillVelocity = if (reduceMotion) 0f else motion.velocity.coerceIn(-2f, 2f) val dropletOptics = GlassOpticsPolicy.droplet(pillPress, reduceMotion) val dropletTint = if (adaptiveContentColor == Color.Black) Color(0xFFE8F1FF) else Color(0xFF1C2E49) - val dropletTintAlpha = GlassOpticsPolicy.adaptiveTintAlpha( - baseAlpha = glassAlpha * dropletOptics.tintAlpha, - luminance = luminance, - minAlpha = 0.045f, - maxAlpha = 0.14f + val dropletTintAlpha = GlassRenderingPolicy.tintAlpha( + GlassOpticsPolicy.adaptiveTintAlpha( + baseAlpha = glassAlpha * dropletOptics.tintAlpha, + luminance = luminance, + minAlpha = 0.045f, + maxAlpha = 0.14f + ), + reduceTransparency ) val tabRipple = remember(animationScope, tabWidthPx, contentStartPx) { @@ -2339,11 +2367,11 @@ private fun GlassTabBar( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { (6f - 2f * compactProgress).dp.toPx() }, - refractionHeightPx = with(density) { (14f - 6f * compactProgress).dp.toPx() }, - refractionAmountPx = with(density) { (20f - 10f * compactProgress).dp.toPx() }, - depthEffect = true, - chromaticAberration = 0.015f * (1f - compactProgress), + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(6f - 2f * compactProgress, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(14f - 6f * compactProgress, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(20f - 10f * compactProgress, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.015f * (1f - compactProgress), reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, @@ -2351,7 +2379,7 @@ private fun GlassTabBar( PrismalSpecular.Default.copy( width = 0.6.dp, blurRadius = 0.4.dp, - alpha = 0.48f * (1f - 0.18f * compactProgress) + alpha = GlassRenderingPolicy.specularAlpha(0.48f * (1f - 0.18f * compactProgress), reduceTransparency) ) }, depthShadow = { @@ -2359,7 +2387,7 @@ private fun GlassTabBar( radius = 18.dp - 4.dp * compactProgress, offset = DpOffset(0.dp, 3.dp), color = Color.Black.copy(alpha = 0.10f), - alpha = 0.28f + alpha = GlassRenderingPolicy.shadowAlpha(0.28f, reduceTransparency) ) }, depthInset = { @@ -2367,7 +2395,7 @@ private fun GlassTabBar( radius = 4.dp, offset = DpOffset(0.dp, 1.dp), color = Color.Black.copy(alpha = 0.06f), - alpha = 0.06f + alpha = GlassRenderingPolicy.shadowAlpha(0.06f, reduceTransparency) ) }, onDrawSurface = { drawRect(glassTint.copy(alpha = baseTintAlpha)) } @@ -2441,11 +2469,11 @@ private fun GlassTabBar( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { dropletOptics.blurDp.dp.toPx() }, - refractionHeightPx = with(density) { dropletOptics.refractionHeightDp.dp.toPx() }, - refractionAmountPx = with(density) { dropletOptics.refractionAmountDp.dp.toPx() }, - depthEffect = true, - chromaticAberration = dropletOptics.chromaticAberration, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(dropletOptics.blurDp, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(dropletOptics.refractionHeightDp, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(dropletOptics.refractionAmountDp, reduceTransparency).dp.toPx() }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(dropletOptics.chromaticAberration, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, @@ -2453,7 +2481,7 @@ private fun GlassTabBar( PrismalSpecular.Default.copy( width = 0.7.dp, blurRadius = 0.4.dp, - alpha = dropletOptics.specularAlpha, + alpha = GlassRenderingPolicy.specularAlpha(dropletOptics.specularAlpha, reduceTransparency), style = PrismalSpecularStyle.Default( angle = GlassOpticsPolicy.specularAngle(pillVelocity, reduceMotion) ) @@ -2464,7 +2492,7 @@ private fun GlassTabBar( radius = 12.dp, offset = DpOffset(0.dp, 2.dp), color = Color.Black.copy(alpha = 0.12f), - alpha = dropletOptics.shadowAlpha + alpha = GlassRenderingPolicy.shadowAlpha(dropletOptics.shadowAlpha, reduceTransparency) ) }, depthInset = { @@ -2472,7 +2500,7 @@ private fun GlassTabBar( radius = 5.dp, offset = DpOffset(0.dp, 1.dp), color = Color.Black.copy(alpha = 0.08f), - alpha = dropletOptics.insetAlpha + alpha = GlassRenderingPolicy.shadowAlpha(dropletOptics.insetAlpha, reduceTransparency) ) }, onDrawSurface = { drawRect(dropletTint.copy(alpha = dropletTintAlpha)) } @@ -2581,6 +2609,7 @@ private fun ReaderScreen( onClearReaderPosition: (String) -> Unit ) { val context = LocalContext.current + val reduceTransparency = LocalGlassReduceTransparency.current val readerWebViewHolder = remember { mutableStateOf(null) } var savedReadingProgress by remember(article.url) { mutableFloatStateOf(0f) } var readerPositionLoaded by remember(article.url) { mutableStateOf(false) } @@ -2966,13 +2995,13 @@ private fun ReaderScreen( .padding(horizontal = 12.dp, vertical = 8.dp) .navigationBarsPadding(), shape = { PrismalRoundedRectangle(20.dp) }, - blurRadius = 7.dp, - refractionHeightPx = 10f, - refractionAmountPx = 12f, - depthEffect = true, - chromaticAberration = 0.004f, + blurRadius = GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), + refractionAmountPx = GlassRenderingPolicy.refractionPx(12f, reduceTransparency), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.004f, reduceTransparency), tint = if (dark) Color(0xFF25354A) else Color(0xFFEAF0FA), - tintAlpha = (glassAlpha * 0.34f).coerceIn(0.05f, 0.20f) + tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.34f).coerceIn(0.05f, 0.20f), reduceTransparency) ) { Row( Modifier.fillMaxWidth().padding(start = 14.dp, end = 4.dp, top = 4.dp, bottom = 4.dp), @@ -3015,6 +3044,7 @@ private fun ReaderGlassToolbar( onBack: () -> Unit, onFontSizeChange: (Int) -> Unit ) { + val reduceTransparency = LocalGlassReduceTransparency.current var textSizeMenuExpanded by remember(article.url) { mutableStateOf(false) } val tint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA) @@ -3022,13 +3052,13 @@ private fun ReaderGlassToolbar( backdrop = backdrop, modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), shape = { PrismalRoundedRectangle(22.dp) }, - blurRadius = 8.dp, - refractionHeightPx = 13f, - refractionAmountPx = 15f, - depthEffect = true, - chromaticAberration = 0.006f, + blurRadius = GlassRenderingPolicy.blurDp(8f, reduceTransparency).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx(13f, reduceTransparency), + refractionAmountPx = GlassRenderingPolicy.refractionPx(15f, reduceTransparency), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.006f, reduceTransparency), tint = tint, - tintAlpha = (glassAlpha * 0.42f).coerceIn(0.05f, 0.24f) + tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.42f).coerceIn(0.05f, 0.24f), reduceTransparency) ) { Row( Modifier.fillMaxWidth().heightIn(min = 60.dp) @@ -3617,6 +3647,7 @@ private fun DefinitionGlassOverlay( onClose: () -> Unit ) { val context = LocalContext.current + val reduceTransparency = LocalGlassReduceTransparency.current var result by remember(word) { mutableStateOf(null) } var loading by remember(word) { mutableStateOf(true) } var expanded by remember(word) { mutableStateOf(false) } @@ -3657,13 +3688,13 @@ private fun DefinitionGlassOverlay( modifier = Modifier.fillMaxWidth() .animateContentSize(spring(dampingRatio = 0.82f, stiffness = 480f)), shape = { PrismalRoundedRectangle(25.dp) }, - blurRadius = 12.dp, - refractionHeightPx = 22f, - refractionAmountPx = 24f, - depthEffect = true, - chromaticAberration = 0.015f, + blurRadius = GlassRenderingPolicy.blurDp(12f, reduceTransparency).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx(22f, reduceTransparency), + refractionAmountPx = GlassRenderingPolicy.refractionPx(24f, reduceTransparency), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.015f, reduceTransparency), tint = if (isSystemInDarkTheme()) Color(0xFF263247) else Color(0xFFEAF0FA), - tintAlpha = (glassAlpha * 0.62f).coerceIn(0.08f, 0.34f) + tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.62f).coerceIn(0.08f, 0.34f), reduceTransparency) ) { DefinitionPopoverContent( word = word, @@ -3731,15 +3762,19 @@ private fun DefinitionGlassOverlay( private fun GlassSettingsScreen( backdrop: PrismalBackdrop, glassAlpha: Float, + reduceTransparency: Boolean, + onReduceTransparencyChange: (Boolean) -> Unit, onGlassAlphaChange: (Float) -> Unit, onBack: () -> Unit ) { val dark = isSystemInDarkTheme() val tint = if (dark) Color(0xFF30394B) else Color(0xFFEAF0FA) + var previewGlassAlpha by remember { mutableFloatStateOf(glassAlpha) } + LaunchedEffect(glassAlpha) { previewGlassAlpha = glassAlpha } val selectedPreset = when { - kotlin.math.abs(glassAlpha - 0.12f) < 0.015f -> "Clear" - kotlin.math.abs(glassAlpha - 0.32f) < 0.015f -> "Balanced" - kotlin.math.abs(glassAlpha - 0.55f) < 0.015f -> "Frosted" + kotlin.math.abs(previewGlassAlpha - 0.12f) < 0.015f -> "Clear" + kotlin.math.abs(previewGlassAlpha - 0.32f) < 0.015f -> "Balanced" + kotlin.math.abs(previewGlassAlpha - 0.55f) < 0.015f -> "Frosted" else -> "Custom" } Column( @@ -3751,32 +3786,54 @@ private fun GlassSettingsScreen( IconButton(onClick = onBack) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") } Column(verticalArrangement = Arrangement.spacedBy(1.dp)) { Text("Appearance", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text("Personalise the reading surfaces", style = MaterialTheme.typography.labelSmall, + Text("Personalise controls and reading surfaces", style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) } } PrismalGlassSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth(), - shape = { PrismalRoundedRectangle(26.dp) }, blurRadius = 11.dp, - tint = tint, tintAlpha = glassAlpha + shape = { PrismalRoundedRectangle(26.dp) }, + blurRadius = GlassRenderingPolicy.blurDp(11f, reduceTransparency).dp, + tint = tint, tintAlpha = GlassRenderingPolicy.tintAlpha(previewGlassAlpha, reduceTransparency) ) { Column(Modifier.padding(20.dp), verticalArrangement = Arrangement.spacedBy(13.dp)) { Text("Liquid Glass", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text("Control how strongly the glass tint sits over the content beneath it.", + Text("Tune the shared glass tint across navigation, controls and contextual surfaces.", style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.secondary) Row(verticalAlignment = Alignment.CenterVertically) { Text("Clear", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) Spacer(Modifier.weight(1f)) - Text((glassAlpha * 100).toInt().toString() + "%", fontWeight = FontWeight.Bold, + Text((previewGlassAlpha * 100).toInt().toString() + "%", fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.primary) Spacer(Modifier.weight(1f)) Text("Frosted", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) } - PrismalGlassSlider( - value = { glassAlpha }, onValueChange = onGlassAlphaChange, - valueRange = 0.12f..0.55f, visibilityThreshold = 0.01f, - backdrop = backdrop, modifier = Modifier.fillMaxWidth() + Slider( + value = previewGlassAlpha, + onValueChange = { previewGlassAlpha = it }, + onValueChangeFinished = { onGlassAlphaChange(previewGlassAlpha) }, + valueRange = 0.12f..0.55f, + modifier = Modifier.fillMaxWidth() ) + Row( + Modifier.fillMaxWidth().heightIn(min = 56.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { + Text("Reduce transparency & effects", style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.SemiBold) + Text("More opaque controls; removes blur, refraction and adaptive sampling.", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) + } + Switch( + checked = reduceTransparency, + onCheckedChange = onReduceTransparencyChange, + modifier = Modifier.semantics { + contentDescription = "Reduce transparency and effects" + } + ) + } } } Column(verticalArrangement = Arrangement.spacedBy(7.dp)) { @@ -3785,11 +3842,11 @@ private fun GlassSettingsScreen( style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary) Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), horizontalArrangement = Arrangement.spacedBy(8.dp)) { - FilterChip(selected = selectedPreset == "Clear", onClick = { onGlassAlphaChange(0.12f) }, + FilterChip(selected = selectedPreset == "Clear", onClick = { previewGlassAlpha = 0.12f; onGlassAlphaChange(0.12f) }, modifier = Modifier.heightIn(min = 48.dp), label = { Text("Clear") }) - FilterChip(selected = selectedPreset == "Balanced", onClick = { onGlassAlphaChange(0.32f) }, + FilterChip(selected = selectedPreset == "Balanced", onClick = { previewGlassAlpha = 0.32f; onGlassAlphaChange(0.32f) }, modifier = Modifier.heightIn(min = 48.dp), label = { Text("Balanced") }) - FilterChip(selected = selectedPreset == "Frosted", onClick = { onGlassAlphaChange(0.55f) }, + FilterChip(selected = selectedPreset == "Frosted", onClick = { previewGlassAlpha = 0.55f; onGlassAlphaChange(0.55f) }, modifier = Modifier.heightIn(min = 48.dp), label = { Text("Frosted") }) } } @@ -3800,8 +3857,9 @@ private fun GlassSettingsScreen( color = MaterialTheme.colorScheme.secondary) PrismalGlassSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth(), - shape = { PrismalRoundedRectangle(24.dp) }, blurRadius = 9.dp, - tint = tint, tintAlpha = glassAlpha + shape = { PrismalRoundedRectangle(24.dp) }, + blurRadius = GlassRenderingPolicy.blurDp(9f, reduceTransparency).dp, + tint = tint, tintAlpha = GlassRenderingPolicy.tintAlpha(previewGlassAlpha, reduceTransparency) ) { Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(11.dp)) { Row( diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt index 49ea68af..c9742913 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassLuminanceActivationPolicyTest.kt @@ -45,6 +45,18 @@ class GlassLuminanceActivationPolicyTest { ) } + @Test + fun pausesWhenReducedTransparencyIsEnabled() { + assertFalse( + GlassLuminanceActivationPolicy.shouldSample( + isResumed = true, + readerOpen = false, + settingsOpen = false, + reduceTransparency = true + ) + ) + } + @Test fun pausesDuringFeedMotion() { assertFalse( diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassRenderingPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassRenderingPolicyTest.kt new file mode 100644 index 00000000..1b34a9bc --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/GlassRenderingPolicyTest.kt @@ -0,0 +1,41 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class GlassRenderingPolicyTest { + @Test + fun normalModePreservesRequestedMaterialParameters() { + assertEquals(8f, GlassRenderingPolicy.blurDp(8f, false), 0f) + assertEquals(14f, GlassRenderingPolicy.refractionDp(14f, false), 0f) + assertEquals(20f, GlassRenderingPolicy.refractionPx(20f, false), 0f) + assertEquals(0.015f, GlassRenderingPolicy.chromaticAberration(0.015f, false), 0f) + assertTrue(GlassRenderingPolicy.depthEnabled(true, false)) + assertEquals(0.4f, GlassRenderingPolicy.specularAlpha(0.4f, false), 0f) + assertEquals(0.2f, GlassRenderingPolicy.shadowAlpha(0.2f, false), 0f) + assertEquals(0.12f, GlassRenderingPolicy.tintAlpha(0.12f, false), 0f) + } + + @Test + fun reducedModeRemovesExpensiveOpticsAndDepth() { + assertEquals(0f, GlassRenderingPolicy.blurDp(8f, true), 0f) + assertEquals(0f, GlassRenderingPolicy.refractionDp(14f, true), 0f) + assertEquals(0f, GlassRenderingPolicy.refractionPx(20f, true), 0f) + assertEquals(0f, GlassRenderingPolicy.chromaticAberration(0.015f, true), 0f) + assertFalse(GlassRenderingPolicy.depthEnabled(true, true)) + assertEquals(0f, GlassRenderingPolicy.shadowAlpha(0.2f, true), 0f) + assertEquals(0.168f, GlassRenderingPolicy.specularAlpha(0.4f, true), 0.0001f) + } + + @Test + fun reducedModeRaisesOnlyLowTintAlpha() { + assertEquals( + GlassRenderingPolicy.REDUCED_MIN_TINT_ALPHA, + GlassRenderingPolicy.tintAlpha(0.12f, true), + 0f + ) + assertEquals(0.55f, GlassRenderingPolicy.tintAlpha(0.55f, true), 0f) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 5a43123e..03ae53b0 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,10 +2,10 @@ **Repository:** `Batmancpu/CurrentLens` **Chosen integration branch:** `black-box-bihar-news` -**Pre-iteration branch HEAD:** `c8afed0a78c536a36567c286f19fdafcada1ac70`; follow the live branch ref for the new Reader resume-I/O commit -**Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12` -**Live branch inventory:** 28 refs (page 1: 28; page 2: 0) at the pre-implementation audit; no branch was deleted. -**Latest completed validation before this iteration:** Actions run [#196](https://github.com/Batmancpu/CurrentLens/actions/runs/42337007726), success on exact SHA `c8afed0a78c536a36567c286f19fdafcada1ac70`; artifact `13560390670` (39,057,437 bytes). Run #195 also passed the exact supporting-glass code SHA `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`. +**Verified source HEAD before this batch:** `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; the low-effects batch is authored from this exact SHA. +**Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Live branch inventory:** 28 refs (page 1: 28; page 2: 0) at 7 Nov 2026 11:38 IST; no branch was deleted. +**Latest completed validation before this batch:** Actions run [#200](https://github.com/Batmancpu/CurrentLens/actions/runs/42341245934), success on exact SHA `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; artifact `13560769755` (39,059,340 bytes). It validates the Reader resume-I/O parent, not the new low-effects commit. **No feature-branch Release was published; the main-only publish job was skipped.** Existing latest Release remains `v0.2.0-build-116`. No manual workflow dispatch or rerun was used. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -205,3 +205,55 @@ The complete GitHub branch endpoint returned **28 remote refs** on page 1 and ** ## Reader resume-I/O port from brrrNEWS Commit `e161a9a53a3d85d06b4908eb690aecb02a716015` was reviewed at full diff and ported selectively: the existing saved Reader progress is now restored on `Dispatchers.IO` before the WebView queues its content restore. The rest of the `brrrNEWS` branch's branch-specific workflow and visible app-label changes were not ported. No source branch was modified or deleted. + + +## 8. Live branch graph audit — 7 November 2026, 11:38 IST + +The complete remote branch list was re-enumerated (28 refs; page 2 empty). Commit dates below are GitHub committer timestamps in UTC. Open PR heads/bases are identified; merged and closed refs remain untouched. + +| Branch | Head SHA | Latest commit (UTC) | PR / status | +|---|---|---|---| +| black-box-bihar-news | cfe0b3e8319374df5cb29423f04a79c77d4fe10e | 2026-11-07 05:05:40 — restore Reader position off UI thread | Active consolidation branch; no PR to main | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 — consolidate supporting glass surfaces | Base of open PR #24 | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 — read-only PR validation | Open PR #18 head | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 — Android SDK setup correction | PR #20 merged into consolidation | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 — icon accessibility name | Now points at main; PR #14 was closed unmerged at an older head | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06 10:53:35 — refresh card metadata | Open PR #6 head | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06 09:14:27 — deterministic Atom alternate links | Open PR #12 head | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06 14:26:32 — publication date/provenance | Open PR #11 head; base is older black-box SHA c6223c93de84cb25d1e19da42be3bd4992213f6d | +| fix/early-startup-crash-diagnostics-2026-11-06 | 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 | 2026-11-06 19:33:20 — minimise shareable diagnostics | Open PR #16 head; 40 commits behind black-box | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 — specific parliamentary bill eligibility | Open PR #21 head | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 — separate policy action/target words | Open PR #24 head, based on brrrNEWS | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 — repo-rate signal count test | PR #2 merged to main | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 — editorial signal boundaries | PR #1 merged to main | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 — supported calendar glyph | PR #5 merged to main | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07 03:49:44 — Parliament headline variants | PR #23 merged into consolidation | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06 12:15:39 — validate RSS redirects | PR #15 closed unmerged; safety guard retained from PR #16 | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 — deduplicate tracking URL variants | Open PR #17 head | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 — Search tint capture order | PR #10 merged to main | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 — startup diagnostics/feed indexing | PR #9 merged to main | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 — cold-start/feed rendering | PR #7 merged to main | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 — icon accessibility name | Default branch; unchanged | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 — legacy marker retention test | Open PR #22 head; based on PR #8 | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 — off-main read-marker persistence | Open PR #8 head | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 — selection fallback JSON | Stale; no active PR | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 — foreground adaptive contrast | Open PR #13 head | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 — bottom-nav glyph imports | Stale/diverged; PR #4 closed unmerged; earlier PR #3 merged | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 — Reader selection guard docs | PR #19 merged into consolidation | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 — syllabus/thin-film eligibility | 13 commits behind consolidation; no new work to port | + +### Freshness and safe-port rationale + +- main...black-box-bihar-news: 97 ahead / 0 behind. PR16...black-box-bihar-news: 40 ahead / 0 behind. This is the latest coherent branch containing the corrected background-only Prismal root capture and the consolidated Reader/Search/feed-nav work. +- black-box-bihar-news...brrrNEWS: diverged 4 ahead / 3 behind from common ancestor e411c394e8d48b3f547b6d6fb9039a8935bd05eb. GlassSurfacePolicy.kt and its test are byte-identical; MainActivity's only content difference is formatting around Reader saved-position state. The sibling's workflow/README/app-build metadata was not copied. +- PR #24 is 9 ahead / 3 behind black-box with the same merge base. Its policy action/target matching change is separate editorial work; keep it on its draft branch until reviewed/ported as a dedicated change. Its successful CI, if any, validates only PR #24's head. +- PR #22's ReadHistoryPolicy.kt and test, PR #11's ArticleCachePolicy.kt and ArticleProvenancePolicy.kt, and PR #12's FeedLinkPolicy.kt and test are byte-identical to black-box. PR #17's URL-identity files and PR #21's UPSC engine/policy files differ; do not replace current code with their older divergent versions. +- PR #13's source uses a 1.5s/2.5s adaptive luminance cadence; black-box retains the more conservative 4s/6s foreground-only cadence and pauses during feed scroll, Reader, Settings and background. +- The workflow on black-box has push and pull_request triggers for main, PR #16 and black-box; build permissions are contents:read; the write-enabled publish job is gated to push on main only. No workflow_dispatch was used. + +### Latest natural validation at audit time + +- Actions history: 200 runs, fully paginated (100 + 100 + 0); no queued or in-progress runs. +- Latest overall run #200: success on exact black-box SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e; build/test job completed checkout, Java, signing cache, Android SDK, platform install, Gradle, WordNet builder tests/database generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Publish job skipped. +- Artifact 13560769755, CurrentLens-v0.2.8-stability-debug-apk, 39,059,340 bytes, 14-day retention. This is the non-main stability variant: application ID com.mangoloads.currentlens.stability, label brrrNews Stability; it installs separately from the normal app. +- Latest published Release remains v0.2.0-build-116; no Release was created by run #200. diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index ee71eb2d..452a3729 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -160,3 +160,13 @@ CI establishes that the code compiles and JVM tests pass. It cannot establish th - Latest main run remains #116 / https://github.com/Batmancpu/CurrentLens/actions/runs/42209037417, success on main SHA 73b8a0d1ba33503fede02db2c3c0af082d724a12; it published v0.2.0-build-116. The latest main Release does not contain the unmerged PR #16 changes. - PR #18's read-only pull-request build / isolated release-write workflow passed run #165 / https://github.com/Batmancpu/CurrentLens/actions/runs/42260538402; PR #18 remains open/draft. Main still has the older push-only workflow with contents: write at workflow scope. Reconcile PR #16's branch-specific workflow and PR #18 before any merge; no workflow was changed in this review. - The current PR #16 privacy-minimisation change adds focused JVM tests. Its new natural CI run must be checked before describing those tests as passed. No Actions workflow was manually dispatched or rerun. + + +## Live CI snapshot — 7 November 2026, 11:38 IST + +- Workflow: .github/workflows/build-apk.yml; push and pull_request triggers include main, PR #16's branch and black-box-bihar-news. Build job permissions are read-only; the separate publish job runs only on push to main and has contents:write. +- Actions history was fully paginated: 200 runs (100 + 100 + 0), no queued/in-progress jobs. +- Run #200 (42341245934) succeeded on exact parent SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e. WordNet builder tests and database generation, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload succeeded; publish job skipped. +- Artifact: 13560769755, CurrentLens-v0.2.8-stability-debug-apk, 39,059,340 bytes, 14-day retention. Non-main stability build uses application ID com.mangoloads.currentlens.stability and label brrrNews Stability; it installs separately from the normal app. +- Latest published Release remains v0.2.0-build-116. No feature-branch Release was created. +- The Appearance low-effects commit authored from cfe0b3e is not covered by run #200; wait for its own natural run. Do not dispatch/rerun manually. diff --git a/docs/DECISION_LOG.md b/docs/DECISION_LOG.md index 8a0cec21..9b6a7d72 100644 --- a/docs/DECISION_LOG.md +++ b/docs/DECISION_LOG.md @@ -76,3 +76,8 @@ The production app must retain Prismal's normal automatic pipeline and complete ## D-018 — One active integration branch per continuing issue Reuse the current issue's open integration branch/PR and batch related work there. Avoid branch-per-file/per-session/per-agent. Preserve independent unmerged feature branches until reviewed or explicitly abandoned. Delete merged/stale refs only after confirming no unique work; branch count is repository hygiene, not a runtime cause. + + +## D-019 — Reduced transparency is a shared low-cost material profile + +The Appearance preference is app-wide, persisted locally and defaults off. When enabled, the existing Prismal material remains recognisable through a stronger tint and restrained edge highlight, while blur, refraction, chromatic aberration, depth and shadow are removed and the existing adaptive luminance readback is paused. Do not create a second renderer or backdrop. Slider motion updates a local preview; apply the shared alpha only on drag completion or preset selection so the app root is not persisted/recomposed on every pointer tick. This is an accessibility/low-effects fallback, not a measured performance claim. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 093ea2ad..5d474e6e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,13 +1,30 @@ # Liquid Glass UI Roadmap -**Status:** Active incremental redesign; supporting-surface code and its documentation baseline have passed natural CI; the Reader resume-I/O batch in this iteration awaits its own natural CI run. +**Status:** Appearance low-effects/reduced-transparency batch authored from the live consolidation head; natural CI for the resulting commit is pending. Reader resume-I/O and supporting-glass code are already present on the branch. **Feature branch:** `black-box-bihar-news` -**Pre-iteration source HEAD:** `c8afed0a78c536a36567c286f19fdafcada1ac70`; follow the live `black-box-bihar-news` ref for this iteration's new HEAD. -**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; pre-iteration branch head is 39 commits ahead / 0 behind PR #16 and 96 ahead / 0 behind main. -**Last completed successful run:** #196, exact pre-iteration HEAD `c8afed0a78c536a36567c286f19fdafcada1ac70`, passed WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; artifact `13560390670`. Run #195 also passed the exact supporting-glass code commit `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`; these runs do not validate the new Reader resume-I/O commit. +**Verified source HEAD:** `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; the new implementation commit is created from this exact head and its SHA is read from the live ref after commit. +**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; consolidation head is 40 commits ahead / 0 behind PR #16 and 97 ahead / 0 behind main. +**Last completed successful run:** #200, exact source HEAD `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`, passed WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; artifact `13560769755` (39,059,340 bytes). This validates the pre-change head only, not the new low-effects batch. **Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. **Safety:** no source branch has been deleted, no Release has been published, and no workflow has been manually dispatched or rerun. +## Live branch audit and reduced-transparency batch — 7 November 2026, 11:38 IST + +- The complete remote inventory is 28 branches (page 1: 28; page 2: 0). **black-box-bihar-news** is the freshest coherent consolidation line: 97 ahead / 0 behind **main**; 40 ahead / 0 behind PR #16's corrected stability head. +- **brrrNEWS** is a diverged sibling (4 ahead / 3 behind; merge base e411c394e8d48b3f547b6d6fb9039a8935bd05eb). Its GlassSurfacePolicy.kt and test are byte-identical to this branch; MainActivity.kt differs only in formatting around the restored Reader-position state. Do not switch to or merge the sibling: its remaining differences include workflow/documentation/app-build metadata. +- PR #24 (fix/editorial-policy-exception-guard-2026-11-07) remains open against brrrNEWS, not this branch. Its separate editorial policy change is not part of this visual batch and has not been ported. PR #11 still targets an older black-box-bihar-news base SHA; do not merge it blindly. +- Rechecked source equivalence: ReadHistoryPolicy.kt and its test match PR #22's branch; ArticleCachePolicy.kt and ArticleProvenancePolicy.kt match PR #11's branch; FeedLinkPolicy.kt and its test match PR #12's branch. Current adaptive luminance sampling remains the conservative 4s/6s policy; PR #13's branch is 1.5s/2.5s and is not copied. +- Open PRs: #24, #22, #21, #18, #17, #16, #13, #12, #11, #8 and #6. Closed/merged into consolidation: #19, #20 and #23. No PR from black-box-bihar-news to main exists yet; no merge or branch deletion was performed. + +### Appearance batch + +- Added a persisted local reduceTransparency preference, defaulting to off. The Appearance screen exposes an accessible 56dp row with a labelled Switch. +- GlassRenderingPolicy keeps the normal Prismal material unchanged; when enabled it sets live blur/refraction/chromatic aberration to zero, disables depth/shadow, reduces specular intensity and raises interactive-surface tint to at least 0.24 for clearer, more opaque controls. Applied to the shared header, Explore rail, Search filter capsule and morph, full/compact tab material, Reader toolbar/completion action and definition popover. +- The existing single background-only root backdrop remains the only shared page source; no new capture, readback, bitmap decode, dependency or graphics layer was added. The existing 8×8 adaptive luminance probe is paused while the preference is enabled; normal-mode cadence remains 4s Android 12+ / 6s older. +- Appearance slider movement now updates only a local preview state; the app-wide glassAlpha preference is committed on drag completion or preset selection, avoiding root-state persistence/recomposition on every slider tick. +- Added pure JVM tests for reduced material parameters and sampler suspension. The last successful natural run (#200) validates parent SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e only; the new commit must receive its own natural run. No device screenshots, OPPO jank/Perfetto, battery or thermal measurements exist; those remain UNVERIFIED. +- Next: verify the exact new head's natural build and tests, then continue Saved/stats filter consistency and Quiz/Settings transient controls. Do not claim device performance improvement from policy code alone. + ## Product and material principles Liquid Glass is a functional interaction material, not a universal card background. Use it to clarify navigation, toolbars, search/filter controls and transient actions. Keep article text, article cards, statistics, quiz questions and other dense information surfaces calm, high-contrast and easy to read. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 6a3bcbd4..41af7f37 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,5 +1,15 @@ # CurrentLens — Latest project handoff (7 November 2026) +## Live snapshot — 7 November 2026, 11:38 IST + +- Current integration branch: black-box-bihar-news, verified pre-batch head cfe0b3e8319374df5cb29423f04a79c77d4fe10e; 97 ahead / 0 behind main and 40 ahead / 0 behind PR #16. The low-effects Appearance batch is authored from this exact head; its resulting SHA and natural CI are pending. +- Full remote inventory: 28 branches, 11 open draft PRs (#24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6). No branch deleted; no PR merged during this run. +- Latest natural Actions run #200 passed on parent SHA cfe0b3e; WordNet builder tests/database, :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded; publish job skipped. Artifact 13560769755 (39,059,340 bytes), CurrentLens-v0.2.8-stability-debug-apk, installs as com.mangoloads.currentlens.stability / brrrNews Stability, not the normal package. +- Latest Release remains v0.2.0-build-116. No main write, Release publication, workflow dispatch or rerun. +- Branch audit: black-box remains the latest coherent consolidation line; brrrNEWS is 4 ahead / 3 behind with equivalent GlassSurfacePolicy/test and only a formatting-only MainActivity difference. PR #24 is a separate editorial-policy draft based on brrrNEWS; it was not ported in this UI batch. +- New Appearance setting: persisted Reduce transparency & effects; low-effects policy disables blur/refraction/chromatic/depth/shadows, raises tint opacity and pauses adaptive luminance sampling. Slider preview is local and applies on release/preset. New JVM tests await the natural build on the new commit. +- Device-backed OPPO launch, visual, accessibility and performance checks remain UNVERIFIED. No device measurement is inferred from CI. + > This is the newest status snapshot and supersedes older dated snapshots below where they conflict. Full chronological context remains in SESSION_LEDGER.md. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index b6035948..6a16b734 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -361,3 +361,16 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - Tests: replace the string-injection test with exact assertions for CRASH_NATIVE (5) and status 11; assert that the report has no system-description, PSS/RSS or importance fields. A second test asserts the formatter's exact allow-listed output. Tests are added; the natural branch CI result is pending at commit time. - Files changed: LaunchCrashDiagnostics.kt, LaunchCrashDiagnosticsTest.kt, KNOWN_ISSUES.md, SESSION_LEDGER.md, BUILD_AND_DEBUG.md and PROJECT_HANDOFF.md. - Scope/limits: privacy minimisation only; no claim that the native startup crash is fixed. No physical-device run, raw crash trace, user media, workflow edit, manual Actions dispatch/rerun, main edit, merge or Release. + + +## 2026-11-07 11:38 IST — Appearance low-effects fallback and slider recomposition control + +- **Repository / branch:** Batmancpu/CurrentLens, black-box-bihar-news. Verified parent HEAD cfe0b3e8319374df5cb29423f04a79c77d4fe10e; implementation commit SHA is assigned by GitHub after this entry is authored and must be added during the next ledger refresh. +- **Branch freshness:** complete inventory 28/28; black-box-bihar-news is 97 ahead / 0 behind main and 40 ahead / 0 behind PR #16. No source branch, main, PR base, Release or workflow was changed. +- **Purpose:** make the Appearance preference app-wide and accessible while reducing unnecessary whole-root recomposition during slider movement. +- **Changes:** added local reduceTransparency persistence (default false); introduced pure GlassRenderingPolicy; applied the reduced profile to Home header, Explore rail, Search filter capsule/morph, full/compact tab material, Reader toolbar/completion and definition overlay. Reduced mode removes live blur/refraction/chromatic aberration/depth/shadow, retains a lower specular edge, raises interactive tint opacity to at least 0.24 and pauses the existing 8×8 adaptive luminance probe. No second glass engine or new backdrop capture was introduced. +- **Appearance interaction:** slider drag updates only previewGlassAlpha in the settings screen; parent glassAlpha and SharedPreferences are updated once on drag completion or preset selection. This avoids writing/recomposing the shared root for each slider pixel. The low-effects Switch is labelled and retains a 56dp row. +- **Tests:** added GlassRenderingPolicyTest for normal/reduced optical parameters and extended GlassLuminanceActivationPolicyTest to prove reduced mode pauses sampling. Tests are authored but not yet run on the resulting commit. +- **Previous CI evidence:** run #200 passed on parent SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e, artifact 13560769755; it does not validate this batch. Await the natural workflow for the new exact head; no manual dispatch/rerun. +- **Risks / unverified:** no OPPO Reno10 5G runtime screenshot, launch, accessibility, Perfetto/frame-jank, GPU-overdraw, battery or thermal measurements. Do not claim measured performance improvement. The root background-only source remains shared; the existing tab glyph/merged source is unchanged. +- **Next:** verify natural CI on the new exact head; then review Saved/stat filter surfaces and Quiz/Settings contextual controls. Re-read live branch graph before any further code change. From 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 12:34:04 +0530 Subject: [PATCH 096/175] ui: unify Saved and stats filter glass controls --- .../mangoloads/currentlens/MainActivity.kt | 206 ++++++++++++++++-- docs/BRANCH_CONSOLIDATION.md | 68 +++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 74 +++++-- 3 files changed, 299 insertions(+), 49 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 5136a792..64b2e5c1 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -64,6 +64,7 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.heightIn +import androidx.compose.foundation.layout.widthIn import androidx.compose.foundation.layout.requiredHeight import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -1029,10 +1030,24 @@ private fun HomeScreen( onSettings = onSettings ) YouPage.SAVED -> SavedFeed( - allCachedArticles, bookmarks, readHistory, onOpenArticle, onToggleBookmark + articles = allCachedArticles, + bookmarks = bookmarks, + readHistory = readHistory, + onOpenArticle = onOpenArticle, + onToggleBookmark = onToggleBookmark, + backdrop = backdrop, + glassAlpha = glassAlpha + ) + YouPage.READING_STATS -> ReadingStatsScreen( + sessions = readingSessions, + backdrop = backdrop, + glassAlpha = glassAlpha + ) + YouPage.QUIZ_STATS -> QuizStatsScreen( + attempts = quizAttempts, + backdrop = backdrop, + glassAlpha = glassAlpha ) - YouPage.READING_STATS -> ReadingStatsScreen(readingSessions) - YouPage.QUIZ_STATS -> QuizStatsScreen(quizAttempts) } } } @@ -1607,7 +1622,9 @@ private fun SavedFeed( bookmarks: Set, readHistory: Set, onOpenArticle: (Article) -> Unit, - onToggleBookmark: (Article) -> Unit + onToggleBookmark: (Article) -> Unit, + backdrop: PrismalBackdrop, + glassAlpha: Float ) { var dateRange by remember { mutableStateOf(StatsDateRange.ALL_TIME) } var selectedSubject by remember { mutableStateOf("All") } @@ -1632,12 +1649,18 @@ private fun SavedFeed( } Column(Modifier.fillMaxSize()) { - FilterChipRow("Published", StatsDateRange.values().map { it.label }, dateRange.label) { label -> - dateRange = StatsDateRange.values().first { it.label == label } + GlassFilterGroup(backdrop = backdrop, glassAlpha = glassAlpha) { + CompactFilterRow("Published", StatsDateRange.values().map { it.label }, dateRange.label) { label -> + dateRange = StatsDateRange.values().first { it.label == label } + } + CompactFilterRow( + "GS paper", + listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), + selectedGsPaper, + { selectedGsPaper = it } + ) + CompactFilterRow("Subject", subjects, selectedSubject) { selectedSubject = it } } - FilterChipRow("GS paper", listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), - selectedGsPaper, { selectedGsPaper = it }) - FilterChipRow("Subject", subjects, selectedSubject, { selectedSubject = it }) LazyColumn( Modifier.weight(1f), contentPadding = PaddingValues(start = 16.dp, end = 16.dp, top = 8.dp, bottom = 110.dp), @@ -1868,7 +1891,132 @@ private fun FilterChipRow( } @Composable -private fun ReadingStatsScreen(sessions: List) { +private fun GlassFilterGroup( + backdrop: PrismalBackdrop, + glassAlpha: Float, + content: @Composable () -> Unit +) { + val density = LocalDensity.current + val dark = isSystemInDarkTheme() + val reduceTransparency = LocalGlassReduceTransparency.current + val surfaceColor = MaterialTheme.colorScheme.surface + Box( + Modifier.fillMaxWidth() + .padding(horizontal = 12.dp, vertical = 4.dp) + .drawPrismalGlass( + backdrop = backdrop, + shape = { PrismalRoundedRectangle(GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP.dp) }, + effects = { + applyPrismalGlassEffects( + density = density, + adaptiveLuminance = true, + luminance = if (dark) 0.10f else 0.90f, + blurRadiusPx = with(density) { + GlassRenderingPolicy.blurDp(5f, reduceTransparency).dp.toPx() + }, + refractionHeightPx = with(density) { + GlassRenderingPolicy.refractionDp(2.5f, reduceTransparency).dp.toPx() + }, + refractionAmountPx = with(density) { + GlassRenderingPolicy.refractionDp(3.5f, reduceTransparency).dp.toPx() + }, + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.001f, reduceTransparency), + adaptiveTuning = PrismalAdaptiveTuning.Subtle + ) + }, + specular = { + PrismalSpecular.Default.copy( + width = 0.42.dp, + blurRadius = 0.26.dp, + alpha = GlassRenderingPolicy.specularAlpha(0.15f, reduceTransparency) + ) + }, + depthShadow = { + PrismalDepthShadow( + radius = 8.dp, + offset = DpOffset(0.dp, 1.dp), + color = Color.Black.copy(alpha = 0.06f), + alpha = GlassRenderingPolicy.shadowAlpha(0.10f, reduceTransparency) + ) + }, + depthInset = { + PrismalDepthInset( + radius = 3.dp, + offset = DpOffset(0.dp, 1.dp), + color = Color.Black.copy(alpha = 0.04f), + alpha = GlassRenderingPolicy.shadowAlpha(0.04f, reduceTransparency) + ) + }, + onDrawSurface = { + drawRect( + surfaceColor.copy( + alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.10f, reduceTransparency) + ) + ) + } + ) + ) { + Column( + Modifier.fillMaxWidth().padding(horizontal = 8.dp, vertical = 8.dp), + verticalArrangement = Arrangement.spacedBy(3.dp) + ) { + content() + } + } +} + +@Composable +private fun CompactFilterRow( + title: String, + options: List, + selected: String, + onSelected: (String) -> Unit +) { + val distinctOptions = remember(options) { options.distinct() } + Row( + Modifier.fillMaxWidth().heightIn(min = 48.dp), + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp) + ) { + Text( + title, + modifier = Modifier.width(72.dp).padding(start = 4.dp), + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 2, + overflow = TextOverflow.Ellipsis + ) + Row( + Modifier.weight(1f).horizontalScroll(rememberScrollState()), + horizontalArrangement = Arrangement.spacedBy(6.dp), + verticalAlignment = Alignment.CenterVertically + ) { + distinctOptions.forEach { option -> + FilterChip( + selected = selected == option, + onClick = { onSelected(option) }, + modifier = Modifier.widthIn(min = 48.dp).heightIn(min = 48.dp), + label = { + Text( + option, + fontSize = 11.sp, + maxLines = 1, + softWrap = false + ) + } + ) + } + } + } +} + +@Composable +private fun ReadingStatsScreen( + sessions: List, + backdrop: PrismalBackdrop, + glassAlpha: Float +) { var dateRange by remember { mutableStateOf(StatsDateRange.LAST_7_DAYS) } var selectedSubject by remember { mutableStateOf("All") } var selectedGsPaper by remember { mutableStateOf("All") } @@ -1882,12 +2030,18 @@ private fun ReadingStatsScreen(sessions: List) { ) } Column(Modifier.fillMaxSize()) { - FilterChipRow("Date", StatsDateRange.values().map { it.label }, dateRange.label) { label -> - dateRange = StatsDateRange.values().first { it.label == label } + GlassFilterGroup(backdrop = backdrop, glassAlpha = glassAlpha) { + CompactFilterRow("Date", StatsDateRange.values().map { it.label }, dateRange.label) { label -> + dateRange = StatsDateRange.values().first { it.label == label } + } + CompactFilterRow( + "GS paper", + listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), + selectedGsPaper, + { selectedGsPaper = it } + ) + CompactFilterRow("Subject", subjects, selectedSubject) { selectedSubject = it } } - FilterChipRow("GS paper", listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), - selectedGsPaper, { selectedGsPaper = it }) - FilterChipRow("Subject", subjects, selectedSubject, { selectedSubject = it }) Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 7.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) { MetricTile("Reading time", formatDuration(summary.totalDurationMillis), Modifier.weight(1f)) @@ -1927,7 +2081,11 @@ private fun ReadingStatsScreen(sessions: List) { } @Composable -private fun QuizStatsScreen(attempts: List) { +private fun QuizStatsScreen( + attempts: List, + backdrop: PrismalBackdrop, + glassAlpha: Float +) { var dateRange by remember { mutableStateOf(StatsDateRange.ALL_TIME) } var selectedSubject by remember { mutableStateOf("All") } var selectedGsPaper by remember { mutableStateOf("All") } @@ -1943,12 +2101,18 @@ private fun QuizStatsScreen(attempts: List) { val accuracy = if (summary.answersAttempted == 0) "—" else ((summary.correctAnswers * 100f / summary.answersAttempted).toInt().toString() + "%") Column(Modifier.fillMaxSize()) { - FilterChipRow("Date", StatsDateRange.values().map { it.label }, dateRange.label) { label -> - dateRange = StatsDateRange.values().first { it.label == label } + GlassFilterGroup(backdrop = backdrop, glassAlpha = glassAlpha) { + CompactFilterRow("Date", StatsDateRange.values().map { it.label }, dateRange.label) { label -> + dateRange = StatsDateRange.values().first { it.label == label } + } + CompactFilterRow( + "GS paper", + listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), + selectedGsPaper, + { selectedGsPaper = it } + ) + CompactFilterRow("Subject", subjects, selectedSubject) { selectedSubject = it } } - FilterChipRow("GS paper", listOf("All", "GS I", "GS II", "GS III", "GS IV", "Unmapped"), - selectedGsPaper, { selectedGsPaper = it }) - FilterChipRow("Subject", subjects, selectedSubject, { selectedSubject = it }) Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 7.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) { MetricTile("Attempts", summary.attemptCount.toString(), Modifier.weight(1f)) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 03ae53b0..ca957be1 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,11 +2,13 @@ **Repository:** `Batmancpu/CurrentLens` **Chosen integration branch:** `black-box-bihar-news` -**Verified source HEAD before this batch:** `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; the low-effects batch is authored from this exact SHA. +**Verified source HEAD before the Saved/stat filter batch:** `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; the filter implementation and this audit are authored as one direct-child commit. **Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -**Live branch inventory:** 28 refs (page 1: 28; page 2: 0) at 7 Nov 2026 11:38 IST; no branch was deleted. -**Latest completed validation before this batch:** Actions run [#200](https://github.com/Batmancpu/CurrentLens/actions/runs/42341245934), success on exact SHA `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; artifact `13560769755` (39,059,340 bytes). It validates the Reader resume-I/O parent, not the new low-effects commit. -**No feature-branch Release was published; the main-only publish job was skipped.** Existing latest Release remains `v0.2.0-build-116`. No manual workflow dispatch or rerun was used. +**Live branch inventory:** 29 refs (page 1: 29; page 2: 0) at 7 Nov 2026 12:27 IST; no branch was deleted. +**Latest completed validation on the selected branch:** [Actions run #201](https://github.com/Batmancpu/CurrentLens/actions/runs/42346024924), success on exact SHA `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; artifact `13563139070` (39,067,369 bytes, SHA-256 `236b9611c925a8a3f9aae4f7a28b57ef76c7c488161ada7d2d84fd54bcce27fb`). This validates the reduced-transparency parent, not the new filter batch. +**Latest overall natural run:** #202, success on PR #25's child SHA `7a51c9c2c40aa89997db55194a6db3d0d65ac95d`; artifact `13563912571` (39,072,517 bytes). It is not a validation of the selected branch. +**Actions:** 202 runs, fully paginated (100 + 100 + 2 + 0); no queued or in-progress runs. The release job was skipped on both #201 and #202. +**No feature-branch Release was published;** latest published Release remains `v0.2.0-build-116`. No manual dispatch/rerun, merge to main, branch deletion or other-branch write occurred. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -257,3 +259,61 @@ The complete remote branch list was re-enumerated (28 refs; page 2 empty). Commi - Latest overall run #200: success on exact black-box SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e; build/test job completed checkout, Java, signing cache, Android SDK, platform install, Gradle, WordNet builder tests/database generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Publish job skipped. - Artifact 13560769755, CurrentLens-v0.2.8-stability-debug-apk, 39,059,340 bytes, 14-day retention. This is the non-main stability variant: application ID com.mangoloads.currentlens.stability, label brrrNews Stability; it installs separately from the normal app. - Latest published Release remains v0.2.0-build-116; no Release was created by run #200. + + +## 9. Live branch graph and CI audit — 7 November 2026, 12:27 IST + +The full remote branch list was refreshed (29 branches; page 2 empty). Commit timestamps are GitHub committer timestamps in UTC. This table supersedes earlier inventory snapshots above; all source refs remain untouched. + +| Branch | Head SHA | Latest commit (UTC) | PR / status | +|---|---|---|---| +| `black-box-bihar-news` | `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0` | 2026-11-07 06:13:13 — app-wide reduced-transparency mode | Owner-selected active consolidation; no PR to main; source for this filter batch | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 — consolidate lightweight supporting glass surfaces | Divergent sibling; base of open PR #24; not selected | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — read-only PR validation | Open PR #18, base main; compatible design is represented in black-box workflow | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — restore Android SDK setup before sdkmanager | PR #20 merged into black-box; source ref retained | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — icon accessibility name | Now points at main; PR #14 closed unmerged at an older head | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 — refresh article card metadata | Open PR #6, base main; compatible editorial policy selectively represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — deterministic Atom alternate links | Open PR #12, base main; equivalent FeedLinkPolicy is byte-identical in black-box | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — publication date and provenance | Open PR #11, older black-box base; current policy equivalents already integrated | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — minimise shareable process-exit diagnostics | Open PR #16, base main; corrected stability/Prismal ancestor, 41 commits behind black-box | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — preserve a specific parliamentary bill signal | Open PR #21, base main; useful editorial rules reconciled, no wholesale port | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 — match policy action and target separately | Open PR #24, base brrrNEWS; three-file editorial-only PR diff, not ported | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — align economy signal count | PR #2 merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 — tighten UPSC signal boundaries | PR #1 merged into main; old divergent branch not a baseline | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 — supported calendar glyph | PR #5 merged into main; old divergent branch not a baseline | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 — preserve Parliament headline variants | PR #23 merged into black-box; source ref retained | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 — validate RSS redirect hosts | PR #15 closed unmerged; equivalent safety guards retained in newer code | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 — cover publisher-only image resources | Open PR #25, base black-box at the pre-filter head; seven-commit privacy/network child, untouched | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 — deduplicate RSS tracking variants | Open PR #17, base main; URL identity policy ported selectively | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 — capture Search tint before draw callback | PR #10 merged into main; older divergent branch | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 — startup diagnostics and feed indexing | PR #9 merged into main; older divergent branch | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 — harden cold start and feed workload | PR #7 merged into main; older divergent branch | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — icon accessibility name | Default branch; unchanged | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 — verify legacy markers survive retention | Open PR #22, base PR #8; reconciled supplemental policy represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 — move read-marker persistence off main | Open PR #8, base main; persistence changes reconciled into black-box | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 — selection fallback JSON | Stale; 192 commits behind black-box | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 — restore foreground adaptive contrast | Open PR #13, base main; original 1.5s/2.5s cadence deliberately not copied | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 — bottom-nav glyph imports | Stale/diverged; PR #4 closed unmerged; earlier PR #3 merged into main | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 — record Reader selection guard | PR #19 merged into black-box; source ref retained | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 — syllabus and thin-film eligibility | Ancestor of black-box; no missing UI delta | + +### Current branch comparisons and dependency decisions + +- `main...black-box-bihar-news`: 98 ahead / 0 behind; merge base main. `fix/early-startup-crash-diagnostics...black-box-bihar-news`: 41 ahead / 0 behind. The selected branch retains the corrected background-only Prismal source and all owner-consolidated Reader/Search/feed-navigation changes. +- `black-box-bihar-news...brrrNEWS`: diverged 4 ahead / 4 behind. `GlassSurfacePolicy.kt` and its JVM test are byte-identical; the supporting-glass implementation is already present. PR #24's own diff is editorial-only; its branch's remaining workflow/app-label metadata is not adopted. +- PR #25 head is 7 ahead / 0 behind the pre-batch black-box head. Its asset allowlist/cached HTML changes are separate from this batch's Saved/stat filter call sites; do not merge or rewrite its branch. The two MainActivity diff regions are in NewsCard and Reader cache loading, not the filter screens. +- PR #13's 1.5s/2.5s probe cadence is superseded by the conservative one-source 4s/6s policy, paused during feed scroll, Reader, Settings and background. PR #18's read-only workflow proposal is not copied blindly; the compatible PR #20 workflow is already in black-box. The workflow on main remains push-only with broader write permissions; this batch changes no workflow. +- PR #11/12/17, PR #6/21 and PR #8/22 remain independent open source refs. Their useful cache/provenance, Atom link, URL identity, editorial and supplemental read-history policies were selectively reconciled; their divergent MainActivity/network/persistence files are not authoritative replacements. +- Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are not baselines. `ui/liquid-glass-system` and `ui/liquid-glass-system-continuation` are ancestors of the selected branch. + +### Natural CI and release state + +- Actions history: 202 runs (pages 100 + 100 + 2; next page empty); queue empty. Latest overall #202 is PR #25 on its exact child head, not this branch. +- Run #201 on exact black-box SHA `2e2c15f` completed the build job successfully: Python WordNet builder ran 4 tests (OK), generated 151,456 unique words / 50,950,144-byte database, then `:app:testDebugUnitTest` and `:app:assembleDebug` succeeded (44 tasks; 32 executed, 12 cached). Artifact upload succeeded; publish job skipped. +- Run #201 artifact: `13563139070`, `CurrentLens-v0.2.8-stability-debug-apk`, 39,067,369 bytes, SHA-256 `236b9611c925a8a3f9aae4f7a28b57ef76c7c488161ada7d2d84fd54bcce27fb`. +- Run #202 on PR #25 exact SHA `7a51c9c` also passed WordNet generation, JVM tests, APK assembly and upload; artifact `13563912571`, 39,072,517 bytes, SHA-256 `ef86f304323ddbcac17db3bce426e18853fa8affd364d09dcfe870ba00b31f44`. It does not validate black-box. +- No Release was created by #201/#202. Latest published Release remains `v0.2.0-build-116`. No main edit/merge, manual dispatch/rerun, other-branch write or ref deletion occurred. + +### Device/performance limitations + +No post-change OPPO Reno10 runtime launch, screenshot, TalkBack session, Reduce Motion verification, logcat/tombstone, Perfetto trace, GPU overdraw/frame-time, allocation/memory, thermal or battery evidence is available. Keep those checks **UNVERIFIED**; successful CI only establishes the tested source compiles, passes JVM tests and packages an APK. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 5d474e6e..a02da844 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,14 +1,26 @@ # Liquid Glass UI Roadmap -**Status:** Appearance low-effects/reduced-transparency batch authored from the live consolidation head; natural CI for the resulting commit is pending. Reader resume-I/O and supporting-glass code are already present on the branch. -**Feature branch:** `black-box-bihar-news` -**Verified source HEAD:** `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`; the new implementation commit is created from this exact head and its SHA is read from the live ref after commit. -**Integration lineage:** PR #16 stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; consolidation head is 40 commits ahead / 0 behind PR #16 and 97 ahead / 0 behind main. -**Last completed successful run:** #200, exact source HEAD `cfe0b3e8319374df5cb29423f04a79c77d4fe10e`, passed WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; artifact `13560769755` (39,059,340 bytes). This validates the pre-change head only, not the new low-effects batch. -**Main:** unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -**Safety:** no source branch has been deleted, no Release has been published, and no workflow has been manually dispatched or rerun. - -## Live branch audit and reduced-transparency batch — 7 November 2026, 11:38 IST +**Status:** The shared Appearance low-effects/reduced-transparency mode is implemented and naturally validated on `black-box-bihar-news@2e2c15f`. This iteration adds one restrained Prismal filter group across Saved, Reading Stats and Quiz Stats; it is authored from that exact verified head and awaits its own natural CI result. +**Feature branch:** `black-box-bihar-news` — the only branch modified by this work. +**Verified source HEAD before this batch:** `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; direct child commit and exact resulting head are read from the live branch ref after the atomic update. +**Integration lineage:** 98 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 41 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Last completed successful validation on this branch:** Actions run [#201](https://github.com/Batmancpu/CurrentLens/actions/runs/42346024924), exact SHA `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; WordNet builder tests, offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13563139070`, 39,067,369 bytes, SHA-256 `236b9611c925a8a3f9aae4f7a28b57ef76c7c488161ada7d2d84fd54bcce27fb`. It validates the previous head, not this filter batch. +**Latest separate PR run:** #202 passed on PR #25's child head `7a51c9c2c40aa89997db55194a6db3d0d65ac95d`; artifact `13563912571`. It is not a validation of `black-box-bihar-news`. +**Actions queue:** no queued or in-progress runs at the audit; 202 runs fully paginated (100 + 100 + 2). +**Main / Releases:** `main` unchanged; latest published Release remains `v0.2.0-build-116`; no feature-branch Release or merge. +**Safety:** no source branch was changed/deleted; no workflow dispatch/rerun; no package/app identity, networking, persistence or quiz-submit semantics changed. + +## Live branch freshness audit — 7 November 2026, 12:27 IST + +- All 29 remote branches were enumerated (page 1: 29; page 2: 0), all 12 open PRs and recently merged PRs reviewed, and the full current workflow plus exact latest job logs/artifacts were checked. The full branch/commit table and comparisons are in `docs/BRANCH_CONSOLIDATION.md` §9. +- `black-box-bihar-news@2e2c15f` is the latest coherent owner-selected integration lineage: 98 ahead / 0 behind main and 41 ahead / 0 behind PR #16. PR #16 remains open/draft on main; its corrected background-only Prismal source is an ancestor, not a reason to branch from its now-older head. +- PR #19 Reader/Search UI, PR #20 read-only stacked CI and PR #23 editorial gate are merged into this branch only. The branch's workflow has read-only build permissions, a separately gated main-push release job, and natural push/PR triggers for this branch; no workflow edit is part of this batch. +- `brrrNEWS` is a divergent sibling (4 ahead / 4 behind). Its `GlassSurfacePolicy.kt` and test are byte-identical to this branch; the visible supporting-glass implementation is already integrated. PR #24's own three-file diff is editorial-only and remains on its sibling base. +- PR #25 is a seven-commit child of the exact source head and adds publisher-owned RSS/Reader image allowlisting. Its MainActivity hunks are confined to NewsCard image validation and cached Reader HTML; they do not overlap the Saved/stat filter section. The branch and PR remain untouched. +- PR #13's 1.5s/2.5s adaptive readback cadence was not copied; this branch retains one 8×8 probe at 4s/6s, paused while scrolling and outside foreground home surfaces. Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded. +- Run #201 is the exact black-box validation described above. Run #202 validates only PR #25. The publish jobs were skipped; no Release was created. OPPO visual/performance checks remain unverified. + +## Historical branch audit and reduced-transparency batch — 7 November 2026, 11:38 IST (superseded by the live audit above) - The complete remote inventory is 28 branches (page 1: 28; page 2: 0). **black-box-bihar-news** is the freshest coherent consolidation line: 97 ahead / 0 behind **main**; 40 ahead / 0 behind PR #16's corrected stability head. - **brrrNEWS** is a diverged sibling (4 ahead / 3 behind; merge base e411c394e8d48b3f547b6d6fb9039a8935bd05eb). Its GlassSurfacePolicy.kt and test are byte-identical to this branch; MainActivity.kt differs only in formatting around the restored Reader-position state. Do not switch to or merge the sibling: its remaining differences include workflow/documentation/app-build metadata. @@ -64,8 +76,8 @@ Recheck every branch head and dependency before each future implementation commi | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | | You dashboard | Supporting glass | Shared non-blurred tinted/rim card, continuous 22dp geometry, single-line metric values | Integrated in code commit 5e966; OPPO contrast check unverified | -| Saved | Interactive controls + editorial content | Readable story cards; stable date/GS/subject filters | Saved article/subject/filter derivations memoized in 5e966; grouped filter material remains | -| Reading / Quiz Stats | Supporting glass + editorial data | Shared metric tiles and quiet supporting tint/rim on day/attempt records; data stays high contrast | Integrated in 5e966; summaries memoized; device contrast/performance unverified | +| Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | +| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Grouped rails reuse the root backdrop; supporting cards remain no-blur tint/rim; summaries memoized | | Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control; direction-aware auto-hide | Implemented; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | @@ -73,7 +85,7 @@ Recheck every branch head and dependency before each future implementation commi | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | | Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Existing standard surfaces; preserve | | Quiz action controls | Interactive control glass where useful | Compact, accessible action layer without glassifying questions | Planned | -| Appearance settings | Interactive control glass | Clear↔Frosted slider, presets and small live header/navigation/article preview | Preview integrated; accessible low-effects/reduced-transparency option remains next | +| Appearance settings | Interactive control glass | Clear↔Frosted slider, presets, live header/navigation/article preview and low-effects switch | Preview and reduced-transparency mode integrated; slider changes apply to shared material policy; device validation pending | | Dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | ## Paired performance matrix @@ -91,7 +103,8 @@ Recheck every branch head and dependency before each future implementation commi | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | | You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | -| Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Low-effects option and slider coalescing remain future work | +| Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | +| Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Reduced-transparency/low-effects preference is integrated; OPPO rendering and slider-response measurements remain unverified | ## Implemented batch — Reader toolbar and completion @@ -106,24 +119,22 @@ Recheck every branch head and dependency before each future implementation commi **Rendering delta:** one small Reader toolbar surface is now active while reading; one small completion surface is active only after completion. Both reuse the existing root backdrop. The definition popover remains the existing single anchored surface. No per-card blur, extra backdrop capture, sampler, image decode, GPU readback, dependency, network request or persistent data format was added. -**Subsequently implemented:** Reader chrome auto-hide/directional pinning, 48dp Search clear, feed-only compact navigation, dashboard/stat supporting surfaces and the Appearance live preview. Low-effects/reduced-transparency preference, grouped Saved/stat filter material and the remaining quiz action-area polish remain future batches. +**Subsequently implemented:** Reader chrome auto-hide/directional pinning, 48dp Search clear, feed-only compact navigation, dashboard/stat supporting surfaces, the Appearance live preview and the shared low-effects/reduced-transparency preference. The grouped Saved/stat filter panel is the current pending batch; Quiz action-area polish remains next. ## Verification status and limitations -- The complete 26-branch graph was re-enumerated on 7 November 2026 at 09:30 IST. The source baseline was `black-box-bihar-news@e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; it was 94 ahead / 0 behind main and 37 ahead / 0 behind PR #16. The current code commit is `5e966a1b2d27bc08e01af3cd40e6573d6e8328be`. -- The last completed natural workflow before the current code commit was run #193 on exact parent SHA `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`. Its build job passed WordNet builder tests/database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact ID `13559372948`, 39,052,734 bytes, SHA-256 `095bb848171516892b33e8e7742d8d46034b7514410179fb002eeb5d274f5c24`. The release job was skipped. This run does **not** validate the newer `5e966a1` commit. -- The current supporting-glass batch adds a focused `GlassSurfacePolicyTest`; its natural CI result is pending. Do not claim this commit compiles or passes until a workflow run reports the exact new SHA. +- Latest exact branch validation before this batch is run #201 on `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; its full build/test/artifact evidence is recorded in the current audit above. Run #202 is a separate PR #25 child build and is not a substitute. +- The Appearance reduced-transparency batch is part of the run #201 tested SHA. The new filter-group UI commit is not yet validated; wait for a natural run on its exact head before declaring it compiled or passing. - No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement is available. Visual transitions, contrast on image backdrops, real-device launch stability and resource cost remain **UNVERIFIED**. -- Source-level cost controls for this batch: no Prismal capture, live blur, refraction, sampler, readback, graphics layer, image decode or dependency was added; only a small gradient tint/rim on already-visible supporting cards. This is a code-scope statement, not a measured performance win. +- Supporting-card cost controls: no Prismal capture, live blur, refraction, sampler, readback, graphics layer, image decode or dependency; cached tint/rim only. The current filter batch adds one shared 5dp-blur/low-refraction panel on the active Saved or Stats page, reusing the root background-only source; no per-chip surface or new readback. This is a code-scope statement, not a measured performance win. - The native launch fault remains unproven as fixed until a post-change physical-device launch test is available. ## Next implementation sequence -1. Appearance: add an accessible low-effects/reduced-transparency preference that changes the real shared material parameters; coalesce slider preview updates and avoid whole-app/backdrop rebuilds. -2. Saved and stats controls: group date/GS/subject controls into a restrained shared control material without creating multiple heavy blur plates; preserve 48dp targets and horizontal scroll. -3. Quiz action area and transient menus/sheets: add the same restrained control-glass vocabulary only where it improves hierarchy; keep questions/options and explanatory content on clear surfaces. -4. Whole-app audit: reconcile the header, filters, reader, navigation, dashboard, saved, stats and quiz resting/transient states; run accessibility and visual checks on both light/dark and scaled text. -5. Measure on OPPO Reno10 5G (or explicitly keep device metrics unverified): startup, scroll jank/frame timing, allocation churn, GPU overdraw/layers, thermal and battery against the same base build. +1. Await natural CI on the current Saved/Reading Stats/Quiz Stats filter-group commit; inspect the exact run, full logs and artifact before another UI batch. +2. Refine the Quiz action area and transient sheets/menus with the same restrained control-glass vocabulary only where it improves hierarchy; keep questions/options and explanatory content on clear surfaces. +3. Whole-app audit: reconcile header, filters, Reader, navigation, dashboard, Saved, stats and quiz resting/transient states; check light/dark, large text, TalkBack and Reduce Motion. +4. Measure on OPPO Reno10 5G (or explicitly keep metrics unverified): startup, scroll jank/frame timing, allocation churn, GPU overdraw/layers, thermal and battery against the same base build. Do not mark the redesign complete until every screen has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. @@ -200,4 +211,19 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches **Verification:** pre-iteration run #196 passed on exact source SHA `c8afed0`; run #195 passed on `5e966a1`. The new Reader resume-I/O commit requires its own natural push workflow. OPPO Reno10 launch/scroll traces, restore timing, memory, thermal and battery remain **UNVERIFIED**. -**Next implementation:** add an accessible low-effects/reduced-transparency preference that changes the real shared Prismal material parameters consistently, with a low-cost fallback and a restrained live preview; then consolidate Saved/stat filters and polish the Quiz action area. Preserve one root backdrop source and do not add a second sampler. +**Next implementation:** after natural CI verifies the current shared filter group, polish the Quiz action area and transient sheets/menus with one restrained control-glass treatment where it improves hierarchy. Keep question/answer content clear and high contrast; preserve the single root backdrop source. + + +## Saved and statistics filter-group batch — 7 November 2026 + +**Source:** `black-box-bihar-news@2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; this commit is its direct child. No other branch is changed. + +- Replaced three independent plain filter rows on Saved, Reading Stats and Quiz Stats with one shared `GlassFilterGroup` per visible page. Each group contains Published/Date, GS paper and Subject rails, using a single rounded Prismal material rather than separate glass plates. +- Compact rows put their labels beside horizontally scrollable options. Every FilterChip is constrained to at least 48dp width and height; Material selected/role semantics remain intact. Existing filter state, option values, date interpretation, Saved data, statistics and quiz submit-only persistence are unchanged. +- Search's existing filter sheet remains on its prior implementation; Today/Explore, You dashboard, Reader, Quiz and Settings are not given a new filter surface in this batch. + +**Paired rendering/performance strategy:** one 5dp blur / 2.5dp refraction-height / 3.5dp refraction-amount Prismal surface per active Saved/Stats page, reusing the one background-only root capture. No per-chip or per-row blur, new capture, sampler/readback, shader, graphics layer, image decode, network request or dependency. Existing `GlassRenderingPolicy` routes Reduce Transparency to its low-effects fallback; `GlassSurfacePolicy` supplies the shared 22dp geometry. No performance improvement is claimed without device measurements. + +**Tests:** no new policy/state logic was introduced; the panel reuses the already-tested `GlassRenderingPolicy` and `GlassSurfacePolicy`. Natural CI must run the full `:app:testDebugUnitTest` suite and assemble the APK on this exact new head. Visual density, TalkBack, 48dp touch behaviour and animation remain device checks. + +**Validation:** pending natural CI for this commit. OPPO Reno10 5G screenshots, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. From 947310a157e03df25dde3856d2686d18ffca68e8 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 13:39:15 +0530 Subject: [PATCH 097/175] feat(quiz): add compact Prismal action chrome --- .../mangoloads/currentlens/MainActivity.kt | 152 +++++++++++++++--- docs/BRANCH_CONSOLIDATION.md | 86 ++++++++-- docs/LIQUID_GLASS_UI_ROADMAP.md | 80 +++++---- 3 files changed, 253 insertions(+), 65 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 64b2e5c1..58375f97 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -731,6 +731,9 @@ private fun BrrrNewsApp() { when { selectedArticle != null && quizMode -> QuizScreen( article = selectedArticle!!, + backdrop = backdrop, + glassAlpha = glassAlpha, + dark = dark, onBack = { quizMode = false }, onSubmit = { answers, questions -> val article = selectedArticle!! @@ -4111,26 +4114,86 @@ private fun GlassSettingsScreen( @Composable private fun QuizScreen( article: Article, + backdrop: PrismalBackdrop, + glassAlpha: Float, + dark: Boolean, onBack: () -> Unit, onSubmit: (Map, List) -> Unit ) { - val relevance = remember(article.id) { UpscEngine.classify(article) } - val questions = remember(article.id) { UpscEngine.questions(article, relevance) } - var selected by remember(article.id) { mutableStateOf>(emptyMap()) } - var submitted by remember(article.id) { mutableStateOf(false) } + val relevance = remember(article.id, article.title, article.description) { + UpscEngine.classify(article) + } + val questions = remember(article.id, article.title, article.description, relevance) { + UpscEngine.questions(article, relevance) + } + var selected by remember(article.id, article.title, article.description) { + mutableStateOf>(emptyMap()) + } + var submitted by remember(article.id, article.title, article.description) { + mutableStateOf(false) + } val score = questions.indices.count { selected[it] == questions[it].correctIndex } + val reduceTransparency = LocalGlassReduceTransparency.current + val controlTint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA) Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { - Row(Modifier.fillMaxWidth().padding(12.dp), verticalAlignment = Alignment.CenterVertically) { - IconButton(onClick = onBack) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back to article") } - Text("Your reading check", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) + PrismalGlassSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), + shape = { PrismalRoundedRectangle(22.dp) }, + blurRadius = GlassRenderingPolicy.blurDp(8f, reduceTransparency).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), + refractionAmountPx = GlassRenderingPolicy.refractionPx(12f, reduceTransparency), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.003f, reduceTransparency), + tint = controlTint, + tintAlpha = GlassRenderingPolicy.tintAlpha( + (glassAlpha * 0.42f).coerceIn(0.05f, 0.24f), reduceTransparency + ) + ) { + Row( + Modifier.fillMaxWidth().heightIn(min = 60.dp) + .padding(horizontal = 4.dp, vertical = 4.dp), + verticalAlignment = Alignment.CenterVertically + ) { + IconButton(onClick = onBack, modifier = Modifier.size(48.dp)) { + Icon(Icons.Outlined.ArrowBack, contentDescription = "Back to article") + } + Column( + Modifier.weight(1f).padding(vertical = 3.dp), + verticalArrangement = Arrangement.spacedBy(2.dp) + ) { + Text( + "Your reading check", + style = MaterialTheme.typography.titleMedium, + fontWeight = FontWeight.Bold, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + Text( + "Five questions · Basic to application", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) + } + Text( + selected.size.toString() + "/" + questions.size, + style = MaterialTheme.typography.labelMedium, + color = MaterialTheme.colorScheme.primary, + fontWeight = FontWeight.Bold, + modifier = Modifier.padding(horizontal = 10.dp).semantics { + contentDescription = "Answered " + selected.size + " of " + + questions.size + " questions" + } + ) + } } - Text("Five questions · Basic to application", color = MaterialTheme.colorScheme.secondary, - modifier = Modifier.padding(horizontal = 20.dp)) Card( modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.secondaryContainer), - shape = RoundedCornerShape(16.dp) + shape = ContinuousCornerShape(22.dp) ) { Column(Modifier.padding(14.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { Text("Question-source note", fontWeight = FontWeight.Bold) @@ -4160,7 +4223,7 @@ private fun QuizScreen( } items(questions.size) { index -> val question = questions[index] - Card(shape = RoundedCornerShape(18.dp), + Card(shape = ContinuousCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface)) { Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(9.dp)) { Text(question.level + " / " + question.type.uppercase(), @@ -4171,7 +4234,9 @@ private fun QuizScreen( val correct = submitted && optionIndex == question.correctIndex OutlinedButton( onClick = { if (!submitted) selected = selected + (index to optionIndex) }, - modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(13.dp), + modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp) + .semantics { selected = chosen }, + shape = ContinuousCornerShape(16.dp), enabled = !submitted ) { Text((if (chosen) "● " else "○ ") + option, @@ -4193,7 +4258,10 @@ private fun QuizScreen( } } if (submitted) item { - Card(colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer)) { + Card( + shape = ContinuousCornerShape(22.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer) + ) { Column(Modifier.padding(17.dp)) { Text("Your result: " + score + "/" + questions.size, style = MaterialTheme.typography.headlineSmall, fontWeight = FontWeight.Bold) @@ -4204,18 +4272,54 @@ private fun QuizScreen( } } } - Row(Modifier.fillMaxWidth().padding(14.dp), horizontalArrangement = Arrangement.spacedBy(10.dp)) { - OutlinedButton(onClick = onBack, modifier = Modifier.weight(1f)) { Text("Done") } - Button( - onClick = { - if (!submitted) { - submitted = true - onSubmit(selected.toMap(), questions) + Box(Modifier.fillMaxWidth().navigationBarsPadding()) { + PrismalGlassSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), + shape = { PrismalRoundedRectangle(22.dp) }, + blurRadius = GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx(8f, reduceTransparency), + refractionAmountPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.002f, reduceTransparency), + tint = controlTint, + tintAlpha = GlassRenderingPolicy.tintAlpha( + (glassAlpha * 0.36f).coerceIn(0.045f, 0.20f), reduceTransparency + ) + ) { + Column( + Modifier.fillMaxWidth().padding(horizontal = 10.dp, vertical = 9.dp), + verticalArrangement = Arrangement.spacedBy(7.dp) + ) { + Text( + selected.size.toString() + " of " + questions.size + " answered", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary, + modifier = Modifier.padding(start = 4.dp) + ) + Row( + Modifier.fillMaxWidth(), + horizontalArrangement = Arrangement.spacedBy(10.dp) + ) { + OutlinedButton( + onClick = onBack, + modifier = Modifier.weight(1f).heightIn(min = 48.dp), + shape = ContinuousCornerShape(16.dp) + ) { Text("Done") } + Button( + onClick = { + if (!submitted) { + submitted = true + onSubmit(selected.toMap(), questions) + } + }, + modifier = Modifier.weight(1f).heightIn(min = 48.dp), + shape = ContinuousCornerShape(16.dp), + enabled = selected.isNotEmpty() && !submitted + ) { Text(if (submitted) "Submitted" else "Submit answers") } } - }, - modifier = Modifier.weight(1f), - enabled = selected.isNotEmpty() && !submitted - ) { Text("Submit answers") } + } + } } } } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index ca957be1..4d99fead 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,14 +1,15 @@ # Black Box Bihar News — complete branch consolidation -**Repository:** `Batmancpu/CurrentLens` -**Chosen integration branch:** `black-box-bihar-news` -**Verified source HEAD before the Saved/stat filter batch:** `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; the filter implementation and this audit are authored as one direct-child commit. -**Default branch:** `main` — unchanged at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -**Live branch inventory:** 29 refs (page 1: 29; page 2: 0) at 7 Nov 2026 12:27 IST; no branch was deleted. -**Latest completed validation on the selected branch:** [Actions run #201](https://github.com/Batmancpu/CurrentLens/actions/runs/42346024924), success on exact SHA `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; artifact `13563139070` (39,067,369 bytes, SHA-256 `236b9611c925a8a3f9aae4f7a28b57ef76c7c488161ada7d2d84fd54bcce27fb`). This validates the reduced-transparency parent, not the new filter batch. -**Latest overall natural run:** #202, success on PR #25's child SHA `7a51c9c2c40aa89997db55194a6db3d0d65ac95d`; artifact `13563912571` (39,072,517 bytes). It is not a validation of the selected branch. -**Actions:** 202 runs, fully paginated (100 + 100 + 2 + 0); no queued or in-progress runs. The release job was skipped on both #201 and #202. -**No feature-branch Release was published;** latest published Release remains `v0.2.0-build-116`. No manual dispatch/rerun, merge to main, branch deletion or other-branch write occurred. +**Repository:** Batmancpu/CurrentLens +**Chosen integration branch:** black-box-bihar-news +**Verified source HEAD before the Quiz action-chrome batch:** 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; the QuizScreen and roadmap updates are committed as one direct child using a fast-forward-only ref update. +**Default branch:** main — unchanged at 73b8a0d1ba33503fede02db2c3c0af082d724a12. +**Live branch inventory:** 31 refs (page 1: 31; page 2: 0) at 7 Nov 2026 13:00 IST; no branch was deleted. +**Latest completed validation on the selected branch:** Actions run #203 (https://github.com/Batmancpu/CurrentLens/actions/runs/42349689690), success on exact SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; artifact 13565296151 (39,078,047 bytes). It validates the Saved/stat filter group, not this Quiz batch. +**Latest overall natural run:** #204, success on PR #26's exact head b8d2ef9ff2413c378347986d00961c401dfa771d; artifact 13565228424 (39,079,206 bytes). PR #25 run #202 also succeeded on its own head; neither validates this branch. +**Actions:** 204 runs, fully paginated (100 + 100 + 4 + 0); no queued or in-progress runs. Run #203's release job was skipped. +**Workflow:** active branch blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66; read-only build/test permissions and a separate main-push-only Release job. Main's workflow remains push-only with broader write permissions. +**No feature-branch Release was published;** latest published Release remains v0.2.0-build-116. No manual dispatch/rerun, merge to main, branch deletion or other-branch write occurred. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -317,3 +318,70 @@ The full remote branch list was refreshed (29 branches; page 2 empty). Commit ti ### Device/performance limitations No post-change OPPO Reno10 runtime launch, screenshot, TalkBack session, Reduce Motion verification, logcat/tombstone, Perfetto trace, GPU overdraw/frame-time, allocation/memory, thermal or battery evidence is available. Keep those checks **UNVERIFIED**; successful CI only establishes the tested source compiles, passes JVM tests and packages an APK. + + +## 10. Live branch-graph freshness audit — 7 November 2026, 13:00 IST + +The repository default remains main@73b8a0d1ba33503fede02db2c3c0af082d724a12. The complete remote inventory returned 31 refs on page 1 and zero on page 2. All 13 open PRs and 13 closed PRs were re-read; branch heads were compared against the active integration branch, main and the relevant PR #16 baseline. Commit timestamps below are UTC; PR numbers refer to current live relationships. + +| Remote branch | Head SHA | Latest commit (UTC) | Latest commit message | PR / disposition | +|---|---|---|---|---| +| black-box-bihar-news | 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523 | 2026-11-07 07:04:04 | ui: unify Saved and stats filter glass controls | Owner-selected active integration branch; base for PR #25/#26; only branch modified by this task | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Divergent sibling; PR #24 base; not active | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | PR #18 head; compatible intent already represented in active workflow | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Identical to main; no unique implementation | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | PR #6 head; relevant editorial policy already selectively reconciled | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | PR #12 head; parser policy/tests selectively reconciled | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | PR #11 head; current date/cache/provenance policy selectively reconciled | +| fix/early-startup-crash-diagnostics-2026-11-06 | 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | PR #16 head; active integration descends from it | +| fix/editorial-action-gate-blackbox-2026-11-07 | 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523 | 2026-11-07 07:04:04 | ui: unify Saved and stats filter glass controls | Alias of active integration head; no separate work | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 head; editorial changes represented in active branch | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | PR #24 head; based on brrrNEWS; editorial-only, not ported in this UI pass | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | PR #2 merged into main; later test state is integrated | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | PR #1 merged into main; later matcher is integrated | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | PR #5 merged into main; current glyphs are retained | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | PR #23 closed/merged into black-box only | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; equivalent safeguards retained in current network code | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | PR #25 head; open, separate publisher-asset security scope | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | PR #17 head; URL identity policy selectively reconciled | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | PR #10 merged into main; fix retained | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main; later diagnostics/indexing retained | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | PR #7 merged into main; later safeguards retained | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | PR #22 head; new markers bounded, legacy unordered markers retained | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | PR #8 head; IO/mutex work selectively reconciled | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | PR #26 head; open, direct child of current pre-batch integration head | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | Stale; 193 commits behind active integration | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | PR #13 head; shared 8×8 probe policy selectively integrated at 4s/6s | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | PR #4 closed unmerged; PR #3's earlier material changes are superseded by the active UI | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box only | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | Earlier validated checkpoint; active branch is ahead | + +### Exact ancestry and dependency decisions + +- main...black-box-bihar-news: 99 ahead / 0 behind; merge base is main. fix/early-startup-crash-diagnostics...black-box-bihar-news: 42 ahead / 0 behind; merge base is PR #16 head. The selected branch therefore contains the corrected background-only Prismal capture and the newer approved UI/data work without starting from stale main. +- black-box-bihar-news...brrrNEWS: diverged, with brrrNEWS 4 commits ahead and black-box 5 commits ahead of merge base e411c394e8d48b3f547b6d6fb9039a8935bd05eb. The GlassSurfacePolicy source and test are byte-identical. The Reader saved-position IO restore is already present in black-box; the brrrNEWS-specific workflow branch filter, artifact rename and app-label/docs changes are not adopted. PR #24 is editorial-only and remains on brrrNEWS. +- PR #25 is based on black-box's older 2e2c15f head and its full diff changes ArticleReaderRepository, NewsRepository, PublisherAssetHostPolicy, sanitizer tests and MainActivity's NewsCard/cached-Reader image paths. PR #26 is a one-commit child of 3a08bb95 and adds PublisherWebResourcePolicy plus ReaderWebView subresource interception. Both exact PR heads passed natural CI (#202 and #204 respectively); neither changes QuizScreen. They remain open and unmodified pending a separate shared publisher-host policy review. +- PR #13's original 1.5s/2.5s adaptive readback branch is not used; current black-box code retains one 8×8 shared source at 4s/6s, paused during scrolling and outside foreground home surfaces. PR #18/20 workflow intent is integrated only in the active branch; neither source branch was modified. +- PR #24's full diff is limited to UpscFeedPolicy.kt, its tests and docs/UPSC_EDITORIAL_BASELINE.md; it requires an institutional actor plus a concrete action on the policy target. It is not ported here because this run is scoped to Quiz UI and the PR is based on a divergent sibling. Its natural run #199 passed on its exact head. +- No new PR from black-box to main was created. Main's workflow 37197497288d9f0a60f4d1cfa8453e3dee52a902 still triggers only on push to main with workflow-wide contents: write; do not claim a future PR-to-main run until the base workflow is safely reconciled. + +### Open and closed pull-request register + +**Open (13):** #26 (publisher subresource guard, base black-box), #25 (publisher asset allowlist, older black-box base), #24 (editorial policy exception, base brrrNEWS), #22 (bounded new read history, base PR #8), #21 (bill/heatwave editorial, base main), #18 (read-only workflow proposal, base main), #17 (URL-variant dedupe, base main), #16 (startup/network stability, base main), #13 (adaptive contrast, base main), #12 (Atom alternate links, base main), #11 (date/cache/provenance, older black-box base), #8 (off-main persistence, base main), #6 (GS I Geography/editorial coverage, base main). + +**Closed (13):** #23, #20 and #19 are merged into black-box only; #15 and #14 are closed unmerged; #10, #9, #7, #5, #3, #2 and #1 are merged into main; #4 is closed unmerged. No branch was deleted. + +### Natural CI and release state + +- Actions history: 204 runs, fully paginated (100 + 100 + 4; next page empty). No queued or in-progress runs. +- Run #203, exact black-box SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523, completed the build job successfully: four WordNet builder tests passed; database generation produced 151,456 unique words / 50,950,144 bytes; :app:testDebugUnitTest and :app:assembleDebug succeeded; artifact upload succeeded. Publish job skipped. +- Run #203 artifact: 13565296151, CurrentLens-v0.2.8-stability-debug-apk, 39,078,047 bytes, created 7 Nov 2026 07:06:19Z, expires 21 Nov 2026 07:06:17Z. +- Run #204 on PR #26 exact SHA b8d2ef9ff2413c378347986d00961c401dfa771d passed the same build/test/assemble/upload sequence; artifact 13565228424, 39,079,206 bytes. Run #202 on PR #25 exact SHA 7a51c9c2c40aa89997db55194a6db3d0d65ac95d also passed; artifact 13563912571, 39,072,517 bytes. These are separate PR-head validations, not black-box validation. +- Run #203 logs contain non-blocking Node.js 20 action-runtime deprecation warnings plus punycode/url.parse() warnings; all build/test/assemble/upload steps succeeded. +- Latest published Release is v0.2.0-build-116; no Release was created by #202/#203/#204. No manual dispatch/rerun, main edit/merge, other-branch write or ref deletion occurred. + +### Device/performance limitations + +No post-change OPPO Reno10 runtime launch, screenshot, TalkBack session, Reduce Motion verification, logcat/tombstone, Perfetto trace, GPU overdraw/frame-time, allocation/memory, thermal or battery evidence is available. Keep those checks **UNVERIFIED**; successful CI only establishes the tested source compiles, passes JVM tests and packages an APK. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a02da844..38d3b0a9 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,24 +1,24 @@ # Liquid Glass UI Roadmap -**Status:** The shared Appearance low-effects/reduced-transparency mode is implemented and naturally validated on `black-box-bihar-news@2e2c15f`. This iteration adds one restrained Prismal filter group across Saved, Reading Stats and Quiz Stats; it is authored from that exact verified head and awaits its own natural CI result. -**Feature branch:** `black-box-bihar-news` — the only branch modified by this work. -**Verified source HEAD before this batch:** `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; direct child commit and exact resulting head are read from the live branch ref after the atomic update. -**Integration lineage:** 98 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 41 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Last completed successful validation on this branch:** Actions run [#201](https://github.com/Batmancpu/CurrentLens/actions/runs/42346024924), exact SHA `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; WordNet builder tests, offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13563139070`, 39,067,369 bytes, SHA-256 `236b9611c925a8a3f9aae4f7a28b57ef76c7c488161ada7d2d84fd54bcce27fb`. It validates the previous head, not this filter batch. -**Latest separate PR run:** #202 passed on PR #25's child head `7a51c9c2c40aa89997db55194a6db3d0d65ac95d`; artifact `13563912571`. It is not a validation of `black-box-bihar-news`. -**Actions queue:** no queued or in-progress runs at the audit; 202 runs fully paginated (100 + 100 + 2). -**Main / Releases:** `main` unchanged; latest published Release remains `v0.2.0-build-116`; no feature-branch Release or merge. -**Safety:** no source branch was changed/deleted; no workflow dispatch/rerun; no package/app identity, networking, persistence or quiz-submit semantics changed. - -## Live branch freshness audit — 7 November 2026, 12:27 IST - -- All 29 remote branches were enumerated (page 1: 29; page 2: 0), all 12 open PRs and recently merged PRs reviewed, and the full current workflow plus exact latest job logs/artifacts were checked. The full branch/commit table and comparisons are in `docs/BRANCH_CONSOLIDATION.md` §9. -- `black-box-bihar-news@2e2c15f` is the latest coherent owner-selected integration lineage: 98 ahead / 0 behind main and 41 ahead / 0 behind PR #16. PR #16 remains open/draft on main; its corrected background-only Prismal source is an ancestor, not a reason to branch from its now-older head. -- PR #19 Reader/Search UI, PR #20 read-only stacked CI and PR #23 editorial gate are merged into this branch only. The branch's workflow has read-only build permissions, a separately gated main-push release job, and natural push/PR triggers for this branch; no workflow edit is part of this batch. -- `brrrNEWS` is a divergent sibling (4 ahead / 4 behind). Its `GlassSurfacePolicy.kt` and test are byte-identical to this branch; the visible supporting-glass implementation is already integrated. PR #24's own three-file diff is editorial-only and remains on its sibling base. -- PR #25 is a seven-commit child of the exact source head and adds publisher-owned RSS/Reader image allowlisting. Its MainActivity hunks are confined to NewsCard image validation and cached Reader HTML; they do not overlap the Saved/stat filter section. The branch and PR remain untouched. -- PR #13's 1.5s/2.5s adaptive readback cadence was not copied; this branch retains one 8×8 probe at 4s/6s, paused while scrolling and outside foreground home surfaces. Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded. -- Run #201 is the exact black-box validation described above. Run #202 validates only PR #25. The publish jobs were skipped; no Release was created. OPPO visual/performance checks remain unverified. +**Status:** Saved/Reading Stats/Quiz Stats filter glass is validated on black-box-bihar-news@3a08bb95 by natural run #203. This batch adds two restrained Prismal control surfaces to Quiz (identity/header and submission dock); question, option, source-note and explanation content remains non-glass. The new commit awaits its own natural CI result. +**Feature branch:** black-box-bihar-news — the only branch modified by this work. +**Verified source HEAD before this batch:** 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; the new code and roadmap commits are a direct child created with a fast-forward-only ref update. +**Integration lineage:** 99 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; 42 ahead / 0 behind PR #16's corrected stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. +**Last completed successful validation on this branch:** Actions run #203 (https://github.com/Batmancpu/CurrentLens/actions/runs/42349689690), exact SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; WordNet builder tests (4/4), offline database generation (151,456 unique words), :app:testDebugUnitTest, :app:assembleDebug and artifact upload passed. Artifact 13565296151, 39,078,047 bytes; the publish job was skipped. It validates the filter-group parent, not this Quiz batch. +**Latest overall natural run:** #204 passed on PR #26's exact head b8d2ef9ff2413c378347986d00961c401dfa771d; artifact 13565228424, 39,079,206 bytes. PR #25 run #202 also passed on its own head 7a51c9c2c40aa89997db55194a6db3d0d65ac95d; neither validates the active branch. +**Actions queue:** 204 runs fully paginated (100 + 100 + 4; next page empty); no queued or in-progress runs. +**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build permissions, natural push/PR triggers for main, PR #16 and this branch, and a separate main-push-only release job. Main's workflow remains push-only. Latest published Release remains v0.2.0-build-116; no feature-branch Release or merge. +**Safety:** no other branch, main, workflow, package/app identity, network policy, persistence format or quiz submit-only semantics changed; no manual dispatch/rerun or Release publication. + +## Live branch freshness audit — 7 November 2026, 13:00 IST + +- All 31 remote branches were enumerated (page 1: 31; page 2: 0), all 13 open PRs and 13 closed PRs reviewed, and relevant full diffs/commit comparisons inspected. The exact 31-head table and disposition are in docs/BRANCH_CONSOLIDATION.md §10. +- black-box-bihar-news@3a08bb95 remains the owner-selected active integration branch: 99 ahead / 0 behind main and 42 ahead / 0 behind PR #16. It is a direct descendant of PR #16's corrected background-only Prismal/stability head. The branch was rechecked immediately before the implementation commit. +- brrrNEWS@e6fcfc25 is a divergent sibling (4 commits unique to brrrNEWS and 5 unique to black-box; common ancestor e411c394). Its GlassSurfacePolicy.kt and test are byte-identical to black-box; Reader saved-position restoration on IO is already present in black-box. Its workflow/branding/documentation changes and PR #24's separate editorial policy are not adopted. The explicit active-branch instruction remains authoritative. +- PR #25 and #26 are open publisher-image/subresource privacy changes. Their MainActivity hunks are limited to NewsCard/Reader resource paths and do not overlap this QuizScreen batch; they remain untouched pending a separate shared-host/security reconciliation. PR #24 is editorial-only and remains on brrrNEWS. No source branch was merged, deleted or modified. +- PR #19, #20 and #23 remain closed/merged into black-box only. PR #16 remains open on main; PR #18's compatible read-only workflow intent is represented in the active branch. The old ui/liquid-glass-performance and redesign/v0.3-search-reader branches remain excluded. +- The active workflow is read-only for build/test and only grants contents: write to the separate main-push Release job. Main still has no pull_request trigger; a future draft PR to main must not be described as PR-to-main CI-validated until that base workflow is reconciled. +- Run #203 validates the exact pre-Quiz head; #204 validates PR #26 only and #202 validates PR #25 only. No queue remains. OPPO runtime, launch stability, visual motion, TalkBack, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain UNVERIFIED. ## Historical branch audit and reduced-transparency batch — 7 November 2026, 11:38 IST (superseded by the live audit above) @@ -83,8 +83,8 @@ Recheck every branch head and dependency before each future implementation commi | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | | Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; hide with reader chrome and avoid definition/action-mode overlap | Implemented; physical safe-area/selection checks unverified | | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | -| Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Existing standard surfaces; preserve | -| Quiz action controls | Interactive control glass where useful | Compact, accessible action layer without glassifying questions | Planned | +| Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Continuous-corner content cards, >=48dp option targets and selected semantics; no live blur; submit-only persistence unchanged | +| Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | | Appearance settings | Interactive control glass | Clear↔Frosted slider, presets, live header/navigation/article preview and low-effects switch | Preview and reduced-transparency mode integrated; slider changes apply to shared material policy; device validation pending | | Dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | @@ -105,6 +105,7 @@ Recheck every branch head and dependency before each future implementation commi | You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | | Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | | Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Reduced-transparency/low-effects preference is integrated; OPPO rendering and slider-response measurements remain unverified | +| Quiz chrome | Two small Prismal control surfaces (header + bottom dock) | Reuse the one background-only root source; 7–8dp bounded blur/refraction; no per-question glass, new capture or readback | Reduce Transparency uses GlassRenderingPolicy; 48dp actions and safe-area padding; device frame/GPU/battery cost unmeasured | ## Implemented batch — Reader toolbar and completion @@ -119,25 +120,23 @@ Recheck every branch head and dependency before each future implementation commi **Rendering delta:** one small Reader toolbar surface is now active while reading; one small completion surface is active only after completion. Both reuse the existing root backdrop. The definition popover remains the existing single anchored surface. No per-card blur, extra backdrop capture, sampler, image decode, GPU readback, dependency, network request or persistent data format was added. -**Subsequently implemented:** Reader chrome auto-hide/directional pinning, 48dp Search clear, feed-only compact navigation, dashboard/stat supporting surfaces, the Appearance live preview and the shared low-effects/reduced-transparency preference. The grouped Saved/stat filter panel is the current pending batch; Quiz action-area polish remains next. +**Subsequently implemented:** Reader chrome auto-hide/directional pinning, 48dp Search clear, feed-only compact navigation, dashboard/stat supporting surfaces, Appearance live preview, shared low-effects/reduced-transparency preference and the Saved/stat filter group. The current Quiz action-chrome batch adds a glass header and safe-area submission dock while keeping questions and explanations on standard surfaces. ## Verification status and limitations -- Latest exact branch validation before this batch is run #201 on `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`; its full build/test/artifact evidence is recorded in the current audit above. Run #202 is a separate PR #25 child build and is not a substitute. -- The Appearance reduced-transparency batch is part of the run #201 tested SHA. The new filter-group UI commit is not yet validated; wait for a natural run on its exact head before declaring it compiled or passing. -- No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement is available. Visual transitions, contrast on image backdrops, real-device launch stability and resource cost remain **UNVERIFIED**. -- Supporting-card cost controls: no Prismal capture, live blur, refraction, sampler, readback, graphics layer, image decode or dependency; cached tint/rim only. The current filter batch adds one shared 5dp-blur/low-refraction panel on the active Saved or Stats page, reusing the root background-only source; no per-chip surface or new readback. This is a code-scope statement, not a measured performance win. +- The exact Saved/stat filter-group head 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523 passed natural run #203; full job steps/log, WordNet output, JVM test task, APK assembly and artifact upload were inspected. Run #204 is PR #26 and #202 is PR #25; neither validates the active branch. +- This Quiz action-chrome commit has no CI result yet. Wait for its natural push run on the exact new SHA before declaring it compiled or passing. +- No OPPO Reno10 5G install, screenshot, TalkBack session, logcat/tombstone, Perfetto trace, GPU frame-time, memory, thermal or battery measurement is available. Visual transitions, contrast on image backdrops, real-device launch stability and resource cost remain UNVERIFIED. +- Supporting-card cost controls: no Prismal capture, live blur, refraction, sampler, readback, graphics layer, image decode or dependency; cached tint/rim only. The Saved/stat filter batch adds one shared 5dp-blur/low-refraction panel on the active Saved or Stats page, reusing the root background-only source; no per-chip surface or new readback. Quiz chrome adds only two small active surfaces, with no per-question blur or additional capture. These are code-scope statements, not measured performance wins. - The native launch fault remains unproven as fixed until a post-change physical-device launch test is available. ## Next implementation sequence -1. Await natural CI on the current Saved/Reading Stats/Quiz Stats filter-group commit; inspect the exact run, full logs and artifact before another UI batch. -2. Refine the Quiz action area and transient sheets/menus with the same restrained control-glass vocabulary only where it improves hierarchy; keep questions/options and explanatory content on clear surfaces. +1. Await natural CI on this Quiz action-chrome commit; inspect the exact run, full logs and artifact before another UI batch. +2. Review transient sheets/menus and any remaining quiz contextual actions; keep dense question, option and explanatory content on clear surfaces. 3. Whole-app audit: reconcile header, filters, Reader, navigation, dashboard, Saved, stats and quiz resting/transient states; check light/dark, large text, TalkBack and Reduce Motion. 4. Measure on OPPO Reno10 5G (or explicitly keep metrics unverified): startup, scroll jank/frame timing, allocation churn, GPU overdraw/layers, thermal and battery against the same base build. -Do not mark the redesign complete until every screen has an intentional material role, paired cost strategy, and verified or explicitly unverified accessibility/performance status. - ## Consolidation implementation log The following work is represented on `black-box-bihar-news`; source PRs/branches remain intact and must not be deleted until final review: @@ -154,7 +153,8 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches | PR #6 + #21 editorial | GS I Geography, bill/Finance Bill, heat-wave; film/viral/sports safeguards; labelled synthetic tests | Run #182 and #183 passed | | PR #13 adaptive glass contrast | Shared 8×8 band probe, foreground/idle-only, 4s/6s cadence, pauses during feed motion, Reader, Settings and background | Run #187 passed; physical-device profile unverified | | Feed-only compact navigation | Same bar morphs to active-label pill only on Today/Explore/Search; You/nested surfaces remain expanded | Run #186 policy tests and #187 integration build passed; visual motion needs device validation | -| Supporting glass surfaces | Shared non-blurred tier for You metrics, practice-empty and destinations plus stats day/attempt cards | Code commit 5e966; focused policy tests added; natural CI pending | +| Supporting glass surfaces | Shared non-blurred tier for You metrics, practice-empty and destinations plus stats day/attempt cards | Integrated; current active branch run #203 passed; device cost remains unmeasured | +| Quiz action chrome | Two small Prismal surfaces for header identity and submit/done actions; content cards remain standard | This batch; natural CI pending on its exact new head | ### Deliberately excluded / superseded @@ -226,4 +226,20 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches **Tests:** no new policy/state logic was introduced; the panel reuses the already-tested `GlassRenderingPolicy` and `GlassSurfacePolicy`. Natural CI must run the full `:app:testDebugUnitTest` suite and assemble the APK on this exact new head. Visual density, TalkBack, 48dp touch behaviour and animation remain device checks. -**Validation:** pending natural CI for this commit. OPPO Reno10 5G screenshots, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. +**Validation:** the grouped-filter commit is covered by run #203 on exact SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; artifact 13565296151, 39,078,047 bytes. OPPO Reno10 5G screenshots, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. + + +## Quiz action-chrome batch — 7 November 2026 + +**Source:** black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523, rechecked immediately before the fast-forward-only update. No other branch or workflow is changed. + +- Added a compact Prismal glass header with Back, “Your reading check”, the five-question context and an accessible answered-count description. +- Added one bottom Prismal dock for answered count, Done and Submit; it uses navigation-bar safe-area padding and 48dp action targets. The existing submit callback remains the only persistence boundary; no draft or unsubmitted quiz state is stored. +- Kept the source note, question cards, options and explanations on high-contrast standard surfaces. Question/result cards now use the shared continuous-corner geometry; answer options have 48dp minimum height and expose selected state semantics. +- Quiz relevance/questions/answer state now key off article identity plus title/description, avoiding stale questions or answer state if a cached article is refreshed under the same URL identity. + +**Paired rendering/performance strategy:** two small visible Prismal surfaces (header and bottom dock) reuse the existing background-only root capture. Blur/refraction are bounded to 7–8dp and routed through GlassRenderingPolicy; no per-question blur, second capture, sampler/readback, bitmap decode, graphics layer, polling, dependency or network work is added. Reduce Transparency uses the existing static/low-effects path. No frame-time, GPU, memory or battery improvement is claimed without device measurements. + +**Tests and behaviour:** no new persistence policy was introduced; submit-only quiz storage is unchanged. Existing JVM tests remain the compile/regression gate. Option selected semantics and minimum hit size are represented in Compose modifiers; TalkBack, font scaling, selection and real-device layout remain device checks. + +**Validation:** natural CI pending for this exact commit. Run #203 validates only the source head before this batch; PR #25/#26 runs #202/#204 validate their own heads. OPPO Reno10 screenshots, launch/scroll traces, Perfetto, frame timing, overdraw, allocation/memory, thermal and battery remain UNVERIFIED. From 6f9b3c1e1a484233721863d0b736734c0d282cd5 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 13:42:10 +0530 Subject: [PATCH 098/175] fix(quiz): qualify selected semantics receiver --- app/src/main/java/com/mangoloads/currentlens/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 58375f97..c9bba8f8 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4235,7 +4235,7 @@ private fun QuizScreen( OutlinedButton( onClick = { if (!submitted) selected = selected + (index to optionIndex) }, modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp) - .semantics { selected = chosen }, + .semantics { this.selected = chosen }, shape = ContinuousCornerShape(16.dp), enabled = !submitted ) { From 16eb549c3235b321ecf7ef1c5c5270817e336489 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 14:37:46 +0530 Subject: [PATCH 099/175] docs: record quiz build repair and live branch audit --- docs/BRANCH_CONSOLIDATION.md | 75 ++++++++++++++++++++++++++++++++- docs/BUILD_AND_DEBUG.md | 14 ++++++ docs/KNOWN_ISSUES.md | 9 ++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 48 ++++++++++++++++----- docs/PROJECT_HANDOFF.md | 15 +++++++ docs/SESSION_LEDGER.md | 15 +++++++ 6 files changed, 164 insertions(+), 12 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 4d99fead..1beabe67 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -320,7 +320,7 @@ The full remote branch list was refreshed (29 branches; page 2 empty). Commit ti No post-change OPPO Reno10 runtime launch, screenshot, TalkBack session, Reduce Motion verification, logcat/tombstone, Perfetto trace, GPU overdraw/frame-time, allocation/memory, thermal or battery evidence is available. Keep those checks **UNVERIFIED**; successful CI only establishes the tested source compiles, passes JVM tests and packages an APK. -## 10. Live branch-graph freshness audit — 7 November 2026, 13:00 IST +## 10. Historical branch-graph freshness audit — 7 November 2026, 13:00 IST (superseded by §11) The repository default remains main@73b8a0d1ba33503fede02db2c3c0af082d724a12. The complete remote inventory returned 31 refs on page 1 and zero on page 2. All 13 open PRs and 13 closed PRs were re-read; branch heads were compared against the active integration branch, main and the relevant PR #16 baseline. Commit timestamps below are UTC; PR numbers refer to current live relationships. @@ -385,3 +385,76 @@ The repository default remains main@73b8a0d1ba33503fede02db2c3c0af082d724a12. Th ### Device/performance limitations No post-change OPPO Reno10 runtime launch, screenshot, TalkBack session, Reduce Motion verification, logcat/tombstone, Perfetto trace, GPU overdraw/frame-time, allocation/memory, thermal or battery evidence is available. Keep those checks **UNVERIFIED**; successful CI only establishes the tested source compiles, passes JVM tests and packages an APK. + + +## 11. Live branch-graph freshness audit — 7 November 2026 (after natural runs #210–#211) + +The repository default remains `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The complete remote inventory returned **32 refs** on page 1 and zero on page 2. There are **14 open PRs** and **14 closed PRs**; no branch was deleted. All branch heads, open/closed PR relationships, current workflow and Actions history were re-read. The exact current branch-head table is below. + +- `main...black-box-bihar-news`: 101 ahead / 0 behind; merge base is main. +- `fix/early-startup-crash-diagnostics...black-box-bihar-news`: black-box is 44 ahead / 0 behind; PR #16's corrected background-only Prismal capture/stability code remains in the active lineage. +- `black-box-bihar-news...brrrNEWS`: diverged; brrrNEWS is 4 ahead / 7 behind, common ancestor `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`. `GlassSurfacePolicy.kt` is byte-identical on both branches (blob `96fc60adf8ef7b1f39a1ae7bb75a87c0876b2aa4`); no supporting-glass port is missing. Do not switch to or merge the sibling's workflow/branding changes. +- `ui/liquid-glass-system-continuation` is an earlier validated ancestor 17 commits behind the active branch. `ui/liquid-glass-performance` is 3 ahead / 119 behind and remains stale. `redesign/v0.3-search-reader` is stale. +- PR #28's single-line Quiz semantics correction was fast-forwarded into black-box at exact head `6f9b3c1e1a484233721863d0b736734c0d282cd5`; GitHub closed PR #28 as merged into this integration branch. Its source branch remains. No main or other branch was changed. +- PR #27 is now at `9b70ed1c7c39bb511399c6284c7e8833f4672618`, 5 ahead / 2 behind active, with a four-file strict institutional-action editorial gate. Its natural run #211 passed on its own head. It is useful but separate editorial scope; it was not ported in this Liquid Glass/build-repair iteration. +- PR #25's publisher asset allowlist and cached-HTML image filtering remain separate (7 ahead / 3 behind active). PR #26's publisher WebView subresource guard remains separate (1 ahead / 2 behind active); its own source comments correctly limit the guarantee to the initial request because WebView may not call interception for every redirect hop. Both PR heads passed their own natural CI (#202/#204), but neither validates active black-box. Review/port them only as a separate publisher-security batch after inspecting current Reader and image call sites. +- PR #24 remains based on divergent `brrrNEWS`; its editorial policy change is not adopted. PR #13's faster 1.5s/2.5s sampler cadence remains rejected; active code retains one 8×8 source at 4s/6s and pauses it while scrolling, outside foreground home, in Reader/Quiz/Settings or under Reduce Transparency. +- PR #18's compatible read-only workflow design is represented in the active branch; no workflow was changed in this run. Main still has a push-only workflow with workflow-wide `contents: write`, so do not describe a future black-box-to-main PR as naturally CI-validated until main's workflow is safely reconciled. +- No PR from black-box to main was created: the consolidated diff is not yet a focused reviewable PR and main has no pull_request trigger. No branch was deleted or force-moved. + +### Current remote branch heads + +| Remote branch | Head SHA | Latest commit (UTC) | Latest commit message | PR relationship / disposition | +|---|---|---|---|---| +| `black-box-bihar-news` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | Active integration branch; PR #28 correction fast-forwarded here | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Divergent sibling; PR #24 base; 4 ahead / 7 behind active | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | PR #18 head; compatible workflow intent represented in active branch | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only; source branch retained | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Identical to main; no unique implementation | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | PR #6 head; editorial coverage selectively reconciled | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | PR #12 head; parser policy/tests selectively reconciled | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | PR #11 head; date/cache/provenance policy selectively reconciled | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | PR #16 head; corrected background-only capture ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `9b70ed1c7c39bb511399c6284c7e8833f4672618` | 2026-11-07 09:02:50 | fix(editorial): preserve regulatory coverage amid entertainment filtering | PR #27 head; open/draft, 5 ahead / 2 behind active; independent editorial scope | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 head; relevant editorial rules selectively reconciled | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | PR #24 head; open/draft on divergent brrrNEWS base | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | PR #2 merged into main; later test state integrated | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | PR #1 merged into main; later matcher integrated | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | PR #5 merged into main; current glyphs retained | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | PR #23 closed/merged into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; equivalent safeguards retained | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | PR #28 merged into black-box; branch now equals active HEAD | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | PR #25 head; open/draft, 7 ahead / 3 behind active | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | PR #17 head; URL identity policy selectively reconciled | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | PR #10 merged into main; fix retained | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main; later safeguards retained | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | PR #7 merged into main; later safeguards retained | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | PR #22 head; open/draft, based on PR #8 | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | PR #8 head; IO/mutex changes selectively reconciled | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | PR #26 head; open/draft, 1 ahead / 2 behind active | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | Stale; no longer a valid baseline | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | PR #13 head; 1.5s/2.5s cadence rejected; active branch uses 4s/6s | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | PR #4 closed unmerged; stale, 3 ahead / 119 behind active | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box only | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | Earlier validated checkpoint; 17 commits behind active | + +### Current PR register + +**Open/draft (14):** #27 (editorial action gate, base black-box at older `3a08bb95`); #26 (publisher subresource guard, base black-box at `3a08bb95`); #25 (publisher asset allowlist, base black-box at `2e2c15f5`); #24 (editorial policy exception, base brrrNEWS); #22 (bounded new read-history window, base PR #8); #21 (heatwave/bill editorial, base main); #18 (read-only workflow proposal, base main); #17 (URL-variant dedupe, base main); #16 (startup/network stability, base main); #13 (adaptive contrast, base main); #12 (Atom alternate links, base main); #11 (date/cache/provenance, older black-box base); #8 (off-main persistence, base main); #6 (GS I Geography/editorial coverage, base main). + +**Closed (14):** #28, #23, #20 and #19 merged into black-box only; #15, #14 and #4 closed unmerged; #10, #9, #7, #5, #3, #2 and #1 merged into main. Source branches remain; none was deleted. + +### Natural CI, artifacts and releases + +- Actions history: **211 runs**, fully paginated (100 + 100 + 11; page 4 empty): 125 success, 54 failure, 32 cancelled; queue empty. +- Run #208 failed on black-box pre-fix SHA `947310a157e03df25dde3856d2686d18ffca68e8` at `MainActivity.kt:4238:61` with Boolean-vs-`Map` assignment mismatch in Quiz semantics. The exact receiver-qualified fix is in #28. +- Run #209 passed on PR #28 head `6f9b3c1e1a484233721863d0b736734c0d282cd5`; artifact `13566663804`, 39,082,053 bytes. +- Run #210, natural push on active black-box exact SHA `6f9b3c1e1a484233721863d0b736734c0d282cd5`, passed WordNet builder tests (4/4), generated 151,456 unique words / 50,950,144-byte database, passed `:app:testDebugUnitTest` and `:app:assembleDebug`, and uploaded artifact `13568511654` (39,082,053 bytes; SHA-256 `9eeb4bbdbfd08f9f8f5e94a5eda0251b41d1c441933653c0ef326246669458de`). Release job skipped. +- Run #211 passed on PR #27's exact head `9b70ed1c7c39bb511399c6284c7e8833f4672618`, not black-box; artifact `13567364771` (39,084,359 bytes; SHA-256 `95d591d857eaa7e354be8d6a06fb80d3148e9ba46491fa27354d9397f573f4be`). Release job skipped. +- Active workflow blob: `6cef6ca19f3babd331c9deb59be9da0067c6fa66`; main workflow blob: `37197497288d9f0a60f4d1cfa8453e3dee52a902`; PR #16 workflow blob: `d7dfe25301cd877a27b5dc603277c76bde530198`. Build/test permissions on active branch are read-only; only a main push can reach the separate Release-write job. +- Latest published Release remains `v0.2.0-build-116`; no Release was created by #208–#211. + +### Warnings and device limitations + +The passing builds still report non-blocking deprecated WebView `scale`, Compose `updateTransition`, and non-auto-mirrored ArrowBack API warnings, plus Node.js 20 action-runtime and Node `punycode` / `url.parse()` deprecation warnings. They were not changed in this scoped repair. No post-change OPPO Reno10 launch, screenshot, TalkBack/Reduce Motion session, logcat/tombstone, Perfetto/frame-time, GPU-overdraw, allocation/memory, thermal or battery evidence exists. Keep those checks **UNVERIFIED**; CI only establishes compilation, JVM tests and APK packaging on the tested source. diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index 452a3729..b08b5dea 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -170,3 +170,17 @@ CI establishes that the code compiles and JVM tests pass. It cannot establish th - Artifact: 13560769755, CurrentLens-v0.2.8-stability-debug-apk, 39,059,340 bytes, 14-day retention. Non-main stability build uses application ID com.mangoloads.currentlens.stability and label brrrNews Stability; it installs separately from the normal app. - Latest published Release remains v0.2.0-build-116. No feature-branch Release was created. - The Appearance low-effects commit authored from cfe0b3e is not covered by run #200; wait for its own natural run. Do not dispatch/rerun manually. + + +## Live CI snapshot — 7 November 2026 (after runs #210–#211) + +- Active workflow: `.github/workflows/build-apk.yml`, blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66`. It triggers natural push and pull_request builds for main, PR #16's branch and black-box-bihar-news. Build/test permissions are read-only; the separate publish job runs only on a main push and has contents:write. +- Main workflow remains blob `37197497288d9f0a60f4d1cfa8453e3dee52a902`, push-only with workflow-wide contents:write. Do not claim a future PR-to-main build is naturally validated until main's workflow is safely reconciled. +- Actions history: 211 runs fully paginated (100 + 100 + 11; page 4 empty): 125 success, 54 failure, 32 cancelled; no queued/in-progress runs. +- Run #208 failed on black-box pre-fix SHA `947310a157e03df25dde3856d2686d18ffca68e8` at `MainActivity.kt:4238:61` because the local Quiz answer map shadowed the Compose semantics receiver's Boolean `selected` property. +- PR #28's one-line `.semantics { this.selected = chosen }` correction was fast-forwarded into black-box at `6f9b3c1e1a484233721863d0b736734c0d282cd5`; PR #28 closed/merged into this branch only. +- Run #209 passed on PR #28's exact head; run #210 passed on the active branch push at the same exact SHA. Run #210: four WordNet builder tests passed; database generated 151,456 unique words / 50,950,144 bytes; `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568511654`, 39,082,053 bytes, SHA-256 `9eeb4bbdbfd08f9f8f5e94a5eda0251b41d1c441933653c0ef326246669458de`. Publish job skipped. +- Latest overall run #211 passed on PR #27's independent head `9b70ed1c7c39bb511399c6284c7e8833f4672618`; artifact `13567364771`, 39,084,359 bytes. It does not validate black-box. PR #27 remains open/draft. +- Latest published Release remains `v0.2.0-build-116`. No feature-branch Release was created; no manual dispatch/rerun. +- Existing deprecation warnings (WebView scale, Compose updateTransition, ArrowBack icon, Node.js 20 action runtime, punycode and url.parse) are non-blocking and remain outside this repair. +- OPPO device launch, screenshots, accessibility, animation, Perfetto/frame timing, GPU/memory/thermal/battery remain UNVERIFIED. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index 19736c21..e20e220e 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -162,3 +162,12 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - The PR #16 correction exports only the numeric exit reason and numeric status/signal. It no longer forwards the opaque description, importance or memory measurements. Java/Kotlin reports continue to omit exception messages and raw addresses/traces. - Added focused JVM assertions for the exact allow-listed summary and the interrupted-startup report. Tests are added, not yet executed for this new commit. - This change improves report minimisation only. It does not establish the native launch crash's root cause or prove the app launches on a physical device. + + +### KL-020 — Quiz option selected-semantics receiver shadowing + +- **Status:** Resolved in code and natural CI on `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5`; Android/TalkBack runtime remains unverified. +- The natural push build on pre-fix SHA `947310a157e03df25dde3856d2686d18ffca68e8` failed at `MainActivity.kt:4238:61` because `.semantics { selected = chosen }` resolved to the local `Map` answer state rather than the semantics receiver's Boolean property. +- Correction: `.semantics { this.selected = chosen }`. The change is one line, preserves the intended selected-state semantics and does not alter quiz answer/scoring/submission persistence. +- PR #28's direct child commit was fast-forwarded into the active integration branch. Natural run #209 passed on the exact code head in PR context; natural active-branch run #210 passed the same exact SHA with `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. +- This is a compile defect, not evidence of a device crash. TalkBack selected-state behaviour, font scaling and physical-device layout still require a real-device check. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 38d3b0a9..9f1d8f8b 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,16 +1,17 @@ # Liquid Glass UI Roadmap -**Status:** Saved/Reading Stats/Quiz Stats filter glass is validated on black-box-bihar-news@3a08bb95 by natural run #203. This batch adds two restrained Prismal control surfaces to Quiz (identity/header and submission dock); question, option, source-note and explanation content remains non-glass. The new commit awaits its own natural CI result. -**Feature branch:** black-box-bihar-news — the only branch modified by this work. -**Verified source HEAD before this batch:** 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; the new code and roadmap commits are a direct child created with a fast-forward-only ref update. -**Integration lineage:** 99 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; 42 ahead / 0 behind PR #16's corrected stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. -**Last completed successful validation on this branch:** Actions run #203 (https://github.com/Batmancpu/CurrentLens/actions/runs/42349689690), exact SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; WordNet builder tests (4/4), offline database generation (151,456 unique words), :app:testDebugUnitTest, :app:assembleDebug and artifact upload passed. Artifact 13565296151, 39,078,047 bytes; the publish job was skipped. It validates the filter-group parent, not this Quiz batch. -**Latest overall natural run:** #204 passed on PR #26's exact head b8d2ef9ff2413c378347986d00961c401dfa771d; artifact 13565228424, 39,079,206 bytes. PR #25 run #202 also passed on its own head 7a51c9c2c40aa89997db55194a6db3d0d65ac95d; neither validates the active branch. -**Actions queue:** 204 runs fully paginated (100 + 100 + 4; next page empty); no queued or in-progress runs. -**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build permissions, natural push/PR triggers for main, PR #16 and this branch, and a separate main-push-only release job. Main's workflow remains push-only. Latest published Release remains v0.2.0-build-116; no feature-branch Release or merge. -**Safety:** no other branch, main, workflow, package/app identity, network policy, persistence format or quiz submit-only semantics changed; no manual dispatch/rerun or Release publication. - -## Live branch freshness audit — 7 November 2026, 13:00 IST +**Status:** Quiz action chrome is integrated and the compile-time selected-state receiver shadowing is corrected. The active consolidation branch at `6f9b3c1e1a484233721863d0b736734c0d282cd5` passed natural push run #210. This run repaired the build; it did not add another visual batch. +**Feature branch:** `black-box-bihar-news` — the only active integration branch for this work. +**Verified current HEAD:** `6f9b3c1e1a484233721863d0b736734c0d282cd5`. +**Authoritative lineage:** 101 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 44 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Latest active-branch validation:** [Actions run #210](https://github.com/Batmancpu/CurrentLens/actions/runs/42357962166), exact SHA `6f9b3c1e1a484233721863d0b736734c0d282cd5`; WordNet builder tests (4/4), offline database generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13568511654`, 39,082,053 bytes, SHA-256 `9eeb4bbdbfd08f9f8f5e94a5eda0251b41d1c441933653c0ef326246669458de`; publish job skipped. +**Latest overall natural run:** #211 passed on PR #27's independent head `9b70ed1c7c39bb511399c6284c7e8833f4672618`; it does not validate or change the active branch. Artifact `13567364771`, 39,084,359 bytes. +**Actions history:** 211 runs fully paginated (100 + 100 + 11; page 4 empty): 125 success, 54 failure, 32 cancelled; no queued/in-progress runs. +**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, natural push/PR triggers for main, PR #16 and this branch, and a separate main-push-only Release job. Main's workflow remains push-only with broader write permissions. Latest published Release remains `v0.2.0-build-116`; no feature-branch Release was published. +**Branch graph:** 32 remote branches, 14 open PRs and 14 closed PRs. PR #28's one-line compile correction is now included in this branch; source branches remain present. Full current inventory and dispositions are in `docs/BRANCH_CONSOLIDATION.md` §11. +**Safety / device status:** no main change, package/app identity change, workflow change, manual dispatch/rerun, Release publication, device screenshot or OPPO runtime verification. Launch stability, visual motion, TalkBack, Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. + +## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) - All 31 remote branches were enumerated (page 1: 31; page 2: 0), all 13 open PRs and 13 closed PRs reviewed, and relevant full diffs/commit comparisons inspected. The exact 31-head table and disposition are in docs/BRANCH_CONSOLIDATION.md §10. - black-box-bihar-news@3a08bb95 remains the owner-selected active integration branch: 99 ahead / 0 behind main and 42 ahead / 0 behind PR #16. It is a direct descendant of PR #16's corrected background-only Prismal/stability head. The branch was rechecked immediately before the implementation commit. @@ -243,3 +244,28 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches **Tests and behaviour:** no new persistence policy was introduced; submit-only quiz storage is unchanged. Existing JVM tests remain the compile/regression gate. Option selected semantics and minimum hit size are represented in Compose modifiers; TalkBack, font scaling, selection and real-device layout remain device checks. **Validation:** natural CI pending for this exact commit. Run #203 validates only the source head before this batch; PR #25/#26 runs #202/#204 validate their own heads. OPPO Reno10 screenshots, launch/scroll traces, Perfetto, frame timing, overdraw, allocation/memory, thermal and battery remain UNVERIFIED. + + +## Current implementation and verification update — 7 November 2026 + +### Quiz action-chrome compile repair + +- The existing Quiz action-chrome batch added two small Prismal control surfaces (identity header and submit/done dock). Questions, options, provenance notes and explanations remain on ordinary high-contrast content surfaces; submit-only persistence is unchanged. +- The first natural integration push, run #208 on `947310a157e03df25dde3856d2686d18ffca68e8`, failed at `MainActivity.kt:4238:61`: `selected = chosen` resolved to the local `Map` answer state rather than the Compose semantics receiver's Boolean selected property. +- The full `QuizScreen` and its article-keyed state/dependencies were inspected. The one-line correction is `.semantics { this.selected = chosen }`; it preserves selected-state accessibility semantics and changes no answer, score or persistence behaviour. +- PR #28's exact one-line child commit was fast-forwarded into `black-box-bihar-news`; PR #28 is closed/merged into this integration branch only. The source branch remains. No other branch was modified. +- Natural PR run #209 passed on the same code head. Natural active-branch push run #210 then passed WordNet generation, all four Python builder tests, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Release job skipped. +- Latest overall run #211 passed on PR #27's separate editorial head. That PR remains open/draft and was not ported during this UI/build-repair iteration. + +### Material/performance audit retained + +- The Prismal root capture remains a background-only sibling; the captured tree contains only the theme background and two ambient gradients. App content and all glass surfaces remain siblings above it. No self-capture was reintroduced. +- The shared 8×8 luminance probe remains one source at 4s on Android 12+ / 6s on older Android, paused while backgrounded, Reader/Quiz/Settings is open, feed motion is active, or Reduce Transparency is enabled. +- Compact feed navigation composes one shared bar morph; the full glyph source, selected droplet and merged sampling surface are used only in the expanded branch. The compact active-label pill is a 54dp navigation control with an explicit expand action. +- Search clear remains inside the expanded morph capsule, appears for non-empty queries, uses a 48dp target and only clears the query. Reader chrome is pinned for dictionary definition, native selection ActionMode, IME and enabled accessibility services. +- These are source-level checks, not measured performance wins. No additional capture, sampler, per-card blur, bitmap decode, graphics layer or dependency was added by the compile repair. + +### Next implementation pass + +After re-reading the live branch graph and exact CI state, continue the app-wide audit of remaining transient dialogs/sheets/menus and uncovered interactive surfaces. Add glass only where it clarifies a control or transient action, pair every new effect with an explicit cost-control strategy, and keep article/data surfaces high contrast. Do not start another UI batch in the same run as a build repair. + diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 41af7f37..e90432ec 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,5 +1,20 @@ # CurrentLens — Latest project handoff (7 November 2026) + +## Live snapshot — 7 November 2026 (after natural runs #210–#211) + +- Active integration branch: `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5`; 101 ahead / 0 behind main and 44 ahead / 0 behind PR #16. The selected line retains PR #16's background-only Prismal capture correction and the consolidated Reader/Search/navigation/dashboard/Appearance/Quiz work. +- Complete live inventory: 32 remote branches, 14 open/draft PRs and 14 closed PRs. PR #28's one-line Quiz semantics compile fix is now included in black-box; its source branch remains. No other branch was changed or deleted. +- Latest active-branch natural validation: run #210 passed on exact SHA `6f9b3c1e1a484233721863d0b736734c0d282cd5`; WordNet builder tests (4/4), 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568511654`, 39,082,053 bytes; Release job skipped. +- Latest overall natural run #211 passed on PR #27's independent head `9b70ed1c7c39bb511399c6284c7e8833f4672618`; it does not validate black-box. PR #27 remains open/draft with a useful four-file editorial action gate; it was not ported in this UI iteration. +- PR #25 and #26 publisher asset/subresource security changes remain open and unintegrated pending a separate Reader/NewsCard reconciliation. PR #24 remains on divergent brrrNEWS. Current 8×8 adaptive glass probe remains 4s/6s, paused during scroll/background/Reader/Quiz/Settings/Reduce Transparency. +- Current active workflow uses read-only build/test permissions and a separate main-push-only release job. Main's workflow is still push-only with workflow-wide contents: write; no black-box-to-main PR was created. +- Latest Release remains `v0.2.0-build-116`. No new Release, manual dispatch or rerun. +- Device-backed OPPO cold/warm launch, screenshots, visual motion, TalkBack, Reduce Motion, Perfetto/frame timing, overdraw, memory, thermal and battery remain **UNVERIFIED**. +- Next: recheck the complete live branch graph and exact CI head before the next Liquid Glass screen batch; audit remaining transient dialogs/sheets/menus without adding glass to dense content surfaces. + +> This snapshot supersedes earlier live snapshots below where they conflict. Historical context remains in SESSION_LEDGER.md. + ## Live snapshot — 7 November 2026, 11:38 IST - Current integration branch: black-box-bihar-news, verified pre-batch head cfe0b3e8319374df5cb29423f04a79c77d4fe10e; 97 ahead / 0 behind main and 40 ahead / 0 behind PR #16. The low-effects Appearance batch is authored from this exact head; its resulting SHA and natural CI are pending. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 6a16b734..cc174c6a 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -374,3 +374,18 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Previous CI evidence:** run #200 passed on parent SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e, artifact 13560769755; it does not validate this batch. Await the natural workflow for the new exact head; no manual dispatch/rerun. - **Risks / unverified:** no OPPO Reno10 5G runtime screenshot, launch, accessibility, Perfetto/frame-jank, GPU-overdraw, battery or thermal measurements. Do not claim measured performance improvement. The root background-only source remains shared; the existing tab glyph/merged source is unchanged. - **Next:** verify natural CI on the new exact head; then review Saved/stat filter surfaces and Quiz/Settings contextual controls. Re-read live branch graph before any further code change. + + +## 2026-11-07 14:31–14:35 IST / 09:01–09:05 UTC — Quiz selected-state compile repair on the consolidation branch + +- **Repository / active branch:** Batmancpu/CurrentLens, `black-box-bihar-news`. Pre-fix HEAD `947310a157e03df25dde3856d2686d18ffca68e8`; corrective source commit `6f9b3c1e1a484233721863d0b736734c0d282cd5`, direct child. Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`; no main write. +- **Branch freshness:** 32/32 remote refs enumerated; page 2 empty. 14 open and 14 closed PRs. Active branch is 101 ahead / 0 behind main and 44 ahead / 0 behind PR #16. PR #27's head advanced to `9b70ed1c7c39bb511399c6284c7e8833f4672618` during this audit; it remains separate editorial work. Full table/disposition is in docs/BRANCH_CONSOLIDATION.md §11. +- **Failure evidence:** natural run #208 on `947310a` failed in `:app:compileDebugKotlin` at `MainActivity.kt:4238:61`: “Assignment type mismatch: actual type is 'Boolean', but 'Map' was expected.” The failing QuizScreen option modifier used `.semantics { selected = chosen }` while the composable's local answer state is also named `selected: Map`. +- **Root cause:** Kotlin name resolution selected the local answer map rather than the semantics receiver's Boolean property. The complete QuizScreen and its article-keyed questions/answers/submission state were inspected; no data or persistence change was needed. +- **Correction:** the exact one-line receiver qualification `.semantics { this.selected = chosen }` was taken from PR #28's direct child commit and fast-forwarded into the active branch with an expected-head lease (no force update). GitHub marked PR #28 merged/closed into black-box; its source branch remains. No other branch or PR was changed. +- **Behaviour:** selected-state accessibility semantics are restored; quiz answer selection, score calculation, question identity, submit-only persistence, and back/Done behaviour are unchanged. +- **Verification:** PR run #209 passed on exact code head `6f9b3c1`. Active branch push run #210 passed on the same exact SHA: four WordNet builder tests, 151,456 unique words / 50,950,144-byte database, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload. Artifact `13568511654`, 39,082,053 bytes, SHA-256 `9eeb4bbdbfd08f9f8f5e94a5eda0251b41d1c441933653c0ef326246669458de`; publish job skipped. Latest overall run #211 passed on PR #27 head `9b70ed1`, not on the active branch. +- **Warnings:** existing non-blocking WebView `scale`, Compose `updateTransition`, ArrowBack API, Node.js 20 action-runtime, `punycode` and `url.parse()` deprecation warnings remain. They were not changed in this focused repair. +- **Rejected scope expansion:** no further UI changes were added before verifying the compiler fix; no workflow, dependency, package, app identity, network, storage schema, main branch or Release change. +- **Risks / unverified:** TalkBack selected-state runtime, font scaling, OPPO Reno10 cold/warm launch, visual animation, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery were not measured. CI is not device verification. +- **Next:** re-read all branch heads/PR diffs and current Actions before another screen-sized Liquid Glass pass; review remaining transient dialogs/sheets/menus while preserving high-contrast reading/data surfaces. From 59022ed4dd20513ccd2a00b38c6e8b822057e938 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 15:37:10 +0530 Subject: [PATCH 100/175] ui: unify transient search and reader glass controls --- .../currentlens/GlassSurfacePolicy.kt | 4 + .../mangoloads/currentlens/MainActivity.kt | 165 +++++++++++++----- .../currentlens/GlassSurfacePolicyTest.kt | 8 + docs/BRANCH_CONSOLIDATION.md | 78 ++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 37 ++-- 5 files changed, 226 insertions(+), 66 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 96fc60ad..783e1321 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -7,6 +7,10 @@ package com.mangoloads.currentlens internal object GlassSurfacePolicy { const val SUPPORTING_CORNER_RADIUS_DP = 22f const val SUPPORTING_VALUE_SIZE_SP = 20f + const val TRANSIENT_BLUR_DP = 5f + const val TRANSIENT_REFRACTION_HEIGHT_DP = 2.5f + const val TRANSIENT_REFRACTION_AMOUNT_DP = 3.5f + const val TRANSIENT_TINT_SCALE = 0.42f private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.96f private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.985f diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index c9bba8f8..2a45a8db 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1446,32 +1446,55 @@ private fun SearchFeed( ModalBottomSheet( onDismissRequest = { showFilters = false }, sheetState = filterSheetState, - containerColor = MaterialTheme.colorScheme.surface, - contentColor = MaterialTheme.colorScheme.onSurface + shape = RoundedCornerShape(28.dp), + containerColor = Color.Transparent, + contentColor = MaterialTheme.colorScheme.onSurface, + tonalElevation = 0.dp, + dragHandle = null ) { - Column( - Modifier.fillMaxWidth().padding(horizontal = 18.dp, vertical = 10.dp), - verticalArrangement = Arrangement.spacedBy(9.dp) + PrismalTransientSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth(), + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 28f ) { - Row(verticalAlignment = Alignment.CenterVertically) { - Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { - Text("Refine articles", style = MaterialTheme.typography.titleLarge, - fontWeight = FontWeight.SemiBold) - Text("Filters update the results immediately.", - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.secondary) + Column(Modifier.fillMaxWidth()) { + Box( + Modifier.fillMaxWidth().padding(top = 10.dp, bottom = 4.dp), + contentAlignment = Alignment.Center + ) { + Box( + Modifier.size(width = 32.dp, height = 4.dp) + .clip(CircleShape) + .background(MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.30f)) + ) + } + Column( + Modifier.fillMaxWidth().padding(horizontal = 18.dp, vertical = 10.dp), + verticalArrangement = Arrangement.spacedBy(9.dp) + ) { + Row(verticalAlignment = Alignment.CenterVertically) { + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { + Text("Refine articles", style = MaterialTheme.typography.titleLarge, + fontWeight = FontWeight.SemiBold) + Text("Filters update the results immediately.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.secondary) + } + TextButton(onClick = { + selectedCategory = "All" + selectedGsPaper = "All" + selectedSubject = "All" + }) { Text("Reset") } + } + FilterChipRow("Topic", categories, selectedCategory, { selectedCategory = it }) + FilterChipRow("GS paper", gsPapers, selectedGsPaper, { selectedGsPaper = it }) + FilterChipRow("Subject", subjects, selectedSubject, { selectedSubject = it }) + Button(onClick = { showFilters = false }, modifier = Modifier.fillMaxWidth()) { + Text("Done") + } } - TextButton(onClick = { - selectedCategory = "All" - selectedGsPaper = "All" - selectedSubject = "All" - }) { Text("Reset") } - } - FilterChipRow("Topic", categories, selectedCategory, { selectedCategory = it }) - FilterChipRow("GS paper", gsPapers, selectedGsPaper, { selectedGsPaper = it }) - FilterChipRow("Subject", subjects, selectedSubject, { selectedSubject = it }) - Button(onClick = { showFilters = false }, modifier = Modifier.fillMaxWidth()) { - Text("Done") } } } @@ -1893,6 +1916,41 @@ private fun FilterChipRow( } } +@Composable +private fun PrismalTransientSurface( + backdrop: PrismalBackdrop, + modifier: Modifier = Modifier, + glassAlpha: Float, + dark: Boolean, + cornerRadiusDp: Float, + content: @Composable () -> Unit +) { + val reduceTransparency = LocalGlassReduceTransparency.current + PrismalGlassSurface( + backdrop = backdrop, + modifier = modifier, + shape = { PrismalRoundedRectangle(cornerRadiusDp.dp) }, + blurRadius = GlassRenderingPolicy.blurDp( + GlassSurfacePolicy.TRANSIENT_BLUR_DP, reduceTransparency + ).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx( + GlassSurfacePolicy.TRANSIENT_REFRACTION_HEIGHT_DP, reduceTransparency + ), + refractionAmountPx = GlassRenderingPolicy.refractionPx( + GlassSurfacePolicy.TRANSIENT_REFRACTION_AMOUNT_DP, reduceTransparency + ), + depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.001f, reduceTransparency), + tint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA), + tintAlpha = GlassRenderingPolicy.tintAlpha( + (glassAlpha * GlassSurfacePolicy.TRANSIENT_TINT_SCALE).coerceIn(0.05f, 0.22f), + reduceTransparency + ) + ) { + content() + } +} + @Composable private fun GlassFilterGroup( backdrop: PrismalBackdrop, @@ -3268,31 +3326,46 @@ private fun ReaderGlassToolbar( } DropdownMenu( expanded = textSizeMenuExpanded, - onDismissRequest = { textSizeMenuExpanded = false } + onDismissRequest = { textSizeMenuExpanded = false }, + modifier = Modifier.widthIn(min = 196.dp), + shape = RoundedCornerShape(18.dp), + containerColor = Color.Transparent, + tonalElevation = 0.dp, + shadowElevation = 0.dp ) { - DropdownMenuItem( - text = { Text("Smaller text") }, - leadingIcon = { Icon(Icons.Outlined.TextDecrease, contentDescription = null) }, - enabled = fontSize > ReaderChromePolicy.MIN_FONT_SIZE_SP, - onClick = { - onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, -1)) - textSizeMenuExpanded = false - } - ) - DropdownMenuItem( - text = { Text("Larger text") }, - leadingIcon = { Icon(Icons.Outlined.TextIncrease, contentDescription = null) }, - enabled = fontSize < ReaderChromePolicy.MAX_FONT_SIZE_SP, - onClick = { - onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, 1)) - textSizeMenuExpanded = false + PrismalTransientSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth(), + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 18f + ) { + Column(Modifier.fillMaxWidth()) { + DropdownMenuItem( + text = { Text("Smaller text") }, + leadingIcon = { Icon(Icons.Outlined.TextDecrease, contentDescription = null) }, + enabled = fontSize > ReaderChromePolicy.MIN_FONT_SIZE_SP, + onClick = { + onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, -1)) + textSizeMenuExpanded = false + } + ) + DropdownMenuItem( + text = { Text("Larger text") }, + leadingIcon = { Icon(Icons.Outlined.TextIncrease, contentDescription = null) }, + enabled = fontSize < ReaderChromePolicy.MAX_FONT_SIZE_SP, + onClick = { + onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, 1)) + textSizeMenuExpanded = false + } + ) + DropdownMenuItem( + text = { Text("Current size · $fontSize sp") }, + enabled = false, + onClick = {} + ) } - ) - DropdownMenuItem( - text = { Text("Current size · $fontSize sp") }, - enabled = false, - onClick = {} - ) + } } } } diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index dcbc522f..205756ad 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -23,6 +23,14 @@ class GlassSurfacePolicyTest { ) } + @Test + fun transientControlsUseOneBoundedLowCostMaterialTier() { + assertTrue(GlassSurfacePolicy.TRANSIENT_BLUR_DP in 0f..6f) + assertTrue(GlassSurfacePolicy.TRANSIENT_REFRACTION_HEIGHT_DP in 0f..3f) + assertTrue(GlassSurfacePolicy.TRANSIENT_REFRACTION_AMOUNT_DP in 0f..4f) + assertTrue(GlassSurfacePolicy.TRANSIENT_TINT_SCALE in 0f..0.5f) + } + @Test fun sharedGeometryAndMetricTypeScaleAreExplicit() { assertEquals(22f, GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP, 0f) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 1beabe67..37a53851 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,15 +1,14 @@ # Black Box Bihar News — complete branch consolidation **Repository:** Batmancpu/CurrentLens -**Chosen integration branch:** black-box-bihar-news -**Verified source HEAD before the Quiz action-chrome batch:** 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; the QuizScreen and roadmap updates are committed as one direct child using a fast-forward-only ref update. -**Default branch:** main — unchanged at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Live branch inventory:** 31 refs (page 1: 31; page 2: 0) at 7 Nov 2026 13:00 IST; no branch was deleted. -**Latest completed validation on the selected branch:** Actions run #203 (https://github.com/Batmancpu/CurrentLens/actions/runs/42349689690), success on exact SHA 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; artifact 13565296151 (39,078,047 bytes). It validates the Saved/stat filter group, not this Quiz batch. -**Latest overall natural run:** #204, success on PR #26's exact head b8d2ef9ff2413c378347986d00961c401dfa771d; artifact 13565228424 (39,079,206 bytes). PR #25 run #202 also succeeded on its own head; neither validates this branch. -**Actions:** 204 runs, fully paginated (100 + 100 + 4 + 0); no queued or in-progress runs. Run #203's release job was skipped. -**Workflow:** active branch blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66; read-only build/test permissions and a separate main-push-only Release job. Main's workflow remains push-only with broader write permissions. -**No feature-branch Release was published;** latest published Release remains v0.2.0-build-116. No manual dispatch/rerun, merge to main, branch deletion or other-branch write occurred. +**Chosen integration branch:** `black-box-bihar-news` — owner-selected single active integration branch. +**Verified source HEAD before the transient-controls batch:** `16eb549c3235b321ecf7ef1c5c5270817e336489`; the new UI commit is a direct child, created with a fast-forward-only expected-head update. +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. The active branch is 102 commits ahead / 0 behind main and 45 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Live branch inventory before this batch:** 33 remote refs (all returned on page 1; page 2 empty), 15 open PRs and 14 closed PRs. No branch was deleted. +**Latest active-branch validation before this batch:** Actions run #213, success on exact SHA `16eb549c3235b321ecf7ef1c5c5270817e336489`; WordNet builder tests 4/4, database 151,456 unique words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568329178`, 39,082,053 bytes, SHA-256 `2a0af7c27ff5aff00b48c12d7659cb5b37b5103f6858ebf090be02b2cc9f0981`. Release job skipped. +**Actions history:** 213 runs fully paginated (100 + 100 + 13; page 4 empty): 127 success, 54 failure, 32 cancelled; no queued/in-progress runs. +**Workflow:** active branch blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, PR validation for main/PR #16/black-box, and a separate main-push-only Release job. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with broader write permissions. A future draft PR to main will not have a natural PR-triggered validation until main's workflow is reconciled; branch push CI is not PR-to-main validation. +**Release:** latest published remains `v0.2.0-build-116`; no feature-branch Release was created. No manual dispatch/rerun, main edit/merge, source-branch write or branch deletion occurred. The integration was started from PR #16's corrected stability/network baseline, then useful changes were merged or selectively reconciled. No older `MainActivity.kt`, `NewsRepository.kt`, `LocalStore.kt` or workflow was copied wholesale over the newer code. @@ -458,3 +457,64 @@ The repository default remains `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. ### Warnings and device limitations The passing builds still report non-blocking deprecated WebView `scale`, Compose `updateTransition`, and non-auto-mirrored ArrowBack API warnings, plus Node.js 20 action-runtime and Node `punycode` / `url.parse()` deprecation warnings. They were not changed in this scoped repair. No post-change OPPO Reno10 launch, screenshot, TalkBack/Reduce Motion session, logcat/tombstone, Perfetto/frame-time, GPU-overdraw, allocation/memory, thermal or battery evidence exists. Keep those checks **UNVERIFIED**; CI only establishes compilation, JVM tests and APK packaging on the tested source. + +## 12. Live branch freshness and CI audit — 7 November 2026 (after run #213) + +The owner-selected integration baseline was re-enumerated before this implementation. The complete 33-branch inventory is below; commit dates are UTC and messages are the exact latest branch-head subjects. “PR relation” identifies a current head/base or disposition, not a claim that the branch is merged into main. + +| Remote branch | Head SHA | Latest commit (UTC) | Latest commit message | PR relation / disposition | +|---|---|---|---|---| +| `black-box-bihar-news` | `16eb549c3235b321ecf7ef1c5c5270817e336489` | 2026-11-07 09:07:46 | docs: record quiz build repair and live branch audit | Owner-selected active branch; base of open #25/#26/#27/#29 | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of open #24; sibling diverged 4 ahead / 8 behind active | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | Open #18 head; compatible intent already represented in active workflow | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | Closed/merged #20 into black-box only | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Closed #14 unmerged; head equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | Open #6 head; relevant classifier changes selectively represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | Open #12 head; current parser policy already represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | Open #11 head on older black-box base; selected policies already represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | Open #16 head; direct ancestor of active branch | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `9b70ed1c7c39bb511399c6284c7e8833f4672618` | 2026-11-07 09:02:50 | fix(editorial): preserve regulatory coverage amid entertainment filtering | Open #27 head; 5 ahead / 3 behind active; separate editorial scope | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | Open #21 head; selected bill/heat-wave rules already reconciled, not merged wholesale | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | Open #24 head on brrrNEWS; separate editorial policy | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 merged into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed unmerged; equivalent guards are retained in the newer PR #16 lineage | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 merged into black-box only | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | Open #25 head; 7 ahead / 4 behind active; separate publisher-asset guard | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | Open #17 head; URL identity policy already represented | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 merged into main | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 merged into main; superseded by newer PR #16 startup safeguards | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 merged into main | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | Open #22 head, stacked on #8; preserves old unordered markers, so total legacy storage is not bounded | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | Open #29 head; 1 ahead / 1 behind active; natural run #212 passed on its exact head; not part of this UI batch | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | Open #8 head; read/session/quiz persistence policy selectively represented | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | Open #26 head; 1 ahead / 3 behind active; separate WebView security reconciliation | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | Stale checkpoint; 196 commits behind active; not a baseline | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | Open #13 head; its 1.5s/2.5s cadence is not copied; active policy remains one 8×8 source at 4s/6s | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #4 closed unmerged; 3 ahead / 120 behind active; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed/merged into black-box only; source branch retained | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | Earlier validated checkpoint; 18 commits behind active | + +### Freshness rationale and outstanding work + +- `black-box-bihar-news@16eb549c3235b321ecf7ef1c5c5270817e336489` is the newest coherent owner-selected line: it descends from PR #16's corrected background-only Prismal/stability head and is 102 ahead / 0 behind main. The current head is later than all other branch-head timestamps except the PR #29 and PR #27 independent commits, which are not complete descendant lineages and have overlapping non-UI scopes. +- `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` is divergent (4 ahead / 8 behind active). Its `GlassSurfacePolicy.kt` and `GlassSurfacePolicyTest.kt` blob SHAs exactly match the files already present in black-box; its workflow/app-label/documentation changes are not adopted. PR #24 changes the separate editorial policy and is not copied into the UI branch. +- PR #29 is a safe, useful bookmark read/modify/write move to IO with a mutex and a pure preservation policy; its own exact-head run #212 passed. It remains a separate pending storage batch so this transient-control UI change does not bundle unrelated persistence work. The complete bookmark set is intentionally preserved; no retention cap is applied. +- PR #25/#26 are publisher asset/subresource restrictions; their MainActivity changes overlap Reader resource handling and require a separate shared-host/privacy review. Do not blindly copy either. +- PR #27 is an editorial-action gate; its natural run #211 validates only its own head. PR #21/#24 and other editorial branches remain separate. Existing integrated editorial policies are documented above. +- PR #22's new-marker window does not bound old unordered legacy markers; the active implementation preserves those legacy values. PR #13's faster 1.5s/2.5s sampler is rejected in favour of the active single 8×8 probe at 4s/6s. +- The active workflow remains read-only for build/test and isolates Release write permission to a main push. Main's current workflow is still push-only; no PR-to-main CI claim is made. No draft PR to main was opened in this batch because the consolidated diff remains broad and the base workflow does not naturally validate pull requests. + +### Latest natural CI and Release check + +- Exact active head before this batch: `16eb549c3235b321ecf7ef1c5c5270817e336489`; run #213 (push) completed successfully. +- Build job steps: checkout, Java, cached stability signing key, Android SDK/platform, Gradle, WordNet builder, offline DB generation, `:app:testDebugUnitTest`, `:app:assembleDebug`, APK artifact upload all succeeded; stability key generation skipped due to cache hit. +- WordNet builder: 4/4 Python tests passed; 151,456 unique words generated to a 50,950,144-byte database. +- Artifact: `13568329178`, `CurrentLens-v0.2.8-stability-debug-apk`, 39,082,053 bytes, SHA-256 `2a0af7c27ff5aff00b48c12d7659cb5b37b5103f6858ebf090be02b2cc9f0981`; expires 21 Nov 2026 09:09:56Z. Publish job skipped. +- Full job log inspected (1,521 lines). Remaining non-blocking warnings include deprecated WebView `scale`, Compose `updateTransition`, non-auto-mirrored ArrowBack, Node.js 20 action runtime and Node `punycode`/`url.parse()`. +- Latest published Release remains `v0.2.0-build-116`; no Release created by runs #211–#213. +- This is the last verified CI on the base SHA, not on the transient-control child commit. The new child commit must receive its own natural run. + diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 9f1d8f8b..e83f374b 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,15 +1,15 @@ # Liquid Glass UI Roadmap -**Status:** Quiz action chrome is integrated and the compile-time selected-state receiver shadowing is corrected. The active consolidation branch at `6f9b3c1e1a484233721863d0b736734c0d282cd5` passed natural push run #210. This run repaired the build; it did not add another visual batch. +**Status:** Search's filter sheet and the Reader's Aa menu now use one shared, bounded Prismal transient-control material; the modal shell no longer paints an opaque Material slab. This implementation is based on the verified live integration head below; natural CI for the new child commit is pending. **Feature branch:** `black-box-bihar-news` — the only active integration branch for this work. -**Verified current HEAD:** `6f9b3c1e1a484233721863d0b736734c0d282cd5`. -**Authoritative lineage:** 101 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 44 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Latest active-branch validation:** [Actions run #210](https://github.com/Batmancpu/CurrentLens/actions/runs/42357962166), exact SHA `6f9b3c1e1a484233721863d0b736734c0d282cd5`; WordNet builder tests (4/4), offline database generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13568511654`, 39,082,053 bytes, SHA-256 `9eeb4bbdbfd08f9f8f5e94a5eda0251b41d1c441933653c0ef326246669458de`; publish job skipped. -**Latest overall natural run:** #211 passed on PR #27's independent head `9b70ed1c7c39bb511399c6284c7e8833f4672618`; it does not validate or change the active branch. Artifact `13567364771`, 39,084,359 bytes. -**Actions history:** 211 runs fully paginated (100 + 100 + 11; page 4 empty): 125 success, 54 failure, 32 cancelled; no queued/in-progress runs. -**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, natural push/PR triggers for main, PR #16 and this branch, and a separate main-push-only Release job. Main's workflow remains push-only with broader write permissions. Latest published Release remains `v0.2.0-build-116`; no feature-branch Release was published. -**Branch graph:** 32 remote branches, 14 open PRs and 14 closed PRs. PR #28's one-line compile correction is now included in this branch; source branches remain present. Full current inventory and dispositions are in `docs/BRANCH_CONSOLIDATION.md` §11. -**Safety / device status:** no main change, package/app identity change, workflow change, manual dispatch/rerun, Release publication, device screenshot or OPPO runtime verification. Launch stability, visual motion, TalkBack, Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. +**Implementation base:** `black-box-bihar-news@16eb549c3235b321ecf7ef1c5c5270817e336489`, verified immediately before editing. +**Lineage:** 102 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 45 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Latest active-branch natural validation before this batch:** [Actions run #213](https://github.com/Batmancpu/CurrentLens/actions/runs/42358399254), exact base SHA `16eb549c3235b321ecf7ef1c5c5270817e336489`; four WordNet builder tests passed, the offline database generated 151,456 unique words (50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568329178`, 39,082,053 bytes, SHA-256 `2a0af7c27ff5aff00b48c12d7659cb5b37b5103f6858ebf090be02b2cc9f0981`; Release job skipped. +**Latest overall natural run before this batch:** #213 on the active branch; #212 passed on PR #29's separate bookmark-persistence head and #211 passed on PR #27's separate editorial head. +**Actions history:** 213 runs fully paginated (100 + 100 + 13; page 4 empty): 127 success, 54 failure, 32 cancelled; no queued/in-progress runs. +**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` uses read-only build/test permissions, PR triggers for main/PR #16/black-box, and a separate main-push-only Release job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with broader write permissions. Latest published Release remains `v0.2.0-build-116`; no Release was published by feature-branch runs. +**Branch graph:** 33 remote branches; 15 open PRs and 14 closed PRs. The complete live inventory and branch dispositions are recorded in `docs/BRANCH_CONSOLIDATION.md` §12. +**Safety / device status:** no main change, package/app identity change, workflow change, manual dispatch/rerun, Release publication, PR merge, source-branch write or branch deletion. OPPO Reno10 launch, screenshots, visual motion, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -87,7 +87,9 @@ Recheck every branch head and dependency before each future implementation commi | Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Continuous-corner content cards, >=48dp option targets and selected semantics; no live blur; submit-only persistence unchanged | | Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | | Appearance settings | Interactive control glass | Clear↔Frosted slider, presets, live header/navigation/article preview and low-effects switch | Preview and reduced-transparency mode integrated; slider changes apply to shared material policy; device validation pending | -| Dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | +| Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | +| Reader Aa menu | Interactive transient glass | Compact anchored text-size menu; preserve the existing 16–28sp actions and clamping | Same shared transient material, mounted only while expanded; font-size behaviour unchanged | +| Other dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | ## Paired performance matrix @@ -103,6 +105,7 @@ Recheck every branch head and dependency before each future implementation commi | Reader progress | 2dp content indicator | Reuse existing debounced `savedReadingProgress`; no polling, WebView injection or readback | Hidden at zero/completion; visual timing needs device validation | | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | +| Search filter sheet / Reader Aa menu | One 5dp-blur, low-refraction transient surface while open | Shared `PrismalTransientSurface` consumes the existing background-only root backdrop; no extra capture/readback, no per-chip/item blur, and the two screens cannot show these surfaces together | `GlassRenderingPolicy` removes live optics for Reduce Transparency; policy constants covered by `GlassSurfacePolicyTest`; frame/GPU/memory/battery cost unmeasured | | You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | | Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | | Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Reduced-transparency/low-effects preference is integrated; OPPO rendering and slider-response measurements remain unverified | @@ -267,5 +270,17 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches ### Next implementation pass -After re-reading the live branch graph and exact CI state, continue the app-wide audit of remaining transient dialogs/sheets/menus and uncovered interactive surfaces. Add glass only where it clarifies a control or transient action, pair every new effect with an explicit cost-control strategy, and keep article/data surfaces high contrast. Do not start another UI batch in the same run as a build repair. +On the next scheduled run, inspect the natural build for the exact transient-surface commit, including the full job log, JVM tests and APK artifact. If it passes, continue the remaining app-wide audit with an Appearance preview cost pass (avoid two simultaneously blurred preview panels) and reconcile the separately validated PR #29 bookmark IO change only as its own scoped performance batch. Do not claim OPPO visual or performance verification from CI. + + +## Transient Search and Reader controls batch — 7 November 2026 + +**Implementation base:** `black-box-bihar-news@16eb549c3235b321ecf7ef1c5c5270817e336489`; branch freshness and all 33 remote refs were rechecked before editing. The implementation is one direct child on the same branch; natural CI is pending for that new head. + +- Added the shared `PrismalTransientSurface` wrapper and explicit `GlassSurfacePolicy` tokens for a restrained 5dp blur, 2.5dp refraction height, 3.5dp refraction amount and 0.42 tint scale. +- Search's Refine Articles sheet now has a transparent Material shell and one rounded Prismal surface. The drag handle is inside that surface; Topic, GS paper, Subject, Reset and Done retain their original state and callbacks. The three filter rails remain standard 48dp chips; no per-chip blur or duplicated filter panel was added. +- Reader's Aa dropdown now uses the same shared surface while expanded. The existing smaller/larger/current-size actions, font-size bounds, dismiss behaviour and reader text state are unchanged. +- Both transient surfaces consume the existing background-only `PrismalBackdrop`. They are conditionally composed only while their own sheet/menu is open; Search and Reader are mutually exclusive destinations. No new capture, sampler, readback, bitmap decode, graphics layer, shader, timer, dependency, network request or persistence change was added. +- Reduce Transparency routes the shared material through the existing zero-blur/zero-refraction fallback and higher tint reserve. Added policy-bound tests to `GlassSurfacePolicyTest`; the full `:app:testDebugUnitTest` suite and APK assembly must run naturally on this exact commit. +- **Unverified:** OPPO Reno10 screenshots, sheet drag/IME/safe-area interaction, Aa popup placement, TalkBack, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery. No device or performance claim is made. From f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 15:44:38 +0530 Subject: [PATCH 101/175] perf(storage): move bookmark mutations off the UI thread --- .../currentlens/BookmarkSetPolicy.kt | 22 ++++++ .../com/mangoloads/currentlens/LocalStore.kt | 32 ++++---- .../mangoloads/currentlens/MainActivity.kt | 10 ++- .../currentlens/BookmarkSetPolicyTest.kt | 48 ++++++++++++ docs/BRANCH_CONSOLIDATION.md | 74 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 17 ++++- 6 files changed, 185 insertions(+), 18 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/BookmarkSetPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/BookmarkSetPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/BookmarkSetPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/BookmarkSetPolicy.kt new file mode 100644 index 00000000..04be5bf6 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/BookmarkSetPolicy.kt @@ -0,0 +1,22 @@ +package com.mangoloads.currentlens + +/** Pure saved-URL mutation; no retention cap is applied to user bookmarks. */ +internal data class BookmarkMutation( + val savedUrls: Set, + val added: Boolean, + val changed: Boolean +) + +internal object BookmarkSetPolicy { + fun toggle(existing: Set, url: String): BookmarkMutation { + if (url.isBlank()) return BookmarkMutation(existing, added = false, changed = false) + val next = existing.toMutableSet() + val added = if (next.remove(url)) { + false + } else { + next.add(url) + true + } + return BookmarkMutation(next.toSet(), added = added, changed = true) + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt index 8044e48b..a2edd591 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt @@ -30,6 +30,7 @@ object LocalStore { private const val MAX_READER_POSITIONS = ReaderPositionPolicy.MAX_ENTRIES private const val MAX_QUIZ_ATTEMPTS = 5_000 private const val MAX_DETAILED_QUIZ_ATTEMPTS = 500 + private val bookmarkWriteMutex = Mutex() private val historyWriteMutex = Mutex() private val readerPositionWriteMutex = Mutex() @@ -41,21 +42,24 @@ object LocalStore { fun isBookmarked(context: Context, url: String): Boolean = bookmarks(context).contains(url) - fun toggleBookmark(context: Context, url: String): Boolean { - val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - val next = runCatching { - prefs.getStringSet(BOOKMARKS, emptySet())?.toMutableSet() ?: mutableSetOf() - }.getOrDefault(mutableSetOf()) - val added = if (next.contains(url)) { - next.remove(url) - false - } else { - next.add(url) - true + /** + * Serialize the saved-URL read/modify/write on IO. Bookmarks are user-owned data: + * this deliberately preserves the complete set rather than applying lossy retention. + */ + internal suspend fun toggleBookmark(context: Context, url: String): Boolean = + withContext(Dispatchers.IO) { + bookmarkWriteMutex.withLock { + val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + val current = runCatching { + prefs.getStringSet(BOOKMARKS, emptySet())?.toSet() ?: emptySet() + }.getOrDefault(emptySet()) + val mutation = BookmarkSetPolicy.toggle(current, url) + if (mutation.changed) { + prefs.edit().putStringSet(BOOKMARKS, mutation.savedUrls).apply() + } + mutation.added + } } - prefs.edit().putStringSet(BOOKMARKS, next.toSet()).apply() - return added - } fun readHistory(context: Context): Set = runCatching { diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 2a45a8db..f5a392ef 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -829,9 +829,13 @@ private fun BrrrNewsApp() { readHistory = updated } }, - onToggleBookmark = { - val added = LocalStore.toggleBookmark(context, it.url) - bookmarks = if (added) bookmarks + it.url else bookmarks - it.url + onToggleBookmark = { article -> + persistenceScope.launch { + val added = withContext(NonCancellable) { + LocalStore.toggleBookmark(context, article.url) + } + bookmarks = if (added) bookmarks + article.url else bookmarks - article.url + } } ) } diff --git a/app/src/test/java/com/mangoloads/currentlens/BookmarkSetPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/BookmarkSetPolicyTest.kt new file mode 100644 index 00000000..ac4c4839 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/BookmarkSetPolicyTest.kt @@ -0,0 +1,48 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class BookmarkSetPolicyTest { + @Test + fun addingBookmarkPreservesEveryExistingSavedUrl() { + val existing = setOf("https://example.test/a", "https://example.test/b") + val result = BookmarkSetPolicy.toggle(existing, "https://example.test/c") + + assertTrue(result.added) + assertTrue(result.changed) + assertEquals(existing + "https://example.test/c", result.savedUrls) + } + + @Test + fun removingBookmarkChangesOnlyTheSelectedUrl() { + val existing = setOf("https://example.test/a", "https://example.test/b") + val result = BookmarkSetPolicy.toggle(existing, "https://example.test/a") + + assertFalse(result.added) + assertTrue(result.changed) + assertEquals(setOf("https://example.test/b"), result.savedUrls) + } + + @Test + fun blankUrlDoesNotMutateSavedBookmarks() { + val existing = setOf("https://example.test/a") + val result = BookmarkSetPolicy.toggle(existing, " ") + + assertFalse(result.added) + assertFalse(result.changed) + assertEquals(existing, result.savedUrls) + } + + @Test + fun repeatedToggleIsReversibleWithoutDroppingUnrelatedBookmarks() { + val existing = setOf("https://example.test/keep") + val added = BookmarkSetPolicy.toggle(existing, "https://example.test/new") + val removed = BookmarkSetPolicy.toggle(added.savedUrls, "https://example.test/new") + + assertEquals(existing, removed.savedUrls) + assertFalse(removed.added) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 37a53851..12f0df57 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -518,3 +518,77 @@ The owner-selected integration baseline was re-enumerated before this implementa - Latest published Release remains `v0.2.0-build-116`; no Release created by runs #211–#213. - This is the last verified CI on the base SHA, not on the transient-control child commit. The new child commit must receive its own natural run. +## Live branch-freshness and CI audit — 7 November 2026 (before bookmark-I/O port) + +Repository/default: Batmancpu/CurrentLens; default main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. Complete remote inventory: 33 branches on page 1; page 2 empty. Complete pull inventory: 29 PRs on page 1; page 2 empty; 15 open, 14 closed. No branches were deleted. Current integration head is black-box-bihar-news at 59022ed4dd20513ccd2a00b38c6e8b822057e938 (2026-11-07 10:07:10Z, “ui: unify transient search and reader glass controls”), parent 16eb549c3235b321ecf7ef1c5c5270817e336489; compare against main: 103 ahead / 0 behind. It remains the freshest coherent owner-selected consolidation line and contains the corrected background-only Prismal capture, Reader/Search controls, feed-only compact navigation, adaptive contrast safeguards, Saved/Stats glass controls, Quiz chrome and read-only stacked CI. No PR from this branch to main exists; no merge or Release publication was performed. + +### Complete branch-head inventory + +| Branch | Head SHA | Commit time (UTC) | Latest commit message | PR / disposition | +|---|---|---|---|---| +| black-box-bihar-news | 59022ed4dd20513ccd2a00b38c6e8b822057e938 | 2026-11-07 10:07:10 | ui: unify transient search and reader glass controls | Active integration branch; base of open #11, #25–#27, #29 | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Divergent sibling; open #24 targets it; not baseline | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | Open #18; workflow intent reconciled into active branch | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 merged into active branch only; source retained | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Same head as main; no active PR | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | Open #6; useful editorial pieces already selectively represented | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | Open #12; policy/test already represented; do not merge whole branch | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | Open #11; current policies selectively represented; old base requires review | +| fix/early-startup-crash-diagnostics-2026-11-06 | 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | Open #16; active integration descends from this corrected baseline | +| fix/editorial-action-gate-blackbox-2026-11-07 | 9b70ed1c7c39bb511399c6284c7e8833f4672618 | 2026-11-07 09:02:50 | fix(editorial): preserve regulatory coverage amid entertainment filtering | Open #27; separate editorial change, not UI scope | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | Open #21; prior editorial work selectively represented; review separately | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | Open #24; based on brrrNEWS; not copied into UI branch | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 merged into main | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 merged into main | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 merged into main | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 merged into active branch only | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed unmerged; superseded by newer active redirect guards | +| fix/quiz-option-selected-semantics-compile-2026-11-07 | 6f9b3c1e1a484233721863d0b736734c0d282cd5 | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 merged into active branch only | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | Open #25; publisher asset/privacy reconciliation pending | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | Open #17; URL identity policy already represented | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 merged into main | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 merged into main; superseded by newer startup safeguards | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 merged into main | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | Open #22 stacked on #8; only new markers bounded; legacy unordered markers preserved | +| perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | Open #29; exact one-commit change selectively ported below | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | Open #8; policy selectively represented | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | Open #26; one MainActivity hunk plus policy/tests; separate security review | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | Stale; 197 commits behind active; not baseline | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | Open #13; active implementation uses one 8×8 probe at 4s/6s, not its faster cadence | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #4 closed unmerged; stale divergent checkpoint | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 merged into active branch only; source retained | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | Earlier checkpoint; 18 commits behind active | + +### Branch comparison and dependency decisions + +- black-box-bihar-news is 103 ahead / 0 behind main; PR #16 is an ancestor (active is 46 commits ahead of its head), PR #20 is an ancestor (active is 44 commits ahead), and PR #19/#23/#28 are ancestors. Corrected background-only Prismal capture and read-only workflow are already present. +- brrrNEWS is divergent from active: 4 ahead / 9 behind, merge base e411c394e8d48b3f547b6d6fb9039a8935bd05eb. Its supporting-glass files match the already-integrated implementation; its app-label/workflow/build metadata changes are not adopted. PR #24 remains separate editorial work. +- PR #29 bookmark persistence is 1 ahead / 2 behind active, merge base 6f9b3c1e1a484233721863d0b736734c0d282cd5. Only its four-file bookmark delta was ported after checking that current MainActivity still has the same synchronous callback and LocalStore still has the same synchronous read/modify/write. No branch merge or reset was used. +- PR #27 editorial gate is 5 ahead / 4 behind, merge base 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; remains separate. +- PR #26 WebView subresource gate is 1 ahead / 4 behind, merge base 3a08bb95b0f9a0fed8ec11dae055f0ac2817a523; its shouldInterceptRequest change is an initial-request boundary and does not cover redirect hops, so retain that caveat for a separate security review. +- PR #25 publisher asset gate is 7 ahead / 5 behind, merge base 2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0; it changes ArticleReaderRepository, NewsRepository and MainActivity image handling. Do not combine with PR #26 or copy old MainActivity wholesale. +- PR #24 is 9 ahead / 9 behind active, merge base e411c394e8d48b3f547b6d6fb9039a8935bd05eb; its policy regex/test changes are separate from the UI branch. +- PR #18 workflow proposal is 1 ahead / 103 behind active; its read-only PR-validation and isolated publish intent is already reconciled in the active workflow, so do not overwrite the current workflow. +- PR #11 is 3 ahead / 103 behind; current cache/date/provenance policy files already contain its selectively ported behaviour. +- PR #21 is 11 ahead / 103 behind; current editorial coverage already contains selected heat-wave/bill signals, but its head remains separate. +- PR #22 is 9 ahead / 116 behind; only the new ordered 5,000-marker window is bounded, while old unordered legacy markers remain preserved. +- PR #6 is 10 ahead / 116 behind; selected GS I Geography and editorial tests are already represented; do not merge its older MainActivity. +- PR #8 is 3 ahead / 116 behind; read/session/quiz persistence policies are already represented. +- PR #12 is 1 ahead / 116 behind; Atom alternate-link selection is already represented. +- PR #13 is 1 ahead / 116 behind; its 1.5s/2.5s probe cadence is not copied. Active probe remains one 8×8 source at 4s Android 12+ / 6s older, paused during feed motion and non-home/background. +- PR #17 is 1 ahead / 103 behind; URL identity/dedupe policy is already represented. +- Old ui/liquid-glass-performance is 3 ahead / 121 behind active; redesign/v0.3-search-reader is 197 behind active. Neither is a baseline. + +### Actions queue, latest run and Release state + +- Actions inventory is fully paginated: 214 runs (100 + 100 + 14; page 4 empty). No queued or in-progress runs. +- Latest natural run #214, push on exact active SHA 59022ed4dd20513ccd2a00b38c6e8b822057e938, completed successfully. Build job #128373870121 passed checkout, Java, cached signing key, Android SDK/platform, Gradle, four WordNet-builder Python tests, offline database generation (151,456 unique words), :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Release/publish job skipped. Full 202,824-character job log inspected; no build/test failure. Compiler warnings are non-blocking deprecations. +- Artifact 13570367489, CurrentLens-v0.2.8-stability-debug-apk, 39,090,275 bytes, SHA-256 1b3635ef1a23d51054550bd4fe397eb6fbff640e2ce9f081f596d4559accc108, expires 21 Nov 2026 10:09:04Z. +- Latest published Release remains v0.2.0-build-116; no Release was created by #214. +- Current .github/workflows/build-apk.yml is read-only for build/test, has natural push and pull_request triggers for main/PR #16/black-box, and isolates contents: write to the main-push publish job. No PR-to-main validation claim is made because main's base workflow is not this branch's workflow. + +### PR #29 selective bookmark-I/O port + +The exact PR #29 source commit a64857b5efa62ea053c0c96e5f374fd35924b340 was reviewed as a one-commit delta, not merged. Its natural PR run #212 passed the WordNet builder, :app:testDebugUnitTest, :app:assembleDebug and artifact upload; source artifact 13569115360 was 39,084,383 bytes. The integration below keeps the complete bookmark set (no cap/eviction), moves the SharedPreferences read/copy/mutation/write to Dispatchers.IO, serializes mutations with a dedicated Mutex, updates Compose bookmark state after the serialized operation, and adds pure policy tests for add/remove/blank/reversible toggles. The source branch and PR remain untouched. This change adds no glass surface, capture, sampler/readback, image decode, shader, dependency or network request; actual interaction/frame-time/battery gains are not measured. + diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index e83f374b..82e9b66e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -270,7 +270,7 @@ The following work is represented on `black-box-bihar-news`; source PRs/branches ### Next implementation pass -On the next scheduled run, inspect the natural build for the exact transient-surface commit, including the full job log, JVM tests and APK artifact. If it passes, continue the remaining app-wide audit with an Appearance preview cost pass (avoid two simultaneously blurred preview panels) and reconcile the separately validated PR #29 bookmark IO change only as its own scoped performance batch. Do not claim OPPO visual or performance verification from CI. +This note preceded the transient-control commit below. The exact transient-surface head 59022ed4dd20513ccd2a00b38c6e8b822057e938 is now validated by natural push run #214 (full JVM suite, APK assembly and artifact upload succeeded; publish job skipped). The next isolated pass is the separately validated PR #29 bookmark-persistence change; it is a storage/performance change, not a visual-material change. OPPO visual and performance verification remain separate from CI. @@ -284,3 +284,18 @@ On the next scheduled run, inspect the natural build for the exact transient-sur - Both transient surfaces consume the existing background-only `PrismalBackdrop`. They are conditionally composed only while their own sheet/menu is open; Search and Reader are mutually exclusive destinations. No new capture, sampler, readback, bitmap decode, graphics layer, shader, timer, dependency, network request or persistence change was added. - Reduce Transparency routes the shared material through the existing zero-blur/zero-refraction fallback and higher tint reserve. Added policy-bound tests to `GlassSurfacePolicyTest`; the full `:app:testDebugUnitTest` suite and APK assembly must run naturally on this exact commit. - **Unverified:** OPPO Reno10 screenshots, sheet drag/IME/safe-area interaction, Aa popup placement, TalkBack, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery. No device or performance claim is made. + +## Bookmark persistence off-main batch — 7 November 2026 + +Source / integration lineage: active branch was rechecked at black-box-bihar-news@59022ed4dd20513ccd2a00b38c6e8b822057e938, 103 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12. PR #29 source perf/off-main-bookmark-persistence-2026-11-07@a64857b5efa62ea053c0c96e5f374fd35924b340 is one commit ahead / two behind the active head from merge base 6f9b3c1e1a484233721863d0b736734c0d282cd5; only its reviewed bookmark delta is being ported. No source branch was merged, reset, rewritten or deleted. + +- LocalStore.toggleBookmark is now a suspend operation on Dispatchers.IO; a dedicated bookmarkWriteMutex serializes the SharedPreferences read/modify/write so rapid taps cannot overwrite one another. +- BrrrNewsApp reuses its existing persistenceScope and NonCancellable persistence pattern; Compose bookmark state is updated only after the IO mutation returns. All Today/Explore/Search/Saved NewsCard callbacks continue to share this single path. +- Added pure BookmarkSetPolicy and four JVM tests covering add, remove, blank URL, preservation of unrelated bookmarks and reversible toggles. +- Data preservation: the full user bookmark set remains unbounded by design; no cap, eviction, migration, preference-key change or URL-normalisation change is introduced. Mutex protection is in-process only; SharedPreferences apply() remains asynchronous. UI state may reflect the tap after the IO round trip. +- Paired performance strategy: removes the SharedPreferences full-set read/copy/mutation from the Compose click callback and serializes the work off-main. No rendering pass, glass material, Prismal capture, sampler/readback, blur, image decode, bitmap work, network request, dependency or GPU layer was added. This is a source-level main-thread-work reduction, not a measured jank, latency, memory, battery or thermal improvement. +- Source verification: PR #29 natural run #212 passed on its exact source head; full job log inspected, including four WordNet-builder tests, :app:testDebugUnitTest, :app:assembleDebug and artifact upload (artifact 13569115360, 39,084,383 bytes). The current integration head before this port passed natural run #214 with the same build/test/upload pipeline and artifact 13570367489; neither run validates the new integration commit. +- New integration verification: pending the next natural push run on this exact commit. No manual dispatch/rerun and no Release publication. +- Unverified: OPPO Reno10 tap latency, rapid repeated bookmark toggles, lifecycle cancellation, TalkBack feedback, memory/allocation, frame timing, battery and thermal behaviour. CI does not establish device performance. + +Next: after natural CI validates this exact head, perform the Appearance preview cost pass and whole-app visual consistency audit; retain the rule that only one preview glass surface is live at a time and that slider drag changes local preview state rather than rebuilding the root backdrop. From ee82dfde140aeb0d1ca80146379a0a2818c695df Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 16:33:39 +0530 Subject: [PATCH 102/175] ui: consolidate Appearance preview into one Prismal surface --- .../mangoloads/currentlens/MainActivity.kt | 349 +++++++++++++----- docs/BRANCH_CONSOLIDATION.md | 12 + docs/LIQUID_GLASS_UI_ROADMAP.md | 42 ++- 3 files changed, 289 insertions(+), 114 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index f5a392ef..a2b10f33 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4011,64 +4011,163 @@ private fun GlassSettingsScreen( onGlassAlphaChange: (Float) -> Unit, onBack: () -> Unit ) { - val dark = isSystemInDarkTheme() - val tint = if (dark) Color(0xFF30394B) else Color(0xFFEAF0FA) - var previewGlassAlpha by remember { mutableFloatStateOf(glassAlpha) } - LaunchedEffect(glassAlpha) { previewGlassAlpha = glassAlpha } - val selectedPreset = when { - kotlin.math.abs(previewGlassAlpha - 0.12f) < 0.015f -> "Clear" - kotlin.math.abs(previewGlassAlpha - 0.32f) < 0.015f -> "Balanced" - kotlin.math.abs(previewGlassAlpha - 0.55f) < 0.015f -> "Frosted" - else -> "Custom" - } Column( Modifier.fillMaxSize().verticalScroll(rememberScrollState()) .padding(horizontal = 18.dp).padding(bottom = 28.dp), - verticalArrangement = Arrangement.spacedBy(14.dp) + verticalArrangement = Arrangement.spacedBy(16.dp) ) { - Row(Modifier.fillMaxWidth().padding(top = 8.dp), verticalAlignment = Alignment.CenterVertically) { - IconButton(onClick = onBack) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") } + Row( + Modifier.fillMaxWidth().padding(top = 8.dp).heightIn(min = 52.dp), + verticalAlignment = Alignment.CenterVertically + ) { + IconButton(onClick = onBack) { + Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") + } Column(verticalArrangement = Arrangement.spacedBy(1.dp)) { Text("Appearance", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text("Personalise controls and reading surfaces", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) + Text( + "Personalise controls and reading surfaces", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary + ) } } - PrismalGlassSurface( - backdrop = backdrop, modifier = Modifier.fillMaxWidth(), - shape = { PrismalRoundedRectangle(26.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(11f, reduceTransparency).dp, - tint = tint, tintAlpha = GlassRenderingPolicy.tintAlpha(previewGlassAlpha, reduceTransparency) + + AppearanceGlassEditor( + backdrop = backdrop, + glassAlpha = glassAlpha, + reduceTransparency = reduceTransparency, + dark = isSystemInDarkTheme(), + onReduceTransparencyChange = onReduceTransparencyChange, + onGlassAlphaChange = onGlassAlphaChange + ) + + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { + Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { + Text("Designed for reading first", fontWeight = FontWeight.SemiBold) + Text( + "Navigation and controls borrow the glass material; article text, imagery and study data stay clear and high-contrast. Your appearance choice is saved locally on this device.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } + } + Text( + "Unsupported shader effects fall back automatically. Reduce transparency removes live blur and refraction; appearance settings use no cloud service.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.secondary + ) + } +} + +@Composable +private fun AppearanceGlassEditor( + backdrop: PrismalBackdrop, + glassAlpha: Float, + reduceTransparency: Boolean, + dark: Boolean, + onReduceTransparencyChange: (Boolean) -> Unit, + onGlassAlphaChange: (Float) -> Unit +) { + // Preview state is deliberately scoped to this child. Dragging the slider updates + // only this editor; the app-wide material preference is committed on release. + var previewGlassAlpha by remember { mutableFloatStateOf(glassAlpha) } + LaunchedEffect(glassAlpha) { previewGlassAlpha = glassAlpha } + val selectedPreset = when { + kotlin.math.abs(previewGlassAlpha - 0.12f) < 0.015f -> "Clear" + kotlin.math.abs(previewGlassAlpha - 0.32f) < 0.015f -> "Balanced" + kotlin.math.abs(previewGlassAlpha - 0.55f) < 0.015f -> "Frosted" + else -> "Custom" + } + val previewTabs = remember { + listOf( + "Today" to Icons.Outlined.Today, + "Explore" to Icons.Outlined.Explore, + "Search" to Icons.Outlined.Search, + "You" to Icons.Outlined.Person + ) + } + val applyPreset: (Float) -> Unit = { value -> + previewGlassAlpha = value + onGlassAlphaChange(value) + } + + Column(verticalArrangement = Arrangement.spacedBy(14.dp)) { + Card( + modifier = Modifier.fillMaxWidth(), + shape = RoundedCornerShape(24.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { - Column(Modifier.padding(20.dp), verticalArrangement = Arrangement.spacedBy(13.dp)) { - Text("Liquid Glass", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text("Tune the shared glass tint across navigation, controls and contextual surfaces.", - style = MaterialTheme.typography.bodyMedium, color = MaterialTheme.colorScheme.secondary) - Row(verticalAlignment = Alignment.CenterVertically) { - Text("Clear", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) + Column(Modifier.fillMaxWidth().padding(18.dp), verticalArrangement = Arrangement.spacedBy(12.dp)) { + Column(verticalArrangement = Arrangement.spacedBy(3.dp)) { + Text("Liquid Glass", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) + Text( + "Tune the shared tint used by navigation, search, filters and contextual controls.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } + Row(Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) { + Text("Clear", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) Spacer(Modifier.weight(1f)) - Text((previewGlassAlpha * 100).toInt().toString() + "%", fontWeight = FontWeight.Bold, - color = MaterialTheme.colorScheme.primary) + Text( + "${(previewGlassAlpha * 100).roundToInt()}%", + fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.primary + ) Spacer(Modifier.weight(1f)) - Text("Frosted", fontSize = 11.sp, color = MaterialTheme.colorScheme.secondary) + Text("Frosted", style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary) } Slider( value = previewGlassAlpha, onValueChange = { previewGlassAlpha = it }, onValueChangeFinished = { onGlassAlphaChange(previewGlassAlpha) }, valueRange = 0.12f..0.55f, - modifier = Modifier.fillMaxWidth() + modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp).semantics { + contentDescription = "Glass intensity from clear to frosted" + } ) + Row( + Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), + horizontalArrangement = Arrangement.spacedBy(8.dp) + ) { + FilterChip( + selected = selectedPreset == "Clear", + onClick = { applyPreset(0.12f) }, + modifier = Modifier.heightIn(min = 48.dp), + label = { Text("Clear") } + ) + FilterChip( + selected = selectedPreset == "Balanced", + onClick = { applyPreset(0.32f) }, + modifier = Modifier.heightIn(min = 48.dp), + label = { Text("Balanced") } + ) + FilterChip( + selected = selectedPreset == "Frosted", + onClick = { applyPreset(0.55f) }, + modifier = Modifier.heightIn(min = 48.dp), + label = { Text("Frosted") } + ) + } Row( Modifier.fillMaxWidth().heightIn(min = 56.dp), verticalAlignment = Alignment.CenterVertically ) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { - Text("Reduce transparency & effects", style = MaterialTheme.typography.titleSmall, - fontWeight = FontWeight.SemiBold) - Text("More opaque controls; removes blur, refraction and adaptive sampling.", + Text( + "Reduce transparency & effects", + style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.SemiBold + ) + Text( + "Raises control opacity and removes blur, refraction and adaptive sampling.", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) + color = MaterialTheme.colorScheme.onSurfaceVariant + ) } Switch( checked = reduceTransparency, @@ -4080,114 +4179,160 @@ private fun GlassSettingsScreen( } } } + Column(verticalArrangement = Arrangement.spacedBy(7.dp)) { - Text("Presets", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) - Text("Choose a starting point or fine-tune it with the slider.", - style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary) - Row(Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), - horizontalArrangement = Arrangement.spacedBy(8.dp)) { - FilterChip(selected = selectedPreset == "Clear", onClick = { previewGlassAlpha = 0.12f; onGlassAlphaChange(0.12f) }, - modifier = Modifier.heightIn(min = 48.dp), label = { Text("Clear") }) - FilterChip(selected = selectedPreset == "Balanced", onClick = { previewGlassAlpha = 0.32f; onGlassAlphaChange(0.32f) }, - modifier = Modifier.heightIn(min = 48.dp), label = { Text("Balanced") }) - FilterChip(selected = selectedPreset == "Frosted", onClick = { previewGlassAlpha = 0.55f; onGlassAlphaChange(0.55f) }, - modifier = Modifier.heightIn(min = 48.dp), label = { Text("Frosted") }) - } - } - Column(verticalArrangement = Arrangement.spacedBy(8.dp)) { Text("Live preview", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) - Text("The control material changes with the slider; the article card stays readable.", + Text( + "One shared control material responds to the slider; the article surface stays readable.", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) - PrismalGlassSurface( - backdrop = backdrop, modifier = Modifier.fillMaxWidth(), - shape = { PrismalRoundedRectangle(24.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(9f, reduceTransparency).dp, - tint = tint, tintAlpha = GlassRenderingPolicy.tintAlpha(previewGlassAlpha, reduceTransparency) + color = MaterialTheme.colorScheme.secondary + ) + // A single small Prismal surface replaces the previous two independently + // blurred panels. Search and navigation are simple tinted children, not + // nested live-glass surfaces or additional backdrop consumers. + PrismalTransientSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth(), + glassAlpha = previewGlassAlpha, + dark = dark, + cornerRadiusDp = 26f ) { - Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(11.dp)) { + Column( + Modifier.fillMaxWidth().padding(14.dp), + verticalArrangement = Arrangement.spacedBy(10.dp) + ) { Row( - Modifier.fillMaxWidth().heightIn(min = 48.dp).padding(horizontal = 4.dp), + Modifier.fillMaxWidth().heightIn(min = 42.dp).padding(horizontal = 3.dp), verticalAlignment = Alignment.CenterVertically ) { - Text("brrrNEWS", style = MaterialTheme.typography.titleSmall, - fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.onSurface) + Column(verticalArrangement = Arrangement.spacedBy(1.dp)) { + Text( + "brrrNEWS", + style = MaterialTheme.typography.titleSmall, + fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.onSurface + ) + Text( + "CURRENT AFFAIRS", + style = MaterialTheme.typography.labelSmall, + letterSpacing = 0.8.sp, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } Spacer(Modifier.weight(1f)) - Text("Today", style = MaterialTheme.typography.labelMedium, - color = MaterialTheme.colorScheme.primary) - Icon(Icons.Outlined.Search, contentDescription = "Search preview", + Text( + "TODAY", + style = MaterialTheme.typography.labelSmall, + fontWeight = FontWeight.Bold, + color = MaterialTheme.colorScheme.primary + ) + } + + val searchShape = RoundedCornerShape(16.dp) + Row( + Modifier.fillMaxWidth().heightIn(min = 44.dp) + .clip(searchShape) + .background(MaterialTheme.colorScheme.surface.copy(alpha = 0.56f)) + .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.20f), searchShape) + .padding(horizontal = 12.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Icon( + Icons.Outlined.Search, + contentDescription = null, tint = MaterialTheme.colorScheme.onSurfaceVariant, - modifier = Modifier.padding(start = 10.dp).size(20.dp)) + modifier = Modifier.size(18.dp) + ) + Spacer(Modifier.width(9.dp)) + Text( + "Search articles", + style = MaterialTheme.typography.labelMedium, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + Spacer(Modifier.weight(1f)) + Text( + "Filters", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.primary + ) } + Card( modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(18.dp), colors = CardDefaults.cardColors( - containerColor = MaterialTheme.colorScheme.surface.copy(alpha = 0.94f) + containerColor = MaterialTheme.colorScheme.surface.copy(alpha = 0.96f) ), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { Column(Modifier.padding(14.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) { Row(verticalAlignment = Alignment.CenterVertically) { - Text("THE HINDU", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold) + Text( + "THE HINDU", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.primary, + fontWeight = FontWeight.Bold + ) Spacer(Modifier.weight(1f)) - Text("GS II", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) + Text( + "GS II", + style = MaterialTheme.typography.labelSmall, + color = MaterialTheme.colorScheme.secondary + ) } - Text("How a policy decision shapes India's federal balance", + Text( + "How a policy decision shapes India's federal balance", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold, - color = MaterialTheme.colorScheme.onSurface) - Text("Publisher report · Indicative syllabus connection", + color = MaterialTheme.colorScheme.onSurface + ) + Text( + "Publisher report · GS II connection", style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary) + color = MaterialTheme.colorScheme.onSurfaceVariant + ) } } + Row( - Modifier.fillMaxWidth().heightIn(min = 48.dp), - horizontalArrangement = Arrangement.SpaceEvenly, + Modifier.fillMaxWidth().heightIn(min = 58.dp), + horizontalArrangement = Arrangement.spacedBy(3.dp), verticalAlignment = Alignment.CenterVertically ) { - listOf("Today", "Explore", "Search").forEachIndexed { index, label -> - Row( - Modifier.clip(CircleShape) + previewTabs.forEachIndexed { index, (label, icon) -> + val selected = index == 0 + Column( + Modifier.weight(1f).heightIn(min = 48.dp) + .clip(CircleShape) .background( - if (index == 0) MaterialTheme.colorScheme.primary.copy(alpha = 0.13f) - else MaterialTheme.colorScheme.surface.copy(alpha = 0.60f) + if (selected) MaterialTheme.colorScheme.primary.copy(alpha = 0.13f) + else Color.Transparent ) - .padding(horizontal = 11.dp, vertical = 8.dp), - verticalAlignment = Alignment.CenterVertically + .padding(vertical = 4.dp), + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.Center ) { - Text(label, style = MaterialTheme.typography.labelSmall, - color = if (index == 0) MaterialTheme.colorScheme.primary - else MaterialTheme.colorScheme.onSurfaceVariant) + Icon( + icon, + contentDescription = null, + tint = if (selected) MaterialTheme.colorScheme.primary + else MaterialTheme.colorScheme.onSurfaceVariant, + modifier = Modifier.size(16.dp) + ) + Text( + label, + fontSize = 9.sp, + color = if (selected) MaterialTheme.colorScheme.primary + else MaterialTheme.colorScheme.onSurfaceVariant + ) } } } } } } - Card( - modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(20.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant) - ) { - Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { - Text("Designed for reading first", fontWeight = FontWeight.SemiBold) - Text( - "The app keeps text and article imagery readable while adapting the glass treatment. Your appearance choice is saved locally on this device.", - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.onSurfaceVariant - ) - } - } - Text( - "On devices without the required graphics support, unsupported shader effects fall back automatically. No cloud service is used for appearance settings.", - style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary - ) } } - @Composable private fun QuizScreen( article: Article, diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 12f0df57..2e0c555f 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -592,3 +592,15 @@ Repository/default: Batmancpu/CurrentLens; default main at 73b8a0d1ba33503fede02 The exact PR #29 source commit a64857b5efa62ea053c0c96e5f374fd35924b340 was reviewed as a one-commit delta, not merged. Its natural PR run #212 passed the WordNet builder, :app:testDebugUnitTest, :app:assembleDebug and artifact upload; source artifact 13569115360 was 39,084,383 bytes. The integration below keeps the complete bookmark set (no cap/eviction), moves the SharedPreferences read/copy/mutation/write to Dispatchers.IO, serializes mutations with a dedicated Mutex, updates Compose bookmark state after the serialized operation, and adds pure policy tests for add/remove/blank/reversible toggles. The source branch and PR remain untouched. This change adds no glass surface, capture, sampler/readback, image decode, shader, dependency or network request; actual interaction/frame-time/battery gains are not measured. + + +## Live consolidation and CI audit — 7 November 2026, before Appearance preview batch + +- Complete remote branch enumeration: 33 branches on page 1, page 2 empty. Complete PR enumeration: 15 open and 14 closed. No branch was created or deleted during this audit. +- Owner-selected active branch remains `black-box-bihar-news` at `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` (2026-11-07 10:14:38Z, “perf(storage): move bookmark mutations off the UI thread”). Comparison: 104 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 47 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. The active head is the direct descendant of the current consolidation history; no newer relevant UI branch was found. +- The 33-branch inventory remains the table above; the only updated remote head since that table was written is PR #27's `fix/editorial-action-gate-blackbox-2026-11-07@33ee2194b51c07b7f00ef9f58b1d82444a050678` (commit “docs(editorial): document cross-topic signal false positive”, 11:00:46Z). Its compare against active is 9 ahead / 5 behind, merge base `3a08bb95b0f9a0fed8ec11dae055f0ac2817a523`; its full diff touches only UpscEngine/UpscFeedPolicy, their tests and editorial documentation. It is not a UI baseline. +- `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` remains divergent at 4 ahead / 10 behind (merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`). The shared supporting-glass implementation is already present on the active line; do not port its app-label, Gradle metadata or workflow changes. PR #24 remains based on that sibling. +- PR #29 bookmark persistence remains open on its source branch; its reviewed one-commit delta is present on active as a selective port, not a branch merge. PR #25 and #26 remain separate publisher-resource/security changes; PR #27 remains editorial-only. PR #16 remains open on main but is an ancestor; PR #19/#20/#23/#28 are closed/merged into this integration branch only. PR #18's read-only workflow design is reconciled in active. All source branches remain intact. +- Actions history: 217 runs fully paginated (100 + 100 + 17): 129 success, 54 failure, 33 cancelled and one in progress (#217 on PR #27's editorial head); no queued runs. Active-branch run #215 passed on exact SHA `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`. The build job completed WordNet generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact `13570219824`, 39,092,836 bytes, SHA-256 `80f0a63e68782348368a0455b6b51e0a5edccb4e4abf3cbc42b7ef5a363f5585`; publish job skipped. The full 202,422-character job log was inspected; only non-blocking deprecation warnings remain. +- Latest published Release remains `v0.2.0-build-116`. Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` keeps build/test read-only and isolates Release write permission to a main-push-only job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` is still push-only; no PR-to-main validation claim is made. +- No main update, merge, Release publication, workflow edit, manual dispatch/rerun, source-branch mutation or branch deletion occurred in this audit. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 82e9b66e..ab36fc5c 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,15 +1,14 @@ # Liquid Glass UI Roadmap -**Status:** Search's filter sheet and the Reader's Aa menu now use one shared, bounded Prismal transient-control material; the modal shell no longer paints an opaque Material slab. This implementation is based on the verified live integration head below; natural CI for the new child commit is pending. -**Feature branch:** `black-box-bihar-news` — the only active integration branch for this work. -**Implementation base:** `black-box-bihar-news@16eb549c3235b321ecf7ef1c5c5270817e336489`, verified immediately before editing. -**Lineage:** 102 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 45 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Latest active-branch natural validation before this batch:** [Actions run #213](https://github.com/Batmancpu/CurrentLens/actions/runs/42358399254), exact base SHA `16eb549c3235b321ecf7ef1c5c5270817e336489`; four WordNet builder tests passed, the offline database generated 151,456 unique words (50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568329178`, 39,082,053 bytes, SHA-256 `2a0af7c27ff5aff00b48c12d7659cb5b37b5103f6858ebf090be02b2cc9f0981`; Release job skipped. -**Latest overall natural run before this batch:** #213 on the active branch; #212 passed on PR #29's separate bookmark-persistence head and #211 passed on PR #27's separate editorial head. -**Actions history:** 213 runs fully paginated (100 + 100 + 13; page 4 empty): 127 success, 54 failure, 32 cancelled; no queued/in-progress runs. -**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` uses read-only build/test permissions, PR triggers for main/PR #16/black-box, and a separate main-push-only Release job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with broader write permissions. Latest published Release remains `v0.2.0-build-116`; no Release was published by feature-branch runs. -**Branch graph:** 33 remote branches; 15 open PRs and 14 closed PRs. The complete live inventory and branch dispositions are recorded in `docs/BRANCH_CONSOLIDATION.md` §12. -**Safety / device status:** no main change, package/app identity change, workflow change, manual dispatch/rerun, Release publication, PR merge, source-branch write or branch deletion. OPPO Reno10 launch, screenshots, visual motion, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. +**Status:** Reader auto-hide, Search clear, feed-only compact navigation, shared filter groups, supporting dashboard/stat surfaces, Quiz chrome and transient Search/Reader controls are integrated. This Appearance pass consolidates the settings preview to one shared low-cost Prismal surface; natural CI for the new child commit is pending. +**Feature branch:** `black-box-bihar-news` — the sole active consolidation/UI branch. +**Implementation base:** `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` (2026-11-07 10:14:38Z); direct child only. +**Lineage:** 104 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 47 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Latest validated active-branch run before this batch:** [Actions run #215](https://github.com/Batmancpu/CurrentLens/actions/runs/42363124469), exact SHA `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`, success. WordNet builder tests and offline database generation passed (151,456 unique words); `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13570219824`, 39,092,836 bytes, SHA-256 `80f0a63e68782348368a0455b6b51e0a5edccb4e4abf3cbc42b7ef5a363f5585`, expires 21 Nov 2026 10:16:10Z. Publish job skipped. +**Actions history:** 217 runs fully paginated (100 + 100 + 17): 129 success, 54 failure, 33 cancelled, 1 in progress. Latest run #217 is on PR #27's editorial-only head `33ee2194b51c07b7f00ef9f58b1d82444a050678`; it does not validate this UI branch. No queued runs. +**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test, natural push/PR triggers and a separate main-push Release-write job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only; a future PR to main cannot be called PR-CI-validated until its base workflow changes. Latest published Release remains `v0.2.0-build-116`; no Release was published. +**Branch graph:** 33 remote branches, 15 open PRs and 14 closed PRs; full inventory is in `docs/BRANCH_CONSOLIDATION.md`. PR #27's latest head changed to `33ee2194b51c07b7f00ef9f58b1d82444a050678` and remains editorial-only. PR #29's bookmark-I/O delta is represented by a reviewed selective port on this branch; source branches remain intact. +**Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch write or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -86,7 +85,7 @@ Recheck every branch head and dependency before each future implementation commi | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | | Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Continuous-corner content cards, >=48dp option targets and selected semantics; no live blur; submit-only persistence unchanged | | Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | -| Appearance settings | Interactive control glass | Clear↔Frosted slider, presets, live header/navigation/article preview and low-effects switch | Preview and reduced-transparency mode integrated; slider changes apply to shared material policy; device validation pending | +| Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | Controls stay on a calm standard card; one shared 5dp Prismal preview shows header/search/four-tab navigation; slider state is child-scoped and commits app-wide only on release; device validation pending | | Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | | Reader Aa menu | Interactive transient glass | Compact anchored text-size menu; preserve the existing 16–28sp actions and clamping | Same shared transient material, mounted only while expanded; font-size behaviour unchanged | | Other dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | @@ -108,7 +107,7 @@ Recheck every branch head and dependency before each future implementation commi | Search filter sheet / Reader Aa menu | One 5dp-blur, low-refraction transient surface while open | Shared `PrismalTransientSurface` consumes the existing background-only root backdrop; no extra capture/readback, no per-chip/item blur, and the two screens cannot show these surfaces together | `GlassRenderingPolicy` removes live optics for Reduce Transparency; policy constants covered by `GlassSurfacePolicyTest`; frame/GPU/memory/battery cost unmeasured | | You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | | Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | -| Appearance preview | Existing small preview surfaces | Reuse current slider value and existing components; no whole-screen blur or repeated image decode | Reduced-transparency/low-effects preference is integrated; OPPO rendering and slider-response measurements remain unverified | +| Appearance preview | One 5dp-blur / low-refraction `PrismalTransientSurface`; controls card and article sample are non-blurred | Reuse the root background-only backdrop and existing transient material tokens; remove the former second live-glass preview panel; slider state remains local until release/preset selection; no image decode or root-state update per drag tick | `GlassSurfacePolicyTest` bounds the transient tier and `GlassRenderingPolicyTest` covers zero-optics fallback; OPPO rendering, frame timing, memory, thermal and battery remain unverified | | Quiz chrome | Two small Prismal control surfaces (header + bottom dock) | Reuse the one background-only root source; 7–8dp bounded blur/refraction; no per-question glass, new capture or readback | Reduce Transparency uses GlassRenderingPolicy; 48dp actions and safe-area padding; device frame/GPU/battery cost unmeasured | ## Implemented batch — Reader toolbar and completion @@ -299,3 +298,22 @@ Source / integration lineage: active branch was rechecked at black-box-bihar-new - Unverified: OPPO Reno10 tap latency, rapid repeated bookmark toggles, lifecycle cancellation, TalkBack feedback, memory/allocation, frame timing, battery and thermal behaviour. CI does not establish device performance. Next: after natural CI validates this exact head, perform the Appearance preview cost pass and whole-app visual consistency audit; retain the rule that only one preview glass surface is live at a time and that slider drag changes local preview state rather than rebuilding the root backdrop. + + +## Appearance preview single-surface batch — 7 November 2026 + +**Source and branch freshness:** `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`, 104 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and 47 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. This is the owner-selected coherent integration line; no newer relevant UI branch supersedes it. The complete live inventory still has 33 branches. `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` remains divergent (4 ahead / 10 behind; merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`); its supporting-glass implementation is already represented, while its branding/workflow changes are not adopted. PR #27 now points to `33ee2194b51c07b7f00ef9f58b1d82444a050678` (9 ahead / 5 behind this branch, merge base `3a08bb95b0f9a0fed8ec11dae055f0ac2817a523`); its complete diff is confined to `UpscEngine.kt`, `UpscFeedPolicy.kt`, policy tests and editorial documentation, so it is not a UI baseline. PR #29 remains open on its original source branch; its one-commit bookmark-I/O delta was selectively ported and validated here without merging or modifying the source branch. PR #25/#26 remain separate publisher-resource/security work; PR #24 targets divergent `brrrNEWS`; PR #18 workflow intent, PR #19 Reader UI, PR #20 stacked CI, PR #23 editorial gate and PR #28 quiz compile repair are represented in this integration line. Other source branches remain untouched. No branches were deleted. + +**Implementation:** +- Replaced the two simultaneously live `PrismalGlassSurface` panels on Appearance with one shared `PrismalTransientSurface`. It reuses the existing background-only root backdrop and the shared 5dp blur / 2.5dp refraction-height / 3.5dp refraction-amount / 0.42 tint-scale policy; the maximum preview tint remains bounded by the wrapper's 0.22 clamp. +- Moved the intensity slider, Clear/Balanced/Frosted presets and Reduce Transparency switch onto one ordinary Material settings card. The preview now shows the shared header, a lightly tinted Search/Filters control, a high-contrast article sample and all four primary destinations (Today, Explore, Search, You). The article sample and inner preview controls are not separate live-glass surfaces. +- Extracted `AppearanceGlassEditor` so slider drag updates only its local preview state; the persisted app-wide `glassAlpha` callback runs on drag completion or preset selection, not on every slider tick. The existing local preference, preset values, Reduce Transparency behaviour and four-destination navigation are unchanged. +- The Appearance screen remains excluded from adaptive luminance sampling by the existing `settingsOpen` activation gate. Reduce Transparency continues to remove blur/refraction/depth and raise the tint reserve through the shared policy. + +**Paired rendering/performance strategy:** live preview surfaces reduced from two to one; the sole live surface is the existing bounded transient-control tier. No new backdrop capture, sampler/readback, graphics layer, shader, timer, image decode, network request, dependency or persistence format was added. The standard settings/article cards use no live blur. This is a source-level reduction in simultaneously active preview effects, not a measured GPU, frame-time, memory, battery or thermal improvement. + +**Tests / verification:** no new policy was required; the implementation reuses existing `GlassSurfacePolicyTest` bounds for the transient tier and `GlassRenderingPolicyTest` coverage for zero-optics/reduced-transparency fallback. Natural CI must run the full `:app:testDebugUnitTest` suite and `:app:assembleDebug` on the new exact child commit. Parent run #215 validates only `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`. No manual dispatch/rerun or Release publication is permitted. + +**Unverified:** OPPO Reno10 screenshots, actual slider-response smoothness, sheet/preview insets, TalkBack, font scaling, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery. No physical-device performance claim is made. + +**Next:** after the exact new head's natural CI completes, perform the remaining whole-app visual/performance audit (especially dashboard/stat geometry, supporting-glass contrast over light/dark backdrops and transient-control consistency); keep device checks explicitly unverified until real OPPO evidence exists. From d75723dd6368262c311b13912caf21a07804150a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 17:31:00 +0530 Subject: [PATCH 103/175] perf(startup): restore appearance preferences on IO --- .../AppearancePreferencesPolicy.kt | 23 ++++++ .../com/mangoloads/currentlens/LocalStore.kt | 27 ++++--- .../mangoloads/currentlens/MainActivity.kt | 10 ++- .../AppearancePreferencesPolicyTest.kt | 35 +++++++++ docs/BRANCH_CONSOLIDATION.md | 71 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 51 ++++++++++--- 6 files changed, 195 insertions(+), 22 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/AppearancePreferencesPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/AppearancePreferencesPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/AppearancePreferencesPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/AppearancePreferencesPolicy.kt new file mode 100644 index 00000000..e0ba0e7c --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/AppearancePreferencesPolicy.kt @@ -0,0 +1,23 @@ +package com.mangoloads.currentlens + +internal data class LocalAppearancePreferences( + val glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + val reduceTransparency: Boolean = false +) + +/** Pure normalization for the two small appearance values restored with local app state. */ +internal object AppearancePreferencesPolicy { + const val DEFAULT_GLASS_ALPHA = 0.28f + const val MIN_GLASS_ALPHA = 0.12f + const val MAX_GLASS_ALPHA = 0.55f + + fun normalizeGlassAlpha(value: Float): Float = + if (value.isFinite()) value.coerceIn(MIN_GLASS_ALPHA, MAX_GLASS_ALPHA) + else DEFAULT_GLASS_ALPHA + + fun create(glassAlpha: Float, reduceTransparency: Boolean): LocalAppearancePreferences = + LocalAppearancePreferences( + glassAlpha = normalizeGlassAlpha(glassAlpha), + reduceTransparency = reduceTransparency + ) +} diff --git a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt index a2edd591..45d7f251 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LocalStore.kt @@ -22,7 +22,7 @@ object LocalStore { private const val REDUCE_TRANSPARENCY = "glass_reduce_transparency" private const val MAX_CACHED_ARTICLES = 500 private const val CACHE_DAYS = 30 - private const val DEFAULT_GLASS_ALPHA = 0.28f + private const val DEFAULT_GLASS_ALPHA = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA private const val READING_SESSIONS = "reading_sessions" private const val READER_POSITIONS = "reader_positions" private const val QUIZ_ATTEMPTS = "quiz_attempts" @@ -524,22 +524,27 @@ object LocalStore { return attempt } - fun glassAlpha(context: Context): Float = + fun glassAlpha(context: Context): Float = appearancePreferences(context).glassAlpha + + /** + * Read both appearance preferences together. The first SharedPreferences access also + * loads the entire local XML file, so callers should use this from the startup IO restore. + */ + internal fun appearancePreferences(context: Context): LocalAppearancePreferences = runCatching { - context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - .getFloat(GLASS_ALPHA, DEFAULT_GLASS_ALPHA).coerceIn(0.12f, 0.55f) - }.getOrDefault(DEFAULT_GLASS_ALPHA) + val preferences = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) + AppearancePreferencesPolicy.create( + glassAlpha = preferences.getFloat(GLASS_ALPHA, DEFAULT_GLASS_ALPHA), + reduceTransparency = preferences.getBoolean(REDUCE_TRANSPARENCY, false) + ) + }.getOrDefault(LocalAppearancePreferences()) fun saveGlassAlpha(context: Context, value: Float) { context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - .edit().putFloat(GLASS_ALPHA, value.coerceIn(0.12f, 0.55f)).apply() + .edit().putFloat(GLASS_ALPHA, AppearancePreferencesPolicy.normalizeGlassAlpha(value)).apply() } - fun reduceTransparency(context: Context): Boolean = - runCatching { - context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) - .getBoolean(REDUCE_TRANSPARENCY, false) - }.getOrDefault(false) + fun reduceTransparency(context: Context): Boolean = appearancePreferences(context).reduceTransparency fun saveReduceTransparency(context: Context, enabled: Boolean) { context.getSharedPreferences(PREFS, Context.MODE_PRIVATE) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a2b10f33..a233c08e 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -420,6 +420,7 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { private enum class YouPage { DASHBOARD, SAVED, READING_STATS, QUIZ_STATS } private data class LocalAppSnapshot( + val appearance: LocalAppearancePreferences, val articles: List
, val bookmarks: Set, val readHistory: Set, @@ -455,8 +456,10 @@ private fun BrrrNewsApp() { var selectedArticle by remember { mutableStateOf(null) } var quizMode by remember { mutableStateOf(false) } var showSettings by remember { mutableStateOf(false) } - var glassAlpha by remember { mutableFloatStateOf(LocalStore.glassAlpha(context)) } - var reduceTransparency by remember { mutableStateOf(LocalStore.reduceTransparency(context)) } + // Do not make SharedPreferences' first (whole-file) load on the Compose/UI thread. + // The persisted values are restored with the rest of LocalAppSnapshot on Dispatchers.IO. + var glassAlpha by remember { mutableFloatStateOf(AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA) } + var reduceTransparency by remember { mutableStateOf(false) } var searchQuery by remember { mutableStateOf("") } var searchExpanded by remember { mutableStateOf(false) } var searchCollapseRequested by remember { mutableStateOf(false) } @@ -596,6 +599,7 @@ private fun BrrrNewsApp() { LaunchedEffect(context) { val restored = withContext(Dispatchers.IO) { LocalAppSnapshot( + appearance = LocalStore.appearancePreferences(context), articles = LocalStore.cachedArticles(context), bookmarks = LocalStore.bookmarks(context), readHistory = LocalStore.readHistory(context), @@ -603,6 +607,8 @@ private fun BrrrNewsApp() { quizAttempts = LocalStore.quizAttempts(context) ) } + glassAlpha = restored.appearance.glassAlpha + reduceTransparency = restored.appearance.reduceTransparency articles = restored.articles bookmarks = restored.bookmarks readHistory = restored.readHistory diff --git a/app/src/test/java/com/mangoloads/currentlens/AppearancePreferencesPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/AppearancePreferencesPolicyTest.kt new file mode 100644 index 00000000..0c630e45 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/AppearancePreferencesPolicyTest.kt @@ -0,0 +1,35 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class AppearancePreferencesPolicyTest { + @Test + fun restoresGlassAlphaWithinTheSupportedRange() { + assertEquals(0.12f, AppearancePreferencesPolicy.normalizeGlassAlpha(0.01f), 0.0001f) + assertEquals(0.55f, AppearancePreferencesPolicy.normalizeGlassAlpha(0.9f), 0.0001f) + assertEquals(0.34f, AppearancePreferencesPolicy.normalizeGlassAlpha(0.34f), 0.0001f) + } + + @Test + fun invalidGlassAlphaFallsBackToTheDefault() { + assertEquals( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + AppearancePreferencesPolicy.normalizeGlassAlpha(Float.NaN), + 0.0001f + ) + assertEquals( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + AppearancePreferencesPolicy.normalizeGlassAlpha(Float.POSITIVE_INFINITY), + 0.0001f + ) + } + + @Test + fun appearanceSnapshotPreservesReduceTransparency() { + assertTrue(AppearancePreferencesPolicy.create(0.3f, true).reduceTransparency) + assertFalse(AppearancePreferencesPolicy.create(0.3f, false).reduceTransparency) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 2e0c555f..ecd7e027 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -604,3 +604,74 @@ The exact PR #29 source commit a64857b5efa62ea053c0c96e5f374fd35924b340 was revi - Actions history: 217 runs fully paginated (100 + 100 + 17): 129 success, 54 failure, 33 cancelled and one in progress (#217 on PR #27's editorial head); no queued runs. Active-branch run #215 passed on exact SHA `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`. The build job completed WordNet generation (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact `13570219824`, 39,092,836 bytes, SHA-256 `80f0a63e68782348368a0455b6b51e0a5edccb4e4abf3cbc42b7ef5a363f5585`; publish job skipped. The full 202,422-character job log was inspected; only non-blocking deprecation warnings remain. - Latest published Release remains `v0.2.0-build-116`. Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` keeps build/test read-only and isolates Release write permission to a main-push-only job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` is still push-only; no PR-to-main validation claim is made. - No main update, merge, Release publication, workflow edit, manual dispatch/rerun, source-branch mutation or branch deletion occurred in this audit. + + +## Live branch, PR and CI audit — 7 November 2026, 17:27 IST + +Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The full remote branch endpoint returned **36 branches** on page 1 and 0 on page 2. Pull requests: **18 open** and **14 closed**. The complete branch-head inventory is recorded below; no branch was created or deleted in this audit. + +### Authoritative integration baseline + +- Owner-selected integration remains `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df`, latest commit 2026-11-07 11:03:39Z, “ui: consolidate Appearance preview into one Prismal surface”. GitHub compare: **105 ahead / 0 behind main**, merge base exactly main; **48 ahead / 0 behind PR #16** at `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #16's corrected background-only Prismal/stability work is an ancestor. The active branch remains the only coherent owner-selected integration baseline; newer child branches are selective-port candidates, not replacement baselines. +- PR #31 `perf/off-main-appearance-preferences-2026-11-07@bc48daec98ff076c9db3c2c69084d9b08cd0bbce` is **5 ahead / 0 behind** active, merge base exactly active. Its 5-commit diff touches only `AppearancePreferencesPolicy.kt`, `LocalStore.kt`, `MainActivity.kt` and the policy test; this exact delta is selectively ported by the current commit. PR #31 remains open and its source branch is untouched. +- PR #32 `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c83cc69451f128aa259df86a8ce28f43a` is **2 ahead / 0 behind** active. It bounds simultaneous RSS fetch/parse work to four; separate non-UI performance batch, not included in this commit. +- PR #30 `a11y/48dp-icon-targets-2026-11-07@25107ce905b70bde1a41282ffd1d606819ebf58d` is **3 ahead / 1 behind** active, merge base `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`. Its three-file delta changes two icon actions plus a pure 48dp policy/test; it must be reapplied against current MainActivity rather than fast-forwarding its older branch. Natural run #218 passed its exact source head. +- PR #27 is **23 ahead / 6 behind** active (merge base `3a08bb95b0f9a0fed8ec11dae055f0ac2817a523`), editorial-only; run #233 passed its own head, not the current base. Reconcile and retest before any port. +- PR #26 is **1 ahead / 6 behind** active (same merge base `3a08bb95...`); its WebView `shouldInterceptRequest` guard covers initial subresource URLs but explicitly does not cover redirect hops. Do not claim complete subresource isolation or port without a redirect-aware security review. +- PR #25 is **7 ahead / 7 behind** active (merge base `2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0`); publisher image host restrictions touch `ArticleReaderRepository`, `NewsRepository` and `MainActivity`. Keep separate until source-host coverage, redirect and cache compatibility are reviewed together. +- PR #29 is **1 ahead / 4 behind** active (merge base `6f9b3c1e1a484233721863d0b736734c0d282cd5`); its bookmark IO/mutex/preservation behaviour is already represented by a reviewed selective port on active. +- PR #24 is **9 ahead / 11 behind** active (merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`) and targets divergent `brrrNEWS`; separate editorial-policy work. +- PR #22 is **9 ahead / 118 behind** active and is based on PR #8; only new ordered read markers are bounded, while old unordered legacy markers remain preserved. PR #21 (#11 ahead / 105 behind) is editorial-only and selected bill/heat-wave signals are already represented. PR #18 workflow intent, PR #17 URL-identity/deduplication, PR #11 cache/date/provenance, PR #12 Atom alternate links, PR #8 off-main session persistence and PR #6 selected GS I Geography work are already selectively represented on active. +- PR #13's faster 1.5s/2.5s luminance cadence is not copied; active retains one shared 8×8 probe at 4s Android 12+ / 6s older, paused during feed scrolling and outside foreground home. `brrrNEWS` is divergent (**4 ahead / 11 behind**, merge base `e411c394...`); its app/build/workflow differences make it unsuitable as baseline. Old `ui/liquid-glass-performance` is **3 ahead / 123 behind**, `ui/liquid-glass-system-continuation` is **21 behind**, and `redesign/v0.3-search-reader` is **199 behind**; none supersedes active. PR #15's redirect policy is superseded by newer active redirect guards. + +### Complete remote branch-head inventory + +| Branch | Head SHA | Latest commit (UTC) | Latest message | Open PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | open PR #30 head | +| `black-box-bihar-news` | `ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07 11:03:39 | ui: consolidate Appearance preview into one Prismal surface | active; base of open #11, #25–#27, #29–#32 | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | open PR #24 base; divergent sibling | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | open PR #18 head | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | PR #20 merged into active only; source retained | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | PR #14 closed unmerged; same head as main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | open PR #6 head | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | open PR #12 head; policy selectively represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | open PR #11 head; selected policies represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | open PR #16 head; active is 48 commits ahead | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `4ee9233e6a18c26163b69a6b40ac8d8b99b1fae9` | 2026-11-07 11:19:28 | docs(editorial): format specific-signal recovery fixtures as a table | open PR #27 head | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | open PR #21 head; selected signals already represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | open PR #24 head; based on brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | PR #2 merged | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | PR #1 merged | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | PR #5 merged | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | PR #23 merged into active only; source retained | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; superseded by newer guards | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | PR #28 merged into active only; source retained | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | open PR #25 head | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | open PR #17 head; policy represented | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | PR #10 merged | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | PR #7 merged | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | open PR #22 head; based on PR #8 | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 | docs: record bounded RSS fetch review and CI state | open PR #32 head; 2 commits ahead of active | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 | fix(startup): keep appearance snapshot API module-internal | open PR #31 head; 5 commits ahead of active | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | open PR #29 head; selective port already present | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | open PR #8 head; policy selectively represented | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | open PR #26 head | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | stale; 199 commits behind active | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | open PR #13 head; faster cadence rejected | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | PR #4 closed unmerged; 3 ahead / 123 behind active | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | PR #19 merged into active only; source retained | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | stale checkpoint; 21 commits behind active | + +### Natural Actions verification and workflow state + +- Actions history was fully paginated: **235 runs** (100 + 100 + 35): 136 success, 58 failure, 41 cancelled; no queued, requested, waiting or in-progress runs. +- Latest overall run #235 / ID `42368389290` passed on PR #32's exact head `8c56c98c83cc69451f128aa259df86a8ce28f43a`. Build job `128391285625`: checkout, Java, signing-key cache, Android SDK/platform, Gradle, WordNet builder, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded; Release job skipped. Artifact `13572319837`, 39,096,771 bytes, SHA-256 `d8e328e3e31a8160eb8d0949d4abcfb8efb79de162a13b04bf027f6ec8fd8888`, expires 21 Nov 2026 11:31:55Z. +- Exact active predecessor run #219 / ID `42366560250` passed on `ee82dfde140aeb0d1ca80146379a0a2818c695df`; build job `128385741444` completed all steps, generated 151,456 WordNet words (50,950,144 bytes), passed JVM tests and assembled/uploaded the APK. Artifact `13572515005`, 39,095,662 bytes, SHA-256 `4982f5c20478479e41fdb957571c9d7cea6a6edac25e3e1bd4702aedbbe9db05`. Release job skipped. +- PR #31 exact source run #227 / ID `42367156421` passed on `bc48daec98ff076c9db3c2c69084d9b08cd0bbce`; build job `128387512638` passed all steps. Artifact `13571813251`, 39,096,319 bytes, SHA-256 `4ef3cb151f40045128b16b7a47a19dcdb1decc9674eabbf9a66929d37dd15497`. +- PR #30 exact source run #218 / ID `42366460318` passed on `25107ce905b70bde1a41282ffd1d606819ebf58d`; artifact `13572141319`, 39,093,083 bytes, SHA-256 `2f4347920f6395c829c58fd9acb263fc990ec7b8162e6917593f24f0f1ca1fdd`. +- Full decoded logs were inspected for #219, #227, #218 and #235 (1515, 1531, 1535 and 1534 lines respectively). Each build log ends with `BUILD SUCCESSFUL`; only non-blocking Node.js 20/action-runtime, `punycode` and `url.parse()` deprecation warnings were found. The source runs validate their exact source heads only; the new active commit must receive its own natural run. +- Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66`: read-only build/test, push and pull_request triggers for main/PR #16/black-box, isolated main-push-only Release write. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902`: push-only and workflow-wide `contents: write`; no PR-to-main validation claim. Latest published Release remains `v0.2.0-build-116`. +- No main write, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion occurred. OPPO device launch/visual/accessibility/performance, Perfetto, GPU, memory, thermal and battery remain **UNVERIFIED**. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index ab36fc5c..0d521078 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,14 +1,15 @@ # Liquid Glass UI Roadmap -**Status:** Reader auto-hide, Search clear, feed-only compact navigation, shared filter groups, supporting dashboard/stat surfaces, Quiz chrome and transient Search/Reader controls are integrated. This Appearance pass consolidates the settings preview to one shared low-cost Prismal surface; natural CI for the new child commit is pending. -**Feature branch:** `black-box-bihar-news` — the sole active consolidation/UI branch. -**Implementation base:** `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` (2026-11-07 10:14:38Z); direct child only. -**Lineage:** 104 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; 47 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Latest validated active-branch run before this batch:** [Actions run #215](https://github.com/Batmancpu/CurrentLens/actions/runs/42363124469), exact SHA `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`, success. WordNet builder tests and offline database generation passed (151,456 unique words); `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Artifact `13570219824`, 39,092,836 bytes, SHA-256 `80f0a63e68782348368a0455b6b51e0a5edccb4e4abf3cbc42b7ef5a363f5585`, expires 21 Nov 2026 10:16:10Z. Publish job skipped. -**Actions history:** 217 runs fully paginated (100 + 100 + 17): 129 success, 54 failure, 33 cancelled, 1 in progress. Latest run #217 is on PR #27's editorial-only head `33ee2194b51c07b7f00ef9f58b1d82444a050678`; it does not validate this UI branch. No queued runs. -**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test, natural push/PR triggers and a separate main-push Release-write job. Main's workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only; a future PR to main cannot be called PR-CI-validated until its base workflow changes. Latest published Release remains `v0.2.0-build-116`; no Release was published. -**Branch graph:** 33 remote branches, 15 open PRs and 14 closed PRs; full inventory is in `docs/BRANCH_CONSOLIDATION.md`. PR #27's latest head changed to `33ee2194b51c07b7f00ef9f58b1d82444a050678` and remains editorial-only. PR #29's bookmark-I/O delta is represented by a reviewed selective port on this branch; source branches remain intact. -**Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch write or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. +**Status:** The shared Prismal system now covers the primary shell, Reader chrome/auto-hide, Search clear and filters, feed-only compact navigation, You/Saved/stat controls, Quiz chrome and the Appearance preview. This batch selectively ports the startup Appearance preference restore to IO; the new consolidation head is awaiting its own natural CI run. +**Feature branch:** `black-box-bihar-news` — the sole active integration/UI branch. +**Current verified source:** `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` (2026-11-07 11:03:39Z); 105 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, and 48 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Selective-port source:** PR #31 head `bc48daec98ff076c9db3c2c69084d9b08cd0bbce`, exactly 5 commits ahead / 0 behind the active head; its complete code diff is limited to `MainActivity.kt`, `LocalStore.kt`, `AppearancePreferencesPolicy.kt` and its JVM test. The changes are copied as a focused integration commit; PR #31 and its source branch remain open and untouched. +**Previous exact active-branch validation:** [Actions run #219](https://github.com/Batmancpu/CurrentLens/actions/runs/42366560250), exact SHA `ee82dfde140aeb0d1ca80146379a0a2818c695df`, success. WordNet builder tests passed and generated 151,456 unique words (50,950,144 bytes); `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13572515005`, 39,095,662 bytes, SHA-256 `4982f5c20478479e41fdb957571c9d7cea6a6edac25e3e1bd4702aedbbe9db05`, expires 21 Nov 2026 11:05:53Z. Publish job skipped. +**Latest overall natural run:** #235 is a successful PR #32 run on `8c56c98c83cc69451f128aa259df86a8ce28f43a`; it does not validate the active branch. PR #31's exact source head passed run #227; PR #30's exact source head passed run #218. +**Actions history:** 235 runs fully paginated (100 + 100 + 35): 136 success, 58 failure, 41 cancelled; no queued or in-progress runs. +**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` uses read-only build/test permissions, natural push/PR validation and a separate main-push-only Release-write job. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with workflow-wide `contents: write`; a future PR to main is not yet validated by main's base workflow. Latest published Release remains `v0.2.0-build-116`; no Release was created. +**Branch graph:** 36 remote branches, 18 open PRs and 14 closed PRs. The complete live head/timestamp/message/PR map and comparison dispositions are appended to `docs/BRANCH_CONSOLIDATION.md`. The active head is the newest coherent owner-selected integration line; newer child PR heads are treated as selective-port candidates, not replacement baselines. +**Safety / device status:** no main change, package/app identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -317,3 +318,35 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified:** OPPO Reno10 screenshots, actual slider-response smoothness, sheet/preview insets, TalkBack, font scaling, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery. No physical-device performance claim is made. **Next:** after the exact new head's natural CI completes, perform the remaining whole-app visual/performance audit (especially dashboard/stat geometry, supporting-glass contrast over light/dark backdrops and transient-control consistency); keep device checks explicitly unverified until real OPPO evidence exists. + + +## Startup Appearance preference restore on IO — 7 November 2026, 17:27 IST + +**Freshness and source review** +- Rechecked all 36 remote branch heads, all 18 open and 14 closed PRs, current workflow and complete Actions history immediately before the port. +- Integration source is `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df`; it is 105 ahead / 0 behind main and 48 ahead / 0 behind PR #16. PR #31 is a direct descendant (5 ahead / 0 behind, merge base exactly `ee82dfde140aeb0d1ca80146379a0a2818c695df`), so its narrow code delta is compatible with the active architecture. No older UI branch was selected. +- PR #31's five-commit sequence was reviewed; the final diff touches only the four code/test files copied below. Its source branch and open draft PR remain unchanged. + +**Implementation** +- Removed the first `LocalStore.glassAlpha(context)` and `LocalStore.reduceTransparency(context)` reads from Compose state initializers. `BrrrNewsApp` now starts with the existing default material values and restores persisted appearance alongside the existing `LocalAppSnapshot` inside its established `Dispatchers.IO` block. +- Added `LocalAppearancePreferences` / `AppearancePreferencesPolicy`; both settings are read from one SharedPreferences handle, glass alpha is normalized to the supported finite 0.12–0.55 range, and invalid values fall back to 0.28. +- `LocalStore.glassAlpha` and `reduceTransparency` delegate to the shared snapshot; save operations use the same normalization policy. No preference key, data format or user setting was changed. +- The restored appearance values are assigned before `localStateLoaded` becomes true, alongside the other local collections. Source scan of the active `MainActivity.kt` found no remaining direct call sites to the two synchronous appearance getters. + +**Paired performance and rendering strategy** +- The first SharedPreferences XML load now occurs in the existing IO restore rather than on the Compose/UI thread; it is not duplicated in a second coroutine or extra startup task. +- No Prismal surface, blur/refraction pass, backdrop capture, sampler/readback, image decode, graphics layer, shader, timer, dependency, network request or persistence format was added. The current single background-only backdrop and Appearance one-surface preview remain unchanged. +- **Visual trade-off to verify:** until the IO snapshot returns, the first composed frame uses the default 0.28 glass alpha and Reduce Transparency off. A user with custom settings may see a one-time material adjustment after restore; no device screenshot is available to establish whether it is perceptible. + +**Tests and CI evidence** +- Added pure JVM normalization/snapshot tests for lower/upper bounds, finite values, NaN/positive infinity fallback and Reduce Transparency preservation. +- PR #31's exact source head passed natural run [#227](https://github.com/Batmancpu/CurrentLens/actions/runs/42367156421): WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded. Source artifact `13571813251`, 39,096,319 bytes, SHA-256 `4ef3cb151f40045128b16b7a47a19dcdb1decc9674eabbf9a66929d37dd15497`. +- The active parent passed run [#219](https://github.com/Batmancpu/CurrentLens/actions/runs/42366560250), but neither run validates this new consolidated commit. Await the new head's natural push run; no manual dispatch/rerun. +- Current full Actions inventory: 235 runs (136 success, 58 failure, 41 cancelled), no active/queued jobs. Latest overall run #235 passes on PR #32's separate RSS-concurrency head. Latest published Release is still `v0.2.0-build-116`. + +**Risks / unverified** +- OPPO Reno10 cold-start timing, first-frame preference transition, visual continuity, memory/allocation, Perfetto/frame timing, GPU overdraw, thermal and battery remain **UNVERIFIED**. Moving the read off main is a code-path correction, not a measured startup or battery improvement. +- Main's workflow remains push-only; no PR-to-main validation is claimed. No Release publication, merge, main write, branch deletion or source-branch mutation occurred. + +**Next** +- Verify the natural CI run on the exact new `black-box-bihar-news` head before another implementation batch. Next safe candidates are the narrowly scoped 48dp icon-target policy from PR #30 (3 ahead / 1 behind the active line; reapply against current code rather than fast-forward) and PR #32's bounded RSS concurrency policy (2 ahead / 0 behind; separate performance batch). Keep publisher asset/subresource proposals (#25/#26) out until their shared-host and redirect boundaries receive a full security review. From 48b54808807f5b15e637b6177524fd923741e1f7 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 19:33:38 +0530 Subject: [PATCH 104/175] a11y: enforce 48dp icon action targets --- .../mangoloads/currentlens/MainActivity.kt | 6 ++-- .../currentlens/TouchTargetPolicy.kt | 9 ++++++ .../currentlens/TouchTargetPolicyTest.kt | 19 +++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 28 +++++++++++++++++++ 4 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/TouchTargetPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/TouchTargetPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a233c08e..12f40448 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1116,7 +1116,7 @@ private fun HomeGlassHeader( ) { Row(Modifier.fillMaxWidth().padding(start = 14.dp, end = 8.dp, top = 8.dp, bottom = 8.dp), verticalAlignment = Alignment.CenterVertically) { - if (showBack) IconButton(onClick = onBack, modifier = Modifier.size(44.dp)) { + if (showBack) IconButton(onClick = onBack, modifier = Modifier.size(TouchTargetPolicy.iconTargetDp(44).dp)) { Icon(Icons.Outlined.ArrowBack, contentDescription = "Back to You", modifier = Modifier.size(23.dp)) } Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(1.dp)) { @@ -1125,7 +1125,7 @@ private fun HomeGlassHeader( Text(subtitle, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant) } - if (showRefresh) IconButton(onClick = onRefresh, enabled = !refreshing, modifier = Modifier.size(46.dp)) { + if (showRefresh) IconButton(onClick = onRefresh, enabled = !refreshing, modifier = Modifier.size(TouchTargetPolicy.iconTargetDp(46).dp)) { Icon(Icons.Outlined.Refresh, contentDescription = "Refresh news", modifier = Modifier.size(25.dp)) } } @@ -2323,7 +2323,7 @@ private fun NewsCard( Text(" · " + article.section, color = MaterialTheme.colorScheme.secondary, fontSize = 11.sp, maxLines = 1, overflow = TextOverflow.Ellipsis) Spacer(Modifier.weight(1f)) - IconButton(onClick = { onToggleBookmark(article) }, modifier = Modifier.size(40.dp)) { + IconButton(onClick = { onToggleBookmark(article) }, modifier = Modifier.size(TouchTargetPolicy.iconTargetDp(40).dp)) { Icon(if (saved) Icons.Outlined.Bookmark else Icons.Outlined.BookmarkBorder, contentDescription = if (saved) "Remove bookmark" else "Save article", tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(21.dp)) diff --git a/app/src/main/java/com/mangoloads/currentlens/TouchTargetPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/TouchTargetPolicy.kt new file mode 100644 index 00000000..0b53d50a --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/TouchTargetPolicy.kt @@ -0,0 +1,9 @@ +package com.mangoloads.currentlens + +/** Minimum layout target for icon-only actions that must remain easy to activate. */ +internal object TouchTargetPolicy { + const val MIN_ICON_TARGET_DP = 48 + + fun iconTargetDp(requestedDp: Int): Int = + requestedDp.coerceAtLeast(MIN_ICON_TARGET_DP) +} diff --git a/app/src/test/java/com/mangoloads/currentlens/TouchTargetPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/TouchTargetPolicyTest.kt new file mode 100644 index 00000000..34f5860b --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/TouchTargetPolicyTest.kt @@ -0,0 +1,19 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class TouchTargetPolicyTest { + @Test + fun undersizedIconActionsAreRaisedToFortyEightDp() { + assertEquals(48, TouchTargetPolicy.iconTargetDp(40)) + assertEquals(48, TouchTargetPolicy.iconTargetDp(44)) + assertEquals(48, TouchTargetPolicy.iconTargetDp(46)) + } + + @Test + fun compliantOrLargerIconTargetsArePreserved() { + assertEquals(48, TouchTargetPolicy.iconTargetDp(48)) + assertEquals(56, TouchTargetPolicy.iconTargetDp(56)) + } +} diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 0d521078..451b5c3e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -350,3 +350,31 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Next** - Verify the natural CI run on the exact new `black-box-bihar-news` head before another implementation batch. Next safe candidates are the narrowly scoped 48dp icon-target policy from PR #30 (3 ahead / 1 behind the active line; reapply against current code rather than fast-forward) and PR #32's bounded RSS concurrency policy (2 ahead / 0 behind; separate performance batch). Keep publisher asset/subresource proposals (#25/#26) out until their shared-host and redirect boundaries receive a full security review. + + +## 48dp icon-action target batch — 7 November 2026 + +**Freshness and integration source** +- Re-enumerated all 36 remote branches (page 1 complete; page 2 empty), 18 open / 14 closed pull requests, latest `main`, workflow, Actions queue/history and Releases. Default `main` remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Continued on the owner-selected `black-box-bihar-news@d75723dd6368262c311b13912caf21a07804150a`, 106 commits ahead / 0 behind `main` and 49 ahead / 0 behind PR #16's corrected startup/Prismal base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. The background-only root capture remains present; glass surfaces are siblings and do not sample their own descendants. +- PR #30 (`a11y/48dp-icon-targets-2026-11-07@25107ce905b70bde1a41282ffd1d606819ebf58d`) was reviewed in full. It is 3 commits ahead / 2 behind the active head from merge base `f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb`; its entire implementation is the three undersized icon targets plus a pure policy/test. The small changes were re-applied against current `MainActivity.kt`; the source branch and draft PR remain untouched. `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` is divergent (12 ahead / 4 behind this active line) and was not used. +- PR #31's appearance-preference IO work is already represented on this branch. PR #32's bounded RSS concurrency and PRs #25/#26's publisher resource/security changes remain separate; no unrelated code was ported. PR #27 is editorial-only and does not change the UI baseline. + +**Implementation** +- Added `TouchTargetPolicy` with a 48dp minimum and applied it to the shared Home header Back action (44dp), Refresh action (46dp) and NewsCard bookmark action (40dp). +- Search clear, Reader Back/Aa, completion dismiss, and Explore category chips already meet the 48dp minimum; the category rail retains selectable-tab semantics and horizontal scrolling. +- Preserved existing action callbacks, bookmark IO/mutex path, header geometry, card content, four destinations, and Search/Reader state. The NewsCard still uses one Coil request and samples its palette from that same decoded bitmap. + +**Paired cost and rendering strategy** +- No Prismal surface, blur/refraction pass, backdrop capture, sampler/readback, shader, graphics layer, image decode, network request or persistence change was added. Only the three existing hitboxes grow to 48dp; the NewsCard section label already ellipsizes, so the additional width does not alter article data or layout semantics. +- The one background-only root capture and expanded-only tab glyph/droplet sampling remain unchanged. The compact navigation continues to use one shared surface rather than compositing two bars. + +**Tests and CI** +- Added `TouchTargetPolicyTest`: 40/44/46dp requests clamp to 48dp; compliant 48/56dp requests are preserved. +- Parent head `d75723dd6368262c311b13912caf21a07804150a` passed natural run [#236](https://github.com/Batmancpu/CurrentLens/actions/runs/42370605827): WordNet database generated with 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded. Parent artifact `13573458582` (39,096,319 bytes; SHA-256 `625f7faafed71606a0ec6eb1c15705fe9f2bb94eed5a20fb74f37f0f6282559a`). This does not validate the new commit; await its natural push run. +- Latest overall run [#238](https://github.com/Batmancpu/CurrentLens/actions/runs/42378821627) passed on PR #27's separate editorial head `627014500a7a983377b7c2fc82ca0cd238f776b9`; it is not a validation of this UI change. The full Actions history contains 238 runs (139 success, 58 failure, 41 cancelled), with no queued or in-progress runs at audit time. +- Latest Release remains `v0.2.0-build-116`. The active branch workflow is read-only for build/test; main's workflow is still push-only, so no PR-to-main validation is claimed. No manual dispatch/rerun or Release publication. + +**Unverified / next** +- OPPO Reno10 target reachability, visual spacing, TalkBack focus order, font scaling, launch stability, frame timing, GPU overdraw, allocations, thermal and battery remain **UNVERIFIED**. CI/JVM success cannot establish real-device usability or performance. +- After this exact head's natural CI passes, continue the whole-app accessibility and optical-consistency audit; keep the 8×8 adaptive probe at its existing 4s/6s idle-only cadence and do not add per-card capture or readback. From ec86b2fef2f5e86c3b95f2a2a2269bfef6158053 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 20:39:39 +0530 Subject: [PATCH 105/175] perf(ui): unify Reader and Quiz transient glass chrome --- .../mangoloads/currentlens/MainActivity.kt | 61 +++++----------- docs/BRANCH_CONSOLIDATION.md | 72 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 48 ++++++++++--- 3 files changed, 126 insertions(+), 55 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 12f40448..4aaecae9 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2844,7 +2844,6 @@ private fun ReaderScreen( onClearReaderPosition: (String) -> Unit ) { val context = LocalContext.current - val reduceTransparency = LocalGlassReduceTransparency.current val readerWebViewHolder = remember { mutableStateOf(null) } var savedReadingProgress by remember(article.url) { mutableFloatStateOf(0f) } var readerPositionLoaded by remember(article.url) { mutableStateOf(false) } @@ -3224,19 +3223,14 @@ private fun ReaderScreen( exit = fadeOut(animationSpec = tween(readerChromeMotionMs)) + slideOutVertically(animationSpec = tween(readerChromeMotionMs)) { it / 4 } ) { - PrismalGlassSurface( + PrismalTransientSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth() .padding(horizontal = 12.dp, vertical = 8.dp) .navigationBarsPadding(), - shape = { PrismalRoundedRectangle(20.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp, - refractionHeightPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), - refractionAmountPx = GlassRenderingPolicy.refractionPx(12f, reduceTransparency), - depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.004f, reduceTransparency), - tint = if (dark) Color(0xFF25354A) else Color(0xFFEAF0FA), - tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.34f).coerceIn(0.05f, 0.20f), reduceTransparency) + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 20f ) { Row( Modifier.fillMaxWidth().padding(start = 14.dp, end = 4.dp, top = 4.dp, bottom = 4.dp), @@ -3279,21 +3273,14 @@ private fun ReaderGlassToolbar( onBack: () -> Unit, onFontSizeChange: (Int) -> Unit ) { - val reduceTransparency = LocalGlassReduceTransparency.current var textSizeMenuExpanded by remember(article.url) { mutableStateOf(false) } - val tint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA) - PrismalGlassSurface( + PrismalTransientSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), - shape = { PrismalRoundedRectangle(22.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(8f, reduceTransparency).dp, - refractionHeightPx = GlassRenderingPolicy.refractionPx(13f, reduceTransparency), - refractionAmountPx = GlassRenderingPolicy.refractionPx(15f, reduceTransparency), - depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.006f, reduceTransparency), - tint = tint, - tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.42f).coerceIn(0.05f, 0.24f), reduceTransparency) + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 22f ) { Row( Modifier.fillMaxWidth().heightIn(min = 60.dp) @@ -4361,23 +4348,14 @@ private fun QuizScreen( mutableStateOf(false) } val score = questions.indices.count { selected[it] == questions[it].correctIndex } - val reduceTransparency = LocalGlassReduceTransparency.current - val controlTint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA) Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { - PrismalGlassSurface( + PrismalTransientSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), - shape = { PrismalRoundedRectangle(22.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(8f, reduceTransparency).dp, - refractionHeightPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), - refractionAmountPx = GlassRenderingPolicy.refractionPx(12f, reduceTransparency), - depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.003f, reduceTransparency), - tint = controlTint, - tintAlpha = GlassRenderingPolicy.tintAlpha( - (glassAlpha * 0.42f).coerceIn(0.05f, 0.24f), reduceTransparency - ) + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 22f ) { Row( Modifier.fillMaxWidth().heightIn(min = 60.dp) @@ -4501,19 +4479,12 @@ private fun QuizScreen( } } Box(Modifier.fillMaxWidth().navigationBarsPadding()) { - PrismalGlassSurface( + PrismalTransientSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), - shape = { PrismalRoundedRectangle(22.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp, - refractionHeightPx = GlassRenderingPolicy.refractionPx(8f, reduceTransparency), - refractionAmountPx = GlassRenderingPolicy.refractionPx(10f, reduceTransparency), - depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.002f, reduceTransparency), - tint = controlTint, - tintAlpha = GlassRenderingPolicy.tintAlpha( - (glassAlpha * 0.36f).coerceIn(0.045f, 0.20f), reduceTransparency - ) + glassAlpha = glassAlpha, + dark = dark, + cornerRadiusDp = 22f ) { Column( Modifier.fillMaxWidth().padding(horizontal = 10.dp, vertical = 9.dp), diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index ecd7e027..f19287fd 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -675,3 +675,75 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - Full decoded logs were inspected for #219, #227, #218 and #235 (1515, 1531, 1535 and 1534 lines respectively). Each build log ends with `BUILD SUCCESSFUL`; only non-blocking Node.js 20/action-runtime, `punycode` and `url.parse()` deprecation warnings were found. The source runs validate their exact source heads only; the new active commit must receive its own natural run. - Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66`: read-only build/test, push and pull_request triggers for main/PR #16/black-box, isolated main-push-only Release write. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902`: push-only and workflow-wide `contents: write`; no PR-to-main validation claim. Latest published Release remains `v0.2.0-build-116`. - No main write, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion occurred. OPPO device launch/visual/accessibility/performance, Perfetto, GPU, memory, thermal and battery remain **UNVERIFIED**. + + +## Live branch graph audit — 7 November 2026, 20:30 IST + +**Repository:** Batmancpu/CurrentLens +**Default branch:** main@73b8a0d1ba33503fede02db2c3c0af082d724a12 +**Owner-selected integration branch:** black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7 — 107 ahead / 0 behind main; 50 ahead / 0 behind PR #16 at 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. This is the only branch to receive further consolidation/UI commits. +**Inventory:** 37 remote branches (page 1 complete, page 2 empty), 19 open PRs and 14 closed PRs. The table records every live ref's head, latest commit timestamp/message and PR role. + +| Remote branch | Head SHA | Latest commit UTC | Latest message | PR role | +|---|---|---|---|---| +| a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07T11:02:12Z | test(a11y): cover minimum icon action target | head #30 | +| black-box-bihar-news | 48b54808807f5b15e637b6177524fd923741e1f7 | 2026-11-07T14:03:38Z | a11y: enforce 48dp icon action targets | active; base #11,#25,#26,#27,#29,#30,#31,#32,#33 | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07T04:13:30Z | ui: consolidate lightweight supporting glass surfaces | base #24; divergent sibling | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06T17:18:53Z | ci: validate pull requests with read-only build permissions | head #18 | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06T21:41:27Z | ci: restore Android SDK setup before sdkmanager | head #20; closed/merged into active branch | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06T11:16:35Z | Correct icon artwork accessibility name to brrrNews | same as main; no PR | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06T10:53:35Z | fix: refresh article card metadata when feed content changes | head #6 | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06T09:14:27Z | fix: select Atom article alternate links deterministically | head #12 | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06T14:26:32Z | feat: expose publication date and publisher RSS provenance on cards | head #11 | +| fix/early-startup-crash-diagnostics-2026-11-06 | 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 | 2026-11-06T19:33:20Z | fix: minimise shareable process-exit diagnostics | head #16; corrected Prismal/stability parent | +| fix/editorial-action-gate-blackbox-2026-11-07 | 627014500a7a983377b7c2fc82ca0cd238f776b9 | 2026-11-07T13:50:45Z | test(editorial): require a syllabus issue beyond institution names | head #27 | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06T22:05:40Z | Verify a specific parliamentary bill remains eligible for the GS II feed | head #21 | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07T04:46:47Z | fix(editorial): match policy action and target as separate words | head #24 | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06T05:16:32Z | test: align economy signal count with repo-rate mapping | closed/merged #2 | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06T02:34:28Z | fix: tighten UPSC editorial signal matching | closed/merged #1 | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06T06:27:06Z | fix: use supported calendar navigation glyph | closed/merged #5 | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07T03:49:44Z | test: preserve Parliament bill headline variants | closed/merged #23 | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06T12:15:39Z | Validate RSS redirects against publisher allowlists | closed #15; safe policy present in active line | +| fix/quiz-option-selected-semantics-compile-2026-11-07 | 6f9b3c1e1a484233721863d0b736734c0d282cd5 | 2026-11-07T08:12:10Z | fix(quiz): qualify selected semantics receiver | closed/merged #28 | +| fix/resolve-relative-atom-links-2026-11-07 | c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4 | 2026-11-07T14:59:24Z | test(rss): correct relative xml base fixture | head #33 | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07T06:28:46Z | test(reader): cover publisher-only image resources | head #25 | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06T16:42:29Z | fix: deduplicate RSS tracking URL variants | head #17 | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06T07:44:03Z | fix: capture Search glass tint before draw callback | closed/merged #10 | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06T07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | closed/merged #9 | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06T07:18:06Z | fix: harden cold start and reduce feed rendering workload | closed/merged #7 | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06T11:16:35Z | Correct icon artwork accessibility name to brrrNews | default; base #6,#8,#12,#13,#16,#17,#18,#21 | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06T23:53:04Z | Verify legacy markers survive recent-history retention | head #22 | +| perf/bounded-rss-fetch-concurrency-2026-11-07 | 8c56c98c83cc69451f128aa259df86a8ce28f43a | 2026-11-07T11:29:26Z | docs: record bounded RSS fetch review and CI state | head #32 | +| perf/off-main-appearance-preferences-2026-11-07 | bc48daec98ff076c9db3c2c69084d9b08cd0bbce | 2026-11-07T11:11:45Z | fix(startup): keep appearance snapshot API module-internal | head #31 | +| perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07T09:05:25Z | perf(storage): move bookmark mutations off the UI thread | head #29 | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06T10:50:31Z | perf: move read-marker persistence off main thread | head #8; base #22 | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07T07:27:22Z | privacy: block third-party publisher reader subresources | head #26 | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03T15:31:48Z | fix: make selection decoding fallback valid JSON | no PR; stale | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06T10:56:16Z | ui: restore low-cadence foreground adaptive glass contrast | head #13 | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06T06:25:39Z | fix: import bottom navigation glyphs | closed #4; earlier #3 merged from a prior head | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06T20:11:36Z | docs(reader): record native selection collision guard | closed/merged #19 | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07T03:18:34Z | fix: finish syllabus metadata and thin-film feed eligibility | no PR; superseded checkpoint | + +### Pull-request state and source treatment + +**Open PRs (19):** #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8 and #6. All remain open/draft; none was merged or retargeted in this audit. + +**Closed PRs (14):** #28, #23, #20, #19, #10, #9, #7, #5, #3, #2 and #1 were merged into their stated targets; #15, #14 and #4 were closed without merge. PRs #19/#20/#23/#28 are represented in black-box-bihar-news only, not main. + +### Freshness and comparison decisions + +- black-box-bihar-news is a direct descendant of PR #16's corrected stability/Prismal baseline; no older UI branch supersedes it. Its latest exact natural push validation before this implementation was run #239 on 48b54808807f5b15e637b6177524fd923741e1f7. +- brrrNEWS is a divergent sibling (4 ahead / 13 behind black-box-bihar-news). Its useful SupportingGlassCard/GlassSurfacePolicy, SavedFeed memoization and Reader-position IO changes are already represented in the selected branch. Its app-label, workflow and branch-documentation changes are not adopted. PR #24 remains based on brrrNEWS and is not part of this UI branch. +- ui/liquid-glass-system-continuation is an older checkpoint (0 ahead / 23 behind selected branch). ui/liquid-glass-performance and redesign/v0.3-search-reader remain stale and are not used as baselines. +- PR #30's 48dp target policy, PR #31's off-main appearance snapshot and PR #29's serialized off-main bookmark persistence have been selectively represented in black-box-bihar-news; source branches and PRs remain untouched. +- PR #32's bounded RSS concurrency and PR #33's relative Atom-link resolution are independent non-UI changes. PR #33's exact head passed run #240, but that run does not validate the selected branch. Neither change is copied in this UI pass. +- PRs #25/#26 remain separate publisher-resource/security proposals; do not port until redirect, asset-host and third-party subresource boundaries are reviewed together. PR #27 and other editorial/parser branches are not UI baselines. +- PR #18/#20's compatible read-only build and isolated main-push Release-write workflow is present on the selected branch. The main workflow remains push-only; a future PR to main must not be described as PR-to-main CI validated until main's workflow changes. + +### Current Actions and Release evidence + +- Actions history: 240 runs, fully paginated; 141 success, 58 failure, 41 cancelled; queue empty. +- Run #239: success on exact selected-branch head 48b54808807f5b15e637b6177524fd923741e1f7. WordNet builder: 4 tests passed, 151,456 unique words generated; :app:testDebugUnitTest and :app:assembleDebug succeeded; artifact 13577371341, 39,096,477 bytes, SHA-256 e37f05a313fb96b959970579b86e6101b30256f202cec3db49d7a492521cd8d5. +- Run #240: success on PR #33 head c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4; WordNet generation, JVM tests, APK assembly and artifact upload succeeded; artifact 13579255941, 39,097,729 bytes. It is not a selected-branch run. +- Active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 has read-only build/test permissions and isolated main-push Release write. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only. Latest published Release is v0.2.0-build-116. +- No workflow was edited, no manual dispatch/rerun was used, no Release was published, no PR was merged/retargeted, and no remote branch was modified/deleted by this audit. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 451b5c3e..22831bb7 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,15 +1,14 @@ # Liquid Glass UI Roadmap -**Status:** The shared Prismal system now covers the primary shell, Reader chrome/auto-hide, Search clear and filters, feed-only compact navigation, You/Saved/stat controls, Quiz chrome and the Appearance preview. This batch selectively ports the startup Appearance preference restore to IO; the new consolidation head is awaiting its own natural CI run. -**Feature branch:** `black-box-bihar-news` — the sole active integration/UI branch. -**Current verified source:** `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` (2026-11-07 11:03:39Z); 105 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, and 48 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Selective-port source:** PR #31 head `bc48daec98ff076c9db3c2c69084d9b08cd0bbce`, exactly 5 commits ahead / 0 behind the active head; its complete code diff is limited to `MainActivity.kt`, `LocalStore.kt`, `AppearancePreferencesPolicy.kt` and its JVM test. The changes are copied as a focused integration commit; PR #31 and its source branch remain open and untouched. -**Previous exact active-branch validation:** [Actions run #219](https://github.com/Batmancpu/CurrentLens/actions/runs/42366560250), exact SHA `ee82dfde140aeb0d1ca80146379a0a2818c695df`, success. WordNet builder tests passed and generated 151,456 unique words (50,950,144 bytes); `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13572515005`, 39,095,662 bytes, SHA-256 `4982f5c20478479e41fdb957571c9d7cea6a6edac25e3e1bd4702aedbbe9db05`, expires 21 Nov 2026 11:05:53Z. Publish job skipped. -**Latest overall natural run:** #235 is a successful PR #32 run on `8c56c98c83cc69451f128aa259df86a8ce28f43a`; it does not validate the active branch. PR #31's exact source head passed run #227; PR #30's exact source head passed run #218. -**Actions history:** 235 runs fully paginated (100 + 100 + 35): 136 success, 58 failure, 41 cancelled; no queued or in-progress runs. -**Workflow / Releases:** active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` uses read-only build/test permissions, natural push/PR validation and a separate main-push-only Release-write job. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with workflow-wide `contents: write`; a future PR to main is not yet validated by main's base workflow. Latest published Release remains `v0.2.0-build-116`; no Release was created. -**Branch graph:** 36 remote branches, 18 open PRs and 14 closed PRs. The complete live head/timestamp/message/PR map and comparison dispositions are appended to `docs/BRANCH_CONSOLIDATION.md`. The active head is the newest coherent owner-selected integration line; newer child PR heads are treated as selective-port candidates, not replacement baselines. -**Safety / device status:** no main change, package/app identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. +**Status:** Shared Prismal coverage includes the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview and supporting dashboard/stat materials. This pass consolidates Reader and Quiz transient chrome onto the existing bounded Prismal control tier; its new commit requires natural CI. +**Feature branch:** black-box-bihar-news — the sole active integration/UI branch by explicit owner direction. +**Source baseline for this pass:** black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7 (2026-11-07T14:03:38Z); 107 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 50 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. +**Previous exact active-branch validation:** [Actions run #239](https://github.com/Batmancpu/CurrentLens/actions/runs/42379803649), exact source SHA 48b54808807f5b15e637b6177524fd923741e1f7, success. WordNet builder tests passed; 151,456 unique words generated; :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded. Artifact 13577371341, 39,096,477 bytes, SHA-256 e37f05a313fb96b959970579b86e6101b30256f202cec3db49d7a492521cd8d5, expires 21 Nov 2026 14:05:51Z. +**Latest overall natural run:** [#240](https://github.com/Batmancpu/CurrentLens/actions/runs/42384192689) passed on PR #33's separate parser head c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4; artifact 13579255941 (39,097,729 bytes, SHA-256 38d3f133cfc2063501fa1d8c394a3d6338d7708369729eb543b08c120a5aafb9). It does not validate the active branch. +**Actions history:** 240 runs fully paginated; 141 success, 58 failure, 41 cancelled; no queued or in-progress runs at audit time. +**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 has read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only, so no PR-to-main validation is claimed. Latest Release remains v0.2.0-build-116; no Release was created. +**Branch graph:** 37 remote branches, 19 open PRs and 14 closed PRs. The complete live head/timestamp/message/PR-role inventory and comparison dispositions are appended to docs/BRANCH_CONSOLIDATION.md. The selected branch is a direct descendant of PR #16; brrrNEWS is a divergent sibling (4 ahead / 13 behind) and is not a replacement baseline. +**Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -378,3 +377,32 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 target reachability, visual spacing, TalkBack focus order, font scaling, launch stability, frame timing, GPU overdraw, allocations, thermal and battery remain **UNVERIFIED**. CI/JVM success cannot establish real-device usability or performance. - After this exact head's natural CI passes, continue the whole-app accessibility and optical-consistency audit; keep the 8×8 adaptive probe at its existing 4s/6s idle-only cadence and do not add per-card capture or readback. + + +## Reader and Quiz transient material consolidation — 7 November 2026, 20:30 IST + +**Branch freshness and dependency review** +- Re-enumerated all 37 remote branches (page 1 complete, page 2 empty), 19 open PRs, 14 closed PRs, current workflow, fully paginated Actions history/queue, latest jobs/logs/artifacts and Releases. +- Source parent is black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7. It is 107 ahead / 0 behind main and 50 ahead / 0 behind PR #16; the corrected background-only Prismal capture and read-only stacked-PR workflow remain present. PR #16 is still open/draft and unmerged. +- brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96 is divergent (4 ahead / 13 behind the selected line). Its supporting-card material, SavedFeed memoization and off-main Reader-position restore are already represented in black-box-bihar-news; branch-specific branding/workflow/docs changes are not adopted. ui/liquid-glass-system-continuation is 0 ahead / 23 behind; ui/liquid-glass-performance and redesign/v0.3 remain stale. +- PR #30's 48dp target policy, PR #31's IO appearance snapshot and PR #29's serialized off-main bookmark mutation are already represented in the selected branch. Their source PRs/branches remain untouched. PR #32's RSS concurrency and PR #33's relative Atom-link parser remain separate non-UI changes; #33's run #240 passed on its exact PR head, not on this branch. PRs #25/#26 remain held for separate publisher-host/subresource security reconciliation. No other branch was changed. + +**Implementation** +- Replaced the four remaining bespoke transient-control material configurations with the existing PrismalTransientSurface: Reader source/date/Aa toolbar, Reader completion dock, Quiz header and Quiz submit dock. +- All four now use the shared tier: 5dp blur, 2.5dp refraction height, 3.5dp refraction amount, 0.001 chromatic aberration and the existing 0.42 tint scale bounded to 0.05–0.22. The helper continues to respect the persisted Reduce Transparency preference. +- Reader source/date/status, Aa menu, 48dp actions, navigation-bar padding, completion eligibility/dismissal, chrome auto-hide, native ActionMode and dictionary-selection bridge are unchanged. Quiz question/option cards remain normal high-contrast content; submit-only quiz persistence and scoring semantics are unchanged. +- The Definition popover retains its stronger, compact contextual tier; it remains anchored and uses the same root background-only backdrop. + +**Paired rendering/performance strategy** +- Replaced Reader toolbar optics (8dp blur, 13/15dp refraction, 0.006 chromatic), completion optics (7dp, 10/12dp, 0.004), Quiz header optics (8dp, 10/12dp, 0.003) and Quiz submit-dock optics (7dp, 8/10dp, 0.002) with one bounded parameter set. +- Existing surface count and shared root backdrop ownership are unchanged. No new capture, sampler/readback, shader, graphics layer, image decode, timer, dependency, network request or persistence operation was added. Reduce Transparency still zeroes live optics and pauses adaptive sampling through the existing policy. +- This is a source-level reduction and consolidation of effect parameters, not a measured GPU/frame-time, memory, battery or thermal improvement. + +**Tests and CI** +- Existing GlassSurfacePolicyTest already bounds the transient tier; GlassRenderingPolicyTest covers the low-effects fallback. No duplicate policy or new dependency was added. +- Parent run #239 passed on the exact source baseline; run #240 passed on separate PR #33 code. Neither validates this new commit. The new active-branch push must receive its own natural run; no manual dispatch/rerun. +- Current branch workflow remains read-only for build/test. Main still lacks a pull_request trigger; no PR-to-main validation or Release publication is claimed. + +**Unverified / next** +- OPPO Reno10 screenshots, visual contrast over live feed backdrops, toolbar/definition collision, Reduce Motion, TalkBack focus, frame timing, GPU overdraw, allocation churn, memory, thermal and battery remain UNVERIFIED. +- After natural CI validates this exact commit, continue the whole-app optical/accessibility pass; retain the single background-only root capture, expanded-only tab glyph sampling and 4s/6s foreground-idle adaptive luminance cadence. From 818afb47eaadc685f133eaffc3efd199392627e4 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 21:32:13 +0530 Subject: [PATCH 106/175] ui: refine supporting glass tone across dashboard and stats --- .../currentlens/GlassSurfacePolicy.kt | 12 ++-- .../currentlens/GlassSurfacePolicyTest.kt | 12 ++-- docs/BRANCH_CONSOLIDATION.md | 23 ++++++-- docs/LIQUID_GLASS_UI_ROADMAP.md | 55 ++++++++++++++----- 4 files changed, 71 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 783e1321..4770dad4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -12,12 +12,12 @@ internal object GlassSurfacePolicy { const val TRANSIENT_REFRACTION_AMOUNT_DP = 3.5f const val TRANSIENT_TINT_SCALE = 0.42f - private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.96f - private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.985f - private const val SUPPORTING_TINT_ALPHA_DARK = 0.085f - private const val SUPPORTING_TINT_ALPHA_LIGHT = 0.045f - private const val SUPPORTING_RIM_ALPHA_DARK = 0.22f - private const val SUPPORTING_RIM_ALPHA_LIGHT = 0.14f + private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f + private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f + private const val SUPPORTING_TINT_ALPHA_DARK = 0.11f + private const val SUPPORTING_TINT_ALPHA_LIGHT = 0.07f + private const val SUPPORTING_RIM_ALPHA_DARK = 0.20f + private const val SUPPORTING_RIM_ALPHA_LIGHT = 0.13f fun supportingSurfaceAlpha(dark: Boolean): Float = if (dark) SUPPORTING_SURFACE_ALPHA_DARK else SUPPORTING_SURFACE_ALPHA_LIGHT diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 205756ad..fa0f1c53 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -7,16 +7,16 @@ import org.junit.Test class GlassSurfacePolicyTest { @Test fun supportingContentRemainsNearlyOpaqueForReadability() { - assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = true) >= 0.95f) - assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) >= 0.98f) + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = true) in 0.92f..0.95f) + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) in 0.95f..0.98f) } @Test fun opticalTintAndRimStaySubtleAndBounded() { - assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0f..0.10f) - assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = false) in 0f..0.06f) - assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = true) in 0f..0.25f) - assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = false) in 0f..0.16f) + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0f..0.12f) + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = false) in 0f..0.08f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = true) in 0.18f..0.22f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = false) in 0.11f..0.15f) assertTrue( GlassSurfacePolicy.supportingTintAlpha(dark = true) > GlassSurfacePolicy.supportingTintAlpha(dark = false) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index f19287fd..f3d1fcf7 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,11 +2,11 @@ **Repository:** Batmancpu/CurrentLens **Chosen integration branch:** `black-box-bihar-news` — owner-selected single active integration branch. -**Verified source HEAD before the transient-controls batch:** `16eb549c3235b321ecf7ef1c5c5270817e336489`; the new UI commit is a direct child, created with a fast-forward-only expected-head update. -**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. The active branch is 102 commits ahead / 0 behind main and 45 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Live branch inventory before this batch:** 33 remote refs (all returned on page 1; page 2 empty), 15 open PRs and 14 closed PRs. No branch was deleted. -**Latest active-branch validation before this batch:** Actions run #213, success on exact SHA `16eb549c3235b321ecf7ef1c5c5270817e336489`; WordNet builder tests 4/4, database 151,456 unique words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568329178`, 39,082,053 bytes, SHA-256 `2a0af7c27ff5aff00b48c12d7659cb5b37b5103f6858ebf090be02b2cc9f0981`. Release job skipped. -**Actions history:** 213 runs fully paginated (100 + 100 + 13; page 4 empty): 127 success, 54 failure, 32 cancelled; no queued/in-progress runs. +**Verified source HEAD before the supporting-card material pass:** `ec86b2fef2f5e86c3b95f2a2a2269bfef6158053`; the next UI commit is a direct child, created with a fast-forward-only expected-head update. +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. The active branch is 108 commits ahead / 0 behind main and 51 ahead / 0 behind PR #16's corrected stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Live branch inventory before this batch:** 37 remote refs (all returned on page 1; page 2 empty), 19 open PRs and 14 closed PRs. No branch was deleted. +**Latest active-branch validation before this batch:** Actions run #241, success on exact SHA `ec86b2fef2f5e86c3b95f2a2a2269bfef6158053`; WordNet builder tests 4/4, database 151,456 unique words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13579222899`, 39,094,929 bytes, SHA-256 `d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f`. Release job skipped. +**Actions history:** 241 runs fully paginated (100 + 100 + 41; page 4 empty): 142 success, 58 failure, 41 cancelled; no queued/in-progress runs. **Workflow:** active branch blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, PR validation for main/PR #16/black-box, and a separate main-push-only Release job. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with broader write permissions. A future draft PR to main will not have a natural PR-triggered validation until main's workflow is reconciled; branch push CI is not PR-to-main validation. **Release:** latest published remains `v0.2.0-build-116`; no feature-branch Release was created. No manual dispatch/rerun, main edit/merge, source-branch write or branch deletion occurred. @@ -687,7 +687,7 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 | Remote branch | Head SHA | Latest commit UTC | Latest message | PR role | |---|---|---|---|---| | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07T11:02:12Z | test(a11y): cover minimum icon action target | head #30 | -| black-box-bihar-news | 48b54808807f5b15e637b6177524fd923741e1f7 | 2026-11-07T14:03:38Z | a11y: enforce 48dp icon action targets | active; base #11,#25,#26,#27,#29,#30,#31,#32,#33 | +| black-box-bihar-news | ec86b2fef2f5e86c3b95f2a2a2269bfef6158053 | 2026-11-07T15:09:39Z | perf(ui): unify Reader and Quiz transient glass chrome | active; base #11,#25,#26,#27,#29,#30,#31,#32,#33 | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07T04:13:30Z | ui: consolidate lightweight supporting glass surfaces | base #24; divergent sibling | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06T17:18:53Z | ci: validate pull requests with read-only build permissions | head #18 | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06T21:41:27Z | ci: restore Android SDK setup before sdkmanager | head #20; closed/merged into active branch | @@ -747,3 +747,14 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - Run #240: success on PR #33 head c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4; WordNet generation, JVM tests, APK assembly and artifact upload succeeded; artifact 13579255941, 39,097,729 bytes. It is not a selected-branch run. - Active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 has read-only build/test permissions and isolated main-push Release write. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only. Latest published Release is v0.2.0-build-116. - No workflow was edited, no manual dispatch/rerun was used, no Release was published, no PR was merged/retargeted, and no remote branch was modified/deleted by this audit. + + +## 7 November 2026, 21:26 IST — supporting-material freshness and CI audit + +- Re-enumerated all 37 remote branches (page 1 complete; page 2 empty), all 19 open and 14 closed PRs, current branch/default/PR16 refs, workflow, all Actions pages and Releases. No branch was deleted. +- `black-box-bihar-news@ec86b2fef2f5e86c3b95f2a2a2269bfef6158053` is 108 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and 51 ahead / 0 behind PR #16's corrected stability/Prismal head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. It remains the newest coherent owner-selected integration line; the current source is a direct descendant of PR #16 and includes the previously consolidated Reader, workflow and UI work. +- Comparison checks against the current head: `brrrNEWS` 4 ahead / 14 behind (diverged); `ui/liquid-glass-system-continuation` 0 ahead / 24 behind; `ui/liquid-glass-performance` 3 ahead / 126 behind; PR #13 adaptive contrast 1 ahead / 121 behind; PR #32 RSS concurrency 2 ahead / 3 behind; PR #33 relative Atom parsing 4 ahead / 1 behind; PR #25 image-host 7 ahead / 10 behind; PR #26 WebView subresource 1 ahead / 9 behind; PR #27 editorial gate 26 ahead / 9 behind; PR #24 policy guard 9 ahead / 14 behind; PR #29 bookmark IO 1 ahead / 7 behind; PR #30 48dp 3 ahead / 4 behind; PR #31 appearance IO 5 ahead / 3 behind. All are non-ancestor/diverged candidates, not automatic baselines. +- Useful PR #29/#30/#31 changes and PR #13's conservative adaptive-contrast policy are already represented by focused ports; brrrNEWS's supporting-card material is already in the integration line. PR #25/#26 remain unported pending a combined publisher asset-host/subresource review. PR #32/#33 are independent RSS performance/parser changes and were not mixed into this UI batch. PR #27/#24 are editorial and not UI baselines. +- PR #16 and #18 remain open/draft; #19/#20/#23/#28 are closed/merged into black-box-bihar-news only. No PR was merged or retargeted in this audit. +- Exact active-head run #241 passed on ec86b2fef2f5e86c3b95f2a2a2269bfef6158053; WordNet builder 4/4, 151,456 unique words, JVM tests, debug APK assembly and artifact upload succeeded. Artifact 13579222899, 39,094,929 bytes, SHA-256 d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f. The next UI commit needs its own natural push run. +- Active branch workflow `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions and a separate main-push-only Release-write job. Main workflow `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only. Latest Release is `v0.2.0-build-116`; no Release publication, manual dispatch/rerun, main write, PR merge or source-branch mutation occurred. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 22831bb7..a1274d36 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,13 +1,13 @@ # Liquid Glass UI Roadmap -**Status:** Shared Prismal coverage includes the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview and supporting dashboard/stat materials. This pass consolidates Reader and Quiz transient chrome onto the existing bounded Prismal control tier; its new commit requires natural CI. +**Status:** Shared Prismal coverage includes the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and the unified Reader/Quiz transient tier. This pass strengthens the quiet supporting-card tint/rim without adding live blur or capture. **Feature branch:** black-box-bihar-news — the sole active integration/UI branch by explicit owner direction. -**Source baseline for this pass:** black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7 (2026-11-07T14:03:38Z); 107 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 50 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. -**Previous exact active-branch validation:** [Actions run #239](https://github.com/Batmancpu/CurrentLens/actions/runs/42379803649), exact source SHA 48b54808807f5b15e637b6177524fd923741e1f7, success. WordNet builder tests passed; 151,456 unique words generated; :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded. Artifact 13577371341, 39,096,477 bytes, SHA-256 e37f05a313fb96b959970579b86e6101b30256f202cec3db49d7a492521cd8d5, expires 21 Nov 2026 14:05:51Z. -**Latest overall natural run:** [#240](https://github.com/Batmancpu/CurrentLens/actions/runs/42384192689) passed on PR #33's separate parser head c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4; artifact 13579255941 (39,097,729 bytes, SHA-256 38d3f133cfc2063501fa1d8c394a3d6338d7708369729eb543b08c120a5aafb9). It does not validate the active branch. -**Actions history:** 240 runs fully paginated; 141 success, 58 failure, 41 cancelled; no queued or in-progress runs at audit time. -**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 has read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only, so no PR-to-main validation is claimed. Latest Release remains v0.2.0-build-116; no Release was created. -**Branch graph:** 37 remote branches, 19 open PRs and 14 closed PRs. The complete live head/timestamp/message/PR-role inventory and comparison dispositions are appended to docs/BRANCH_CONSOLIDATION.md. The selected branch is a direct descendant of PR #16; brrrNEWS is a divergent sibling (4 ahead / 13 behind) and is not a replacement baseline. +**Source baseline for this pass:** black-box-bihar-news@ec86b2fef2f5e86c3b95f2a2a2269bfef6158053 (2026-11-07T15:09:39Z); 108 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 51 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. +**Previous exact active-branch validation:** [Actions run #241](https://github.com/Batmancpu/CurrentLens/actions/runs/42385017675), exact source SHA ec86b2fef2f5e86c3b95f2a2a2269bfef6158053, success. Four WordNet builder tests passed; 151,456 unique words generated; :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded. Artifact 13579222899, 39,094,929 bytes, SHA-256 d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f, expires 21 Nov 2026 15:11:49Z. +**Latest overall natural run:** [#241](https://github.com/Batmancpu/CurrentLens/actions/runs/42385017675) is the same successful run on the active branch head; no active or queued Actions jobs remain. +**Actions history:** 241 runs fully paginated; 142 success, 58 failure, 41 cancelled; queue empty. +**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only, so no PR-to-main validation is claimed. Latest Release remains v0.2.0-build-116; no Release was created. +**Branch graph:** 37 remote branches (page 1 complete, page 2 empty), 19 open PRs and 14 closed PRs. black-box-bihar-news is 108 ahead / 0 behind main and 51 ahead / 0 behind PR #16. brrrNEWS is divergent (4 ahead / 14 behind); its useful supporting-material implementation is already represented. Newer independent parser/RSS/security/editorial branches remain separate and were not used as a UI baseline; see docs/BRANCH_CONSOLIDATION.md. **Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -75,9 +75,9 @@ Recheck every branch head and dependency before each future implementation commi | Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; run #183 passed | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | -| You dashboard | Supporting glass | Shared non-blurred tinted/rim card, continuous 22dp geometry, single-line metric values | Integrated in code commit 5e966; OPPO contrast check unverified | +| You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Shared policy tuned: dark surface/tint 0.93/0.11, light 0.965/0.07; no live blur; OPPO contrast unverified | | Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | -| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Grouped rails reuse the root backdrop; supporting cards remain no-blur tint/rim; summaries memoized | +| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting tint/rim tuned through shared policy; cards remain no-blur; summaries memoized | | Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control; direction-aware auto-hide | Implemented; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | @@ -105,7 +105,7 @@ Recheck every branch head and dependency before each future implementation commi | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | | Search filter sheet / Reader Aa menu | One 5dp-blur, low-refraction transient surface while open | Shared `PrismalTransientSurface` consumes the existing background-only root backdrop; no extra capture/readback, no per-chip/item blur, and the two screens cannot show these surfaces together | `GlassRenderingPolicy` removes live optics for Reduce Transparency; policy constants covered by `GlassSurfacePolicyTest`; frame/GPU/memory/battery cost unmeasured | -| You / stats supporting cards | No live blur; one cached gradient tint and rim on visible cards | Shared `GlassSurfacePolicy`; stable shape/brushes; memoized aggregates; existing LazyColumn composition | No capture/readback or image work added; frame/GPU/memory/battery cost not measured | +| You / Reading / Quiz Stats supporting cards | No live blur; theme-aware translucent surface (0.93 dark / 0.965 light), tint (0.11 / 0.07) and restrained rim | Existing Card + remembered gradients/shapes; memoized aggregates; no per-card capture | No capture/readback/image work added; CI policy tests; device/frame/GPU/memory/battery cost unmeasured | | Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | | Appearance preview | One 5dp-blur / low-refraction `PrismalTransientSurface`; controls card and article sample are non-blurred | Reuse the root background-only backdrop and existing transient material tokens; remove the former second live-glass preview panel; slider state remains local until release/preset selection; no image decode or root-state update per drag tick | `GlassSurfacePolicyTest` bounds the transient tier and `GlassRenderingPolicyTest` covers zero-optics fallback; OPPO rendering, frame timing, memory, thermal and battery remain unverified | | Quiz chrome | Two small Prismal control surfaces (header + bottom dock) | Reuse the one background-only root source; 7–8dp bounded blur/refraction; no per-question glass, new capture or readback | Reduce Transparency uses GlassRenderingPolicy; 48dp actions and safe-area padding; device frame/GPU/battery cost unmeasured | @@ -135,9 +135,9 @@ Recheck every branch head and dependency before each future implementation commi ## Next implementation sequence -1. Await natural CI on this Quiz action-chrome commit; inspect the exact run, full logs and artifact before another UI batch. -2. Review transient sheets/menus and any remaining quiz contextual actions; keep dense question, option and explanatory content on clear surfaces. -3. Whole-app audit: reconcile header, filters, Reader, navigation, dashboard, Saved, stats and quiz resting/transient states; check light/dark, large text, TalkBack and Reduce Motion. +1. Validate this supporting-material tone pass on its exact new head via natural push CI; inspect the complete job log and artifact before another UI batch. +2. Audit remaining dialogs/sheets/menus and whole-app light/dark, large-text, TalkBack and Reduce Motion states without turning dense content into live glass. +3. Keep the single draft consolidation review on black-box-bihar-news; main remains push-only, so branch CI must not be described as PR-to-main validation. 4. Measure on OPPO Reno10 5G (or explicitly keep metrics unverified): startup, scroll jank/frame timing, allocation churn, GPU overdraw/layers, thermal and battery against the same base build. ## Consolidation implementation log @@ -406,3 +406,32 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 screenshots, visual contrast over live feed backdrops, toolbar/definition collision, Reduce Motion, TalkBack focus, frame timing, GPU overdraw, allocation churn, memory, thermal and battery remain UNVERIFIED. - After natural CI validates this exact commit, continue the whole-app optical/accessibility pass; retain the single background-only root capture, expanded-only tab glyph sampling and 4s/6s foreground-idle adaptive luminance cadence. + + +## Supporting-card material tone pass — 7 November 2026, 21:26 IST + +**Freshness / dependency gate** +- Re-enumerated all 37 remote branches (page 1 complete, page 2 empty), all 19 open and 14 closed PRs, the default branch, current branch refs, workflow, fully paginated Actions history/queue, latest run/jobs/log/artifact and Releases. +- Implementation source is `black-box-bihar-news@ec86b2fef2f5e86c3b95f2a2a2269bfef6158053`, a direct child of `48b54808807f5b15e637b6177524fd923741e1f7`; it is 108 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and 51 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. The current head was re-read immediately before the fast-forward-only update. +- `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` remains divergent (4 ahead / 14 behind; merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`); its useful supporting-glass implementation is already represented. `ui/liquid-glass-system-continuation` is 24 behind; `ui/liquid-glass-performance` is 3 ahead / 126 behind; neither is a valid baseline. +- PR #29/#30/#31's bookmark-IO, 48dp-target and appearance-restore changes remain selectively represented; their source branches/PRs are untouched. PR #13 adaptive contrast is already integrated with the conservative 4s/6s shared-probe policy. PR #32 RSS concurrency and PR #33 relative Atom parsing are separate non-UI deltas (2 ahead / 3 behind and 4 ahead / 1 behind respectively); they were not mixed into this visual pass. PR #25/#26 remain separate publisher-host/subresource security proposals (7 ahead / 10 behind and 1 ahead / 9 behind) pending one combined security review. PR #27/#24 are editorial/policy work, not UI baselines. +- PR #16 remains open/draft and unmerged; PR #19/#20/#23/#28 are closed/merged into the integration branch only. No source branch was modified or deleted. + +**Implementation** +- Tuned the existing shared `GlassSurfacePolicy` used by `SupportingGlassCard`: dark surface alpha 0.96→0.93 and tint 0.085→0.11; light surface alpha 0.985→0.965 and tint 0.045→0.07. Rim alpha is slightly moderated (dark 0.22→0.20; light 0.14→0.13) to keep the edge restrained as the body tint becomes more visible. +- This applies consistently to You metrics, the practice-empty panel, library destination rows, Reading Stats metrics/day rows, Quiz Stats metrics/attempt rows and the Appearance explanatory surface. The existing 22dp continuous shape, typography, data, filter state and navigation remain unchanged. +- Supporting surfaces remain ordinary Compose Cards with a static theme-aware tint and remembered gradient/rim brushes. Article cards, quiz questions/options, definition text and reading canvas remain clear content surfaces. + +**Paired rendering / performance strategy** +- No PrismalGlassSurface, backdrop capture, blur, refraction, sampler/readback, shader, graphics layer, image decode, network request, timer, dependency or persistence operation was added. The one background-only root capture, hidden tab glyph source and existing active transient surfaces are unchanged. +- The material change reuses the existing Card, one vertical tint brush and one border brush per composed card; aggregate calculations and list keys remain memoized/stable. No additional live effect or off-screen glass surface is introduced. +- This is a source-level material-contrast adjustment, not a measured frame-time, GPU, memory, battery or thermal improvement. + +**Tests / CI** +- Updated `GlassSurfacePolicyTest` to assert bounded near-opaque dark/light supporting surfaces, stronger but restrained theme-aware tint, a moderated rim and the unchanged bounded transient tier. +- Parent head ec86b2fef2f5e86c3b95f2a2a2269bfef6158053 passed natural run [#241](https://github.com/Batmancpu/CurrentLens/actions/runs/42385017675): WordNet builder 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded. Artifact `13579222899`, 39,094,929 bytes, SHA-256 `d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f`. +- The new child commit must receive its own natural push run; no manual dispatch/rerun. The main workflow is still push-only, so a future PR-to-main does not receive a base-workflow PR check. No Release is published. + +**Unverified / next** +- OPPO Reno10 screenshots, real light/dark contrast, large font scaling, TalkBack focus, Reduce Motion, card scrolling/jank, GPU overdraw, allocations/memory, startup, thermal and battery remain UNVERIFIED. +- After this exact head's natural CI passes, continue the remaining transient-sheet/menu and whole-app consistency audit; retain the 8×8 adaptive probe's 4s/6s foreground-idle cadence and never add per-card capture/readback. From ed6c94190296c8d7af400b80f6fe26f2252fafe1 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 22:30:49 +0530 Subject: [PATCH 107/175] fix(reader): pin chrome while Aa menu is open --- .../mangoloads/currentlens/MainActivity.kt | 26 ++++--- .../currentlens/ReaderChromePolicy.kt | 18 ++++- .../currentlens/ReaderChromePolicyTest.kt | 70 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 58 +++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 41 +++++++++-- docs/PROJECT_HANDOFF.md | 24 +++---- docs/SESSION_LEDGER.md | 13 ++++ 7 files changed, 219 insertions(+), 31 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 4aaecae9..46b9dcc5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2904,12 +2904,19 @@ private fun ReaderScreen( var readerViewportWindowOrigin by remember(article.url) { mutableStateOf(Offset.Zero) } var readerViewportHeightPx by remember(article.url) { mutableIntStateOf(0) } var fontSize by remember(article.url) { mutableIntStateOf(20) } + var textSizeMenuExpanded by remember(article.url) { mutableStateOf(false) } var completionDismissed by remember(article.url) { mutableStateOf(false) } var selectionActionModeActive by remember(article.url) { mutableStateOf(false) } var readerChromeVisible by remember(article.url) { mutableStateOf(true) } val imeVisible = WindowInsets.ime.getBottom(LocalDensity.current) > 0 val accessibilityEnabled = context.getSystemService(AccessibilityManager::class.java)?.isEnabled == true - val readerChromePinned = activeWord != null || selectionActionModeActive || imeVisible || accessibilityEnabled + val readerChromePinned = ReaderChromePolicy.shouldPinChrome( + definitionOpen = activeWord != null, + selectionActive = selectionActionModeActive, + imeVisible = imeVisible, + accessibilityEnabled = accessibilityEnabled, + textSizeMenuExpanded = textSizeMenuExpanded + ) val readerChromeMotionMs = if (ValueAnimator.areAnimatorsEnabled()) 160 else 0 LaunchedEffect(article.url) { @@ -2957,6 +2964,8 @@ private fun ReaderScreen( glassAlpha = glassAlpha, dark = dark, fontSize = fontSize, + textSizeMenuExpanded = textSizeMenuExpanded, + onTextSizeMenuExpandedChange = { textSizeMenuExpanded = it }, onBack = { readerWebViewHolder.value?.flushReadingPosition() onBack() @@ -3216,7 +3225,8 @@ private fun ReaderScreen( reachedBottom = reachedBottom, definitionOpen = activeWord != null, dismissed = completionDismissed, - selectionActive = selectionActionModeActive + selectionActive = selectionActionModeActive, + transientControlOpen = textSizeMenuExpanded ), enter = fadeIn(animationSpec = tween(readerChromeMotionMs)) + slideInVertically(animationSpec = tween(readerChromeMotionMs)) { it / 4 }, @@ -3270,11 +3280,11 @@ private fun ReaderGlassToolbar( glassAlpha: Float, dark: Boolean, fontSize: Int, + textSizeMenuExpanded: Boolean, + onTextSizeMenuExpandedChange: (Boolean) -> Unit, onBack: () -> Unit, onFontSizeChange: (Int) -> Unit ) { - var textSizeMenuExpanded by remember(article.url) { mutableStateOf(false) } - PrismalTransientSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 6.dp), @@ -3313,7 +3323,7 @@ private fun ReaderGlassToolbar( } Box { IconButton( - onClick = { textSizeMenuExpanded = true }, + onClick = { onTextSizeMenuExpandedChange(true) }, modifier = Modifier.size(48.dp).semantics { contentDescription = "Text size, $fontSize sp" } @@ -3323,7 +3333,7 @@ private fun ReaderGlassToolbar( } DropdownMenu( expanded = textSizeMenuExpanded, - onDismissRequest = { textSizeMenuExpanded = false }, + onDismissRequest = { onTextSizeMenuExpandedChange(false) }, modifier = Modifier.widthIn(min = 196.dp), shape = RoundedCornerShape(18.dp), containerColor = Color.Transparent, @@ -3344,7 +3354,7 @@ private fun ReaderGlassToolbar( enabled = fontSize > ReaderChromePolicy.MIN_FONT_SIZE_SP, onClick = { onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, -1)) - textSizeMenuExpanded = false + onTextSizeMenuExpandedChange(false) } ) DropdownMenuItem( @@ -3353,7 +3363,7 @@ private fun ReaderGlassToolbar( enabled = fontSize < ReaderChromePolicy.MAX_FONT_SIZE_SP, onClick = { onFontSizeChange(ReaderChromePolicy.adjustFontSize(fontSize, 1)) - textSizeMenuExpanded = false + onTextSizeMenuExpandedChange(false) } ) DropdownMenuItem( diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index a9a09653..d6075688 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -13,10 +13,20 @@ internal object ReaderChromePolicy { const val SHOW_THRESHOLD_DP = 12 const val HIDE_SETTLE_DELAY_MS = 160L + /** Any transient reader interaction that needs controls keeps the chrome visible. */ + fun shouldPinChrome( + definitionOpen: Boolean, + selectionActive: Boolean, + imeVisible: Boolean, + accessibilityEnabled: Boolean, + textSizeMenuExpanded: Boolean + ): Boolean = definitionOpen || selectionActive || imeVisible || + accessibilityEnabled || textSizeMenuExpanded + /** * Downward document movement hides chrome after a larger threshold; upward movement * reveals it after a smaller threshold. Direction changes reset accumulated distance. - * Pinning (selection/definition/IME/accessibility) and returning to the top always reveal. + * Pinning (selection/definition/IME/accessibility/transient menu) and returning to the top always reveal. */ fun onScroll( state: ReaderChromeScrollState, @@ -56,6 +66,8 @@ internal object ReaderChromePolicy { reachedBottom: Boolean, definitionOpen: Boolean, dismissed: Boolean, - selectionActive: Boolean = false - ): Boolean = reachedBottom && !definitionOpen && !dismissed && !selectionActive + selectionActive: Boolean = false, + transientControlOpen: Boolean = false + ): Boolean = reachedBottom && !definitionOpen && !dismissed && + !selectionActive && !transientControlOpen } diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt index f4b24e9a..b9f65b2b 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -27,7 +27,77 @@ class ReaderChromePolicyTest { assertFalse(ReaderChromePolicy.shouldShowCompletion(true, true, false)) assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, true)) assertFalse(ReaderChromePolicy.shouldShowCompletion(true, false, false, selectionActive = true)) + assertFalse( + ReaderChromePolicy.shouldShowCompletion(true, false, false, transientControlOpen = true) + ) + } + @Test + fun textSizeMenuAndOtherTransientStatesPinReaderChrome() { + assertTrue( + ReaderChromePolicy.shouldPinChrome( + definitionOpen = true, + selectionActive = false, + imeVisible = false, + accessibilityEnabled = false, + textSizeMenuExpanded = false + ) + ) + assertTrue( + ReaderChromePolicy.shouldPinChrome( + definitionOpen = false, + selectionActive = true, + imeVisible = false, + accessibilityEnabled = false, + textSizeMenuExpanded = false + ) + ) + assertTrue( + ReaderChromePolicy.shouldPinChrome( + definitionOpen = false, + selectionActive = false, + imeVisible = true, + accessibilityEnabled = false, + textSizeMenuExpanded = false + ) + ) + assertTrue( + ReaderChromePolicy.shouldPinChrome( + definitionOpen = false, + selectionActive = false, + imeVisible = false, + accessibilityEnabled = true, + textSizeMenuExpanded = false + ) + ) + val menuOpen = ReaderChromePolicy.shouldPinChrome( + definitionOpen = false, + selectionActive = false, + imeVisible = false, + accessibilityEnabled = false, + textSizeMenuExpanded = true + ) + assertTrue(menuOpen) + assertTrue( + ReaderChromePolicy.onScroll( + state = ReaderChromeScrollState(visible = false), + deltaY = 30, + hideThresholdPx = 24, + showThresholdPx = 12, + pinned = menuOpen, + atTop = false + ).visible + ) + assertFalse( + ReaderChromePolicy.shouldPinChrome( + definitionOpen = false, + selectionActive = false, + imeVisible = false, + accessibilityEnabled = false, + textSizeMenuExpanded = false + ) + ) } + @Test fun downwardScrollHidesOnlyAfterLargerThreshold() { var state = ReaderChromeScrollState() diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index f3d1fcf7..55bb2067 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -758,3 +758,61 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - PR #16 and #18 remain open/draft; #19/#20/#23/#28 are closed/merged into black-box-bihar-news only. No PR was merged or retargeted in this audit. - Exact active-head run #241 passed on ec86b2fef2f5e86c3b95f2a2a2269bfef6158053; WordNet builder 4/4, 151,456 unique words, JVM tests, debug APK assembly and artifact upload succeeded. Artifact 13579222899, 39,094,929 bytes, SHA-256 d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f. The next UI commit needs its own natural push run. - Active branch workflow `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions and a separate main-push-only Release-write job. Main workflow `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only. Latest Release is `v0.2.0-build-116`; no Release publication, manual dispatch/rerun, main write, PR merge or source-branch mutation occurred. + + +## Live branch and PR freshness audit — 7 November 2026, 22:24 IST + +- Default branch: `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Complete remote refs: **37** (page 1 returned all 37; page 2 empty). Open PRs: **20** — #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8 and #6. Closed PRs: **14** — #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2 and #1; page 2 empty. +- Selected line remains `black-box-bihar-news@818afb47eaadc685f133eaffc3efd199392627e4`, direct child of `ec86b2fef2f5e86c3b95f2a2a2269bfef6158053`; comparison: **109 ahead / 0 behind main**, **52 ahead / 0 behind PR #16**. It is also the exact head of open draft PR #34 (base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, 109 ahead / 0 behind). No other branch is a newer coherent UI baseline. +- Actions: all **243** runs paginated (100 + 100 + 43; page 4 empty): 144 success, 58 failure, 41 cancelled; queued 0, in-progress 0. Exact PR #34 run #243 and push run #242 passed on head 818afb47; artifacts #13580718014 (39,094,949 bytes) and #13580578348 (39,094,947 bytes). Build job steps passed WordNet generation, JVM tests, APK assembly and upload; publish jobs skipped. The log-archive endpoint returned a transient BlobNotFound response, so step summaries—not raw log text—are the available evidence. +- Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66`: read-only build/test and separate main-push-only Release write. Main workflow blob `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only. The exact PR #34 pull_request run #243 nevertheless occurred and passed using the branch workflow. Latest Release remains `v0.2.0-build-116`; no Release was published by #242/#243. + +### Complete remote branch inventory + +| Branch | Head SHA | Latest commit (UTC) | Latest subject | PR / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | #30 open; represented | +| `black-box-bihar-news` | `818afb47eaadc685f133eaffc3efd199392627e4` | 2026-11-07 16:02Z | ui: refine supporting glass tone across dashboard and stats | #34 open/draft; active | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | #24 open; divergent sibling | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | #18 open; workflow intent represented | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | #20 merged into black-box only | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | same head as main; no open PR | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53Z | fix: refresh article card metadata when feed content changes | #6 open | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14Z | fix: select Atom article alternate links deterministically | #12 open; policy represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26Z | feat: expose publication date and publisher RSS provenance on cards | #11 open; selective policies represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33Z | fix: minimise shareable process-exit diagnostics | #16 open; stability ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `627014500a7a983377b7c2fc82ca0cd238f776b9` | 2026-11-07 13:50Z | test(editorial): require a syllabus issue beyond institution names | #27 open; independent | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05Z | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46Z | fix(editorial): match policy action and target as separate words | #24 open; based on brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16Z | test: align economy signal count with repo-rate mapping | #2 merged | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34Z | fix: tighten UPSC editorial signal matching | #1 merged | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27Z | fix: use supported calendar navigation glyph | #5 merged | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49Z | test: preserve Parliament bill headline variants | #23 merged into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15Z | Validate RSS redirects against publisher allowlists | #15 closed unmerged; policy present in active line | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12Z | fix(quiz): qualify selected semantics receiver | #28 merged into black-box only | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59Z | test(rss): correct relative xml base fixture | #33 open | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28Z | test(reader): cover publisher-only image resources | #25 open; security review pending | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42Z | fix: deduplicate RSS tracking URL variants | #17 open; policy represented | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44Z | fix: capture Search glass tint before draw callback | #10 merged | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39Z | fix: diagnose launch crashes and move feed indexing off main | #9 merged | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | #7 merged | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53Z | Verify legacy markers survive recent-history retention | #22 open; policy represented with legacy caveat | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29Z | docs: record bounded RSS fetch review and CI state | #32 open; independent | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11Z | fix(startup): keep appearance snapshot API module-internal | #31 open; represented | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05Z | perf(storage): move bookmark mutations off the UI thread | #29 open; represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50Z | perf: move read-marker persistence off main thread | #8 open; reconciled policy | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27Z | privacy: block third-party publisher reader subresources | #26 open; security review pending | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31Z | fix: make selection decoding fallback valid JSON | no PR; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56Z | ui: restore low-cadence foreground adaptive glass contrast | #13 open; conservative policy represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25Z | fix: import bottom navigation glyphs | #4 closed unmerged; stale sibling | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11Z | docs(reader): record native selection collision guard | #19 merged into black-box only | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18Z | fix: finish syllabus metadata and thin-film feed eligibility | no PR; 25 behind active branch | + +### Dependency and port decisions + +- **Already represented in black-box:** PR #19 Reader UI, #20 workflow, #23 parliamentary gate, #28 Quiz semantics; selective PR #11/#12/#17 feed policies; PR #8/#22 read-history reconciliation; PR #13 conservative 4s/6s adaptive contrast; PR #29 bookmark IO; PR #30 48dp target policy; PR #31 off-main appearance snapshot. Their source branches remain untouched. +- **Not adopted as baselines:** `brrrNEWS` is divergent (4 ahead / 15 behind; merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`); `ui/liquid-glass-system-continuation` is 25 behind; `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are stale. +- **Independent remaining work:** PR #27 editorial action gate (26 ahead / 10 behind), PR #32 bounded RSS concurrency (2 ahead / 4 behind), and PR #33 relative Atom resolution (4 ahead / 2 behind) are not included in this Reader UI batch; the PR #34 owner comment asks for reconciliation before completion. PR #25 asset-host and #26 publisher subresource security branches remain held for one combined host/security review. PR #24 is based on divergent `brrrNEWS`. +- **No source branch was modified, merged, retargeted or deleted.** Only the selected `black-box-bihar-news` branch may receive this UI batch; no main write, workflow edit, manual dispatch/rerun or Release publication is allowed. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a1274d36..d961330e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,13 +1,13 @@ # Liquid Glass UI Roadmap -**Status:** Shared Prismal coverage includes the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and the unified Reader/Quiz transient tier. This pass strengthens the quiet supporting-card tint/rim without adding live blur or capture. +**Status:** Shared Prismal coverage spans the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and the unified Reader/Quiz transient tier. The Reader Aa menu now pins the toolbar while open and suppresses the completion dock until dismissal; no new render pass or backdrop capture is added. **Feature branch:** black-box-bihar-news — the sole active integration/UI branch by explicit owner direction. -**Source baseline for this pass:** black-box-bihar-news@ec86b2fef2f5e86c3b95f2a2a2269bfef6158053 (2026-11-07T15:09:39Z); 108 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 51 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. -**Previous exact active-branch validation:** [Actions run #241](https://github.com/Batmancpu/CurrentLens/actions/runs/42385017675), exact source SHA ec86b2fef2f5e86c3b95f2a2a2269bfef6158053, success. Four WordNet builder tests passed; 151,456 unique words generated; :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded. Artifact 13579222899, 39,094,929 bytes, SHA-256 d60b7e0d261c0ccac6bb5b407a642bd54183cca7abf1601b9fae541645bc838f, expires 21 Nov 2026 15:11:49Z. -**Latest overall natural run:** [#241](https://github.com/Batmancpu/CurrentLens/actions/runs/42385017675) is the same successful run on the active branch head; no active or queued Actions jobs remain. -**Actions history:** 241 runs fully paginated; 142 success, 58 failure, 41 cancelled; queue empty. -**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only, so no PR-to-main validation is claimed. Latest Release remains v0.2.0-build-116; no Release was created. -**Branch graph:** 37 remote branches (page 1 complete, page 2 empty), 19 open PRs and 14 closed PRs. black-box-bihar-news is 108 ahead / 0 behind main and 51 ahead / 0 behind PR #16. brrrNEWS is divergent (4 ahead / 14 behind); its useful supporting-material implementation is already represented. Newer independent parser/RSS/security/editorial branches remain separate and were not used as a UI baseline; see docs/BRANCH_CONSOLIDATION.md. +**Source baseline for this pass:** black-box-bihar-news@818afb47eaadc685f133eaffc3efd199392627e4 (2026-11-07T16:02:13Z); 109 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 52 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. +**Previous exact active-branch validation:** [PR run #243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591) and [push run #242](https://github.com/Batmancpu/CurrentLens/actions/runs/42389254191) both succeeded on exact parent SHA 818afb47eaadc685f133eaffc3efd199392627e4. Job-step summaries confirm WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload passed. PR artifact 13580718014 (39,094,949 bytes; expires 21 Nov 2026 16:04:54Z); push artifact 13580578348 (39,094,947 bytes). +**Latest overall natural run:** [#243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591), successful PR #34 validation on the exact active-branch parent head; #242 is the matching successful push run. No queued or in-progress Actions jobs remain. +**Actions history:** 243 runs fully paginated (pages 1–3; page 4 empty): 144 success, 58 failure, 41 cancelled; queue empty. +**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only; nevertheless the exact PR #34 event naturally ran as #243 and passed on the PR head. Latest Release remains v0.2.0-build-116; neither #242 nor #243 published a Release. +**Branch graph:** 37 remote branches (page 1 complete, page 2 empty), 20 open PRs and 14 closed PRs. black-box-bihar-news is 109 ahead / 0 behind main and 52 ahead / 0 behind PR #16. brrrNEWS is divergent (4 ahead / 15 behind); its useful supporting-material implementation is already represented. PR #29/#30/#31 changes are also already represented; PR #27/#32/#33 remain independent editorial/feed candidates, and #25/#26 remain pending a combined publisher-resource security review. See the latest complete table in docs/BRANCH_CONSOLIDATION.md. **Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -435,3 +435,30 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 screenshots, real light/dark contrast, large font scaling, TalkBack focus, Reduce Motion, card scrolling/jank, GPU overdraw, allocations/memory, startup, thermal and battery remain UNVERIFIED. - After this exact head's natural CI passes, continue the remaining transient-sheet/menu and whole-app consistency audit; retain the 8×8 adaptive probe's 4s/6s foreground-idle cadence and never add per-card capture/readback. + + +## Reader Aa menu pinning — 7 November 2026, 22:24 IST + +**Freshness / baseline** +- Re-enumerated all 37 remote branches (page 1: 37, page 2: 0), 20 open PRs and 14 closed PRs; paginated all 243 Actions runs (100 + 100 + 43; page 4 empty) and confirmed the queue is empty. +- Implementation source is `black-box-bihar-news@818afb47eaadc685f133eaffc3efd199392627e4`, a direct child of `ec86b2fef2f5e86c3b95f2a2a2269bfef6158053); 109 ahead / 0 behind main and 52 ahead / 0 behind PR #16's corrected stability/Prismal head. PR #34 remains the sole consolidation draft; no other branch is used as the baseline. +- PR #30's 48dp touch-target policy, PR #31's off-main appearance restore and PR #29's serialized bookmark persistence are already represented in the active branch. Their source branches remain unchanged. PR #32 (RSS concurrency), #33 (relative Atom links) and #27 (editorial action gate) remain separate; PR #25/#26 remain held for combined publisher-resource security review. The old Liquid Glass and v0.3 branches are not baselines. + +**Implementation** +- Hoisted `textSizeMenuExpanded` from `ReaderGlassToolbar` to `ReaderScreen`, keyed by article URL, and passed it back to the toolbar through a controlled state/callback. +- Added pure `ReaderChromePolicy.shouldPinChrome`; an open Aa menu now joins definition selection, native ActionMode, IME and enabled accessibility services as a chrome-pinning condition. The existing `ReaderWebView.setReaderChromePinned` path reveals the toolbar and cancels a pending hide without adding scroll polling or per-pixel Compose state. +- The completion dock is suppressed while the Aa menu is open, then becomes eligible again when the menu is dismissed. Font-size steps/clamping, source/date provenance, article reload semantics, native Copy/Select/share, dictionary selection and WebView privacy settings are unchanged. +- Added JVM policy coverage for each pinning reason, menu-open reveal behaviour and completion suppression. These tests are **added, not yet run** on this new commit. + +**Paired rendering / performance strategy** +- No new Prismal surface, blur/refraction parameter, backdrop capture, sampler/readback, shader, graphics layer, image decode, dependency, timer, network request or persistence operation was added. +- The Aa dropdown continues to use its existing small `PrismalTransientSurface` and the one background-only root source. Only the already-mounted Reader chrome state is pinned while the menu is visible; the completion surface is not composed in that state. +- This is a state/lifecycle correctness change, not a measured frame-time, GPU, memory, battery or thermal improvement. + +**CI / release** +- Parent SHA `818afb47eaadc685f133eaffc3efd199392627e4` passed natural push run [#242](https://github.com/Batmancpu/CurrentLens/actions/runs/42389254191) and exact PR #34 run [#243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591). Both build jobs passed WordNet generation, JVM tests, APK assembly and artifact upload; PR artifact `13580718014` is 39,094,949 bytes. Publish jobs were skipped. +- The new Reader pinning commit has **no CI result yet**; wait for its natural branch run. Main remains unchanged; no workflow edit, manual dispatch/rerun, Release publication, PR merge or source-branch mutation occurred. + +**Unverified / next** +- OPPO Reno10 screenshots, cold/warm launch, menu/toolbar collision, native selection, TalkBack, Reduce Motion, font scaling, animation smoothness, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. +- After the new exact head's natural CI completes, continue the transient-surface/accessibility audit; separately reconcile PR #27/#32/#33 only after full dependency review, and keep #25/#26 behind a combined publisher-host/subresource security review. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index e90432ec..8b19ad66 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,20 +1,18 @@ -# CurrentLens — Latest project handoff (7 November 2026) +# CurrentLens — Latest project handoff (7 November 2026, 22:24 IST) +## Live snapshot — 7 November 2026, 22:24 IST -## Live snapshot — 7 November 2026 (after natural runs #210–#211) - -- Active integration branch: `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5`; 101 ahead / 0 behind main and 44 ahead / 0 behind PR #16. The selected line retains PR #16's background-only Prismal capture correction and the consolidated Reader/Search/navigation/dashboard/Appearance/Quiz work. -- Complete live inventory: 32 remote branches, 14 open/draft PRs and 14 closed PRs. PR #28's one-line Quiz semantics compile fix is now included in black-box; its source branch remains. No other branch was changed or deleted. -- Latest active-branch natural validation: run #210 passed on exact SHA `6f9b3c1e1a484233721863d0b736734c0d282cd5`; WordNet builder tests (4/4), 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. Artifact `13568511654`, 39,082,053 bytes; Release job skipped. -- Latest overall natural run #211 passed on PR #27's independent head `9b70ed1c7c39bb511399c6284c7e8833f4672618`; it does not validate black-box. PR #27 remains open/draft with a useful four-file editorial action gate; it was not ported in this UI iteration. -- PR #25 and #26 publisher asset/subresource security changes remain open and unintegrated pending a separate Reader/NewsCard reconciliation. PR #24 remains on divergent brrrNEWS. Current 8×8 adaptive glass probe remains 4s/6s, paused during scroll/background/Reader/Quiz/Settings/Reduce Transparency. -- Current active workflow uses read-only build/test permissions and a separate main-push-only release job. Main's workflow is still push-only with workflow-wide contents: write; no black-box-to-main PR was created. -- Latest Release remains `v0.2.0-build-116`. No new Release, manual dispatch or rerun. -- Device-backed OPPO cold/warm launch, screenshots, visual motion, TalkBack, Reduce Motion, Perfetto/frame timing, overdraw, memory, thermal and battery remain **UNVERIFIED**. -- Next: recheck the complete live branch graph and exact CI head before the next Liquid Glass screen batch; audit remaining transient dialogs/sheets/menus without adding glass to dense content surfaces. +- **Active integration/UI branch:** `black-box-bihar-news@818afb47eaadc685f133eaffc3efd199392627e4` before the Reader Aa pinning change; 109 ahead / 0 behind main and 52 ahead / 0 behind PR #16. It remains the owner-selected single integration line and direct descendant of PR #16's corrected background-only Prismal/stability baseline. +- **Draft consolidation PR:** [#34](https://github.com/Batmancpu/CurrentLens/pull/34), base main, open/draft, 109 ahead / 0 behind. Natural push run [#242](https://github.com/Batmancpu/CurrentLens/actions/runs/42389254191) and exact PR run [#243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591) both passed on parent SHA 818afb47. PR artifact 13580718014 (39,094,949 bytes); push artifact 13580578348 (39,094,947 bytes); publish jobs skipped. +- **Repository inventory:** 37 remote branches, 20 open PRs and 14 closed PRs. Full current branch table and exact head metadata are in docs/BRANCH_CONSOLIDATION.md. No source branch was deleted or changed. +- **Liquid Glass state:** primary shell, Search clear, feed-only compact navigation, Reader auto-hide, definition selection pinning, completion dock, Appearance preview/reduced-transparency fallback, Saved/stats filters, supporting dashboard/stat materials and Reader/Quiz transient material are represented. This pass hoists the Reader Aa menu state so the menu pins chrome and suppresses the completion dock while open; its new JVM tests await natural CI. +- **Outstanding non-UI candidates:** PR #27 editorial action gate, #32 bounded RSS concurrency and #33 relative Atom links remain separate; PR #25/#26 remain held for a combined publisher-resource security review. PR #29/#30/#31 and #13's conservative adaptive-contrast policy are already represented. +- **Actions:** 243 total runs fully paginated; 144 success, 58 failure, 41 cancelled; queue empty. Active branch workflow uses read-only build/test permissions and separate main-push Release write. Main workflow remains push-only; PR #34 nevertheless received its exact natural pull_request run #243. Latest Release remains v0.2.0-build-116. +- **No main edit, merge, retarget, workflow change, manual dispatch/rerun or Release publication.** +- **Device evidence:** OPPO Reno10 cold/warm launch, visual screenshots, menu/definition collision, TalkBack, Reduce Motion, animation smoothness, Perfetto/frame timing, GPU overdraw, memory/allocation, thermal and battery remain **UNVERIFIED**. CI success is not device verification. +- **Next:** wait for the natural run on the new Reader Aa pinning head; inspect its exact jobs/artifact before another UI batch. Keep branch-freshness checks mandatory. > This snapshot supersedes earlier live snapshots below where they conflict. Historical context remains in SESSION_LEDGER.md. - ## Live snapshot — 7 November 2026, 11:38 IST - Current integration branch: black-box-bihar-news, verified pre-batch head cfe0b3e8319374df5cb29423f04a79c77d4fe10e; 97 ahead / 0 behind main and 40 ahead / 0 behind PR #16. The low-effects Appearance batch is authored from this exact head; its resulting SHA and natural CI are pending. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index cc174c6a..f78b9928 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -389,3 +389,16 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Rejected scope expansion:** no further UI changes were added before verifying the compiler fix; no workflow, dependency, package, app identity, network, storage schema, main branch or Release change. - **Risks / unverified:** TalkBack selected-state runtime, font scaling, OPPO Reno10 cold/warm launch, visual animation, Reduce Motion, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery were not measured. CI is not device verification. - **Next:** re-read all branch heads/PR diffs and current Actions before another screen-sized Liquid Glass pass; review remaining transient dialogs/sheets/menus while preserving high-contrast reading/data surfaces. + + +## 2026-11-07 22:24 IST — Reader Aa menu pinning and completion collision guard + +- **Repository / active line:** Batmancpu/CurrentLens, `black-box-bihar-news`; pre-change head `818afb47eaadc685f133eaffc3efd199392627e4`, direct parent `ec86b2fef2f5e86c3b95f2a2a2269bfef6158053`. Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`; comparison is 109 ahead / 0 behind main and 52 ahead / 0 behind PR #16's corrected Prismal/stability head. +- **Freshness gate:** all 37 remote branches, 20 open PRs and 14 closed PRs were re-enumerated. PR #34 is the active consolidation draft; PR #29/#30/#31 changes are already represented. PR #27/#32/#33 remain independent; #25/#26 remain pending combined publisher-resource security review. No other branch is a safer/newer UI baseline. +- **Prior CI:** natural push run #242 and exact PR #34 run #243 both passed on parent SHA 818afb47; WordNet generation, JVM tests, APK assembly and artifact upload steps succeeded. Artifacts 13580578348 (39,094,947 bytes) and 13580718014 (39,094,949 bytes); publish jobs skipped. Raw job-log retrieval returned BlobNotFound; step summaries are the available evidence. +- **Change:** moved `textSizeMenuExpanded` state from `ReaderGlassToolbar` to `ReaderScreen`; `ReaderChromePolicy.shouldPinChrome` now includes an open Aa menu alongside definition, native selection ActionMode, IME and accessibility. The existing `ReaderWebView.setReaderChromePinned` path keeps the toolbar visible and cancels pending hide while the menu is open. Completion CTA is suppressed until the menu closes. +- **Behaviour preserved:** font-size adjustment/clamping, source/date provenance, article loading and saved reading position, native Copy/Select/share, dictionary selection bridge, publisher fallback restrictions and quiz submit-only persistence are unchanged. +- **Tests:** added pure JVM coverage for each pinning reason, Aa-menu pin/reveal, no-pin baseline and completion suppression. Tests are added but not run on the new commit yet. +- **Rendering/performance:** no new Prismal surface, capture, sampler/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence operation. Existing Aa dropdown and root background-only source are reused; completion surface is not composed while the menu is open. No measured GPU/frame/memory/battery improvement is claimed. +- **CI / device:** new commit awaits its natural push run; no manual dispatch/rerun. OPPO Reno10 launch, menu collision, TalkBack, Reduce Motion, font scaling, Perfetto/frame timing, GPU overdraw, allocations, memory, thermal and battery remain UNVERIFIED. +- **Next:** inspect the exact new-head CI run before further UI work; then review remaining transient controls. Keep PR #27/#32/#33 and #25/#26 on separate dependency/security reviews. From ad16cecf06add374b3e19989d0829919d0055114 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 7 Nov 2026 23:32:35 +0530 Subject: [PATCH 108/175] ui: improve grouped filter legibility and reuse --- .../mangoloads/currentlens/MainActivity.kt | 24 +++++-- docs/BRANCH_CONSOLIDATION.md | 63 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 45 ++++++++++--- 3 files changed, 117 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 46b9dcc5..a5081231 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1907,6 +1907,7 @@ private fun FilterChipRow( selected: String, onSelected: (String) -> Unit ) { + val distinctOptions = remember(options) { options.distinct() } Column(Modifier.fillMaxWidth().padding(top = 3.dp)) { Text(title, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary, modifier = Modifier.padding(start = 16.dp, bottom = 2.dp)) @@ -1914,12 +1915,21 @@ private fun FilterChipRow( Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()).padding(horizontal = 13.dp, vertical = 3.dp), horizontalArrangement = Arrangement.spacedBy(6.dp) ) { - options.distinct().forEach { option -> + distinctOptions.forEach { option -> + val isSelected = selected == option FilterChip( - selected = selected == option, + selected = isSelected, onClick = { onSelected(option) }, - modifier = Modifier.heightIn(min = 48.dp), - label = { Text(option, fontSize = 11.sp) } + modifier = Modifier.widthIn(min = 48.dp).heightIn(min = 48.dp), + label = { + Text( + option, + fontSize = 12.sp, + fontWeight = if (isSelected) FontWeight.SemiBold else FontWeight.Medium, + maxLines = 1, + softWrap = false + ) + } ) } } @@ -2064,14 +2074,16 @@ private fun CompactFilterRow( verticalAlignment = Alignment.CenterVertically ) { distinctOptions.forEach { option -> + val isSelected = selected == option FilterChip( - selected = selected == option, + selected = isSelected, onClick = { onSelected(option) }, modifier = Modifier.widthIn(min = 48.dp).heightIn(min = 48.dp), label = { Text( option, - fontSize = 11.sp, + fontSize = 12.sp, + fontWeight = if (isSelected) FontWeight.SemiBold else FontWeight.Medium, maxLines = 1, softWrap = false ) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 55bb2067..1828a103 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -816,3 +816,66 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - **Not adopted as baselines:** `brrrNEWS` is divergent (4 ahead / 15 behind; merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`); `ui/liquid-glass-system-continuation` is 25 behind; `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are stale. - **Independent remaining work:** PR #27 editorial action gate (26 ahead / 10 behind), PR #32 bounded RSS concurrency (2 ahead / 4 behind), and PR #33 relative Atom resolution (4 ahead / 2 behind) are not included in this Reader UI batch; the PR #34 owner comment asks for reconciliation before completion. PR #25 asset-host and #26 publisher subresource security branches remain held for one combined host/security review. PR #24 is based on divergent `brrrNEWS`. - **No source branch was modified, merged, retargeted or deleted.** Only the selected `black-box-bihar-news` branch may receive this UI batch; no main write, workflow edit, manual dispatch/rerun or Release publication is allowed. + + +## Live branch freshness audit — 7 November 2026, 23:26 IST + +**Repository and authoritative line** +- Default branch is `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; it is unchanged. The owner-selected active integration/UI branch is `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1`, 110 commits ahead / 0 behind main and 53 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 is open/draft, base main, and remains the single consolidation PR. +- The branch is the freshest coherent UI/integration lineage: it contains the corrected background-only root capture, PR #19 Reader/Search/navigation work, the single read-only validation workflow, and the previously reconciled feed, persistence, editorial and accessibility changes. No sibling UI branch supersedes it. +- Complete inventory: 38 remote branches (one page, no further page), 21 open PRs and 14 closed PRs. The full head/commit/PR/comparison table below was captured against the pre-change active head `ed6c94190296c8d7af400b80f6fe26f2252fafe1`; the filter-control implementation is a direct child of that source. No branch was deleted or modified outside the selected integration branch. +- Open PRs: #34, #27, #35, #33, #32, #31, #30, #29, #25, #26, #24, #11, #13, #6, #17, #22, #21, #16, #18, #8 and #12. Closed PRs: #28, #23, #19, #20, #14, #15, #10, #9, #7, #5, #4, #3, #2 and #1. +- PR #35 is a separate direct child of the active head (6 ahead / 0 behind) containing bounded diagnostic-file reads; its exact-head natural run #251 passed, but it is not a UI baseline and was not integrated in this screen-sized pass. PR #27 is editorial-only and diverged 28 ahead / 11 behind. PR #32 and #33 both touch `NewsRepository.kt` and must be reconciled together. PR #25/#26 remain behind a combined publisher asset/subresource security review. +- PR #29/#30/#31 source branches are divergent but their bookmark IO, 48dp target and off-main appearance snapshot implementations are already represented in current code. PR #19/#20/#23/#28 changes are integrated into black-box only. PR #13's original faster adaptive sampler is not copied; the current shared 8×8 policy remains 4s/6s and pauses outside eligible foreground-home idle state. +- `brrrNEWS` is a divergent sibling (4 ahead / 16 behind); `ui/liquid-glass-performance` is 3 ahead / 128 behind; `ui/liquid-glass-system` is 40 behind; `ui/liquid-glass-system-continuation` is 26 behind; `redesign/v0.3-search-reader` is 204 behind. None is used as a baseline. + +| Remote branch | Head SHA | Last commit (UTC) | Last commit message | PR relationship | Compare to active head | +|---|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | #30 open | 3 ahead / 6 behind | +| `black-box-bihar-news` | `ed6c94190296c8d7af400b80f6fe26f2252fafe1` | 2026-11-07 17:00Z | fix(reader): pin chrome while Aa menu is open | #34 open; base main | current selected head | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | #24 base; divergent sibling | 4 ahead / 16 behind | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | #18 open | 1 ahead / 110 behind | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | #20 closed; represented | 0 ahead / 51 behind | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | ref currently equals main; PR #14 closed | 0 ahead / 110 behind | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53Z | fix: refresh article card metadata when feed content changes | #6 open; editorial | 10 ahead / 123 behind | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14Z | fix: select Atom article alternate links deterministically | #12 open; parser delta represented selectively | 1 ahead / 123 behind | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26Z | feat: expose publication date and publisher RSS provenance on cards | #11 open; selective policies represented | 3 ahead / 110 behind | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33Z | fix: minimise shareable process-exit diagnostics | #16 open; ancestor | 0 ahead / 53 behind | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `a5dddb3697b18167b195f79a60b4f14468f789c3` | 2026-11-07 17:32Z | Test active-voice historical policy false positive | #27 open; editorial | 28 ahead / 11 behind | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05Z | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open; editorial | not compared; non-UI | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46Z | fix(editorial): match policy action and target as separate words | #24 open; based on brrrNEWS | 9 ahead / 16 behind | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16Z | test: align economy signal count with repo-rate mapping | #2 closed | 1 ahead / 129 behind | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34Z | fix: tighten UPSC editorial signal matching | #1 closed | 1 ahead / 130 behind | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27Z | fix: use supported calendar navigation glyph | #5 closed | 2 ahead / 127 behind | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49Z | test: preserve Parliament bill headline variants | #23 closed; merged into black-box only | 0 ahead / 19 behind | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15Z | Validate RSS redirects against publisher allowlists | #15 closed; policy present in active line | 2 ahead / 110 behind | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12Z | fix(quiz): qualify selected semantics receiver | #28 closed; merged into black-box only | 0 ahead / 9 behind | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59Z | test(rss): correct relative xml base fixture | #33 open; parser delta | 4 ahead / 3 behind | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28Z | test(reader): cover publisher-only image resources | #25 open; security review pending | 7 ahead / 12 behind | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42Z | fix: deduplicate RSS tracking URL variants | #17 open; policy represented selectively | 1 ahead / 110 behind | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44Z | fix: capture Search glass tint before draw callback | #10 closed | 1 ahead / 124 behind | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39Z | fix: diagnose launch crashes and move feed indexing off main | #9 closed | 1 ahead / 125 behind | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | #7 closed | 1 ahead / 126 behind | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | default branch | 0 ahead / 110 behind | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34Z | Record successful bounded-diagnostic CI | #35 open; direct child | 6 ahead / 0 behind | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53Z | Verify legacy markers survive recent-history retention | #22 open; legacy caveat | 9 ahead / 123 behind | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29Z | docs: record bounded RSS fetch review and CI state | #32 open; NewsRepository delta | 2 ahead / 5 behind | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11Z | fix(startup): keep appearance snapshot API module-internal | #31 open; represented | 5 ahead / 5 behind | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05Z | perf(storage): move bookmark mutations off the UI thread | #29 open; represented | 1 ahead / 9 behind | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50Z | perf: move read-marker persistence off main thread | #8 open; reconciled policy | 3 ahead / 123 behind | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27Z | privacy: block third-party publisher reader subresources | #26 open; security review pending | 1 ahead / 11 behind | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31Z | fix: make selection decoding fallback valid JSON | no PR; stale | 0 ahead / 204 behind | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56Z | ui: restore low-cadence foreground adaptive glass contrast | #13 open; conservative policy represented | 1 ahead / 123 behind | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25Z | fix: import bottom navigation glyphs | #3/#4 closed; stale sibling | 3 ahead / 128 behind | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11Z | docs(reader): record native selection collision guard | #19 closed; merged into black-box only | 0 ahead / 40 behind | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18Z | fix: finish syllabus metadata and thin-film feed eligibility | no PR; superseded | 0 ahead / 26 behind | + +**Actions, workflow and Releases** +- All 251 Actions runs were paginated (100 + 100 + 51): 149 success, 58 failure, 44 cancelled; no queued or in-progress run remains. +- Latest active-branch validation before this pass is PR run #245 and push run #244, both successful on `ed6c94190296c8d7af400b80f6fe26f2252fafe1`. PR artifact `13582611557` is 39,095,549 bytes; push artifact `13581944398` is the same size. Both jobs completed WordNet builder tests/database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; release jobs skipped. +- Latest overall run #251 is PR #35's exact head `c4a977831846224182f16981b15e5c803761e26d`; its build/test/artifact steps passed and artifact `13584216067` is 39,095,814 bytes. It does not validate black-box. Run #250 passed on PR #27's separate editorial head. +- Active `.github/workflows/build-apk.yml` keeps build/test read-only and isolates Release write access to main pushes. Main's workflow remains push-only; PR #34's exact natural PR run #245 is the available PR validation evidence. Latest Release remains `v0.2.0-build-116`; no Release was created. +- No manual dispatch/rerun, main write, PR merge/retarget, workflow change, package identity change or source-branch deletion occurred. OPPO device launch/visual/performance/accessibility evidence remains unverified. + +**Disposition** +- Continue only on `black-box-bihar-news`; preserve every other branch and its PR state. Re-read all refs and comparisons before the next commit. The next UI pass is the Search/Saved/Stats grouped-filter readability improvement recorded in `docs/LIQUID_GLASS_UI_ROADMAP.md`; its CI is pending on the new child head. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index d961330e..84c0c0da 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,14 +1,15 @@ # Liquid Glass UI Roadmap -**Status:** Shared Prismal coverage spans the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and the unified Reader/Quiz transient tier. The Reader Aa menu now pins the toolbar while open and suppresses the completion dock until dismissal; no new render pass or backdrop capture is added. -**Feature branch:** black-box-bihar-news — the sole active integration/UI branch by explicit owner direction. -**Source baseline for this pass:** black-box-bihar-news@818afb47eaadc685f133eaffc3efd199392627e4 (2026-11-07T16:02:13Z); 109 commits ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 52 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. -**Previous exact active-branch validation:** [PR run #243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591) and [push run #242](https://github.com/Batmancpu/CurrentLens/actions/runs/42389254191) both succeeded on exact parent SHA 818afb47eaadc685f133eaffc3efd199392627e4. Job-step summaries confirm WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload passed. PR artifact 13580718014 (39,094,949 bytes; expires 21 Nov 2026 16:04:54Z); push artifact 13580578348 (39,094,947 bytes). -**Latest overall natural run:** [#243](https://github.com/Batmancpu/CurrentLens/actions/runs/42389283591), successful PR #34 validation on the exact active-branch parent head; #242 is the matching successful push run. No queued or in-progress Actions jobs remain. -**Actions history:** 243 runs fully paginated (pages 1–3; page 4 empty): 144 success, 58 failure, 41 cancelled; queue empty. -**Workflow / Releases:** active workflow blob 6cef6ca19f3babd331c9deb59be9da0067c6fa66 uses read-only build/test permissions and a separate main-push-only Release-write job. Main workflow blob 37197497288d9f0a60f4d1cfa8453e3dee52a902 remains push-only; nevertheless the exact PR #34 event naturally ran as #243 and passed on the PR head. Latest Release remains v0.2.0-build-116; neither #242 nor #243 published a Release. -**Branch graph:** 37 remote branches (page 1 complete, page 2 empty), 20 open PRs and 14 closed PRs. black-box-bihar-news is 109 ahead / 0 behind main and 52 ahead / 0 behind PR #16. brrrNEWS is divergent (4 ahead / 15 behind); its useful supporting-material implementation is already represented. PR #29/#30/#31 changes are also already represented; PR #27/#32/#33 remain independent editorial/feed candidates, and #25/#26 remain pending a combined publisher-resource security review. See the latest complete table in docs/BRANCH_CONSOLIDATION.md. -**Safety / device status:** no main change, app/package identity change, workflow edit, manual dispatch/rerun, Release publication, PR merge, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. +**Status:** Shared Prismal coverage spans the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and unified Reader/Quiz transient controls. This pass improves grouped-filter legibility and caches the Search sheet's option de-duplication; no new glass surface or capture is introduced. +**Feature branch:** `black-box-bihar-news` — the sole active integration/UI branch by explicit owner direction. +**Source baseline for this pass:** `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` (2026-11-07T17:00:49Z); 110 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and 53 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Previous exact active-branch validation:** [PR run #245](https://github.com/Batmancpu/CurrentLens/actions/runs/42394162322) and [push run #244](https://github.com/Batmancpu/CurrentLens/actions/runs/42394156457) both succeeded on exact source SHA `ed6c94190296c8d7af400b80f6fe26f2252fafe1`. WordNet builder tests (4/4), 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. PR artifact `13582611557` (39,095,549 bytes; expires 21 Nov 2026 17:02:22 UTC); push artifact `13581944398` (39,095,549 bytes). Release jobs skipped. +**Latest overall natural run:** [#251](https://github.com/Batmancpu/CurrentLens/actions/runs/42396975887) passed on PR #35's separate direct-child head `c4a977831846224182f16981b15e5c803761e26d`, not on the active branch; artifact `13584216067` (39,095,814 bytes). [#250](https://github.com/Batmancpu/CurrentLens/actions/runs/42396816439) passed on PR #27's separate editorial head. Neither run validates this filter-control commit. +**Actions history:** 251 runs fully paginated (100 + 100 + 51): 149 success, 58 failure, 44 cancelled; no queued or in-progress runs. +**Workflow / Releases:** `.github/workflows/build-apk.yml` on the integration branch uses read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only; PR #34's exact pull-request event nevertheless passed as run #245 using the integration branch's PR trigger. Latest Release remains `v0.2.0-build-116`; no new Release was published. +**Branch graph:** 38 remote branches, 21 open PRs and 14 closed PRs. `black-box-bihar-news` is 110 ahead / 0 behind main and 53 ahead / 0 behind PR #16. PR #35 is a separate 6-ahead / 0-behind direct child with bounded diagnostic reads; PR #27 is editorial-only and diverged 28 ahead / 11 behind; PR #32/#33 are independent feed changes that both touch `NewsRepository.kt`; PR #25/#26 remain held for combined publisher-resource security review. PR #29/#30/#31 changes are already represented. See the new complete 38-branch table in `docs/BRANCH_CONSOLIDATION.md`. +**Safety / device status:** no main write, merge, retarget, workflow edit, manual dispatch/rerun, Release publication, package/app identity change, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, font scaling, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. + ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) @@ -462,3 +463,29 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 screenshots, cold/warm launch, menu/toolbar collision, native selection, TalkBack, Reduce Motion, font scaling, animation smoothness, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. - After the new exact head's natural CI completes, continue the transient-surface/accessibility audit; separately reconcile PR #27/#32/#33 only after full dependency review, and keep #25/#26 behind a combined publisher-host/subresource security review. + + +## Grouped-filter legibility pass — 7 November 2026, 23:26 IST + +**Freshness and validation gate** +- Re-enumerated all 38 remote branches and all 35 PRs (21 open, 14 closed), checked current `main`, the complete Actions history/queue, workflow, latest runs/jobs/logs/artifacts and Releases. Source parent is `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1`; it remains the owner-selected line and a direct descendant of PR #16's corrected background-only Prismal/stability baseline. +- The active branch's exact parent passed natural push run [#244](https://github.com/Batmancpu/CurrentLens/actions/runs/42394156457) and PR run [#245](https://github.com/Batmancpu/CurrentLens/actions/runs/42394162322). The latest overall run #251 belongs to PR #35's separate bounded-diagnostic branch; it is not treated as active-branch validation. +- PR #30's 48dp target policy and PR #31's off-main appearance snapshot are already present in current source; PR #29 bookmark IO is also represented. Their source branches remain untouched. PR #35 is a direct child with six diagnostic-only commits and its own successful natural CI; it is not folded into this screen-sized pass. PR #27 remains editorial-only. PR #32/#33 both touch `NewsRepository.kt` and require joint reconciliation; PR #25/#26 remain behind a combined security review. No other branch is a safer UI baseline. + +**Implementation** +- `FilterChipRow` (Search filter sheet) and `CompactFilterRow` (Saved, Reading Stats and Quiz Stats) now use 12sp labels instead of 11sp, semibold selected labels and medium unselected labels. +- Both grouped filter implementations enforce at least 48dp width and height per chip. Existing `FilterChip` selected semantics, option order, callbacks, filters and saved-data meaning are unchanged. +- `FilterChipRow` now memoizes its distinct option list with `remember(options)`, matching `CompactFilterRow`; this avoids rebuilding the same de-duplicated list on selected-filter recompositions. + +**Paired material/performance strategy** +- Existing single `GlassFilterGroup` / Search-sheet `PrismalTransientSurface` ownership is unchanged. No new Prismal surface, blur/refraction pass, backdrop capture, sampler/readback, shader, graphics layer, image decode, dependency, timer, network request or persistence operation is added. +- The filter chips remain controls within their existing shared glass group; article cards, statistics data and quiz questions remain high-contrast content surfaces. No per-chip blur or capture is introduced. +- The list memoization is source-level allocation avoidance only; no frame-time, memory, GPU, battery or thermal improvement is claimed. + +**Tests / CI** +- No new policy test was added for a typography/layout-only adjustment. Existing Compose/JVM source is unchanged outside the two filter composables; the new exact head must receive its own natural push/PR build and `:app:testDebugUnitTest` result. +- Do not dispatch or rerun Actions. No CI result from #244/#245/#250/#251 validates the new commit. + +**Unverified / next** +- OPPO Reno10 filter chip reachability, font scaling, horizontal scrolling, TalkBack focus, visual balance and animation remain **UNVERIFIED**. Device Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain unmeasured. +- Next pass: inspect Today skeleton/card proportions and shared header/navigation spacing against the supplied recording; keep repeated feed cards free of per-card live blur and preserve the one shared background-only Prismal source. From f2ad2b57e06863f04ee22c2b0d89ae3b0775fb32 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 00:31:50 +0530 Subject: [PATCH 109/175] ui: align feed skeleton geometry with article cards --- .../currentlens/FeedCardGeometryPolicy.kt | 20 +++ .../mangoloads/currentlens/MainActivity.kt | 127 ++++++++++++++---- .../currentlens/FeedCardGeometryPolicyTest.kt | 38 ++++++ docs/BRANCH_CONSOLIDATION.md | 36 +++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 26 ++++ 5 files changed, 222 insertions(+), 25 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt new file mode 100644 index 00000000..e4a53428 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt @@ -0,0 +1,20 @@ +package com.mangoloads.currentlens + +/** + * Shared article-card geometry keeps loading placeholders aligned with the real feed surface. + * These are content-layout tokens, not a second glass or rendering pipeline. + */ +internal object FeedCardGeometryPolicy { + const val IMAGE_ASPECT_RATIO = 16f / 9f + const val CARD_CORNER_RADIUS_DP = 29f + const val IMAGE_CORNER_RADIUS_DP = 23f + const val CARD_VERTICAL_INSET_DP = 3f + const val CONTENT_HORIZONTAL_PADDING_DP = 15f + const val CONTENT_VERTICAL_PADDING_DP = 14f + const val CONTENT_VERTICAL_SPACING_DP = 9f + const val METADATA_ACTION_TARGET_DP = 48f + const val METADATA_TEXT_ROW_MIN_HEIGHT_DP = 16f + const val TITLE_DESCRIPTION_SPACING_DP = 6f + const val TITLE_LINE_HEIGHT_SP = 28f + const val DESCRIPTION_LINE_HEIGHT_SP = 23f +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a5081231..cf9a9de6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -48,6 +48,7 @@ import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.ime import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.BoxWithConstraints import androidx.compose.foundation.layout.Column @@ -1238,7 +1239,11 @@ private fun TodayFeed( } } when { - loading -> items(3) { FeedSkeletonCard() } + loading -> items( + count = 3, + key = { index -> "feed-skeleton-$index" }, + contentType = { "feed-skeleton" } + ) { FeedSkeletonCard() } loadError && articles.isEmpty() -> item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } articles.isEmpty() -> item { EmptyPanel("No UPSC-relevant stories today", "Broad entertainment and general-interest updates are filtered out. Refresh later for syllabus-linked developments.") } else -> items(articles.take(45), key = { it.id }, contentType = { "article" }) { article -> @@ -1305,7 +1310,11 @@ private fun ExploreFeed( verticalArrangement = Arrangement.spacedBy(13.dp) ) { if (filtered.isEmpty() && loading) { - items(3) { FeedSkeletonCard() } + items( + count = 3, + key = { index -> "feed-skeleton-$index" }, + contentType = { "feed-skeleton" } + ) { FeedSkeletonCard() } } else if (filtered.isEmpty() && loadError) { item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } } else if (filtered.isEmpty()) item { @@ -1442,7 +1451,11 @@ private fun SearchFeed( verticalArrangement = Arrangement.spacedBy(12.dp) ) { if (filtered.isEmpty() && loading) { - items(3) { FeedSkeletonCard() } + items( + count = 3, + key = { index -> "feed-skeleton-$index" }, + contentType = { "feed-skeleton" } + ) { FeedSkeletonCard() } } else if (filtered.isEmpty() && loadError) { item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } } else if (filtered.isEmpty()) item { @@ -2285,7 +2298,7 @@ private fun NewsCard( val palette = imagePalette Box( - modifier = Modifier.fillMaxWidth().padding(vertical = 3.dp) + modifier = Modifier.fillMaxWidth().padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp) .graphicsLayer { clip = false } .drawBehind { val sampled = palette ?: return@drawBehind @@ -2304,7 +2317,7 @@ private fun NewsCard( ) { Card( modifier = Modifier.fillMaxWidth().clickable { onOpenArticle(article) }, - shape = ContinuousCornerShape(29.dp), + shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), colors = CardDefaults.cardColors( containerColor = MaterialTheme.colorScheme.surface.copy(alpha = if (palette != null) 0.94f else 1f) ), @@ -2323,13 +2336,22 @@ private fun NewsCard( }.getOrNull() if (sampled != null && imagePalette != sampled) imagePalette = sampled }, - modifier = Modifier.fillMaxWidth().height(190.dp) - .clip(ContinuousCornerShape(23.dp)) + modifier = Modifier.fillMaxWidth() + .aspectRatio(FeedCardGeometryPolicy.IMAGE_ASPECT_RATIO) + .clip(ContinuousCornerShape(FeedCardGeometryPolicy.IMAGE_CORNER_RADIUS_DP.dp)) ) } - Column(Modifier.padding(horizontal = 15.dp, vertical = 14.dp), - verticalArrangement = Arrangement.spacedBy(9.dp)) { - Row(verticalAlignment = Alignment.CenterVertically) { + Column( + Modifier.padding( + horizontal = FeedCardGeometryPolicy.CONTENT_HORIZONTAL_PADDING_DP.dp, + vertical = FeedCardGeometryPolicy.CONTENT_VERTICAL_PADDING_DP.dp + ), + verticalArrangement = Arrangement.spacedBy(FeedCardGeometryPolicy.CONTENT_VERTICAL_SPACING_DP.dp) + ) { + Row( + Modifier.heightIn(min = FeedCardGeometryPolicy.METADATA_ACTION_TARGET_DP.dp), + verticalAlignment = Alignment.CenterVertically + ) { Text(article.source.uppercase(), color = MaterialTheme.colorScheme.primary, fontSize = 11.sp, fontWeight = FontWeight.Bold, letterSpacing = 0.65.sp) Text(" · " + article.section, color = MaterialTheme.colorScheme.secondary, @@ -2341,7 +2363,10 @@ private fun NewsCard( tint = MaterialTheme.colorScheme.primary, modifier = Modifier.size(21.dp)) } } - Row(Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) { + Row( + Modifier.fillMaxWidth().heightIn(min = FeedCardGeometryPolicy.METADATA_TEXT_ROW_MIN_HEIGHT_DP.dp), + verticalAlignment = Alignment.CenterVertically + ) { Text(ArticlePublicationDatePolicy.compactLabel(article.publishedAtMillis), style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary, @@ -2355,13 +2380,13 @@ private fun NewsCard( ) } SelectionContainer { - Column(verticalArrangement = Arrangement.spacedBy(6.dp)) { + Column(verticalArrangement = Arrangement.spacedBy(FeedCardGeometryPolicy.TITLE_DESCRIPTION_SPACING_DP.dp)) { Text(article.title, style = MaterialTheme.typography.titleLarge, - fontWeight = FontWeight.SemiBold, lineHeight = 28.sp) + fontWeight = FontWeight.SemiBold, lineHeight = FeedCardGeometryPolicy.TITLE_LINE_HEIGHT_SP.sp) if (article.description.isNotBlank()) { Text(article.description, style = MaterialTheme.typography.bodyLarge, color = MaterialTheme.colorScheme.onSurfaceVariant, maxLines = 4, - overflow = TextOverflow.Ellipsis, lineHeight = 23.sp) + overflow = TextOverflow.Ellipsis, lineHeight = FeedCardGeometryPolicy.DESCRIPTION_LINE_HEIGHT_SP.sp) } } } @@ -2432,35 +2457,87 @@ private fun sampleImagePalette(bitmap: Bitmap): Color { )) } +@Composable +private fun SkeletonTextLine( + widthFraction: Float, + lineHeightDp: Float, + barHeightDp: Float, + color: Color +) { + Box( + Modifier.fillMaxWidth(widthFraction).height(lineHeightDp.dp), + contentAlignment = Alignment.CenterStart + ) { + Box( + Modifier.fillMaxWidth().height(barHeightDp.dp) + .clip(RoundedCornerShape(6.dp)) + .background(color) + ) + } +} + @Composable private fun FeedSkeletonCard() { val base = MaterialTheme.colorScheme.surfaceVariant.copy(alpha = 0.82f) val line = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.075f) Card( - modifier = Modifier.fillMaxWidth(), - shape = ContinuousCornerShape(29.dp), + modifier = Modifier.fillMaxWidth() + .padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp), + shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { Column { - Box(Modifier.fillMaxWidth().height(176.dp).background(base)) - Column(Modifier.padding(15.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) { - Row(verticalAlignment = Alignment.CenterVertically) { + Box( + Modifier.fillMaxWidth() + .aspectRatio(FeedCardGeometryPolicy.IMAGE_ASPECT_RATIO) + .clip(ContinuousCornerShape(FeedCardGeometryPolicy.IMAGE_CORNER_RADIUS_DP.dp)) + .background(base) + ) + Column( + Modifier.padding( + horizontal = FeedCardGeometryPolicy.CONTENT_HORIZONTAL_PADDING_DP.dp, + vertical = FeedCardGeometryPolicy.CONTENT_VERTICAL_PADDING_DP.dp + ), + verticalArrangement = Arrangement.spacedBy(FeedCardGeometryPolicy.CONTENT_VERTICAL_SPACING_DP.dp) + ) { + Row( + Modifier.fillMaxWidth() + .heightIn(min = FeedCardGeometryPolicy.METADATA_ACTION_TARGET_DP.dp), + verticalAlignment = Alignment.CenterVertically + ) { Box(Modifier.width(86.dp).height(10.dp).clip(CircleShape).background(line)) Spacer(Modifier.width(9.dp)) Box(Modifier.width(64.dp).height(10.dp).clip(CircleShape).background(line)) Spacer(Modifier.weight(1f)) - Box(Modifier.size(22.dp).clip(CircleShape).background(line)) + Box( + Modifier.size(FeedCardGeometryPolicy.METADATA_ACTION_TARGET_DP.dp), + contentAlignment = Alignment.Center + ) { + Box(Modifier.size(22.dp).clip(CircleShape).background(line)) + } + } + Row( + Modifier.fillMaxWidth() + .heightIn(min = FeedCardGeometryPolicy.METADATA_TEXT_ROW_MIN_HEIGHT_DP.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Box(Modifier.width(84.dp).height(8.dp).clip(CircleShape).background(line)) + Spacer(Modifier.weight(1f)) + Box(Modifier.width(106.dp).height(8.dp).clip(CircleShape).background(line)) + } + Column( + verticalArrangement = Arrangement.spacedBy(FeedCardGeometryPolicy.TITLE_DESCRIPTION_SPACING_DP.dp) + ) { + SkeletonTextLine(0.88f, FeedCardGeometryPolicy.TITLE_LINE_HEIGHT_SP, 15f, line) + SkeletonTextLine(0.71f, FeedCardGeometryPolicy.TITLE_LINE_HEIGHT_SP, 15f, line) + SkeletonTextLine(1f, FeedCardGeometryPolicy.DESCRIPTION_LINE_HEIGHT_SP, 10f, line) + SkeletonTextLine(0.82f, FeedCardGeometryPolicy.DESCRIPTION_LINE_HEIGHT_SP, 10f, line) } - Box(Modifier.fillMaxWidth(0.88f).height(25.dp).clip(CircleShape).background(line)) - Box(Modifier.fillMaxWidth(0.71f).height(25.dp).clip(CircleShape).background(line)) - Box(Modifier.fillMaxWidth().height(13.dp).clip(CircleShape).background(line)) - Box(Modifier.fillMaxWidth(0.82f).height(13.dp).clip(CircleShape).background(line)) } } } } - @Composable private fun LoadingPanel() { Column(Modifier.fillMaxWidth().padding(38.dp), horizontalAlignment = Alignment.CenterHorizontally, diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt new file mode 100644 index 00000000..e416e96d --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt @@ -0,0 +1,38 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertTrue +import org.junit.Test + +class FeedCardGeometryPolicyTest { + @Test + fun loadingAndArticleImagesShareAResponsiveSixteenByNineRatio() { + assertEquals(16f / 9f, FeedCardGeometryPolicy.IMAGE_ASPECT_RATIO, 0.0001f) + } + + @Test + fun loadingAndArticleCardsShareContinuousGeometryAndContentRhythm() { + assertEquals(29f, FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP, 0f) + assertEquals(23f, FeedCardGeometryPolicy.IMAGE_CORNER_RADIUS_DP, 0f) + assertEquals(3f, FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP, 0f) + assertEquals(15f, FeedCardGeometryPolicy.CONTENT_HORIZONTAL_PADDING_DP, 0f) + assertEquals(14f, FeedCardGeometryPolicy.CONTENT_VERTICAL_PADDING_DP, 0f) + assertEquals(9f, FeedCardGeometryPolicy.CONTENT_VERTICAL_SPACING_DP, 0f) + assertTrue( + FeedCardGeometryPolicy.CONTENT_VERTICAL_SPACING_DP > + FeedCardGeometryPolicy.TITLE_DESCRIPTION_SPACING_DP + ) + } + + @Test + fun skeletonReservesTheSameBookmarkTargetAndTextLineHeightsAsTheArticleCard() { + assertEquals( + TouchTargetPolicy.MIN_ICON_TARGET_DP.toFloat(), + FeedCardGeometryPolicy.METADATA_ACTION_TARGET_DP, + 0f + ) + assertEquals(16f, FeedCardGeometryPolicy.METADATA_TEXT_ROW_MIN_HEIGHT_DP, 0f) + assertEquals(28f, FeedCardGeometryPolicy.TITLE_LINE_HEIGHT_SP, 0f) + assertEquals(23f, FeedCardGeometryPolicy.DESCRIPTION_LINE_HEIGHT_SP, 0f) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 1828a103..a2e86dee 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -879,3 +879,39 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 **Disposition** - Continue only on `black-box-bihar-news`; preserve every other branch and its PR state. Re-read all refs and comparisons before the next commit. The next UI pass is the Search/Saved/Stats grouped-filter readability improvement recorded in `docs/LIQUID_GLASS_UI_ROADMAP.md`; its CI is pending on the new child head. + + +## Live branch, PR, Actions and source-freshness audit — 8 November 2026, 00:24 IST + +- Complete branch endpoint: 38 remote refs (page 1 = 38, page 2 = 0). All PR pages: 35 PRs (21 open, 14 closed). Default branch remains main@73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Owner-selected integration line before this screen-sized commit: black-box-bihar-news@ad16cecf06add374b3e19989d0829919d0055114; it is 111 ahead / 0 behind main and 54 ahead / 0 behind PR #16's corrected stability/Prismal head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. It is a direct child of ed6c94190296c8d7af400b80f6fe26f2252fafe1. PR #34 is the sole consolidation draft, open, based on main; its exact head matched this source before the implementation commit. +- The branch graph has not produced a newer coherent UI baseline. brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96 is 4 ahead / 17 behind the selected line; its supporting-card glass and memoization are already represented. PR #30 (48dp icon targets), #31 (off-main appearance restore) and #29 (bookmark IO) are also already represented. No cherry-pick or source-branch modification was required. +- The 38-ref inventory is unchanged by name from the preceding full table; the updated/newer heads and their PR relationships are: + +| Branch | Current head | Last commit UTC / subject | PR state / treatment | +|---|---|---|---| +| black-box-bihar-news | ad16cecf06add374b3e19989d0829919d0055114 | 2026-11-07 18:02:35 — ui: improve grouped filter legibility and reuse | #34 open/draft; active source | +| a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 — test(a11y): cover minimum icon action target | #30 open; policy already represented | +| perf/off-main-appearance-preferences-2026-11-07 | bc48daec98ff076c9db3c2c69084d9b08cd0bbce | 2026-11-07 11:11:45 — fix(startup): keep appearance snapshot API module-internal | #31 open; policy already represented | +| perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07 09:05:25 — perf(storage): move bookmark mutations off the UI thread | #29 open; policy already represented | +| perf/bound-startup-diagnostic-reads-2026-11-07 | c4a977831846224182f16981b15e5c803761e26d | 2026-11-07 17:34:16 — Record successful bounded-diagnostic CI | #35 open; diagnostic-only, not a UI baseline | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 — Verify legacy markers survive recent-history retention | #22 open; new-marker policy represented with legacy caveat | +| perf/bounded-rss-fetch-concurrency-2026-11-07 | 8c56c98c83cc69451f128aa259df86a8ce28f43a | 2026-11-07 11:29:26 — docs: record bounded RSS fetch review and CI state | #32 open; independent NewsRepository change | +| fix/resolve-relative-atom-links-2026-11-07 | c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4 | 2026-11-07 14:59:24 — test(rss): correct relative xml base fixture | #33 open; independent NewsRepository change | +| fix/editorial-action-gate-blackbox-2026-11-07 | ac0f91097fc2ed524682ea085d87d0770d830e3d | 2026-11-07 18:38:09 — Record editorial regression CI failure and targeted correction | #27 open; editorial-only, natural run #254 failed one fixture | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 — fix(editorial): match policy action and target as separate words | #24 open; based on divergent brrrNEWS | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07 06:28:46 — test(reader): cover publisher-only image resources | #25 open; security review pending | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 — privacy: block third-party publisher reader subresources | #26 open; security review pending | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open; editorial policy represented | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 — fix: deduplicate RSS tracking URL variants | #17 open; URL identity policy represented | +| fix/early-startup-crash-diagnostics-2026-11-06 | 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890 | 2026-11-07 03:33:20 — fix: minimise shareable process-exit diagnostics | #16 open; corrected stability ancestor | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 — ui: restore low-cadence foreground adaptive glass contrast | #13 open; conservative shared policy represented | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 — docs(reader): record native selection collision guard | #19 closed; integrated into black-box only | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 — fix: finish syllabus metadata and thin-film feed eligibility | no PR; 27 commits behind active | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 — fix: import bottom navigation glyphs | #3/#4 closed; stale sibling | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 — fix: make selection decoding fallback valid JSON | no PR; stale | + +- PR #35's bounded diagnostic reads are separate from the UI branch; its natural run #251 passed. PR #32/#33 both touch NewsRepository.kt and remain a joint review item. PR #25/#26 remain a combined publisher-host/subresource security review. PR #27's #254 failure is on its own merge-ref/test tree and is not a failure of black-box-bihar-news. PR #24 is based on brrrNEWS and is not a UI baseline. +- Actions history: 254 runs (100 + 100 + 54), no queued/in-progress runs. Run #253 passed on exact pre-commit integration head ad16cecf06add374b3e19989d0829919d0055114; build/test/artifact steps passed and artifact 13584638074 is 39,095,814 bytes. Run #254 failed only on PR #27's editorial test; it is not an active-branch check. Latest Release is v0.2.0-build-116; no Release was published. +- Active workflow .github/workflows/build-apk.yml on this branch has read-only build/test permissions and an isolated main-push Release-write job. Main's workflow remains push-only. No manual dispatch/rerun, merge, main write, retarget, Release publication or source-branch deletion occurred. +- Current implementation is a screen-sized feed-placeholder geometry pass on the owner-selected branch; its exact new head awaits natural CI. OPPO Reno10 launch, visual, accessibility, animation, Perfetto, memory, GPU, battery and thermal evidence remains unverified. \ No newline at end of file diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 84c0c0da..9f342d9d 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -489,3 +489,29 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 filter chip reachability, font scaling, horizontal scrolling, TalkBack focus, visual balance and animation remain **UNVERIFIED**. Device Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain unmeasured. - Next pass: inspect Today skeleton/card proportions and shared header/navigation spacing against the supplied recording; keep repeated feed cards free of per-card live blur and preserve the one shared background-only Prismal source. + + +## Feed-card and loading-skeleton geometry parity — 8 November 2026, 00:24 IST + +**Branch freshness and dependency gate** +- Re-enumerated all 38 remote branches (page 1 complete, page 2 empty), all 35 PRs (21 open, 14 closed), current main, current PR #34, the complete Actions history (254 runs across 100 + 100 + 54), queue, workflow, latest run jobs/logs/artifacts and Releases. +- Implementation parent: black-box-bihar-news@ad16cecf06add374b3e19989d0829919d0055114, direct child of ed6c94190296c8d7af400b80f6fe26f2252fafe1; comparison is 111 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12 and 54 ahead / 0 behind PR #16's corrected background-only Prismal/stability head 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. PR #34 remains the single open draft integration PR targeting main@73b8a0d1ba33503fede02db2c3c0af082d724a12. +- brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96 is divergent (4 ahead / 17 behind); its GlassSurfacePolicy, SupportingGlassCard, Saved/You/stats memoization and supporting-surface implementation are already represented in the current integration tree. PR #30's 48dp target, PR #31's off-main appearance restore and PR #29's serialized bookmark persistence are also represented; their source branches remain untouched. +- ui/liquid-glass-system-continuation is 27 commits behind; ui/liquid-glass-performance is a stale divergent sibling; redesign/v0.3-search-reader is stale. None supersedes the selected line. PR #35 diagnostic-file reads, PR #32 RSS concurrency, PR #33 relative Atom parsing, PR #25/#26 publisher-resource security, PR #27 editorial action-gating and PR #24's brrrNEWS-based editorial exception remain separate; no unrelated source branch was modified. + +**Implementation** +- Added pure FeedCardGeometryPolicy tokens shared by NewsCard and FeedSkeletonCard: responsive 16:9 image ratio, continuous 29dp card / 23dp image corners, matching 3dp outer inset, content padding and vertical rhythm, 48dp bookmark-action footprint, metadata-row height and title/description line heights. +- Loading placeholders now mirror both source/action and date/provenance rows, reserve the real bookmark hit-target footprint, and place text bars inside the same line-height slots as the article typography. This removes the known 176dp-vs-190dp image mismatch and the missing 48dp metadata-action space that could shift the first loaded cards. +- Today, Explore and Search skeleton rows now have stable loading keys and a shared content type. Article IDs/content types, filters, article text, card click/selection, bookmark persistence and feed ordering are unchanged. +- No new glass surface, blur/refraction, backdrop capture, sampler/readback, shader, graphics layer, shimmer, image decode, network request, timer, dependency or persistence operation was added. NewsCard retains one Coil request and palette extraction from that same decoded bitmap. + +**Tests / CI** +- Added FeedCardGeometryPolicyTest for the 16:9 ratio, shared continuous geometry, 48dp action parity and typography rhythm. +- Exact parent ad16cecf06add374b3e19989d0829919d0055114 passed natural PR run #253 (https://github.com/Batmancpu/CurrentLens/actions/runs/42399278100), including WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Artifact 13584638074 is 39,095,814 bytes. This does not validate the new commit; its natural push/PR runs must complete. No manual dispatch/rerun. +- Latest overall run #254 is a separate PR #27 editorial branch failure: 291 tests completed, one UpscFeedPolicyTest.currentGstPolicyActionMapsToGsThreeEconomyButBoxOfficeFramingIsRejected assertion failed. It does not run on or invalidate this UI branch and is not changed here. +- Latest published Release remains v0.2.0-build-116; no Release was published by #253. + +**Paired optimization and unverified checks** +- Shared immutable geometry tokens prevent skeleton/article layout drift; stable LazyColumn keys/content types improve item identity/reuse. The existing single background-only Prismal root source, expanded-only tab glyph source and 4s/6s foreground-idle adaptive luminance cadence are unchanged. +- No frame-time, jank, memory, GPU-overdraw, allocation, thermal or battery improvement is claimed from source inspection. OPPO Reno10 visual transition, font scaling, TalkBack, Reduce Motion, scroll smoothness, launch and Perfetto checks remain UNVERIFIED. +- Next: after exact-head natural CI passes, recheck Today/Explore/Search header-to-feed spacing and validate the skeleton-to-article transition on the OPPO device; retain standard non-glass article cards and no per-card blur. \ No newline at end of file From d8b7146e3546e0e248bb5db766ccb0ec8ac09184 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:33:10 +0530 Subject: [PATCH 110/175] ui: define shared supporting-card geometry --- .../mangoloads/currentlens/GlassSurfacePolicy.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 4770dad4..3c7fee6d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -28,3 +28,19 @@ internal object GlassSurfacePolicy { fun supportingRimAlpha(dark: Boolean): Float = if (dark) SUPPORTING_RIM_ALPHA_DARK else SUPPORTING_RIM_ALPHA_LIGHT } + + +/** + * Shared geometry for calm, supporting dashboard/stat surfaces. These values affect + * layout only; they do not create additional blur, backdrop sampling or render passes. + */ +internal object SupportingCardGeometryPolicy { + const val CONTENT_PADDING_DP = 16f + const val CONTENT_GAP_DP = 6f + const val SECTION_GAP_DP = 12f + const val METRIC_GAP_DP = 9f + const val METRIC_MIN_HEIGHT_DP = 88f + const val DESTINATION_MIN_HEIGHT_DP = 80f + const val STAT_ROW_MIN_HEIGHT_DP = 76f + const val EMPTY_MIN_HEIGHT_DP = 104f +} From 41b572e77f1a7eca48abb11729ac5dd175b3ee69 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:33:12 +0530 Subject: [PATCH 111/175] test(ui): cover supporting-card geometry --- .../currentlens/GlassSurfacePolicyTest.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index fa0f1c53..b349a9f7 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -36,4 +36,20 @@ class GlassSurfacePolicyTest { assertEquals(22f, GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP, 0f) assertEquals(20f, GlassSurfacePolicy.SUPPORTING_VALUE_SIZE_SP, 0f) } + + @Test + fun supportingCardsShareConsistentReadableGeometry() { + assertEquals(16f, SupportingCardGeometryPolicy.CONTENT_PADDING_DP, 0f) + assertEquals(6f, SupportingCardGeometryPolicy.CONTENT_GAP_DP, 0f) + assertEquals(12f, SupportingCardGeometryPolicy.SECTION_GAP_DP, 0f) + assertEquals(9f, SupportingCardGeometryPolicy.METRIC_GAP_DP, 0f) + assertTrue(SupportingCardGeometryPolicy.METRIC_MIN_HEIGHT_DP >= 48f) + assertTrue(SupportingCardGeometryPolicy.DESTINATION_MIN_HEIGHT_DP >= 48f) + assertTrue(SupportingCardGeometryPolicy.STAT_ROW_MIN_HEIGHT_DP >= 48f) + assertTrue(SupportingCardGeometryPolicy.EMPTY_MIN_HEIGHT_DP >= 48f) + assertTrue( + SupportingCardGeometryPolicy.CONTENT_GAP_DP < + SupportingCardGeometryPolicy.SECTION_GAP_DP + ) + } } From dfcc792887cd56d7e5272ca4087c6517c88b3a44 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:33:53 +0530 Subject: [PATCH 112/175] ui: unify You and statistics supporting surfaces --- .../mangoloads/currentlens/MainActivity.kt | 78 +++++++++++++------ 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index cf9a9de6..0a5884ba 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1720,9 +1720,9 @@ private fun SavedFeed( fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.4.sp) } if (savedArticles.isEmpty()) item { - EmptyPanel("Nothing saved yet", "Tap the bookmark on any story to keep it here.") + SupportingEmptyPanel("Nothing saved yet", "Tap the bookmark on any story to keep it here.") } else if (filtered.isEmpty()) item { - EmptyPanel("No saved articles match", "Change the publication-date, subject or GS-paper filter.") + SupportingEmptyPanel("No saved articles match", "Change the publication-date, subject or GS-paper filter.") } else items(filtered, key = { it.id }, contentType = { "article" }) { article -> NewsCard(article, true, onOpenArticle, onToggleBookmark) } @@ -1760,7 +1760,7 @@ private fun YouDashboard( LazyColumn( Modifier.fillMaxSize(), contentPadding = PaddingValues(start = 16.dp, end = 16.dp, top = 8.dp, bottom = 112.dp), - verticalArrangement = Arrangement.spacedBy(13.dp) + verticalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.SECTION_GAP_DP.dp) ) { item { Column(verticalArrangement = Arrangement.spacedBy(3.dp)) { @@ -1771,7 +1771,7 @@ private fun YouDashboard( } } item { - Row(horizontalArrangement = Arrangement.spacedBy(9.dp)) { + Row(horizontalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.METRIC_GAP_DP.dp)) { MetricTile("Articles read", totalUniqueRead.toString(), Modifier.weight(1f)) MetricTile("Read today", articlesReadToday.toString(), Modifier.weight(1f)) } @@ -1779,8 +1779,8 @@ private fun YouDashboard( if (attempts.isEmpty()) { item { SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { - Column(Modifier.fillMaxWidth().padding(17.dp), - verticalArrangement = Arrangement.spacedBy(5.dp)) { + Column(Modifier.fillMaxWidth().padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), + verticalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.CONTENT_GAP_DP.dp)) { Text("Practice when you're ready", style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold, @@ -1795,7 +1795,7 @@ private fun YouDashboard( } } else { item { - Row(horizontalArrangement = Arrangement.spacedBy(9.dp)) { + Row(horizontalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.METRIC_GAP_DP.dp)) { MetricTile("Quiz attempts", attempts.size.toString(), Modifier.weight(1f)) MetricTile("Accuracy", accuracy, Modifier.weight(1f)) } @@ -1804,7 +1804,7 @@ private fun YouDashboard( item { Text("YOUR LIBRARY", color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.4.sp, - modifier = Modifier.padding(top = 5.dp)) + modifier = Modifier.padding(top = 4.dp)) } item { DestinationRow("Saved", "Your bookmarked articles", savedCount.toString(), onSaved) } item { DestinationRow("Reading Stats", "Daily reading time and article activity", "›", onReadingStats) } @@ -1867,10 +1867,10 @@ private fun SupportingGlassCard( @Composable private fun MetricTile(label: String, value: String, modifier: Modifier = Modifier) { - SupportingGlassCard(modifier = modifier.heightIn(min = 82.dp)) { + SupportingGlassCard(modifier = modifier.heightIn(min = SupportingCardGeometryPolicy.METRIC_MIN_HEIGHT_DP.dp)) { Column( - Modifier.fillMaxWidth().padding(horizontal = 14.dp, vertical = 13.dp), - verticalArrangement = Arrangement.spacedBy(4.dp) + Modifier.fillMaxWidth().padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), + verticalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.CONTENT_GAP_DP.dp) ) { Text( value, @@ -1895,11 +1895,11 @@ private fun MetricTile(label: String, value: String, modifier: Modifier = Modifi @Composable private fun DestinationRow(title: String, description: String, trailing: String, onClick: () -> Unit) { - SupportingGlassCard(modifier = Modifier.fillMaxWidth().heightIn(min = 72.dp)) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth().heightIn(min = SupportingCardGeometryPolicy.DESTINATION_MIN_HEIGHT_DP.dp)) { Row( Modifier.fillMaxWidth() .clickable(role = Role.Button, onClick = onClick) - .padding(16.dp), + .padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), verticalAlignment = Alignment.CenterVertically ) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { @@ -1913,6 +1913,34 @@ private fun DestinationRow(title: String, description: String, trailing: String, } } +@Composable +private fun SupportingEmptyPanel(title: String, description: String) { + SupportingGlassCard( + modifier = Modifier.fillMaxWidth() + .heightIn(min = SupportingCardGeometryPolicy.EMPTY_MIN_HEIGHT_DP.dp) + ) { + Column( + Modifier.fillMaxWidth() + .padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.CONTENT_GAP_DP.dp) + ) { + Text( + title, + style = MaterialTheme.typography.titleMedium, + fontWeight = FontWeight.SemiBold, + textAlign = TextAlign.Center + ) + Text( + description, + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant, + textAlign = TextAlign.Center + ) + } + } +} + @Composable private fun FilterChipRow( title: String, @@ -2138,14 +2166,14 @@ private fun ReadingStatsScreen( ) CompactFilterRow("Subject", subjects, selectedSubject) { selectedSubject = it } } - Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 7.dp), - horizontalArrangement = Arrangement.spacedBy(8.dp)) { + Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp), + horizontalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.METRIC_GAP_DP.dp)) { MetricTile("Reading time", formatDuration(summary.totalDurationMillis), Modifier.weight(1f)) MetricTile("Unique articles", summary.uniqueArticleCount.toString(), Modifier.weight(1f)) MetricTile("Sessions", summary.sessionCount.toString(), Modifier.weight(1f)) } if (summary.days.isEmpty()) { - EmptyPanel("No timed reading sessions in this range", + SupportingEmptyPanel("No timed reading sessions in this range", "Open an article and keep it in the foreground. Older read markers have no historical date or duration.") } else { LazyColumn( @@ -2158,8 +2186,8 @@ private fun ReadingStatsScreen( fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.3.sp) } items(summary.days, key = { it.date.toString() }) { day -> - SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { - Row(Modifier.fillMaxWidth().padding(14.dp), verticalAlignment = Alignment.CenterVertically) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth().heightIn(min = SupportingCardGeometryPolicy.STAT_ROW_MIN_HEIGHT_DP.dp)) { + Row(Modifier.fillMaxWidth().padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), verticalAlignment = Alignment.CenterVertically) { Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { Text(day.date.format(DateTimeFormatter.ofPattern("EEE, d MMM", Locale.ENGLISH)), fontWeight = FontWeight.SemiBold) @@ -2209,19 +2237,19 @@ private fun QuizStatsScreen( ) CompactFilterRow("Subject", subjects, selectedSubject) { selectedSubject = it } } - Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 7.dp), - horizontalArrangement = Arrangement.spacedBy(8.dp)) { + Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp), + horizontalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.METRIC_GAP_DP.dp)) { MetricTile("Attempts", summary.attemptCount.toString(), Modifier.weight(1f)) MetricTile("Answered", summary.answersAttempted.toString(), Modifier.weight(1f)) } - Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 3.dp), - horizontalArrangement = Arrangement.spacedBy(8.dp)) { + Row(Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 4.dp), + horizontalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.METRIC_GAP_DP.dp)) { MetricTile("Correct", summary.correctAnswers.toString(), Modifier.weight(1f)) MetricTile("Incorrect", summary.wrongAnswers.toString(), Modifier.weight(1f)) MetricTile("Accuracy", accuracy, Modifier.weight(1f)) } if (summary.attempts.isEmpty()) { - EmptyPanel("No submitted quizzes in this range", + SupportingEmptyPanel("No submitted quizzes in this range", "Quiz statistics are saved only after you submit answers. Unsubmitted selections are not counted.") } else { LazyColumn( @@ -2230,8 +2258,8 @@ private fun QuizStatsScreen( verticalArrangement = Arrangement.spacedBy(9.dp) ) { items(summary.attempts, key = { it.id }) { attempt -> - SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { - Column(Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth().heightIn(min = SupportingCardGeometryPolicy.STAT_ROW_MIN_HEIGHT_DP.dp)) { + Column(Modifier.fillMaxWidth().padding(SupportingCardGeometryPolicy.CONTENT_PADDING_DP.dp), verticalArrangement = Arrangement.spacedBy(SupportingCardGeometryPolicy.CONTENT_GAP_DP.dp)) { Text(attempt.articleTitle, fontWeight = FontWeight.SemiBold, maxLines = 2, overflow = TextOverflow.Ellipsis) Text( From 25641b7133feaab0b8d826a1f96dcb9a2d97d370 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:34:27 +0530 Subject: [PATCH 113/175] docs(ui): record supporting-surface consistency pass --- docs/LIQUID_GLASS_UI_ROADMAP.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 9f342d9d..df4a9405 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -514,4 +514,28 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Paired optimization and unverified checks** - Shared immutable geometry tokens prevent skeleton/article layout drift; stable LazyColumn keys/content types improve item identity/reuse. The existing single background-only Prismal root source, expanded-only tab glyph source and 4s/6s foreground-idle adaptive luminance cadence are unchanged. - No frame-time, jank, memory, GPU-overdraw, allocation, thermal or battery improvement is claimed from source inspection. OPPO Reno10 visual transition, font scaling, TalkBack, Reduce Motion, scroll smoothness, launch and Perfetto checks remain UNVERIFIED. -- Next: after exact-head natural CI passes, recheck Today/Explore/Search header-to-feed spacing and validate the skeleton-to-article transition on the OPPO device; retain standard non-glass article cards and no per-card blur. \ No newline at end of file +- Next: after exact-head natural CI passes, recheck Today/Explore/Search header-to-feed spacing and validate the skeleton-to-article transition on the OPPO device; retain standard non-glass article cards and no per-card blur. + +## You, Saved and statistics supporting-surface consistency — 8 November 2026, 01:29 IST + +**Freshness and dependency gate** +- Re-enumerated the complete 38-branch remote inventory (page 1 returned 38; page 2 empty), all 35 PRs (21 open, 14 closed), default branch and the owner-selected integration PR. Main remains 73b8a0d1ba33503fede02db2c3c0af082d724a12; the selected line before this batch was black-box-bihar-news@f2ad2b57e06863f04ee22c2b0d89ae3b0775fb32, 112 ahead / 0 behind main. PR #34 remains the sole consolidation draft, open and targeting main; no retarget or merge. +- PR #16's corrected background-only Prismal/stability line remains an ancestor. PR #19's Reader/Search implementation, PR #20's read-only stacked workflow, the selected PR #11/#12/#17 feed policies and the PR #13 conservative contrast policy remain represented in the integration tree. +- Inspected the independent accessibility/performance proposals against the current source: PR #30's 48dp TouchTargetPolicy is already used by the shared header and bookmark action; PR #31's AppearancePreferencesPolicy is restored with the existing IO snapshot; PR #29's bookmark read/modify/write is serialized on IO. Their source branches remain untouched. +- PR #35's bounded diagnostic reads are a separate startup-hardening proposal, not included in this UI pass. PR #32 and #33 each passed their own exact-head natural CI but both change NewsRepository.kt; keep them for one joint parser/concurrency reconciliation. PR #27's latest head has no natural PR run; do not integrate it. PR #25/#26 remain behind a combined publisher-resource security review. Divergent brrrNEWS, stale ui/liquid-glass-performance and redesign/v0.3-search-reader are not baselines. +- The exact pre-batch active head f2ad2b57e06863f04ee22c2b0d89ae3b0775fb32 passed natural PR run #256 (run ID 42404197533): WordNet builder, :app:testDebugUnitTest, :app:assembleDebug and artifact upload succeeded; publish job skipped. Artifact 13586850838 is 39,102,734 bytes (SHA-256 6be6840c650537a5d29e95397576bcb4f71cc92635f0be8890ac6f89adf8a703). This validates only the pre-batch head, not the changes below. + +**Implementation** +- Added SupportingCardGeometryPolicy to the existing surface-policy file: shared 16dp content padding, 6dp internal rhythm, 12dp section spacing, 9dp metric gaps, 88dp metric tiles, 80dp library destinations, 76dp statistic rows and 104dp empty-state panels. +- Standardised MetricTile, DestinationRow, You dashboard spacing, Saved empty states, Reading Stats daily rows and Quiz Stats attempt/empty surfaces. Saved, reading and quiz empty states now use one quiet supporting surface with high-contrast text instead of detached floating copy. +- Kept the existing 22dp continuous supporting-card shape, theme-aware static tint/rim, nearly opaque surface and cached brushes. No live blur/refraction, additional backdrop source, sampler/readback, shader, graphics layer, image decode, classification pass, dependency, timer, network or persistence path was added. +- Quiz questions/options, submit-only quiz persistence, article content cards, reader text, feed order and filter semantics are unchanged. + +**Tests / paired optimization** +- Added a focused JVM assertion for shared padding, spacing and minimum content/touch footprints in GlassSurfacePolicyTest. +- The optimization is deliberately a geometry/reuse pass: all supporting cards reuse the existing static SupportingGlassCard material and cached rim/tint brushes; no additional GPU render pass or blur surface is introduced. This is source-level scope evidence only, not a measured frame-time or memory win. +- The policy, test and UI commits are d8b7146e3546e0e248bb5db766ccb0ec8ac09184, 41b572e77f1a7eca48abb11729ac5dd175b3ee69 and dfcc792887cd56d7e5272ca4087c6517c88b3a44. Natural validation for the new exact head is pending; no manual dispatch/rerun. + +**Unverified / next** +- OPPO Reno10 visual balance, metric clipping at large font scale, TalkBack traversal, minimum tap-target reachability, short-screen overflow, animation, launch, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain UNVERIFIED. +- Next: inspect the exact natural run for the final documentation head, then continue the whole-app transient-control and shared-header spacing audit. Keep the one background-only Prismal capture, expanded-only tab glyph source, one Coil decode and foreground-idle adaptive-luminance cadence unchanged. From ccce7beb506e85ca9d39ad0c23fcb054598f7bcc Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:34:42 +0530 Subject: [PATCH 114/175] docs(repo): record live integration and UI batch audit --- docs/BRANCH_CONSOLIDATION.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index a2e86dee..c198696d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -914,4 +914,14 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - PR #35's bounded diagnostic reads are separate from the UI branch; its natural run #251 passed. PR #32/#33 both touch NewsRepository.kt and remain a joint review item. PR #25/#26 remain a combined publisher-host/subresource security review. PR #27's #254 failure is on its own merge-ref/test tree and is not a failure of black-box-bihar-news. PR #24 is based on brrrNEWS and is not a UI baseline. - Actions history: 254 runs (100 + 100 + 54), no queued/in-progress runs. Run #253 passed on exact pre-commit integration head ad16cecf06add374b3e19989d0829919d0055114; build/test/artifact steps passed and artifact 13584638074 is 39,095,814 bytes. Run #254 failed only on PR #27's editorial test; it is not an active-branch check. Latest Release is v0.2.0-build-116; no Release was published. - Active workflow .github/workflows/build-apk.yml on this branch has read-only build/test permissions and an isolated main-push Release-write job. Main's workflow remains push-only. No manual dispatch/rerun, merge, main write, retarget, Release publication or source-branch deletion occurred. -- Current implementation is a screen-sized feed-placeholder geometry pass on the owner-selected branch; its exact new head awaits natural CI. OPPO Reno10 launch, visual, accessibility, animation, Perfetto, memory, GPU, battery and thermal evidence remains unverified. \ No newline at end of file +- Current implementation is a screen-sized feed-placeholder geometry pass on the owner-selected branch; its exact new head awaits natural CI. OPPO Reno10 launch, visual, accessibility, animation, Perfetto, memory, GPU, battery and thermal evidence remains unverified. + +## 8 November 2026, 01:29 IST — You and statistics supporting-surface consistency + +- Active line: black-box-bihar-news, starting head f2ad2b57e06863f04ee22c2b0d89ae3b0775fb32; PR #34 remains open/draft to main@73b8a0d1ba33503fede02db2c3c0af082d724a12. The branch was 112 ahead / 0 behind main before this pass. No branch creation, retarget, merge or source-branch mutation. +- Live graph: 38 remote branches (38 on page 1, none on page 2), 35 PRs (21 open, 14 closed). No newer single branch supersedes the owner-selected integration line. PR #16's corrected stability/Prismal baseline is an ancestor; PR #19/#20 work and selected feed/editorial policies are represented in the active tree. +- PR #30 (48dp icon target), #31 (IO appearance preference snapshot) and #29 (serialized off-main bookmark persistence) were checked in the active source and are already represented; their source branches remain untouched. PR #35 bounded startup-diagnostic reads are still a separate six-commit branch and are not mixed into this UI pass. PR #32/#33 passed separate natural CI but both modify NewsRepository.kt; joint reconciliation remains pending. PR #27 latest head cef7f1267cf2ca67ceacaf2acd9cfcbfa7dbf6fc has no natural PR run. PR #25/#26 remain a combined security review. Old UI/search branches remain stale or behind. +- Exact pre-batch active head f2ad2b57e06863f04ee22c2b0d89ae3b0775fb32 passed natural PR run #256 (42404197533). Build/test job steps: checkout, Java, cached signing key, Android SDK/platform, Gradle, WordNet builder/database, :app:testDebugUnitTest, :app:assembleDebug and artifact upload all succeeded; publish job skipped. Artifact 13586850838, 39,102,734 bytes, SHA-256 6be6840c650537a5d29e95397576bcb4f71cc92635f0be8890ac6f89adf8a703. Full job log was inspected. This is parent evidence only, not validation of the new UI commits. +- This pass adds shared SupportingCardGeometryPolicy tokens and standardises You/Saved/Reading Stats/Quiz Stats supporting surfaces and empty states. Existing static SupportingGlassCard is reused; no additional blur, backdrop capture, sampler, shader, graphics layer, decode, dependency or persistence path. The exact implementation commits are d8b7146e3546e0e248bb5db766ccb0ec8ac09184, 41b572e77f1a7eca48abb11729ac5dd175b3ee69 and dfcc792887cd56d7e5272ca4087c6517c88b3a44. +- Actions limitation: the connected GitHub actions expose exact-commit PR runs, job steps, logs and artifacts, but no repository-wide list-runs/queue action. Therefore run #256 is the latest verified exact active-branch PR run; the full queue/history could not be independently enumerated in this pass. The connector also exposes no Releases listing action; the last recorded Release v0.2.0-build-116 remains historical, not freshly verified here. +- New exact-head CI is pending after the code and documentation commits; do not dispatch/rerun. No main change, Release publication, PR merge, source-branch deletion or device-backed performance claim. From 4a7a8f8c1db651d8b06d636836c8221569938ff8 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 01:37:14 +0530 Subject: [PATCH 115/175] docs(ui): record exact supporting-surface CI result --- docs/LIQUID_GLASS_UI_ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index df4a9405..ac53633e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -534,7 +534,7 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Tests / paired optimization** - Added a focused JVM assertion for shared padding, spacing and minimum content/touch footprints in GlassSurfacePolicyTest. - The optimization is deliberately a geometry/reuse pass: all supporting cards reuse the existing static SupportingGlassCard material and cached rim/tint brushes; no additional GPU render pass or blur surface is introduced. This is source-level scope evidence only, not a measured frame-time or memory win. -- The policy, test and UI commits are d8b7146e3546e0e248bb5db766ccb0ec8ac09184, 41b572e77f1a7eca48abb11729ac5dd175b3ee69 and dfcc792887cd56d7e5272ca4087c6517c88b3a44. Natural validation for the new exact head is pending; no manual dispatch/rerun. +- The policy, test and UI commits are d8b7146e3546e0e248bb5db766ccb0ec8ac09184, 41b572e77f1a7eca48abb11729ac5dd175b3ee69 and dfcc792887cd56d7e5272ca4087c6517c88b3a44. Their exact code/test head ccce7beb506e85ca9d39ad0c23fcb054598f7bcc passed natural PR run #265 (run ID 42409282209): WordNet builder 4/4, offline dictionary 151,456 unique words, :app:testDebugUnitTest, :app:assembleDebug and artifact upload all succeeded; publish job skipped. Artifact 13588558658 is 39,105,323 bytes, SHA-256 c5cafdc0a4d64d62763742a6090d98986a258d122056aa668e25e79352700fe1. Full 203,461-character job log was inspected; only existing API/action deprecation warnings remain. This documentation update creates a newer head and is not covered by #265; await its natural run. No manual dispatch/rerun. **Unverified / next** - OPPO Reno10 visual balance, metric clipping at large font scale, TalkBack traversal, minimum tap-target reachability, short-screen overflow, animation, launch, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain UNVERIFIED. From d451d22518b8065e2865dae6b40679c3d7b41dc2 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 02:32:41 +0530 Subject: [PATCH 116/175] ui(search): retain focus and animate clear affordance --- .../mangoloads/currentlens/MainActivity.kt | 41 ++++++++++++++----- docs/LIQUID_GLASS_UI_ROADMAP.md | 22 ++++++++++ 2 files changed, 52 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 0a5884ba..8c6245a7 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -935,8 +935,13 @@ private fun BrrrNewsApp() { focusRequester = searchFocusRequester, enabled = searchExpanded && !searchCollapseRequested, morphProgress = searchMorphProgress, + reduceMotion = reduceMotion, onSubmit = requestSearchCollapse, - onClear = { searchQuery = "" } + onClear = { + searchQuery = "" + searchFocusRequester.requestFocus() + keyboardController?.show() + } ) } } @@ -1538,6 +1543,7 @@ private fun SearchMorphField( focusRequester: FocusRequester, enabled: Boolean, morphProgress: Float, + reduceMotion: Boolean, onSubmit: () -> Unit, onClear: () -> Unit ) { @@ -1647,17 +1653,30 @@ private fun SearchMorphField( } } ) - if (query.isNotBlank() && progress > 0.34f) { - IconButton( - onClick = onClear, - enabled = enabled, - modifier = Modifier.size(48.dp).graphicsLayer { alpha = progress } + if (progress > 0.34f) { + // Reserve the trailing hit-target slot while expanded so clearing the + // query does not move the text field or cursor horizontally. + Box( + modifier = Modifier.size(48.dp), + contentAlignment = Alignment.Center ) { - Icon( - Icons.Outlined.Close, - contentDescription = "Clear search", - tint = adaptiveContentColor - ) + AnimatedVisibility( + visible = query.isNotBlank(), + enter = fadeIn(if (reduceMotion) snap() else tween(120)), + exit = fadeOut(if (reduceMotion) snap() else tween(90)) + ) { + IconButton( + onClick = onClear, + enabled = enabled, + modifier = Modifier.size(48.dp) + ) { + Icon( + Icons.Outlined.Close, + contentDescription = "Clear search", + tint = adaptiveContentColor + ) + } + } } } } diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index ac53633e..12b15256 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -539,3 +539,25 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 visual balance, metric clipping at large font scale, TalkBack traversal, minimum tap-target reachability, short-screen overflow, animation, launch, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain UNVERIFIED. - Next: inspect the exact natural run for the final documentation head, then continue the whole-app transient-control and shared-header spacing audit. Keep the one background-only Prismal capture, expanded-only tab glyph source, one Coil decode and foreground-idle adaptive-luminance cadence unchanged. + +## Search clear focus retention and opacity transition — 8 November 2026, 02:28 IST + +**Freshness and dependency gate** +- Re-enumerated the full remote branch inventory: 39 branches (page 1 complete, page 2 empty), 36 pull requests (22 open, 14 closed), the default branch, current integration PR, Actions history/queue, workflow, exact run jobs/logs/artifacts and Releases. +- Source is `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8`, 118 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 remains open/draft, targeting main. The corrected PR #16 stability/background-only Prismal lineage and the consolidated Reader/Search/navigation work are ancestors of this branch. +- New PR #36 is a direct child (3 ahead / 0 behind) adding an Asia/Kolkata midnight refresh policy and focused tests. Its exact PR head passed natural run #268, but it is a separate Today-date change and remains an independent open proposal; it was not merged or folded into this screen-sized Search pass. PR #35's bounded diagnostic reads remain a divergent startup-only proposal (6 ahead / 8 behind); no startup claim is made. PR #30 48dp targets, #31 off-main appearance restore and #29 serialized bookmark IO are already represented. PR #24's brrrNEWS-based material code is superseded by the current SupportingGlassCard/GlassSurfacePolicy implementation; the stale Liquid Glass and v0.3 branches remain non-baselines. +- Exact active parent 4a7a8f8c1db651d8b06d636836c8221569938ff8 passed natural PR run [#267](https://github.com/Batmancpu/CurrentLens/actions/runs/42409496553) and push run [#266](https://github.com/Batmancpu/CurrentLens/actions/runs/42409492764). Run #267 completed WordNet builder tests (4/4), generated the 151,456-word offline dictionary, passed `:app:testDebugUnitTest` and `:app:assembleDebug`, and uploaded artifact `13588613947` (39,105,323 bytes; SHA-256 `383369cd4c23c227920f7e1dae2c7d2ca4c9e773f93e0ffb98988b5ed96a1090`). Full 203,194-character job log was inspected; only existing deprecation/packaging warnings remain. Publish job skipped. +- Latest overall run #268 is PR #36's exact head, not the Search/UI branch. The Actions history has 268 runs (100 + 100 + 68), queue is empty; latest Release remains `v0.2.0-build-116`. No Release was published. + +**Implementation** +- Kept the clear affordance inside the existing expanded SearchMorphField capsule and retained its 48dp target, TalkBack label and non-empty-query/active-morph visibility rule. +- Reserved the 48dp trailing slot whenever the field is active, so clearing the query no longer changes the BasicTextField's available width or shifts its text/cursor. The icon now uses a small opacity-only enter/exit transition; Reduce Motion snaps the visibility change. +- The existing root Reduce Motion state is passed into SearchMorphField. Clearing changes only `searchQuery`, then explicitly re-requests the existing FocusRequester and keyboard; Search remains expanded and GS/subject/category filters are untouched. +- No new Prismal surface, backdrop capture, sampler/readback, blur/refraction pass, shader, image decode, network request, persistence operation or dependency was added. The only new animation is bounded to the 48dp clear control; the shared root background-only capture and IME morph geometry are unchanged. + +**Tests, CI and unverified checks** +- No new JVM test was added for a Compose-only opacity/focus interaction. Existing Search morph, 48dp touch-target, feed-navigation and Reader-chrome policy tests remain in the suite. The exact new head must receive its own natural push/PR CI; do not dispatch or rerun Actions. +- OPPO Reno10 keyboard retention, cursor stability, filter preservation, TalkBack announcement, Reduce Motion behaviour, font scaling and morph smoothness remain UNVERIFIED. No frame-time, GPU, memory, battery or thermal improvement is claimed from source inspection. + +**Next** +- After the exact-head natural run completes, continue the shared-header/transient-control consistency audit and inspect Appearance preview fidelity against the actual shared material tokens. Preserve the one root backdrop source, expanded-only tab glyph source and existing 4s/6s foreground-idle adaptive luminance cadence. From 6f777f8777b3168383361dc79109b3d1d75b612b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 03:30:29 +0530 Subject: [PATCH 117/175] fix(search): provide RowScope for clear animation --- .../mangoloads/currentlens/MainActivity.kt | 8 +- docs/BRANCH_CONSOLIDATION.md | 73 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 11 +++ 3 files changed, 90 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 8c6245a7..450b1495 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1656,10 +1656,14 @@ private fun SearchMorphField( if (progress > 0.34f) { // Reserve the trailing hit-target slot while expanded so clearing the // query does not move the text field or cursor horizontally. - Box( + Row( modifier = Modifier.size(48.dp), - contentAlignment = Alignment.Center + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.Center ) { + // AnimatedVisibility's RowScope overload requires a Row receiver. + // The fixed outer slot preserves the text field's width while the + // clear affordance fades in/out. AnimatedVisibility( visible = query.isNotBlank(), enter = fadeIn(if (reduceMotion) snap() else tween(120)), diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index c198696d..223434e1 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,76 @@ +## Live branch-graph audit — 8 November 2026, 03:24 IST + +- **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- **Selected integration:** `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2`, 119 ahead / 0 behind main, merge base main; PR #34 is open/draft with base main. This remains the only branch this task may modify. +- **Complete refs:** 40 remote branches (page 1: 40, page 2: 0); 23 open PRs and 14 closed PRs. Latest branch commit date/message and current PR relationship are recorded below. No branch was deleted. +- **PR #37 repair lineage:** `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331` is 6 ahead / 0 behind black-box, merge base d451d225. Its code fix commit `84cb91b8a1ecfcd6790a086743215031d7f8d671` is a direct child of black-box; only the six-line Box→Row receiver correction is selectively ported. The source branch and PR remain untouched. Natural #274 passed on the code-bearing PR head; #275's build/test/artifact steps passed on the docs-only successor but its overall run was still completing at the last poll. +- **Workflow:** active integration `.github/workflows/build-apk.yml` has read-only build/test permissions and a separate main-push-only release-write job; its push and PR triggers include main, PR #16's branch and black-box. Main's current copy remains push-only with workflow-wide `contents: write`; do not claim the main-targeted draft PR has a guaranteed base-workflow validation path. +- **Actions:** 275 total runs fully paginated (100 + 100 + 75): 161 success, 61 failure, 52 cancelled, 1 in progress (#275); queued 0. #269/#270 failed on black-box d451; #274 passed on PR #37 code head; #275 build/test/upload steps passed on PR #37 docs-only head. Latest published Release remains `v0.2.0-build-116`, published 6 November 2026; no new Release. +- **Safety:** no main edit, PR merge/retarget, workflow edit, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + +### Complete remote branch-head inventory + +| Branch | Head SHA | Latest commit (UTC) | Open PR / state | +|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 — test(a11y): cover minimum icon action target | #30 open, base black-box | +| `black-box-bihar-news` | `d451d22518b8065e2865dae6b40679c3d7b41dc2` | 2026-11-07 21:02:41 — ui(search): retain focus and animate clear affordance | #34 open, base main; selected | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 — ui: consolidate lightweight supporting glass surfaces | Base of #24; divergent, not selected | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — ci: validate pull requests with read-only build permissions | #18 open, base main; workflow intent represented in black-box | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — ci: restore Android SDK setup before sdkmanager | #20 closed/merged into black-box, not main | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged; equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 — fix: refresh article card metadata when feed content changes | #6 open, base main; policy represented selectively | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — fix: select Atom article alternate links deterministically | #12 open, base main; core policy represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — feat: expose publication date and publisher RSS provenance on cards | #11 open, base black-box; equivalent code represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — fix: minimise shareable process-exit diagnostics | #16 open, base main; ancestor of integration | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `cef7f1267cf2ca67ceacaf2acd9cfcbfa7dbf6fc` | 2026-11-07 19:06:26 — test(editorial): reject institutional film-promotion false positives | #27 open, base black-box ancestor; separate editorial review | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open, base main; combined policy represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 — fix(editorial): match policy action and target as separate words | #24 open, base brrrNEWS; divergent, not selected | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — test: align economy signal count with repo-rate mapping | #2 closed/merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 — fix: tighten UPSC editorial signal matching | #1 closed/merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 — fix: use supported calendar navigation glyph | #5 closed/merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 — test: preserve Parliament bill headline variants | #23 closed/merged into black-box | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 — Validate RSS redirects against publisher allowlists | #15 closed/unmerged; equivalent guards retained | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 — fix(quiz): qualify selected semantics receiver | #28 closed/merged into black-box | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 — test(rss): correct relative xml base fixture | #33 open, base black-box ancestor; NewsRepository overlap with #32 | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 — test(reader): cover publisher-only image resources | #25 open, base black-box ancestor; security review with #26 | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 — fix: deduplicate RSS tracking URL variants | #17 open, base main; URL identity policy represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 — docs: record verified search clear compile repair | #37 open, base black-box; 6 ahead / 0 behind | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 — fix: capture Search glass tint before draw callback | #10 closed/merged into main | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 — fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged into main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 — fix: harden cold start and reduce feed rendering workload | #7 closed/merged into main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 — test(today): cover Asia/Kolkata midnight rollover | #36 open, base black-box ancestor; 3 ahead / 1 behind | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | Default branch | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 — Record successful bounded-diagnostic CI | #35 open, base black-box ancestor; 6 ahead / 9 behind | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 — Verify legacy markers survive recent-history retention | #22 open, base PR #8; equivalent supplemental policy represented | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 — docs: record bounded RSS fetch review and CI state | #32 open, base black-box ancestor; NewsRepository overlap with #33 | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 — fix(startup): keep appearance snapshot API module-internal | #31 open, base black-box ancestor; equivalent IO restore represented | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 — perf(storage): move bookmark mutations off the UI thread | #29 open, base black-box ancestor; equivalent policy represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 — perf: move read-marker persistence off main thread | #8 open, base main; IO/mutex policy selectively reconciled | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 — privacy: block third-party publisher reader subresources | #26 open, base black-box ancestor; joint review with #25 | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 — fix: make selection decoding fallback valid JSON | No active PR; stale, not a baseline | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 — ui: restore low-cadence foreground adaptive glass contrast | #13 open, base main; conservative shared probe represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 — fix: import bottom navigation glyphs | #3 merged to main; #4 closed/unmerged; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 — docs(reader): record native selection collision guard | #19 closed/merged into black-box | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 — fix: finish syllabus metadata and thin-film feed eligibility | No PR; ancestor/checkpoint of black-box | + +### Relevant comparison and dependency decisions + +- `main...black-box-bihar-news`: 119 ahead / 0 behind; black-box remains the authoritative selected integration line and retains PR #16's corrected background-only Prismal capture. +- `black-box-bihar-news...fix/search-clear-row-scope-compile`: 6 ahead / 0 behind; direct merge base d451d225. Port only the code hunk from direct-child commit `84cb91b8`; do not copy its branch-wide documentation snapshot. +- `black-box-bihar-news...fix/today-ist-midnight-rollover`: 3 ahead / 1 behind, merge base `4a7a8f8c`; safe candidate but its MainActivity hunk must be reconciled with Search and current feed-index state, then retested on the current head. +- `black-box-bihar-news...perf/bound-startup-diagnostic-reads`: 6 ahead / 9 behind, merge base `ed6c9419`; only LaunchCrashDiagnostics and its tests change in source code; exact code/test tree `80cf6dbd` passed run #248. Review current diagnostic implementation before selective port. +- PRs #32 and #33 both change `NewsRepository.kt`; do not apply either in isolation. PR #25 and #26 both constrain publisher resources; review as one host/resource policy and preserve WebView JavaScript/DOM-storage restrictions. +- PR #31, #30, #29, #22, #21, #18, #17, #13, #12, #11, #8 and #6 have useful code/policies already represented or selectively reconciled in the integration branch; do not wholesale replay their divergent commits. PR #27 remains a separate editorial-policy review. PR #24 is based on divergent brrrNEWS and is not a safe UI baseline. +- `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are stale; do not use. PR #16 remains open on main and is an ancestor, not the active base. + +### Current Search clear integration result + +- On the active branch's last tested code head d451d225, natural runs #269/#270 failed at the RowScope-specific AnimatedVisibility call inside the fixed 48dp Box slot. +- PR #37's isolated code commit `84cb91b8` replaces that slot with a fixed 48dp Row; exact code-bearing PR head `8eb7aae3` passed natural run #274. Docs-only successor `9dd4ceac` has natural run #275 with WordNet, JVM tests, APK build and artifact upload steps successful; overall cleanup was still in progress at audit time. +- This audit's only source-code port is the same RowScope correction. Await a fresh natural build on the updated black-box head before further UI work. No device-performance result is inferred. + +--- + # Black Box Bihar News — complete branch consolidation **Repository:** Batmancpu/CurrentLens diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 12b15256..223e49dc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,14 @@ +## Live implementation update — 8 November 2026, 03:24 IST + +- **Authoritative baseline:** owner-selected `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is unchanged. Comparison: **119 ahead / 0 behind main**, merge base is main. Draft consolidation PR [#34](https://github.com/Batmancpu/CurrentLens/pull/34) remains open; no merge or retarget. +- **Freshness gate:** all 40 remote branches were enumerated (page 1: 40, page 2: 0), plus 23 open and 14 closed PRs. PR [#37](https://github.com/Batmancpu/CurrentLens/pull/37), branch `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331`, is a direct descendant of this exact integration head (**6 ahead / 0 behind; merge base d451d225**). Only its isolated code commit `84cb91b8a1ecfcd6790a086743215031d7f8d671` is being ported; its separate branch and documentation commits remain untouched. PR #36 is 3 ahead / 1 behind from older base `4a7a8f8c`; PR #35 is 6 ahead / 9 behind from `ed6c9419`. They are not silently adopted. +- **Verified regression:** natural runs [#269](https://github.com/Batmancpu/CurrentLens/actions/runs/42413944406) (push) and [#270](https://github.com/Batmancpu/CurrentLens/actions/runs/42413949074) (pull request) both failed on exact integration SHA d451d225 at `MainActivity.kt:1663:21`: the RowScope-specific `AnimatedVisibility` overload was invoked from a Box receiver. Full logs confirm WordNet generation, SDK/Gradle setup passed and Kotlin compilation failed; APK upload was skipped. +- **Focused repair:** replace only the fixed 48dp trailing clear-action Box with a fixed 48dp Row. This supplies the required RowScope while preserving the reserved trailing width, cursor/text position, 48dp target, existing fade/snap transitions, “Clear search” semantics and the existing `onClear` path. That callback clears only the query, restores Search focus and keyboard, and leaves Search expanded and filters unchanged. No new search state or filter mutation. +- **Exact-source CI evidence:** PR #37 natural run [#274](https://github.com/Batmancpu/CurrentLens/actions/runs/42417973318) passed on code-bearing head `8eb7aae3ee0d864fac77ccb83cf9565ce8409d9f`: WordNet builder 4/4, 151,456-word offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact [#13592087500](https://github.com/Batmancpu/CurrentLens/actions/runs/42417973318/artifacts/13592087500), 39,106,296 bytes. Follow-up natural run #275 on docs-only head `9dd4ceac` has all build/test/upload steps successful and artifact #13591958400 (39,106,296 bytes); its overall run was still in final cleanup at last poll. These validate PR #37's code path, **not yet the new active-branch commit**; await the natural push run on black-box. +- **Rendering/performance accounting:** no Prismal surface, blur/refraction, shader, graphics layer, sampler/readback, backdrop capture, image decode, dependency, network or persistence change. The same 48dp slot is retained with a Row instead of a Box. No performance measurement or device smoothness claim. +- **Acceptance checks retained:** expanded Search with non-empty query shows one in-capsule clear target; empty query retains slot width without a button; clear preserves focus/IME and all filters; Reduce Motion snaps; TalkBack announces “Clear search”. OPPO keyboard/cursor/animation and TalkBack runtime checks remain **UNVERIFIED**. +- **Next:** verify the exact new black-box head's natural CI before another implementation batch. Then separately reconcile PR #36's IST-midnight Today refresh and PR #35's bounded diagnostic reads; jointly review PRs #32/#33 (both touch NewsRepository) and #25/#26 (publisher image/subresource security). PR #27 remains an independent editorial-policy review. + # Liquid Glass UI Roadmap **Status:** Shared Prismal coverage spans the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and unified Reader/Quiz transient controls. This pass improves grouped-filter legibility and caches the Search sheet's option de-duplication; no new glass surface or capture is introduced. From d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 04:35:34 +0530 Subject: [PATCH 118/175] ui(glass): bind supporting surfaces to appearance intensity --- .../currentlens/GlassSurfacePolicy.kt | 41 ++++++-- .../mangoloads/currentlens/MainActivity.kt | 42 +++++---- .../currentlens/GlassSurfacePolicyTest.kt | 45 ++++++++- docs/BRANCH_CONSOLIDATION.md | 93 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 36 ++++++- 5 files changed, 219 insertions(+), 38 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 3c7fee6d..2016e8a6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -14,19 +14,44 @@ internal object GlassSurfacePolicy { private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f - private const val SUPPORTING_TINT_ALPHA_DARK = 0.11f - private const val SUPPORTING_TINT_ALPHA_LIGHT = 0.07f - private const val SUPPORTING_RIM_ALPHA_DARK = 0.20f - private const val SUPPORTING_RIM_ALPHA_LIGHT = 0.13f + private const val SUPPORTING_TINT_DARK_CLEAR = 0.09f + private const val SUPPORTING_TINT_DARK_FROSTED = 0.145f + private const val SUPPORTING_TINT_LIGHT_CLEAR = 0.055f + private const val SUPPORTING_TINT_LIGHT_FROSTED = 0.095f + private const val SUPPORTING_RIM_DARK_CLEAR = 0.17f + private const val SUPPORTING_RIM_DARK_FROSTED = 0.23f + private const val SUPPORTING_RIM_LIGHT_CLEAR = 0.11f + private const val SUPPORTING_RIM_LIGHT_FROSTED = 0.16f fun supportingSurfaceAlpha(dark: Boolean): Float = if (dark) SUPPORTING_SURFACE_ALPHA_DARK else SUPPORTING_SURFACE_ALPHA_LIGHT - fun supportingTintAlpha(dark: Boolean): Float = - if (dark) SUPPORTING_TINT_ALPHA_DARK else SUPPORTING_TINT_ALPHA_LIGHT + fun supportingTintAlpha( + dark: Boolean, + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + ): Float { + val progress = intensityProgress(glassAlpha) + val clear = if (dark) SUPPORTING_TINT_DARK_CLEAR else SUPPORTING_TINT_LIGHT_CLEAR + val frosted = if (dark) SUPPORTING_TINT_DARK_FROSTED else SUPPORTING_TINT_LIGHT_FROSTED + return clear + (frosted - clear) * progress + } - fun supportingRimAlpha(dark: Boolean): Float = - if (dark) SUPPORTING_RIM_ALPHA_DARK else SUPPORTING_RIM_ALPHA_LIGHT + fun supportingRimAlpha( + dark: Boolean, + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + ): Float { + val progress = intensityProgress(glassAlpha) + val clear = if (dark) SUPPORTING_RIM_DARK_CLEAR else SUPPORTING_RIM_LIGHT_CLEAR + val frosted = if (dark) SUPPORTING_RIM_DARK_FROSTED else SUPPORTING_RIM_LIGHT_FROSTED + return clear + (frosted - clear) * progress + } + + private fun intensityProgress(glassAlpha: Float): Float { + val normalized = AppearancePreferencesPolicy.normalizeGlassAlpha(glassAlpha) + return ((normalized - AppearancePreferencesPolicy.MIN_GLASS_ALPHA) / + (AppearancePreferencesPolicy.MAX_GLASS_ALPHA - AppearancePreferencesPolicy.MIN_GLASS_ALPHA)) + .coerceIn(0f, 1f) + } } diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 450b1495..d1b6faf6 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -221,6 +221,9 @@ import kotlinx.coroutines.launch import kotlinx.coroutines.withContext private val LocalGlassReduceTransparency = staticCompositionLocalOf { false } +private val LocalGlassIntensity = staticCompositionLocalOf { + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA +} private const val INDIA_ZONE = "Asia/Kolkata" @@ -644,7 +647,10 @@ private fun BrrrNewsApp() { } } - CompositionLocalProvider(LocalGlassReduceTransparency provides reduceTransparency) { + CompositionLocalProvider( + LocalGlassReduceTransparency provides reduceTransparency, + LocalGlassIntensity provides glassAlpha + ) { BoxWithConstraints( Modifier.fillMaxSize().background( if (searchExpanded) Color.Transparent else MaterialTheme.colorScheme.background @@ -1850,12 +1856,13 @@ private fun SupportingGlassCard( ) { val colors = MaterialTheme.colorScheme val dark = isSystemInDarkTheme() + val glassAlpha = LocalGlassIntensity.current val shape = remember { PrismalRoundedRectangle(GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP.dp) } - val tintAlpha = GlassSurfacePolicy.supportingTintAlpha(dark) - val rimAlpha = GlassSurfacePolicy.supportingRimAlpha(dark) - val rimBrush = remember(colors.primary, colors.outline, dark) { + val tintAlpha = GlassSurfacePolicy.supportingTintAlpha(dark, glassAlpha) + val rimAlpha = GlassSurfacePolicy.supportingRimAlpha(dark, glassAlpha) + val rimBrush = remember(colors.primary, colors.outline, dark, rimAlpha) { Brush.linearGradient( colors = listOf( Color.White.copy(alpha = if (dark) 0.24f else 0.64f), @@ -1864,7 +1871,7 @@ private fun SupportingGlassCard( ) ) } - val tintBrush = remember(colors.primary, colors.surface, dark) { + val tintBrush = remember(colors.primary, colors.surface, dark, tintAlpha) { Brush.verticalGradient( colors = listOf( colors.primary.copy(alpha = tintAlpha), @@ -4333,13 +4340,14 @@ private fun AppearanceGlassEditor( // A single small Prismal surface replaces the previous two independently // blurred panels. Search and navigation are simple tinted children, not // nested live-glass surfaces or additional backdrop consumers. - PrismalTransientSurface( - backdrop = backdrop, - modifier = Modifier.fillMaxWidth(), - glassAlpha = previewGlassAlpha, - dark = dark, - cornerRadiusDp = 26f - ) { + CompositionLocalProvider(LocalGlassIntensity provides previewGlassAlpha) { + PrismalTransientSurface( + backdrop = backdrop, + modifier = Modifier.fillMaxWidth(), + glassAlpha = previewGlassAlpha, + dark = dark, + cornerRadiusDp = 26f + ) { Column( Modifier.fillMaxWidth().padding(14.dp), verticalArrangement = Arrangement.spacedBy(10.dp) @@ -4400,14 +4408,7 @@ private fun AppearanceGlassEditor( ) } - Card( - modifier = Modifier.fillMaxWidth(), - shape = RoundedCornerShape(18.dp), - colors = CardDefaults.cardColors( - containerColor = MaterialTheme.colorScheme.surface.copy(alpha = 0.96f) - ), - elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) - ) { + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { Column(Modifier.padding(14.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) { Row(verticalAlignment = Alignment.CenterVertically) { Text( @@ -4472,6 +4473,7 @@ private fun AppearanceGlassEditor( } } } + } } } } diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index b349a9f7..0b89196d 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -12,17 +12,52 @@ class GlassSurfacePolicyTest { } @Test - fun opticalTintAndRimStaySubtleAndBounded() { - assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0f..0.12f) - assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = false) in 0f..0.08f) - assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = true) in 0.18f..0.22f) - assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = false) in 0.11f..0.15f) + fun opticalTintAndRimStaySubtleAndBoundedAtDefaultIntensity() { + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0.10f..0.12f) + assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = false) in 0.06f..0.08f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = true) in 0.18f..0.21f) + assertTrue(GlassSurfacePolicy.supportingRimAlpha(dark = false) in 0.12f..0.14f) assertTrue( GlassSurfacePolicy.supportingTintAlpha(dark = true) > GlassSurfacePolicy.supportingTintAlpha(dark = false) ) } + @Test + fun supportingTintAndRimTrackClearBalancedAndFrostedPreferences() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val balanced = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + + assertEquals(0.09f, GlassSurfacePolicy.supportingTintAlpha(true, clear), 0.0001f) + assertEquals(0.145f, GlassSurfacePolicy.supportingTintAlpha(true, frosted), 0.0001f) + assertEquals(0.055f, GlassSurfacePolicy.supportingTintAlpha(false, clear), 0.0001f) + assertEquals(0.095f, GlassSurfacePolicy.supportingTintAlpha(false, frosted), 0.0001f) + assertEquals(0.17f, GlassSurfacePolicy.supportingRimAlpha(true, clear), 0.0001f) + assertEquals(0.23f, GlassSurfacePolicy.supportingRimAlpha(true, frosted), 0.0001f) + assertEquals(0.11f, GlassSurfacePolicy.supportingRimAlpha(false, clear), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, frosted), 0.0001f) + + assertTrue(GlassSurfacePolicy.supportingTintAlpha(true, clear) < + GlassSurfacePolicy.supportingTintAlpha(true, balanced)) + assertTrue(GlassSurfacePolicy.supportingTintAlpha(true, balanced) < + GlassSurfacePolicy.supportingTintAlpha(true, frosted)) + } + + @Test + fun nonFiniteSupportingIntensityFallsBackToDefault() { + assertEquals( + GlassSurfacePolicy.supportingTintAlpha(true), + GlassSurfacePolicy.supportingTintAlpha(true, Float.NaN), + 0f + ) + assertEquals( + GlassSurfacePolicy.supportingRimAlpha(false), + GlassSurfacePolicy.supportingRimAlpha(false, Float.POSITIVE_INFINITY), + 0f + ) + } + @Test fun transientControlsUseOneBoundedLowCostMaterialTier() { assertTrue(GlassSurfacePolicy.TRANSIENT_BLUR_DP in 0f..6f) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 223434e1..bba92bae 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,96 @@ +## Live branch-graph audit — 8 November 2026, 04:29 IST + +- **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- **Authoritative integration:** `black-box-bihar-news@6f777f8777b3168383361dc79109b3d1d75b612b`, 120 ahead / 0 behind main, merge base main. PR #34 is open/draft, head equal to this SHA, base main; this remains the only branch this task may modify. +- **Complete inventory:** 40 remote branches (page 1 returned 40, page 2 empty), 23 open PRs and 14 closed PRs. All branch head timestamps/messages and PR relationships are recorded below. No source branch was deleted or modified. +- **Search repair:** PR #37 remains open/draft on `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331`, based on older black-box SHA `d451d22518b8065e2865dae6b40679c3d7b41dc2`. Its six-line RowScope correction is already functionally present in the current branch's SearchMorphField; the current head passed natural #276/#277. Do not merge/retarget or duplicate PR #37. +- **Other relevant open proposals:** PR #36 (IST midnight date/index refresh) is 3 ahead / 2 behind current black-box from merge base `4a7a8f8c`; not integrated because it overlaps MainActivity and remains a separate Today correctness change. PR #35 (bounded startup diagnostic reads) is 6 ahead / 10 behind from `ed6c9419`; startup-only. PR #32 (bounded RSS concurrency) is 2 ahead / 15 behind from `ee82dfde`; PR #33 (relative Atom links) is 4 ahead / 13 behind from `48b54808`; both modify NewsRepository and require joint review. PR #31 appearance IO restore, #30 48dp targets and #29 bookmark IO are already represented; their branches remain untouched. PR #27 remains separate editorial work. PR #25/#26 remain a joint publisher-resource security review. PR #24 is based on divergent brrrNEWS and is not a baseline. +- **Workflow:** `.github/workflows/build-apk.yml` on black-box uses read-only build/test permissions, push and pull-request triggers for main/PR #16/black-box, and a separate main-push-only release-write job. Main's workflow remains push-only with workflow-wide `contents: write`; the main-targeted draft PR is not claimed as having a guaranteed pull_request run from main's current workflow. +- **Actions:** 277 total runs fully paginated (100 + 100 + 77; page 4 empty), no queued or in-progress runs. Natural run #276 (push) and #277 (pull_request) both passed on exact SHA `6f777f8777b3168383361dc79109b3d1d75b612b`: WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload. Full job logs inspected; `BUILD SUCCESSFUL`. Publish job skipped. Run #277 artifact #13593000344 is 39,106,297 bytes, SHA-256 `1ae88bf11d4a2e4c8cefabea0f9abd59af6939e52265558922c7177a22aa4235`, expires 21 November 2026. +- **Release:** latest published remains `v0.2.0-build-116`, published 6 November 2026; no new Release. +- **Safety:** no main write, PR merge/retarget/close, workflow edit, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + +### Complete remote branch-head inventory (8 November 2026) + +| Branch | Head SHA | Latest commit UTC / message | PR relationship | +|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 — test(a11y): cover minimum icon action target | #30 open; base black-box | +| `black-box-bihar-news` | `6f777f8777b3168383361dc79109b3d1d75b612b` | 2026-11-07 22:00:29 — fix(search): provide RowScope for clear animation | #34 open head/base main; selected; base of #37/#36/#35/#33/#32/#31/#30/#29/#27/#26/#25/#11 and other stacked PRs | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 — ui: consolidate lightweight supporting glass surfaces | Base of #24; divergent, not selected | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — ci: validate pull requests with read-only build permissions | #18 open; workflow intent represented in black-box | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — ci: restore Android SDK setup before sdkmanager | #20 closed/merged into black-box, not main | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged; equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 — fix: refresh article card metadata when feed content changes | #6 open; policy represented selectively | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — fix: select Atom article alternate links deterministically | #12 open; core policy represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — feat: expose publication date and publisher RSS provenance on cards | #11 open; equivalent code represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — fix: minimise shareable process-exit diagnostics | #16 open; ancestor of integration | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `cef7f1267cf2ca67ceacaf2acd9cfcbfa7dbf6fc` | 2026-11-07 19:06:26 — test(editorial): reject institutional film-promotion false positives | #27 open; separate editorial review | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open; combined policy represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 — fix(editorial): match policy action and target as separate words | #24 open on brrrNEWS; divergent | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — test: align economy signal count with repo-rate mapping | #2 closed/merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 — fix: tighten UPSC editorial signal matching | #1 closed/merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 — fix: use supported calendar navigation glyph | #5 closed/merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 — test: preserve Parliament bill headline variants | #23 closed/merged into black-box | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 — Validate RSS redirects against publisher allowlists | #15 closed/unmerged; equivalent guards retained | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 — fix(quiz): qualify selected semantics receiver | #28 closed/merged into black-box | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 — test(rss): correct relative xml base fixture | #33 open; NewsRepository overlap with #32 | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 — test(reader): cover publisher-only image resources | #25 open; joint security review with #26 | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 — fix: deduplicate RSS tracking URL variants | #17 open; URL identity policy represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 — docs: record verified search clear compile repair | #37 open; code hunk already represented in current integration | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 — fix: capture Search glass tint before draw callback | #10 closed/merged into main | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 — fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged into main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 — fix: harden cold start and reduce feed rendering workload | #7 closed/merged into main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 — test(today): cover Asia/Kolkata midnight rollover | #36 open; separate Today-date candidate | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 — Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 — Record successful bounded-diagnostic CI | #35 open; startup-only candidate | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 — Verify legacy markers survive recent-history retention | #22 open on PR #8; supplemental policy represented | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 — docs: record bounded RSS fetch review and CI state | #32 open; joint NewsRepository review with #33 | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 — fix(startup): keep appearance snapshot API module-internal | #31 open; IO restore represented | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 — perf(storage): move bookmark mutations off the UI thread | #29 open; serialized IO policy represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 — perf: move read-marker persistence off main thread | #8 open; IO/mutex policy reconciled | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 — privacy: block third-party publisher reader subresources | #26 open; joint security review with #25 | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 — fix: make selection decoding fallback valid JSON | no PR; stale, not a baseline | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 — ui: restore low-cadence foreground adaptive glass contrast | #13 open; conservative shared probe represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 — fix: import bottom navigation glyphs | #3 merged to main, #4 closed/unmerged; stale divergent sibling | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 — docs(reader): record native selection collision guard | #19 closed/merged into black-box, not main | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 — fix: finish syllabus metadata and thin-film feed eligibility | checkpoint ancestor; no PR | + +### Open pull requests (all draft) + +| PR | Head branch / SHA | Base branch / SHA | Treatment | +|---|---|---|---| +| #37 | `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac` | `black-box-bihar-news@d451d225` | RowScope fix already present on current integration; leave source PR untouched | +| #36 | `fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6` | `black-box-bihar-news@4a7a8f8c` | Separate IST rollover candidate; reconcile MainActivity against current head before port | +| #35 | `perf/bound-startup-diagnostic-reads-2026-11-07@c4a97783` | `black-box-bihar-news@ed6c9419` | Startup diagnostics only; defer | +| #34 | `black-box-bihar-news@6f777f87` | `main@73b8a0d1` | Single consolidation draft; only PR this task updates | +| #33 | `fix/resolve-relative-atom-links-2026-11-07@c97d6b96` | `black-box-bihar-news@48b54808` | Joint parser/concurrency review with #32 | +| #32 | `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c` | `black-box-bihar-news@ee82dfde` | Joint parser/concurrency review with #33 | +| #31 | `perf/off-main-appearance-preferences-2026-11-07@bc48daec` | `black-box-bihar-news@ee82dfde` | Off-main restore policy represented; no wholesale replay | +| #30 | `a11y/48dp-icon-targets-2026-11-07@25107ce9` | `black-box-bihar-news@f7e10ab1` | 48dp policy represented; no wholesale replay | +| #29 | `perf/off-main-bookmark-persistence-2026-11-07@a64857b5` | `black-box-bihar-news@6f9b3c1e` | Serialized IO policy represented; no wholesale replay | +| #27 | `fix/editorial-action-gate-blackbox-2026-11-07@cef7f126` | `black-box-bihar-news@3a08bb95` | Separate editorial-policy review | +| #26 | `privacy/webview-publisher-subresource-gate-2026-11-07@b8d2ef9f` | `black-box-bihar-news@3a08bb95` | Joint publisher-resource security review with #25 | +| #25 | `fix/rss-image-host-allowlist-2026-11-07@7a51c9c2` | `black-box-bihar-news@2e2c15f5` | Joint publisher-resource security review with #26 | +| #24 | `fix/editorial-policy-exception-guard-2026-11-07@1f7a3c2a` | `brrrNEWS@e6fcfc25` | Divergent parent; do not use as UI baseline | +| #22 | `perf/bounded-read-history-2026-11-07@910178af` | `perf/off-main-session-persistence-2026-11-06@ed91a3bf` | Supplemental policy already reconciled; legacy unordered markers retained | +| #21 | `fix/editorial-heatwave-bill-signals-2026-11-07@89464104` | `main@73b8a0d1` | Editorial policy represented in consolidation | +| #18 | `ci/read-only-pr-validation-isolated-release-write-2026-11-06@963118f0` | `main@73b8a0d1` | Workflow intent reconciled into black-box; main untouched | +| #17 | `fix/rss-tracking-variant-dedup-2026-11-06@2093990b` | `main@73b8a0d1` | URL identity policy represented | +| #16 | `fix/early-startup-crash-diagnostics-2026-11-06@6ab1e6a0` | `main@73b8a0d1` | Corrected stability/Prismal ancestor; do not modify | +| #13 | `ui/foreground-adaptive-glass-contrast-2026-11-06@3dc0f3fb` | `main@ba06a8f3` | Conservative shared probe represented | +| #12 | `fix/atom-alternate-link-selection-2026-11-06@cdf4c384` | `main@ba06a8f3` | Parser policy represented | +| #11 | `fix/cache-publication-date-integrity-2026-11-06@be5151e6` | `black-box-bihar-news@c6223c93` | Cache/provenance policy represented | +| #8 | `perf/off-main-session-persistence-2026-11-06@ed91a3bf` | `main@81de60cc` | IO/mutex policy reconciled | +| #6 | `feat/gs1-geography-editorial-coverage@ca66fa1c` | `main@17b47e45` | Editorial policy represented selectively | + +### Closed pull requests + +- Merged into black-box (not main): #28, #23, #20, #19. +- Merged into main: #10, #9, #7, #5, #3, #2, #1. +- Closed without merge: #15, #14, #4. + +--- + ## Live branch-graph audit — 8 November 2026, 03:24 IST - **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 223e49dc..379b436a 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -87,9 +87,9 @@ Recheck every branch head and dependency before each future implementation commi | Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; run #183 passed | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | -| You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Shared policy tuned: dark surface/tint 0.93/0.11, light 0.965/0.07; no live blur; OPPO contrast unverified | +| You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity now scales cached tint/rim tokens; no live blur; OPPO contrast unverified | | Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | -| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting tint/rim tuned through shared policy; cards remain no-blur; summaries memoized | +| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting cards use the same committed Clear↔Frosted tint/rim intensity; no live blur; summaries memoized | | Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control; direction-aware auto-hide | Implemented; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | @@ -97,7 +97,7 @@ Recheck every branch head and dependency before each future implementation commi | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | | Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Continuous-corner content cards, >=48dp option targets and selected semantics; no live blur; submit-only persistence unchanged | | Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | -| Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | Controls stay on a calm standard card; one shared 5dp Prismal preview shows header/search/four-tab navigation; slider state is child-scoped and commits app-wide only on release; device validation pending | +| Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | One 5dp Prismal control preview plus a static SupportingGlassCard sample both reflect the preview intensity; slider state is child-scoped and commits app-wide only on release; device validation pending | | Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | | Reader Aa menu | Interactive transient glass | Compact anchored text-size menu; preserve the existing 16–28sp actions and clamping | Same shared transient material, mounted only while expanded; font-size behaviour unchanged | | Other dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | @@ -117,9 +117,9 @@ Recheck every branch head and dependency before each future implementation commi | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | | Search filter sheet / Reader Aa menu | One 5dp-blur, low-refraction transient surface while open | Shared `PrismalTransientSurface` consumes the existing background-only root backdrop; no extra capture/readback, no per-chip/item blur, and the two screens cannot show these surfaces together | `GlassRenderingPolicy` removes live optics for Reduce Transparency; policy constants covered by `GlassSurfacePolicyTest`; frame/GPU/memory/battery cost unmeasured | -| You / Reading / Quiz Stats supporting cards | No live blur; theme-aware translucent surface (0.93 dark / 0.965 light), tint (0.11 / 0.07) and restrained rim | Existing Card + remembered gradients/shapes; memoized aggregates; no per-card capture | No capture/readback/image work added; CI policy tests; device/frame/GPU/memory/battery cost unmeasured | +| You / Reading / Quiz Stats supporting cards | No live blur; nearly opaque theme-aware content surface with intensity-scaled static tint/rim | `LocalGlassIntensity` carries only the committed preference; brushes are remembered by theme and normalized tint/rim values; summaries remain memoized | No capture/readback/image work added; policy tests cover Clear/Balanced/Frosted and invalid values; device/frame/GPU/memory/battery cost unmeasured | | Saved / Reading / Quiz Stats filter group | One 5dp-blur / low-refraction Prismal surface per visible subpage, containing three compact 48dp rails | Reuses the one background-only root source; no per-row/per-chip blur, no new capture/readback; option de-duplication is remembered | Reduce Transparency routes blur/refraction through `GlassRenderingPolicy`; FilterChip keeps selected semantics and >=48dp width/height; GPU/frame/memory/battery cost unmeasured | -| Appearance preview | One 5dp-blur / low-refraction `PrismalTransientSurface`; controls card and article sample are non-blurred | Reuse the root background-only backdrop and existing transient material tokens; remove the former second live-glass preview panel; slider state remains local until release/preset selection; no image decode or root-state update per drag tick | `GlassSurfacePolicyTest` bounds the transient tier and `GlassRenderingPolicyTest` covers zero-optics fallback; OPPO rendering, frame timing, memory, thermal and battery remain unverified | +| Appearance preview | One 5dp-blur / low-refraction `PrismalTransientSurface` plus one static supporting content sample | Reuse the root background-only backdrop; only the small preview's local material token follows slider movement; the app-wide intensity changes on release/preset selection; no image decode or root-state update per drag tick | `GlassSurfacePolicyTest` covers both tiers and Clear/Balanced/Frosted values; OPPO rendering, frame timing, memory, thermal and battery remain unverified | | Quiz chrome | Two small Prismal control surfaces (header + bottom dock) | Reuse the one background-only root source; 7–8dp bounded blur/refraction; no per-question glass, new capture or readback | Reduce Transparency uses GlassRenderingPolicy; 48dp actions and safe-area padding; device frame/GPU/battery cost unmeasured | ## Implemented batch — Reader toolbar and completion @@ -572,3 +572,29 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Next** - After the exact-head natural run completes, continue the shared-header/transient-control consistency audit and inspect Appearance preview fidelity against the actual shared material tokens. Preserve the one root backdrop source, expanded-only tab glyph source and existing 4s/6s foreground-idle adaptive luminance cadence. + + +## Supporting-surface intensity binding — 8 November 2026, 04:29 IST + +**Freshness and dependency gate** +- Re-enumerated all 40 remote branches (page 1: 40, page 2: 0), all 37 pull requests (23 open, 14 closed), main, the active integration PR, the complete 277-run Actions history (100 + 100 + 77; page 4 empty), queue, workflow, latest jobs/logs/artifacts and Releases. +- The only authorised source is `black-box-bihar-news@6f777f8777b3168383361dc79109b3d1d75b612b`, 120 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, merge base main. PR #34 remains open/draft, head equal to this branch, base main. PR #16's corrected background-only Prismal capture remains an ancestor. No branch creation, retarget, merge or force update. +- The new PR #37 Search RowScope repair is already functionally present in the current integration tree; its separate branch also contains continuity documentation and is not merged or modified. PR #36's Asia/Kolkata midnight refresh remains a separate candidate based on an older integration parent. PRs #32/#33 both overlap `NewsRepository.kt`; PR #35 is startup-diagnostic-only. Existing PR #30 48dp targets, #31 off-main appearance restore and #29 serialized bookmark persistence are represented in the current tree; no wholesale branch replay. +- The integration workflow `.github/workflows/build-apk.yml` has read-only build/test permissions and a separate main-push-only release-write job. It naturally covers push and pull-request validation for black-box. Main's workflow remains push-only with broader write permission; branch CI is not claimed as a main-targeted PR check. +- Exact current head passed natural push run [#276](https://github.com/Batmancpu/CurrentLens/actions/runs/42418532716) and pull-request run [#277](https://github.com/Batmancpu/CurrentLens/actions/runs/42418537305). Both completed WordNet builder/database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; publish job skipped. Run #277 artifact #13593000344 is 39,106,297 bytes, SHA-256 `1ae88bf11d4a2e4c8cefabea0f9abd59af6939e52265558922c7177a22aa4235`, expires 21 November 2026. These runs validate the pre-change head only. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026). No new Release or manual workflow dispatch/rerun. + +**Implementation** +- Added a root `LocalGlassIntensity` sourced from the committed appearance preference. Supporting cards across You, Saved, Reading Stats, Quiz Stats and the Settings explanation now derive their static tint and rim from the same Clear↔Frosted material scale. +- Kept supporting card surface opacity fixed (0.93 dark / 0.965 light) to protect dense text and statistics. Tint transitions are bounded from 0.09→0.145 dark / 0.055→0.095 light; rim transitions are 0.17→0.23 dark / 0.11→0.16 light. The default 0.28 preference stays close to the existing appearance. +- The Appearance preview locally overrides the material intensity and uses the same `SupportingGlassCard` for its article sample, so the preview demonstrates both the primary transient control tier and the quieter content-support tier. App-wide preference changes remain committed on slider release or preset selection. + +**Paired optimization and tests** +- No new live blur, backdrop source, sampler/readback, shader, graphics layer, image decode, network request, dependency or persistence path. Supporting cards remain static gradients/rims over a near-opaque content surface. +- Tint/rim brushes are remembered by theme and resolved alpha. The app-level CompositionLocal changes only when the preference is committed; per-drag updates stay scoped to the Appearance preview and its one supporting sample. +- Extended `GlassSurfacePolicyTest` for exact Clear/Balanced/Frosted tint/rim bounds and non-finite fallback. Existing content-opacity, transient-effect and shared-geometry assertions remain. +- This new head awaits its own natural CI run. Do not use #276/#277 as validation of this commit and do not dispatch/rerun workflows. + +**Unverified / next** +- OPPO Reno10 appearance fidelity, card text contrast at large font scale, TalkBack, Reduce Motion, frame timing, jank, allocation/memory, GPU overdraw, thermal and battery remain UNVERIFIED. No performance win is claimed from code inspection. +- Next: inspect this exact head's natural CI logs/artifact; then run the final whole-app shared-header, transient-control, accessibility and performance audit. Keep article text and repeated feed cards non-glass/no-per-card blur, one root background-only source, expanded-only tab glyph capture and the 4s/6s foreground-idle luminance cadence. From 31e3bf753f91002b26b1e02e281899d10d0e590f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 05:29:46 +0530 Subject: [PATCH 119/175] a11y(ui): honor system Reduce Motion across app transitions --- .../mangoloads/currentlens/MainActivity.kt | 18 +++++-- docs/BRANCH_CONSOLIDATION.md | 31 ++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 49 +++++++++++-------- docs/PROJECT_HANDOFF.md | 12 +++++ docs/SESSION_LEDGER.md | 15 ++++++ 5 files changed, 100 insertions(+), 25 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d1b6faf6..61b770d3 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -221,6 +221,7 @@ import kotlinx.coroutines.launch import kotlinx.coroutines.withContext private val LocalGlassReduceTransparency = staticCompositionLocalOf { false } +private val LocalGlassReduceMotion = staticCompositionLocalOf { false } private val LocalGlassIntensity = staticCompositionLocalOf { AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA } @@ -649,6 +650,7 @@ private fun BrrrNewsApp() { CompositionLocalProvider( LocalGlassReduceTransparency provides reduceTransparency, + LocalGlassReduceMotion provides reduceMotion, LocalGlassIntensity provides glassAlpha ) { BoxWithConstraints( @@ -982,6 +984,7 @@ private fun HomeScreen( onToggleBookmark: (Article) -> Unit ) { val today = LocalDate.now(ZoneId.of(INDIA_ZONE)) + val reduceMotion = LocalGlassReduceMotion.current val dateLabel = remember(today) { today.format(DateTimeFormatter.ofPattern("EEEE, d MMMM", Locale.ENGLISH)) } var exploreCategory by remember { mutableStateOf("All") } @@ -1024,7 +1027,10 @@ private fun HomeScreen( AnimatedContent( targetState = selectedTab to youPage, - transitionSpec = { fadeIn(tween(190)) togetherWith fadeOut(tween(120)) }, + transitionSpec = { + if (reduceMotion) fadeIn(snap()) togetherWith fadeOut(snap()) + else fadeIn(tween(190)) togetherWith fadeOut(tween(120)) + }, label = "brrrNews destination transition" ) { target -> val (tab, page) = target @@ -2991,6 +2997,7 @@ private fun ReaderScreen( onClearReaderPosition: (String) -> Unit ) { val context = LocalContext.current + val reduceMotion = LocalGlassReduceMotion.current val readerWebViewHolder = remember { mutableStateOf(null) } var savedReadingProgress by remember(article.url) { mutableFloatStateOf(0f) } var readerPositionLoaded by remember(article.url) { mutableStateOf(false) } @@ -3064,7 +3071,7 @@ private fun ReaderScreen( accessibilityEnabled = accessibilityEnabled, textSizeMenuExpanded = textSizeMenuExpanded ) - val readerChromeMotionMs = if (ValueAnimator.areAnimatorsEnabled()) 160 else 0 + val readerChromeMotionMs = if (reduceMotion) 0 else 160 LaunchedEffect(article.url) { extracting = true @@ -4042,6 +4049,7 @@ private fun DefinitionGlassOverlay( ) { val context = LocalContext.current val reduceTransparency = LocalGlassReduceTransparency.current + val reduceMotion = LocalGlassReduceMotion.current var result by remember(word) { mutableStateOf(null) } var loading by remember(word) { mutableStateOf(true) } var expanded by remember(word) { mutableStateOf(false) } @@ -4057,11 +4065,11 @@ private fun DefinitionGlassOverlay( } val transition = updateTransition(visibilityState, label = "Definition glass morph") val expansion by transition.animateFloat( - transitionSpec = { spring(dampingRatio = 0.76f, stiffness = 480f) }, + transitionSpec = { if (reduceMotion) snap() else spring(dampingRatio = 0.76f, stiffness = 480f) }, label = "Definition morph progress" ) { visible -> if (visible) 1f else 0f } val opacity by transition.animateFloat( - transitionSpec = { tween(durationMillis = 115) }, + transitionSpec = { tween(durationMillis = if (reduceMotion) 90 else 115) }, label = "Definition opacity" ) { visible -> if (visible) 1f else 0f } @@ -4080,7 +4088,7 @@ private fun DefinitionGlassOverlay( PrismalGlassSurface( backdrop = backdrop, modifier = Modifier.fillMaxWidth() - .animateContentSize(spring(dampingRatio = 0.82f, stiffness = 480f)), + .animateContentSize(if (reduceMotion) snap() else spring(dampingRatio = 0.82f, stiffness = 480f)), shape = { PrismalRoundedRectangle(25.dp) }, blurRadius = GlassRenderingPolicy.blurDp(12f, reduceTransparency).dp, refractionHeightPx = GlassRenderingPolicy.refractionPx(22f, reduceTransparency), diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index bba92bae..0975d754 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,34 @@ +## Live branch-graph audit — 8 November 2026, 05:24 IST + +- **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- **Authoritative integration:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`, 121 ahead / 0 behind main (merge base main) and 64 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 remains open/draft, head equal to the active branch, base main. +- **Complete inventory:** 40 remote refs (page 1: 40, page 2: 0); 37 PRs (23 open, 14 closed). The branch-name set is unchanged from the complete 40-row inventory immediately below. Two heads advanced since that table: `black-box-bihar-news` and `fix/editorial-action-gate-blackbox-2026-11-07`; their exact current refs are recorded here. No source branch was modified or deleted. +- **Head deltas since the 04:29 IST inventory:** + +| Branch | Current head | Latest commit UTC / subject | PR relationship | +|---|---|---|---| +| `black-box-bihar-news` | `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b` | 2026-11-07 23:05:34 — ui(glass): bind supporting surfaces to appearance intensity | #34 open/draft; active source; base main | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `0248121c6e19c556580c17ac72ce2aafe37169c2` | 2026-11-07 23:13:33 — docs: record editorial promotion-gate regression | #27 open/draft; editorial-only, diverged; not a UI baseline | + +- **Open-PR ancestry and treatment (all 23 checked against the active head):** + - #34 is the active integration PR; current source equals its head. + - #27 is 39 ahead / 22 behind (merge base `3a08bb95b0f9a0fed8ec11dae055f0ac2817a523`); its delta is `UpscEngine`, `UpscFeedPolicy`, tests and editorial docs only. Its later timestamp does not supersede the UI baseline. + - #37 is 6 ahead / 0 behind its own older base `d451d22518b8065e2865dae6b40679c3d7b41dc2`; compared with current integration it is 6 ahead / 2 behind. Its Box→Row RowScope compile repair is already present in current `SearchMorphField`; the separate source branch/PR remains untouched. + - #36 is 3 ahead / 3 behind current integration (merge base `4a7a8f8c1db651d8b06d636836c8221569938ff8`). It adds `AsiaKolkataDayPolicy`, a foreground IST-midnight Today-index refresh and tests; it changes `MainActivity.kt` on a diverged base. Its exact source passed run #268, but it is not integrated or claimed here. + - #35 is 6 ahead / 11 behind (merge base `ed6c94190296c8d7af400b80f6fe26f2252fafe1`); startup diagnostic read bounds only. + - #32 is 2 ahead / 16 behind (merge base `ee82dfde140aeb0d1ca80146379a0a2818c695df`) and #33 is 4 ahead / 14 behind (merge base `48b54808807f5b15e637b6177524fd923741e1f7`); both touch `NewsRepository.kt`, so retain as a joint parser/concurrency review. + - #25 is 7 ahead / 23 behind and #26 is 1 ahead / 22 behind; both affect publisher image/subresource security and remain a combined host-policy review. + - #31 (5 ahead / 16 behind), #30 (3 ahead / 17 behind) and #29 (1 ahead / 20 behind) contain appearance restore, 48dp target and bookmark IO work already represented in the active source; no wholesale replay. + - #24 is based on divergent `brrrNEWS` (9 ahead / 27 behind) and is editorial-only. #11 (3 ahead / 121 behind), #13 (1 ahead / 134 behind), #6 (10 ahead / 134 behind), #17 (1 ahead / 121 behind), #22 (9 ahead / 134 behind), #21 (11 ahead / 121 behind), #18 (1 ahead / 121 behind), #8 (3 ahead / 134 behind) and #12 (1 ahead / 134 behind) are independent older-line proposals whose compatible policies are already represented selectively or remain separately reviewed; none supersedes the active UI line. + - #16 is the ancestor (0 ahead / 64 behind). #19/#20/#23/#28 are closed and their approved work is already represented in black-box; #14/#15/#4 were closed without merge; #1/#2/#3/#5/#7/#9/#10 are merged into main. +- **Other branches:** `brrrNEWS` is 4 ahead / 27 behind from merge base `e411c394e8d48b3f547b6d6fb9039a8935bd05eb`; its supporting-glass implementation is already represented, while its workflow/branding/formatting differences are not adopted. `ui/liquid-glass-performance-2026-11-06` is 3 ahead / 139 behind; `redesign/v0.3-search-reader` is 0 ahead / 215 behind; both remain stale. `ui/liquid-glass-system-2026-11-07` is 51 behind and its PR #19 work is represented; continuation is 37 behind. No branch is selected by timestamp alone. +- **Actions / workflow:** 279 runs fully paginated (100 + 100 + 79): 166 success, 61 failure, 52 cancelled; no queued/in-progress run. Exact active head `d9a4d1e` passed natural PR #279 and push #278. Both build jobs completed WordNet 4/4, 151,456-word database generation, JVM tests, APK assembly and artifact upload; full logs inspected; release jobs skipped. The new reduced-motion commit must receive its own natural run. +- **Artifacts:** PR #279 artifact `13594284223`, 39,107,398 bytes, SHA-256 `1959a089d31d4a96ee851749d5a3753b9b42e1a2283b381b50dd2462d2762803`; push #278 artifact `13594681752`, 39,107,393 bytes, SHA-256 `5fb4503525d5fa4f8a9b77213cc07f196345ae41cd7ae243ce3e746f4ad17000`. Latest Release remains `v0.2.0-build-116`; no Release published. +- **Workflow:** active `.github/workflows/build-apk.yml` has read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only; do not claim a main-targeted PR check. +- **Safety:** no main write, merge, retarget, workflow change, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + +--- + ## Live branch-graph audit — 8 November 2026, 04:29 IST - **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 379b436a..9d439f46 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,26 +1,35 @@ -## Live implementation update — 8 November 2026, 03:24 IST - -- **Authoritative baseline:** owner-selected `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is unchanged. Comparison: **119 ahead / 0 behind main**, merge base is main. Draft consolidation PR [#34](https://github.com/Batmancpu/CurrentLens/pull/34) remains open; no merge or retarget. -- **Freshness gate:** all 40 remote branches were enumerated (page 1: 40, page 2: 0), plus 23 open and 14 closed PRs. PR [#37](https://github.com/Batmancpu/CurrentLens/pull/37), branch `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331`, is a direct descendant of this exact integration head (**6 ahead / 0 behind; merge base d451d225**). Only its isolated code commit `84cb91b8a1ecfcd6790a086743215031d7f8d671` is being ported; its separate branch and documentation commits remain untouched. PR #36 is 3 ahead / 1 behind from older base `4a7a8f8c`; PR #35 is 6 ahead / 9 behind from `ed6c9419`. They are not silently adopted. -- **Verified regression:** natural runs [#269](https://github.com/Batmancpu/CurrentLens/actions/runs/42413944406) (push) and [#270](https://github.com/Batmancpu/CurrentLens/actions/runs/42413949074) (pull request) both failed on exact integration SHA d451d225 at `MainActivity.kt:1663:21`: the RowScope-specific `AnimatedVisibility` overload was invoked from a Box receiver. Full logs confirm WordNet generation, SDK/Gradle setup passed and Kotlin compilation failed; APK upload was skipped. -- **Focused repair:** replace only the fixed 48dp trailing clear-action Box with a fixed 48dp Row. This supplies the required RowScope while preserving the reserved trailing width, cursor/text position, 48dp target, existing fade/snap transitions, “Clear search” semantics and the existing `onClear` path. That callback clears only the query, restores Search focus and keyboard, and leaves Search expanded and filters unchanged. No new search state or filter mutation. -- **Exact-source CI evidence:** PR #37 natural run [#274](https://github.com/Batmancpu/CurrentLens/actions/runs/42417973318) passed on code-bearing head `8eb7aae3ee0d864fac77ccb83cf9565ce8409d9f`: WordNet builder 4/4, 151,456-word offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact [#13592087500](https://github.com/Batmancpu/CurrentLens/actions/runs/42417973318/artifacts/13592087500), 39,106,296 bytes. Follow-up natural run #275 on docs-only head `9dd4ceac` has all build/test/upload steps successful and artifact #13591958400 (39,106,296 bytes); its overall run was still in final cleanup at last poll. These validate PR #37's code path, **not yet the new active-branch commit**; await the natural push run on black-box. -- **Rendering/performance accounting:** no Prismal surface, blur/refraction, shader, graphics layer, sampler/readback, backdrop capture, image decode, dependency, network or persistence change. The same 48dp slot is retained with a Row instead of a Box. No performance measurement or device smoothness claim. -- **Acceptance checks retained:** expanded Search with non-empty query shows one in-capsule clear target; empty query retains slot width without a button; clear preserves focus/IME and all filters; Reduce Motion snaps; TalkBack announces “Clear search”. OPPO keyboard/cursor/animation and TalkBack runtime checks remain **UNVERIFIED**. -- **Next:** verify the exact new black-box head's natural CI before another implementation batch. Then separately reconcile PR #36's IST-midnight Today refresh and PR #35's bounded diagnostic reads; jointly review PRs #32/#33 (both touch NewsRepository) and #25/#26 (publisher image/subresource security). PR #27 remains an independent editorial-policy review. +## Live implementation update — 8 November 2026, 05:24 IST + +- **Authoritative source:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Compare: **121 ahead / 0 behind main**, merge base main; **64 ahead / 0 behind** PR #16's corrected stability/Prismal head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 is the single open/draft consolidation PR from this branch to main. No other branch is being modified. +- **Freshness gate:** all **40 remote branches** were enumerated (page 1: 40; page 2: 0), and all **37 PRs** were reviewed (23 open, 14 closed). The current branch remains the newest coherent UI/integration lineage. PR #27 has a later commit timestamp but is 39 ahead / 22 behind from an older merge base and changes only UPSC editorial policy; it is not a newer UI baseline. PR #37's RowScope repair is already present in current SearchMorphField; its source branch remains untouched. PR #36's IST-midnight refresh is a separate MainActivity/date-index change on a diverged older base and is deferred for its own reconciliation. PR #35 is diagnostics-only; #32/#33 overlap NewsRepository; #25/#26 need a joint publisher-resource security review. #29/#30/#31 changes are already represented. `brrrNEWS` is a divergent sibling; the old liquid-glass-performance and v0.3 branches remain stale. +- **Natural CI history:** all **279 Actions runs** were paginated (100 + 100 + 79): 166 success, 61 failure, 52 cancelled; no queued or in-progress run. Latest exact-head runs are [#279 pull request](https://github.com/Batmancpu/CurrentLens/actions/runs/42423643681) and [#278 push](https://github.com/Batmancpu/CurrentLens/actions/runs/42423639735), both successful on the exact source SHA above. Both completed checkout, Java, signing-key restore, Android SDK/platform setup, Gradle, WordNet builder tests (4/4), 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload. Full logs for both jobs were inspected; #279 reports `BUILD SUCCESSFUL in 1m 30s`, #278 in 1m 28s. Release jobs were skipped. +- **Artifacts:** PR run #279 artifact [13594284223](https://github.com/Batmancpu/CurrentLens/actions/runs/42423643681/artifacts/13594284223), 39,107,398 bytes, SHA-256 `1959a089d31d4a96ee851749d5a3753b9b42e1a2283b381b50dd2462d2762803`, expires 21 November 2026 23:07:41 UTC. Push run #278 artifact `13594681752`, 39,107,393 bytes, SHA-256 `5fb4503525d5fa4f8a9b77213cc07f196345ae41cd7ae243ce3e746f4ad17000`. These validate the parent head `d9a4d1e`, not this new reduced-motion commit. +- **Workflow / Release:** `.github/workflows/build-apk.yml` on the integration branch uses read-only build/test permissions and a separate main-push-only Release-write job; natural PR validation covers the black-box branch. Main's workflow remains push-only, so do not describe this as PR-to-main validation. Latest published Release remains `v0.2.0-build-116`; no new Release was published. +- **Implementation in this pass:** centralised the existing lifecycle-updated system Reduce Motion state in `LocalGlassReduceMotion`. Home destination `AnimatedContent` now snaps its crossfade when Reduce Motion is enabled; Reader chrome uses the same state and zero-duration transitions; the definition popover snaps scale/content-size and keeps only a short 90ms opacity fade. The native text-selection menu, dictionary bridge, anchored placement, Reader scroll policy and completion semantics are unchanged. +- **Cost / verification:** no new Prismal surface, backdrop capture/readback, blur/refraction, shader, graphics layer, bitmap decode, dependency, timer, network request or persistence path. One CompositionLocal carries an existing lifecycle state; no per-pixel state or polling was added. This is a code-level cost assessment, not a measured performance claim. The new commit awaits its own natural CI. +- **Unverified:** OPPO Reno10 launch, visual fidelity, selection/IME collision, TalkBack, font scaling, Reduce Motion runtime, scroll smoothness, frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. CI success does not prove device launch stability or animation performance. +- **Next:** inspect the exact new head's natural CI before another UI change; then continue the whole-app shared-header/transient-control audit and separately reconcile PR #36's IST rollover if still appropriate. No merge, main write, manual dispatch/rerun, Release publication, branch deletion or source-branch mutation. # Liquid Glass UI Roadmap -**Status:** Shared Prismal coverage spans the primary shell, Reader auto-hide, Search clear, feed-only compact navigation, Appearance preview, supporting dashboard/stat materials and unified Reader/Quiz transient controls. This pass improves grouped-filter legibility and caches the Search sheet's option de-duplication; no new glass surface or capture is introduced. -**Feature branch:** `black-box-bihar-news` — the sole active integration/UI branch by explicit owner direction. -**Source baseline for this pass:** `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` (2026-11-07T17:00:49Z); 110 commits ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and 53 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Previous exact active-branch validation:** [PR run #245](https://github.com/Batmancpu/CurrentLens/actions/runs/42394162322) and [push run #244](https://github.com/Batmancpu/CurrentLens/actions/runs/42394156457) both succeeded on exact source SHA `ed6c94190296c8d7af400b80f6fe26f2252fafe1`. WordNet builder tests (4/4), 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. PR artifact `13582611557` (39,095,549 bytes; expires 21 Nov 2026 17:02:22 UTC); push artifact `13581944398` (39,095,549 bytes). Release jobs skipped. -**Latest overall natural run:** [#251](https://github.com/Batmancpu/CurrentLens/actions/runs/42396975887) passed on PR #35's separate direct-child head `c4a977831846224182f16981b15e5c803761e26d`, not on the active branch; artifact `13584216067` (39,095,814 bytes). [#250](https://github.com/Batmancpu/CurrentLens/actions/runs/42396816439) passed on PR #27's separate editorial head. Neither run validates this filter-control commit. -**Actions history:** 251 runs fully paginated (100 + 100 + 51): 149 success, 58 failure, 44 cancelled; no queued or in-progress runs. -**Workflow / Releases:** `.github/workflows/build-apk.yml` on the integration branch uses read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only; PR #34's exact pull-request event nevertheless passed as run #245 using the integration branch's PR trigger. Latest Release remains `v0.2.0-build-116`; no new Release was published. -**Branch graph:** 38 remote branches, 21 open PRs and 14 closed PRs. `black-box-bihar-news` is 110 ahead / 0 behind main and 53 ahead / 0 behind PR #16. PR #35 is a separate 6-ahead / 0-behind direct child with bounded diagnostic reads; PR #27 is editorial-only and diverged 28 ahead / 11 behind; PR #32/#33 are independent feed changes that both touch `NewsRepository.kt`; PR #25/#26 remain held for combined publisher-resource security review. PR #29/#30/#31 changes are already represented. See the new complete 38-branch table in `docs/BRANCH_CONSOLIDATION.md`. -**Safety / device status:** no main write, merge, retarget, workflow edit, manual dispatch/rerun, Release publication, package/app identity change, source-branch mutation or branch deletion. OPPO Reno10 launch, screenshots, transitions, TalkBack/Reduce Motion, font scaling, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. - +**Status:** Cohesive Prismal coverage spans the shared shell, full/compact navigation, Search, Explore filters, Reader auto-hide, definition and completion controls, You/Saved/stats supporting materials, Appearance preview and Quiz transient chrome. This pass closes the remaining shared Reduce Motion gaps in destination transitions and the definition popover. +**Feature branch:** `black-box-bihar-news` — sole active integration/UI branch by explicit owner direction. +**Source baseline for this pass:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; 121 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, and 64 ahead / 0 behind PR #16's corrected stability/Prismal head. +**Latest exact active-branch validation:** natural PR run #279 and push run #278 both passed on `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; WordNet 4/4, 151,456-word offline database, JVM tests, APK assembly and artifact upload all passed. New reduced-motion commit is pending its own natural CI. +**Actions history:** 279 runs fully paginated (100 + 100 + 79): 166 success, 61 failure, 52 cancelled; queue empty. +**Workflow / Releases:** integration workflow has read-only build/test and isolated main-push Release write; main remains push-only. Latest published Release `v0.2.0-build-116`; no Release published by runs #278/#279. +**Branch graph:** 40 remote branches; 37 PRs (23 open, 14 closed). PR #34 is the only consolidation PR this task updates. Source-branch treatment is recorded in the live audit above and `docs/BRANCH_CONSOLIDATION.md`. +**Safety / device status:** no main write, PR merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change, source-branch mutation or deletion. OPPO Reno10 launch, visual, accessibility, motion, Perfetto/frame, GPU, memory, thermal and battery evidence remains **UNVERIFIED**. + +## Current iteration — Reduced Motion consistency — 8 November 2026, 05:24 IST + +- **State source:** `LocalGlassReduceMotion` exposes the existing lifecycle-updated root preference to nested screens. It does not introduce a second preference or polling source. +- **Destination transition:** Home's shared `AnimatedContent` crossfade snaps when system animations are disabled; normal motion retains the existing 190ms/120ms fade. +- **Reader chrome:** toolbar/completion visibility uses the same state and resolves to zero-duration transitions when Reduce Motion is enabled. +- **Definition overlay:** spatial scale and content-size motion snap; opacity remains a restrained 90ms fade under Reduce Motion and 115ms normally. Anchored placement, selection bridge, native ActionMode and Copy/Select/share behaviour remain unchanged. +- **Paired optimization:** no additional glass surface, capture/readback, shader, blur/refraction pass, graphics layer, image decode, dependency or frame callback. Motion work is removed rather than replaced by a heavier effect. +- **Tests:** no dedicated Compose UI test was added for this animation-spec wiring; exact-head natural CI must compile the changed composables and run the existing JVM suite. Parent runs #278/#279 do not validate this new commit. +- **Device checks:** system Reduce Motion behaviour, TalkBack, font scaling, native selection, visual transitions and frame timing remain UNVERIFIED on OPPO Reno10. ## Historical branch freshness audit — 7 November 2026, 13:00 IST (superseded by the current run record) diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 8b19ad66..98caa8f1 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,15 @@ +## Live snapshot — 8 November 2026, 05:24 IST + +- **Main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- **Active integration/UI:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; 121 ahead / 0 behind main and 64 ahead / 0 behind PR #16's corrected Prismal/stability head. PR #34 remains open/draft to main. +- **Latest exact-head CI:** natural PR run #279 and push run #278 both passed on the exact active SHA. WordNet builder 4/4; 151,456-word offline dictionary; `:app:testDebugUnitTest`; `:app:assembleDebug`; APK artifact upload. Full logs inspected. PR artifact #13594284223 (39,107,398 bytes, SHA-256 `1959a089d31d4a96ee851749d5a3753b9b42e1a2283b381b50dd2462d2762803`); push artifact #13594681752 (39,107,393 bytes). Release jobs skipped. +- **Freshness:** 40 branches and all 37 PRs re-enumerated. PR #27's newer timestamp is editorial-only and divergent; PR #37's Search RowScope fix is already in active code; PR #36's IST-midnight refresh remains a separate diverged MainActivity change; PR #35 diagnostics, #32/#33 feed changes and #25/#26 publisher security work remain separately reviewed. See `docs/BRANCH_CONSOLIDATION.md`. +- **This pass:** system Reduce Motion is now shared through `LocalGlassReduceMotion`; Home destination transitions snap, Reader chrome uses zero-duration motion, and definition popover scale/content-size snap with a short fade. No additional Prismal capture, blur, readback, shader, graphics layer, decode or dependency. +- **Next:** wait for natural CI on the new head, then continue the shared-header/transient-control consistency audit. Do not dispatch/rerun or publish a Release. +- **Remaining limits:** no fresh OPPO Reno10 launch logcat/tombstone, screenshot, TalkBack/Reduce Motion runtime check, Perfetto trace or frame/GPU/memory/battery/thermal measurement. CI success does not establish device launch stability or smooth animation. + +--- + # CurrentLens — Latest project handoff (7 November 2026, 22:24 IST) ## Live snapshot — 7 November 2026, 22:24 IST diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index f78b9928..16e4f3d5 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -402,3 +402,18 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Rendering/performance:** no new Prismal surface, capture, sampler/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence operation. Existing Aa dropdown and root background-only source are reused; completion surface is not composed while the menu is open. No measured GPU/frame/memory/battery improvement is claimed. - **CI / device:** new commit awaits its natural push run; no manual dispatch/rerun. OPPO Reno10 launch, menu collision, TalkBack, Reduce Motion, font scaling, Perfetto/frame timing, GPU overdraw, allocations, memory, thermal and battery remain UNVERIFIED. - **Next:** inspect the exact new-head CI run before further UI work; then review remaining transient controls. Keep PR #27/#32/#33 and #25/#26 on separate dependency/security reviews. + + +## 2026-11-08 05:24 IST — Shared Reduce Motion consistency pass + +- **Repository / baseline:** `Batmancpu/CurrentLens`; active branch `black-box-bihar-news` at source head `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`. Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`; compare 121 ahead / 0 behind. PR #16's corrected background-only Prismal/stability head is an ancestor (64 ahead / 0 behind). PR #34 remains the sole open consolidation PR to main. +- **Freshness:** 40 remote branches (40 + 0 pages), 37 PRs (23 open, 14 closed) reviewed. PR #27 is newer by timestamp but editorial-only and diverged; PR #37's RowScope correction is already present in current SearchMorphField; PR #36's IST-midnight refresh is a separate diverged Today/index change; PR #35 diagnostics, #32/#33 NewsRepository and #25/#26 publisher security remain separate reviews. No source branch was modified. +- **Pre-change CI:** natural PR run #279 and push run #278 both passed on exact source SHA `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`. Both full job logs were inspected. WordNet builder tests 4/4; 151,456 unique words generated; `:app:testDebugUnitTest` and `:app:assembleDebug` passed; APK artifact upload passed. PR artifact #13594284223 (39,107,398 bytes; SHA-256 `1959a089d31d4a96ee851749d5a3753b9b42e1a2283b381b50dd2462d2762803`); push artifact #13594681752 (39,107,393 bytes; SHA-256 `5fb4503525d5fa4f8a9b77213cc07f196345ae41cd7ae243ce3e746f4ad17000`). Both publish jobs skipped. +- **Actions / Release:** 279 runs fully paginated (100 + 100 + 79): 166 success, 61 failure, 52 cancelled; queue empty. Latest published Release remains `v0.2.0-build-116`; no Release created. +- **Audit:** Home's shared `AnimatedContent` destination fade did not consult the existing root Reduce Motion state. Reader chrome separately called `ValueAnimator.areAnimatorsEnabled()`, while DefinitionGlassOverlay always used spring scale and spring content-size animation. This produced inconsistent behaviour across otherwise unified transitions. +- **Implementation:** introduced `LocalGlassReduceMotion`, sourced from the existing lifecycle-updated root state. Home destination crossfade snaps when Reduce Motion is enabled; Reader chrome uses the same state and resolves its transition duration to zero; DefinitionGlassOverlay snaps scale and content-size, retaining a short 90ms opacity fade. Normal motion preserves the existing 190/120ms destination fade, 160ms Reader chrome and spring definition morph. +- **Interaction preservation:** no change to native Android Copy/Select/share ActionMode, dictionary selection bridge, anchor coordinate/placement policy, reader scroll-direction hysteresis, selection/IME/accessibility pinning, completion action or search focus. +- **Paired optimization:** no new live glass surface, backdrop capture/readback, blur/refraction, shader, graphics layer, bitmap decode, dependency, timer, network or persistence path. No per-pixel Compose state update or polling. This is a source-level cost assessment only. +- **Tests / status:** no dedicated Compose UI test was added for animation-spec wiring. The new exact head awaits its own natural push/PR CI; runs #278/#279 validate only the parent SHA. OPPO Reno10 Reduce Motion, visual, TalkBack, font-scale, selection/IME, frame-time, GPU, memory, thermal and battery checks remain UNVERIFIED. +- **Safety:** no main write, merge, retarget, workflow edit, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + From 94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 06:27:06 +0530 Subject: [PATCH 120/175] ui(appearance): align live preview controls with glass intensity --- .../currentlens/GlassSurfacePolicy.kt | 20 ++++++++ .../mangoloads/currentlens/MainActivity.kt | 19 ++++++-- .../currentlens/GlassSurfacePolicyTest.kt | 46 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 17 ++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 13 ++++++ docs/SESSION_LEDGER.md | 12 +++++ 6 files changed, 121 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 2016e8a6..4626d48a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -46,6 +46,26 @@ internal object GlassSurfacePolicy { return clear + (frosted - clear) * progress } + /** + * Preview-only control tokens. The mini Search surface and selected tab should visibly + * follow the same intensity preference as the outer Prismal material. Reduced + * transparency uses a clearer, more opaque fallback without adding another blur pass. + */ + fun previewControlSurfaceAlpha(glassAlpha: Float, reduceTransparency: Boolean): Float { + val alpha = 0.38f + 0.18f * intensityProgress(glassAlpha) + return if (reduceTransparency) maxOf(alpha, 0.62f) else alpha + } + + fun previewControlRimAlpha(glassAlpha: Float, reduceTransparency: Boolean): Float { + val alpha = 0.16f + 0.10f * intensityProgress(glassAlpha) + return if (reduceTransparency) maxOf(alpha, 0.28f) else alpha + } + + fun previewSelectedFillAlpha(glassAlpha: Float, reduceTransparency: Boolean): Float { + val alpha = 0.10f + 0.12f * intensityProgress(glassAlpha) + return if (reduceTransparency) maxOf(alpha, 0.20f) else alpha + } + private fun intensityProgress(glassAlpha: Float): Float { val normalized = AppearancePreferencesPolicy.normalizeGlassAlpha(glassAlpha) return ((normalized - AppearancePreferencesPolicy.MIN_GLASS_ALPHA) / diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 61b770d3..2b0b0ff4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4237,6 +4237,17 @@ private fun AppearanceGlassEditor( kotlin.math.abs(previewGlassAlpha - 0.55f) < 0.015f -> "Frosted" else -> "Custom" } + // The miniature controls use the same Clear↔Frosted intensity and reduced- + // transparency response as the app, without adding another live glass surface. + val previewControlSurfaceAlpha = GlassSurfacePolicy.previewControlSurfaceAlpha( + previewGlassAlpha, reduceTransparency + ) + val previewControlRimAlpha = GlassSurfacePolicy.previewControlRimAlpha( + previewGlassAlpha, reduceTransparency + ) + val previewSelectedFillAlpha = GlassSurfacePolicy.previewSelectedFillAlpha( + previewGlassAlpha, reduceTransparency + ) val previewTabs = remember { listOf( "Today" to Icons.Outlined.Today, @@ -4389,10 +4400,10 @@ private fun AppearanceGlassEditor( val searchShape = RoundedCornerShape(16.dp) Row( - Modifier.fillMaxWidth().heightIn(min = 44.dp) + Modifier.fillMaxWidth().heightIn(min = 48.dp) .clip(searchShape) - .background(MaterialTheme.colorScheme.surface.copy(alpha = 0.56f)) - .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = 0.20f), searchShape) + .background(MaterialTheme.colorScheme.surface.copy(alpha = previewControlSurfaceAlpha)) + .border(1.dp, MaterialTheme.colorScheme.outline.copy(alpha = previewControlRimAlpha), searchShape) .padding(horizontal = 12.dp), verticalAlignment = Alignment.CenterVertically ) { @@ -4457,7 +4468,7 @@ private fun AppearanceGlassEditor( Modifier.weight(1f).heightIn(min = 48.dp) .clip(CircleShape) .background( - if (selected) MaterialTheme.colorScheme.primary.copy(alpha = 0.13f) + if (selected) MaterialTheme.colorScheme.primary.copy(alpha = previewSelectedFillAlpha) else Color.Transparent ) .padding(vertical = 4.dp), diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 0b89196d..eecb96d2 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -87,4 +87,50 @@ class GlassSurfacePolicyTest { SupportingCardGeometryPolicy.SECTION_GAP_DP ) } + + @Test + fun appearancePreviewControlsTrackClearFrostedAndReducedTransparency() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val balanced = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + + assertEquals(0.38f, GlassSurfacePolicy.previewControlSurfaceAlpha(clear, false), 0.0001f) + assertEquals(0.56f, GlassSurfacePolicy.previewControlSurfaceAlpha(frosted, false), 0.0001f) + assertTrue( + GlassSurfacePolicy.previewControlSurfaceAlpha(clear, false) < + GlassSurfacePolicy.previewControlSurfaceAlpha(balanced, false) + ) + assertTrue( + GlassSurfacePolicy.previewControlSurfaceAlpha(balanced, false) < + GlassSurfacePolicy.previewControlSurfaceAlpha(frosted, false) + ) + assertEquals(0.62f, GlassSurfacePolicy.previewControlSurfaceAlpha(clear, true), 0.0001f) + + assertEquals(0.16f, GlassSurfacePolicy.previewControlRimAlpha(clear, false), 0.0001f) + assertEquals(0.26f, GlassSurfacePolicy.previewControlRimAlpha(frosted, false), 0.0001f) + assertEquals(0.28f, GlassSurfacePolicy.previewControlRimAlpha(clear, true), 0.0001f) + + assertEquals(0.10f, GlassSurfacePolicy.previewSelectedFillAlpha(clear, false), 0.0001f) + assertEquals(0.22f, GlassSurfacePolicy.previewSelectedFillAlpha(frosted, false), 0.0001f) + assertEquals(0.20f, GlassSurfacePolicy.previewSelectedFillAlpha(clear, true), 0.0001f) + } + + @Test + fun nonFinitePreviewIntensityUsesTheDefaultPreference() { + assertEquals( + GlassSurfacePolicy.previewControlSurfaceAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, false + ), + GlassSurfacePolicy.previewControlSurfaceAlpha(Float.NaN, false), + 0.0001f + ) + assertEquals( + GlassSurfacePolicy.previewControlRimAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, false + ), + GlassSurfacePolicy.previewControlRimAlpha(Float.POSITIVE_INFINITY, false), + 0.0001f + ) + } + } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 0975d754..5f920209 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,16 @@ +## Live branch-graph audit — 8 November 2026, 06:23 IST + +- **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- **Authoritative integration/UI branch:** `black-box-bihar-news@31e3bf753f91002b26b1e02e281899d10d0e590f`; **122 ahead / 0 behind main**, merge base main; **65 ahead / 0 behind** PR #16's corrected stability/Prismal head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. Its latest commit is `a11y(ui): honor system Reduce Motion across app transitions` (2026-11-07 23:59:46 UTC), parent `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`. PR #34 is open/draft, head equals the selected branch, base main. +- **Complete inventory:** 40 remote branches (page 1: 40, page 2: 0); 37 PRs (23 open, 14 closed). The complete 40-name/head table follows in this document; this audit supersedes older rows where the same branch head has advanced. No source branch was changed, merged, retargeted or deleted. +- **Relevant branch comparisons against current black-box head:** PR #37 Search clear is 6 ahead / 3 behind; its six-line RowScope receiver fix is already present in current SearchMorphField, so no duplicate port. PR #36 IST rollover is 3 ahead / 4 behind from its older base and changes MainActivity/date-index logic; defer for a separate correctness review. PR #35 diagnostic-read bounds are 6 ahead / 12 behind and startup-only. PR #30 48dp policy (3/18), PR #31 appearance restore (5/17) and PR #29 bookmark IO (1/21) are already represented. PR #27 (41/23) is editorial-only. PR #25 asset-host and #26 WebView subresource controls remain a joint security review; PR #32 RSS concurrency and #33 relative Atom resolution both touch NewsRepository and remain a joint review. PR #24 is based on divergent brrrNEWS. +- **Sibling/stale lines:** brrrNEWS is 4 ahead / 28 behind (divergent); `ui/liquid-glass-performance-2026-11-06` is 3 ahead / 140 behind; `redesign/v0.3-search-reader` is 0 ahead / 215 behind; `ui/liquid-glass-system-continuation-2026-11-07` is 0 ahead / 38 behind. PR #19's source branch is 0 ahead / 52 behind; its approved Reader changes are already in black-box. PR #16 remains an ancestor, not the selected work branch. +- **CI:** all 281 runs paginated (100 + 100 + 81), 168 success / 61 failure / 52 cancelled, no queued/in-progress. Natural PR #281 and push #280 both passed on exact head `31e3bf7`; WordNet, JVM tests, APK assembly and artifact upload succeeded. PR artifact `13596471410`, push artifact `13595943420`; publish jobs skipped. +- **Workflow / release:** black-box workflow has read-only build/test and separate main-push-only Release write; main workflow is still push-only. Latest Release remains `v0.2.0-build-116`; no Release was created by #280/#281. +- **Safety:** only `black-box-bihar-news` may receive this task's commits. No main write, merge, retarget, workflow edit, manual dispatch/rerun, Release publication or source-branch deletion. + +--- + ## Live branch-graph audit — 8 November 2026, 05:24 IST - **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. @@ -46,7 +59,7 @@ | Branch | Head SHA | Latest commit UTC / message | PR relationship | |---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 — test(a11y): cover minimum icon action target | #30 open; base black-box | -| `black-box-bihar-news` | `6f777f8777b3168383361dc79109b3d1d75b612b` | 2026-11-07 22:00:29 — fix(search): provide RowScope for clear animation | #34 open head/base main; selected; base of #37/#36/#35/#33/#32/#31/#30/#29/#27/#26/#25/#11 and other stacked PRs | +| `black-box-bihar-news` | `31e3bf753f91002b26b1e02e281899d10d0e590f` | 2026-11-07 23:59:46 — a11y(ui): honor system Reduce Motion across app transitions | #34 open head/base main; selected; base/ancestor for the active stacked proposals | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 — ui: consolidate lightweight supporting glass surfaces | Base of #24; divergent, not selected | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 — ci: validate pull requests with read-only build permissions | #18 open; workflow intent represented in black-box | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 — ci: restore Android SDK setup before sdkmanager | #20 closed/merged into black-box, not main | @@ -55,7 +68,7 @@ | `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 — fix: select Atom article alternate links deterministically | #12 open; core policy represented | | `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 — feat: expose publication date and publisher RSS provenance on cards | #11 open; equivalent code represented | | `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 — fix: minimise shareable process-exit diagnostics | #16 open; ancestor of integration | -| `fix/editorial-action-gate-blackbox-2026-11-07` | `cef7f1267cf2ca67ceacaf2acd9cfcbfa7dbf6fc` | 2026-11-07 19:06:26 — test(editorial): reject institutional film-promotion false positives | #27 open; separate editorial review | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `bd0bfce055e4d91737ff0d43e9eaa96c70a28519` | 2026-11-08 00:11:33 — fix(editorial): correct promotional framing regex escaping | #27 open; separate editorial review | | `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 — Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open; combined policy represented | | `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 — fix(editorial): match policy action and target as separate words | #24 open on brrrNEWS; divergent | | `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 — test: align economy signal count with repo-rate mapping | #2 closed/merged into main | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 9d439f46..5b0dc2f5 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,16 @@ +## Live implementation update — 8 November 2026, 06:23 IST + +- **Authoritative source:** `black-box-bihar-news@31e3bf753f91002b26b1e02e281899d10d0e590f`; base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Current comparison: **122 ahead / 0 behind main** (merge base main), and **65 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 is the sole open/draft consolidation PR. +- **Freshness gate:** all **40 remote branches** were enumerated (page 1: 40; page 2: 0), and all **37 PRs** were reviewed (23 open, 14 closed). The selected branch is the newest coherent UI/integration lineage, not a timestamp-only choice. PR #37's RowScope repair is already present in current SearchMorphField; PR #36's IST-midnight Today refresh remains a separate, diverged MainActivity/date-policy change (3 ahead / 4 behind) and is not copied. PR #35 is diagnostics-only; #30's 48dp policy and #31's off-main appearance restore are already represented; #29 persistence is represented. PR #27 is editorial-only; #25/#26 require a joint publisher-resource security review; #32/#33 jointly touch NewsRepository; #24 is based on divergent brrrNEWS. The old liquid-glass-performance and v0.3 branches remain stale. +- **Natural CI:** all **281 Actions runs** were paginated (100 + 100 + 81): 168 success, 61 failure, 52 cancelled; no queued or in-progress runs. Latest exact-head PR run [#281](https://github.com/Batmancpu/CurrentLens/actions/runs/42427714236) and push run [#280](https://github.com/Batmancpu/CurrentLens/actions/runs/42427710695) both passed on `31e3bf753f91002b26b1e02e281899d10d0e590f`. Both completed checkout, Java, signing-key restore, Android SDK/platform, Gradle, WordNet builder 4/4, 151,456-word offline dictionary generation (50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Full logs were inspected; PR artifact `13596471410` (39,107,655 bytes), push artifact `13595943420` (39,107,647 bytes). Release jobs skipped. +- **Workflow / Release:** integration workflow `.github/workflows/build-apk.yml` keeps build/test read-only and Release write isolated to main pushes; it naturally validates pull requests targeting black-box. Main's workflow remains push-only, so this is not a PR-to-main validation claim. Latest published Release remains `v0.2.0-build-116` (6 November 2026); no new Release. +- **Implementation in this pass:** Appearance's miniature Search control and selected navigation state now visibly track Clear↔Frosted intensity; reduced-transparency mode raises the preview's control opacity/rim while the outer Prismal surface remains the only live-glass preview. Search preview target height is 48dp. Slider preview remains child-local and app-wide persistence still commits only on release or preset selection. +- **Cost / tests:** no new Prismal surface, backdrop capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence path. Three bounded alpha interpolations reuse `GlassSurfacePolicy`; static preview brushes/surfaces remain cached or simple draw parameters. Added pure JVM endpoint, monotonicity, reduced-transparency and non-finite fallback tests. New head awaits its own natural CI. +- **Unverified:** OPPO Reno10 visual preview, launch, TalkBack, font scaling, Reduce Motion, IME, frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No measured performance improvement is claimed. +- **Next:** inspect the exact new-head natural push/PR runs and full logs before another screen batch. No main write, merge, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + +--- + ## Live implementation update — 8 November 2026, 05:24 IST - **Authoritative source:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Compare: **121 ahead / 0 behind main**, merge base main; **64 ahead / 0 behind** PR #16's corrected stability/Prismal head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 is the single open/draft consolidation PR from this branch to main. No other branch is being modified. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 16e4f3d5..c2823906 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -417,3 +417,15 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Tests / status:** no dedicated Compose UI test was added for animation-spec wiring. The new exact head awaits its own natural push/PR CI; runs #278/#279 validate only the parent SHA. OPPO Reno10 Reduce Motion, visual, TalkBack, font-scale, selection/IME, frame-time, GPU, memory, thermal and battery checks remain UNVERIFIED. - **Safety:** no main write, merge, retarget, workflow edit, manual dispatch/rerun, Release publication, source-branch mutation or deletion. + + +## 2026-11-08 06:23 IST / 00:53 UTC — Appearance preview control-state parity + +- **Repository / branch:** Batmancpu/CurrentLens, `black-box-bihar-news`; selected parent `31e3bf753f91002b26b1e02e281899d10d0e590f`; base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The selected branch remains 122 ahead / 0 behind main and 65 ahead / 0 behind PR #16's corrected background-only Prismal baseline. +- **Freshness:** 40 branches and 37 PRs were re-enumerated. PR #37's RowScope repair is already present; PR #36 IST rollover remains a separate diverged MainActivity change; PR #30/#31/#29 policies are represented. No other branch was changed or merged. +- **Files:** `MainActivity.kt`, `GlassSurfacePolicy.kt`, `GlassSurfacePolicyTest.kt`, `docs/LIQUID_GLASS_UI_ROADMAP.md`, `docs/BRANCH_CONSOLIDATION.md`, and this ledger. +- **Behaviour:** the Appearance preview's mini Search surface, rim and selected navigation fill now interpolate with Clear↔Frosted intensity; Reduce Transparency raises their opacity/rim. The Search preview sample has a 48dp minimum height. The outer `PrismalTransientSurface` remains the only live-glass preview; slider drag stays local and commits to the app-wide preference only on release or preset selection. +- **Tests:** added pure JVM assertions for clear/frosted endpoints, monotonic intensity, reduced-transparency floors and non-finite fallback. Tests are added but await the next natural exact-head CI run. +- **Rendering/cost:** no new Prismal surface, capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network or persistence operation. Only bounded scalar alpha calculations were added; no measured performance claim. +- **CI parent evidence:** exact parent SHA passed natural PR run #281 and push run #280. PR #281 full job log: WordNet builder 4/4, 151,456-word dictionary, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; artifact `13596471410` (39,107,655 bytes). Push #280 also passed all build steps; artifact `13595943420` (39,107,647 bytes). The new commit requires its own natural run; no manual dispatch/rerun. +- **Unverified:** OPPO Reno10 appearance, launch, visual contrast, accessibility, Reduce Motion, IME, frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. No release, main write, merge or source-branch mutation. From b06557acb2923d62c8c4f18e666b584f89243242 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:36:06 +0530 Subject: [PATCH 121/175] ui(quiz): give answer controls clear glass-derived states --- .../mangoloads/currentlens/MainActivity.kt | 75 +++++++++++++++++-- .../currentlens/QuizOptionStylePolicy.kt | 66 ++++++++++++++++ .../currentlens/QuizOptionStylePolicyTest.kt | 72 ++++++++++++++++++ 3 files changed, 206 insertions(+), 7 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/QuizOptionStylePolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/QuizOptionStylePolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 2b0b0ff4..e3f29b9a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -40,6 +40,7 @@ import androidx.compose.animation.core.tween import androidx.compose.animation.core.animateDp import androidx.compose.animation.core.animateFloat import androidx.compose.animation.core.updateTransition +import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.clickable @@ -93,6 +94,7 @@ import androidx.compose.material.icons.outlined.Tune import androidx.compose.material.icons.outlined.TextDecrease import androidx.compose.material.icons.outlined.TextIncrease import androidx.compose.material3.Button +import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.Card import androidx.compose.material3.CardDefaults import androidx.compose.material3.CircularProgressIndicator @@ -102,6 +104,7 @@ import androidx.compose.material3.FilterChip import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton +import androidx.compose.material3.LinearProgressIndicator import androidx.compose.material3.MaterialTheme import androidx.compose.material3.ModalBottomSheet import androidx.compose.material3.Surface @@ -157,6 +160,7 @@ import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.Role import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.selected +import androidx.compose.ui.semantics.stateDescription import androidx.compose.ui.platform.LocalFocusManager import androidx.compose.ui.platform.LocalSoftwareKeyboardController import androidx.compose.ui.focus.FocusRequester @@ -4519,6 +4523,9 @@ private fun QuizScreen( mutableStateOf(false) } val score = questions.indices.count { selected[it] == questions[it].correctIndex } + val reduceTransparency = LocalGlassReduceTransparency.current + val optionShape = remember { ContinuousCornerShape(16.dp) } + val successColor = Color(0xFF168653) Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { PrismalTransientSurface( @@ -4598,7 +4605,11 @@ private fun QuizScreen( Text("Answered: " + selected.size + "/" + questions.size, style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) } - items(questions.size) { index -> + items( + count = questions.size, + key = { index -> "quiz-question-$index" }, + contentType = { "quiz-question" } + ) { index -> val question = questions[index] Card(shape = ContinuousCornerShape(22.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface)) { @@ -4608,17 +4619,61 @@ private fun QuizScreen( Text(question.prompt, style = MaterialTheme.typography.titleMedium, fontWeight = FontWeight.SemiBold) question.options.forEachIndexed { optionIndex, option -> val chosen = selected[index] == optionIndex - val correct = submitted && optionIndex == question.correctIndex + val optionState = QuizOptionStylePolicy.resolve( + selected = chosen, + submitted = submitted, + correct = optionIndex == question.correctIndex + ) + val optionColor = when (optionState) { + QuizOptionVisualState.SELECTED -> MaterialTheme.colorScheme.primary + QuizOptionVisualState.CORRECT -> successColor + QuizOptionVisualState.INCORRECT -> MaterialTheme.colorScheme.error + QuizOptionVisualState.IDLE, + QuizOptionVisualState.DISABLED -> MaterialTheme.colorScheme.outlineVariant + } + val optionTextColor = when (optionState) { + QuizOptionVisualState.CORRECT -> successColor + QuizOptionVisualState.INCORRECT -> MaterialTheme.colorScheme.error + QuizOptionVisualState.DISABLED -> MaterialTheme.colorScheme.onSurfaceVariant + QuizOptionVisualState.IDLE, + QuizOptionVisualState.SELECTED -> MaterialTheme.colorScheme.onSurface + } + val optionFill = optionColor.copy( + alpha = QuizOptionStylePolicy.fillAlpha(optionState, reduceTransparency) + ) + val optionBorder = optionColor.copy( + alpha = QuizOptionStylePolicy.borderAlpha(optionState, reduceTransparency) + ) + val optionStateDescription = when (optionState) { + QuizOptionVisualState.IDLE -> "Not selected" + QuizOptionVisualState.SELECTED -> "Selected" + QuizOptionVisualState.CORRECT -> "Correct answer" + QuizOptionVisualState.INCORRECT -> "Incorrect selected answer" + QuizOptionVisualState.DISABLED -> "Not selected" + } OutlinedButton( onClick = { if (!submitted) selected = selected + (index to optionIndex) }, - modifier = Modifier.fillMaxWidth().heightIn(min = 48.dp) - .semantics { this.selected = chosen }, - shape = ContinuousCornerShape(16.dp), + modifier = Modifier.fillMaxWidth().heightIn(min = 52.dp) + .semantics { + this.selected = chosen + stateDescription = optionStateDescription + }, + shape = optionShape, + border = BorderStroke(1.dp, optionBorder), + colors = ButtonDefaults.outlinedButtonColors( + containerColor = optionFill, + contentColor = optionTextColor, + disabledContainerColor = optionFill, + disabledContentColor = optionTextColor + ), + contentPadding = PaddingValues(horizontal = 14.dp, vertical = 10.dp), enabled = !submitted ) { - Text((if (chosen) "● " else "○ ") + option, + Text( + (if (chosen) "● " else "○ ") + option, modifier = Modifier.fillMaxWidth(), - color = if (correct) Color(0xFF168653) else MaterialTheme.colorScheme.onSurface) + color = optionTextColor + ) } } Text(question.provenance, style = MaterialTheme.typography.labelSmall, @@ -4661,6 +4716,12 @@ private fun QuizScreen( Modifier.fillMaxWidth().padding(horizontal = 10.dp, vertical = 9.dp), verticalArrangement = Arrangement.spacedBy(7.dp) ) { + LinearProgressIndicator( + progress = selected.size.toFloat() / questions.size.coerceAtLeast(1), + modifier = Modifier.fillMaxWidth().height(3.dp).clip(CircleShape), + color = MaterialTheme.colorScheme.primary, + trackColor = MaterialTheme.colorScheme.outlineVariant.copy(alpha = 0.42f) + ) Text( selected.size.toString() + " of " + questions.size + " answered", style = MaterialTheme.typography.labelSmall, diff --git a/app/src/main/java/com/mangoloads/currentlens/QuizOptionStylePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/QuizOptionStylePolicy.kt new file mode 100644 index 00000000..fb821d70 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/QuizOptionStylePolicy.kt @@ -0,0 +1,66 @@ +package com.mangoloads.currentlens + +/** Visual state for answer controls; question and explanation surfaces remain content-first. */ +internal enum class QuizOptionVisualState { + IDLE, + SELECTED, + CORRECT, + INCORRECT, + DISABLED +} + +/** + * Static tint/rim values for the existing answer buttons. This adds no live blur, + * backdrop sampling, shader or per-option graphics layer. + */ +internal object QuizOptionStylePolicy { + fun resolve( + selected: Boolean, + submitted: Boolean, + correct: Boolean + ): QuizOptionVisualState = when { + submitted && correct -> QuizOptionVisualState.CORRECT + submitted && selected -> QuizOptionVisualState.INCORRECT + submitted -> QuizOptionVisualState.DISABLED + selected -> QuizOptionVisualState.SELECTED + else -> QuizOptionVisualState.IDLE + } + + fun fillAlpha(state: QuizOptionVisualState, reduceTransparency: Boolean): Float { + val normal = when (state) { + QuizOptionVisualState.IDLE -> 0f + QuizOptionVisualState.SELECTED -> 0.15f + QuizOptionVisualState.CORRECT -> 0.16f + QuizOptionVisualState.INCORRECT -> 0.14f + QuizOptionVisualState.DISABLED -> 0.02f + } + return if (reduceTransparency) { + when (state) { + QuizOptionVisualState.IDLE -> 0.06f + QuizOptionVisualState.SELECTED -> 0.23f + QuizOptionVisualState.CORRECT -> 0.24f + QuizOptionVisualState.INCORRECT -> 0.22f + QuizOptionVisualState.DISABLED -> 0.08f + } + } else normal + } + + fun borderAlpha(state: QuizOptionVisualState, reduceTransparency: Boolean): Float { + val normal = when (state) { + QuizOptionVisualState.IDLE -> 0.30f + QuizOptionVisualState.SELECTED -> 0.66f + QuizOptionVisualState.CORRECT -> 0.72f + QuizOptionVisualState.INCORRECT -> 0.70f + QuizOptionVisualState.DISABLED -> 0.24f + } + return if (reduceTransparency) { + when (state) { + QuizOptionVisualState.IDLE -> 0.42f + QuizOptionVisualState.SELECTED -> 0.78f + QuizOptionVisualState.CORRECT -> 0.82f + QuizOptionVisualState.INCORRECT -> 0.80f + QuizOptionVisualState.DISABLED -> 0.36f + } + } else normal + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/QuizOptionStylePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/QuizOptionStylePolicyTest.kt new file mode 100644 index 00000000..66ff5b90 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/QuizOptionStylePolicyTest.kt @@ -0,0 +1,72 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertTrue +import org.junit.Test + +class QuizOptionStylePolicyTest { + @Test + fun resolvesSelectionAndSubmittedFeedbackWithoutChangingAnswerData() { + assertEquals( + QuizOptionVisualState.IDLE, + QuizOptionStylePolicy.resolve(selected = false, submitted = false, correct = true) + ) + assertEquals( + QuizOptionVisualState.SELECTED, + QuizOptionStylePolicy.resolve(selected = true, submitted = false, correct = false) + ) + assertEquals( + QuizOptionVisualState.CORRECT, + QuizOptionStylePolicy.resolve(selected = false, submitted = true, correct = true) + ) + assertEquals( + QuizOptionVisualState.CORRECT, + QuizOptionStylePolicy.resolve(selected = true, submitted = true, correct = true) + ) + assertEquals( + QuizOptionVisualState.INCORRECT, + QuizOptionStylePolicy.resolve(selected = true, submitted = true, correct = false) + ) + assertEquals( + QuizOptionVisualState.DISABLED, + QuizOptionStylePolicy.resolve(selected = false, submitted = true, correct = false) + ) + } + + @Test + fun selectedAndFeedbackStatesHaveStrongerEdgesThanIdle() { + val idle = QuizOptionStylePolicy.borderAlpha(QuizOptionVisualState.IDLE, false) + listOf( + QuizOptionVisualState.SELECTED, + QuizOptionVisualState.CORRECT, + QuizOptionVisualState.INCORRECT + ).forEach { state -> + assertTrue(QuizOptionStylePolicy.borderAlpha(state, false) > idle) + assertTrue(QuizOptionStylePolicy.fillAlpha(state, false) > 0f) + } + } + + @Test + fun reducedTransparencyRaisesStaticFillAndRimForEveryState() { + QuizOptionVisualState.values().forEach { state -> + assertTrue( + QuizOptionStylePolicy.fillAlpha(state, true) >= + QuizOptionStylePolicy.fillAlpha(state, false) + ) + assertTrue( + QuizOptionStylePolicy.borderAlpha(state, true) > + QuizOptionStylePolicy.borderAlpha(state, false) + ) + } + } + + @Test + fun allAlphaValuesStayWithinUnitInterval() { + QuizOptionVisualState.values().forEach { state -> + listOf(false, true).forEach { reduced -> + assertTrue(QuizOptionStylePolicy.fillAlpha(state, reduced) in 0f..1f) + assertTrue(QuizOptionStylePolicy.borderAlpha(state, reduced) in 0f..1f) + } + } + } +} From c7d50bb2bafe29a43c106e4fb71b607e9830adea Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:37:30 +0530 Subject: [PATCH 122/175] docs(ui): record Quiz batch and live branch audit --- .../mangoloads/currentlens/MainActivity.kt | 4 +- docs/BRANCH_CONSOLIDATION.md | 90 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 28 +++++- 3 files changed, 119 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index e3f29b9a..a7df1ef5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4525,7 +4525,7 @@ private fun QuizScreen( val score = questions.indices.count { selected[it] == questions[it].correctIndex } val reduceTransparency = LocalGlassReduceTransparency.current val optionShape = remember { ContinuousCornerShape(16.dp) } - val successColor = Color(0xFF168653) + val successColor = if (dark) Color(0xFF75D9A4) else Color(0xFF168653) Column(Modifier.fillMaxSize().background(MaterialTheme.colorScheme.background)) { PrismalTransientSurface( @@ -4682,7 +4682,7 @@ private fun QuizScreen( Text(if (selected[index] == question.correctIndex) "Correct" else if (selected.containsKey(index)) "Incorrect" else "Not answered", fontWeight = FontWeight.Bold, - color = if (selected[index] == question.correctIndex) Color(0xFF168653) + color = if (selected[index] == question.correctIndex) successColor else MaterialTheme.colorScheme.error) Text(question.explanation, style = MaterialTheme.typography.bodyMedium) } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 5f920209..b94e70e8 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,93 @@ +# Live branch inventory and freshness decision — 8 November 2026, 07:32 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged) +**Owner-selected active line:** `black-box-bihar-news@94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351` at audit start; parent of the Quiz implementation commit `b06557acb2923d62c8c4f18e666b584f89243242`. +**Branch inventory:** 40 remote branches; **37 PRs** (23 open, 14 closed). Full pagination completed; no additional branch or PR page. PR #34 is the only active consolidation draft targeting main. + +The active source is not selected by timestamp alone: it is the owner-directed consolidation line, 123 ahead / 0 behind main, 66 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. Its lineage includes the PR #19 Reader work, the read-only stacked workflow, the selected network/cache/persistence/editorial ports, conservative adaptive contrast, Reader/Search/feed-navigation policies, shared supporting materials, Appearance preview and system Reduce Motion handling. PR #34 remains draft; no merge, retarget, main write or branch deletion. + +## Complete remote branch inventory + +| Branch | Head SHA | Latest commit (UTC) | Latest commit subject | PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b7` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open; policy represented | +| `black-box-bihar-news` | `94a1e9a3a6c0` | 2026-11-08 00:57Z | ui(appearance): align live preview controls with glass intensity | PR #34 open; active consolidation | +| `brrrNEWS` | `e6fcfc25a4c8` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24; divergent sibling | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open; compatible workflow intent represented | +| `ci/stacked-pr-validation-2026-11-07` | `5dc317936183` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed; integrated into consolidation | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed; ref currently equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c8655` | 2026-11-06 10:53Z | fix: refresh article card metadata when feed content changes | PR #6 open; selective editorial work represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde` | 2026-11-06 09:14Z | fix: select Atom article alternate links deterministically | PR #12 open; parser work selectively represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2` | 2026-11-06 14:26Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open; cache/provenance work represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8` | 2026-11-06 19:33Z | fix: minimise shareable process-exit diagnostics | PR #16 open; ancestor/stability baseline | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `405e729d3d0d` | 2026-11-08 01:04Z | docs(editorial): record reality-show exception regressions | PR #27 open; newer editorial-only work, divergent | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300` | 2026-11-06 22:05Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open; editorial work represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74` | 2026-11-07 04:46Z | fix(editorial): match policy action and target as separate words | PR #24 open; targets brrrNEWS, not active branch | +| `fix/editorial-signal-count-test` | `4738690d6e7f` | 2026-11-06 05:16Z | test: align economy signal count with repo-rate mapping | PR #2 closed | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f1` | 2026-11-06 02:34Z | fix: tighten UPSC editorial signal matching | PR #1 closed | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08` | 2026-11-06 06:27Z | fix: use supported calendar navigation glyph | PR #5 closed | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c` | 2026-11-07 03:49Z | test: preserve Parliament bill headline variants | PR #23 closed; integrated | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fd` | 2026-11-06 12:15Z | Validate RSS redirects against publisher allowlists | PR #15 closed; superseded by current publisher policy | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a48` | 2026-11-07 08:12Z | fix(quiz): qualify selected semantics receiver | PR #28 closed; compile fix integrated | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2c` | 2026-11-07 14:59Z | test(rss): correct relative xml base fixture | PR #33 open; joint NewsRepository review with #32 | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40a` | 2026-11-07 06:28Z | test(reader): cover publisher-only image resources | PR #25 open; joint publisher-resource security review with #26 | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a` | 2026-11-06 16:42Z | fix: deduplicate RSS tracking URL variants | PR #17 open; URL identity work selectively represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e8` | 2026-11-07 21:55Z | docs: record verified search clear compile repair | PR #37 open; code fix already in active branch commit 6f777f87 | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd` | 2026-11-06 07:44Z | fix: capture Search glass tint before draw callback | PR #10 closed | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f4` | 2026-11-06 07:39Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 closed; stability work superseded/represented | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed; stability baseline superseded/represented | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9b` | 2026-11-07 20:48Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open; separate date/index candidate | +| `main` | `73b8a0d1ba33` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846` | 2026-11-07 17:34Z | Record successful bounded-diagnostic CI | PR #35 open; diagnostics-only candidate | +| `perf/bounded-read-history-2026-11-07` | `910178af3f59` | 2026-11-06 23:53Z | Verify legacy markers survive recent-history retention | PR #22 open; new markers bounded, legacy set retained | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc` | 2026-11-07 11:29Z | docs: record bounded RSS fetch review and CI state | PR #32 open; joint review with #33 | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff` | 2026-11-07 11:11Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open; represented in active branch | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa6` | 2026-11-07 09:05Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open; represented in active branch | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3` | 2026-11-06 10:50Z | perf: move read-marker persistence off main thread | PR #8 open; reconciled with #22 | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff241` | 2026-11-07 07:27Z | privacy: block third-party publisher reader subresources | PR #26 open; joint publisher-resource security review with #25 | +| `redesign/v0.3-search-reader` | `654cc89dee4f` | 2026-11-03 15:31Z | fix: make selection decoding fallback valid JSON | No open PR; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4` | 2026-11-06 10:56Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open; conservative policy integrated | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65` | 2026-11-06 06:25Z | fix: import bottom navigation glyphs | PR #3/#4 closed; stale sibling | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5` | 2026-11-06 20:11Z | docs(reader): record native selection collision guard | PR #19 closed; integrated into consolidation | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f` | 2026-11-07 03:18Z | fix: finish syllabus metadata and thin-film feed eligibility | No open PR; superseded by consolidation | + +## Relevant ancestry and diff decisions + +| Candidate | Comparison against active branch | Changed files / relationship | Decision | +|---|---|---|---| +| PR #16 stability head | Active branch is 66 commits ahead; PR #16 is an ancestor | Corrected background-only Prismal capture and startup stability prerequisite | Keep as ancestor; do not switch back | +| PR #37 Search compile repair | Diverged: PR head 6 ahead / active 4 ahead from `d451d225`; its code fix is already in active commit `6f777f87` | `MainActivity.kt` RowScope receiver repair plus handoff docs | No cherry-pick; preserve source PR untouched | +| PR #36 IST midnight rollover | 3 ahead / 5 behind from `4a7a8f8c` | `AsiaKolkataDayPolicy.kt`, 11-line `MainActivity.kt` change, JVM tests | Defer to a separate data/date pass; it is not a UI baseline | +| PR #35 bounded diagnostic reads | 6 ahead / 13 behind from `ed6c9419` | `LaunchCrashDiagnostics.kt`, tests and handoff docs | Diagnostics-only; do not mix into Quiz/UI pass | +| PR #27 strict editorial action gate | 44 ahead / 24 behind from `3a08bb95`; latest branch commit is newer than active head | `UpscEngine.kt`, `UpscFeedPolicy.kt`, tests/docs | Newer but editorial-only; keep separate until full editorial regression review | +| PRs #32 and #33 | #32: 2 ahead / 18 behind; #33: 4 ahead / 16 behind | Both modify `NewsRepository.kt`; concurrency policy and relative Atom-link resolution | Jointly review before any port; no blind merge | +| PRs #25 and #26 | #25: 7 ahead / 25 behind; #26: 1 ahead / 24 behind | Reader repository, `MainActivity.kt`, publisher asset/subresource host policies and tests | Joint security/redirect review required; no port in this UI task | +| PRs #29, #30 and #31 | Diverged from older bases; their current useful policies are already present | Bookmark persistence, 48dp target policy, off-main appearance preferences | Treat as represented; source branches remain untouched | +| PRs #22 and #8 | Separate persistence lineage | Ordered 5,000-entry supplemental new-marker window; legacy unordered set retained | Reconciled; do not claim all historical read storage is bounded | +| PRs #11, #12 and #17 | Independent cache/parser/URL identity lineages | Provenance/date, Atom alternate selection and tracking-variant identity | Selectively represented in current code; no wholesale merge | +| PRs #6 and #21 | Editorial branches based on older main | Geography, heat-wave and bill signals | Selectively represented; preserve synthetic fixture labels | +| PR #13 | Diverged older adaptive-contrast branch | Its faster 1.5s/2.5s probe cadence is not used | Conservative shared 8×8 probe remains 4s/6s and paused during scrolling/non-home | +| PRs #18 and #20 | Workflow-only branches | Read-only PR build and separate main-push Release-write job | Compatible workflow intent already in active branch; no source workflow overwritten | +| PR #24 / `brrrNEWS` | Divergent sibling base; PR #24 changes `MainActivity.kt`, `GlassSurfacePolicy.kt` and editorial policy | Separate app/editorial line | Do not switch to sibling or merge its full MainActivity | +| `ui/liquid-glass-performance`, `redesign/v0.3-search-reader` | Stale/diverged older lines | Old navigation/Reader work superseded by active consolidation | Excluded | +| PR #19 | Closed; source branch retained | Reader toolbar, completion and definition UI integrated into active consolidation | Do not continue on old branch | + +The exact full patch review was scoped by subsystem: Search/Reader/Prismal and Compose receiver fixes were checked against current `MainActivity.kt`; persistence and network candidates were reviewed by their actual touched files and ancestry, not by branch names. No unrelated source branch was modified. + +## Current Quiz batch + +- Code commit: `b06557acb2923d62c8c4f18e666b584f89243242`, parent `94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351`. +- Adds static Quiz option fill/rim states and state descriptions; no live blur/capture per option. Adds stable LazyColumn keys/content type and a 3dp answered-count progress track inside the existing footer. +- New policy/tests: `QuizOptionStylePolicy.kt` and `QuizOptionStylePolicyTest.kt`; submit-only persistence unchanged. +- Parent exact-head CI: natural runs #282/#283 passed on `94a1e9a3`; these do not validate the Quiz commit. New exact-head natural runs are required. No manual dispatch/rerun. + +## Safety and device status + +No main write, merge, Release publication, manual workflow dispatch/rerun, package/app identity change, source-branch mutation or deletion. No new network, telemetry, analytics, account, cloud AI, dependency or storage schema. OPPO Reno10 launch, screenshot, TalkBack, font scale, keyboard/IME, Reduce Motion runtime, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. + +--- + ## Live branch-graph audit — 8 November 2026, 06:23 IST - **Repository/default:** `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 5b0dc2f5..9aebfe0d 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,18 @@ +# Live implementation batch — Quiz controls and current branch audit +**Audit time:** 8 November 2026, 07:32 IST + +- **Active branch:** `black-box-bihar-news`; source baseline `94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351`, parent of the Quiz implementation. Source baseline was **123 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` and **66 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. The code commit is `b06557acb2923d62c8c4f18e666b584f89243242`; this documentation sync is its direct child. PR #34 remains the only draft consolidation PR; no merge or main write. +- **Freshness gate:** 40 remote branches and 37 PRs were re-enumerated (23 open, 14 closed). Every branch head, commit timestamp/message and PR relationship is recorded in `docs/BRANCH_CONSOLIDATION.md` under the 8 November 07:32 IST live inventory. No newer coherent UI baseline supersedes the owner-selected integration line. PR #27 has a later editorial-only head; PR #36 is a separate Asia/Kolkata date/index change; neither is a replacement UI baseline. +- **Relevant branch dispositions:** PR #37's RowScope compile repair is already represented by `black-box-bihar-news` commit `6f777f8777b3168383361dc79109b3d1d75b612b`; the later PR #37 branch is documentation-only relative to that fix. PR #36's `AsiaKolkataDayPolicy.kt` and 11-line `MainActivity.kt` rollover change remain deferred for separate reconciliation (its head is 3 ahead / 5 behind from merge base `4a7a8f8c`). PR #35 is bounded startup diagnostics, not Quiz/UI work. PRs #32/#33 both change `NewsRepository.kt` and require joint review; PRs #25/#26 require joint publisher-resource security review. PRs #29/#30/#31 are represented in the active branch. PR #16 is an ancestor, PR #13's conservative adaptive-contrast policy is integrated, and PR #18's read-only workflow intent is represented. Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded. +- **Implementation:** Quiz answer buttons now use a static, glass-derived tint/rim hierarchy: idle, selected, correct, incorrect and submitted-disabled. Correct/incorrect states are explicitly announced through `stateDescription`; touch targets are 52dp. Success colour is theme-aware. The existing five question cards and explanations remain standard high-contrast content surfaces. +- **Quiz action area:** the existing single Prismal footer now includes a 3dp determinate answered-count indicator. It derives directly from the existing local selection map; no polling, animation loop, persistence or extra glass surface. Lazy question items now have stable keys and a shared content type. +- **Paired optimization:** no per-option blur/refraction, new Prismal surface, backdrop capture/readback, shader, graphics layer, image decode, dependency, network call or storage change. The only added drawing is each existing button's static fill/border plus one small progress track; question cards remain non-glass. No GPU/frame/battery gain is claimed from source inspection. +- **Tests:** new `QuizOptionStylePolicyTest` covers state mapping, selected/feedback edge hierarchy, reduced-transparency alpha floors and alpha bounds. No Compose screenshot test was added; the natural Android compile/JVM run is the direct integration check. Quiz attempt persistence remains submit-only. +- **Parent exact-head CI:** natural push run [#282](https://github.com/Batmancpu/CurrentLens/actions/runs/42432088153) and PR run [#283](https://github.com/Batmancpu/CurrentLens/actions/runs/42432090573) both passed on parent `94a1e9a3`. WordNet builder 4/4, 151,456-word offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded; Release jobs skipped. Artifacts: push `13597982220` (39,108,166 bytes, SHA-256 `d6fb26eebbf2a536f7cdcd0345cb1232da3000839e050814f3dcbfb7bf4e3728`) and PR `13598101806` (39,108,165 bytes, SHA-256 `516771f2caf5aa91513fca7e48e64ee31b7ab3e37488b3b8a08eba11fb8b4a10`). Full PR job log and push job steps were inspected; only action-runtime/Node URL-parser deprecation warnings appeared. These runs validate the parent, **not** the Quiz commit. +- **New-head CI:** the Quiz code commit triggered natural push/PR workflows. No manual dispatch or rerun. Its exact-head result must be checked after completion; the parent artifacts above are not substitutes. +- **Release/device:** latest published Release remains `v0.2.0-build-116`; no Release was published. OPPO Reno10 launch, screenshots, TalkBack, font scaling, dark/light visual contrast, selection/IME, Reduce Motion runtime, frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. +- **Next:** inspect exact natural CI for the final docs-synced head, then continue a whole-app pass on shared header/filter/Reader safe-area consistency. No merge, retarget, branch deletion or source-branch mutation. + ## Live implementation update — 8 November 2026, 06:23 IST - **Authoritative source:** `black-box-bihar-news@31e3bf753f91002b26b1e02e281899d10d0e590f`; base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Current comparison: **122 ahead / 0 behind main** (merge base main), and **65 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 is the sole open/draft consolidation PR. @@ -71,6 +86,15 @@ - Added pure JVM tests for reduced material parameters and sampler suspension. The last successful natural run (#200) validates parent SHA cfe0b3e8319374df5cb29423f04a79c77d4fe10e only; the new commit must receive its own natural run. No device screenshots, OPPO jank/Perfetto, battery or thermal measurements exist; those remain UNVERIFIED. - Next: verify the exact new head's natural build and tests, then continue Saved/stats filter consistency and Quiz/Settings transient controls. Do not claim device performance improvement from policy code alone. +## Paired optimization matrix + +| Component | Material/effect scope | Reuse and invalidation | Fallback/accessibility | Evidence | +|---|---|---|---|---| +| Shared shell, Search, filters and Reader chrome | Existing single background-only Prismal source; small transient surfaces only | One root capture; one hidden glyph source only while expanded; stable policy state | Reduce Transparency disables blur/refraction; Reduce Motion snaps; TalkBack and 48dp controls retained | Source audit; device cost UNVERIFIED | +| You, Saved, stats and quiz question cards | Static supporting tint/rim or opaque content surfaces | Theme/material brushes remembered; no per-card live blur | Near-opaque high-contrast surfaces; font scaling | Source audit; frame/GPU/memory UNVERIFIED | +| Quiz answer controls | Static button tint/border; no live glass effect | Pure state/alpha policy; stable LazyColumn keys/content type | 52dp target; selected + stateDescription; reduced-transparency raises tint/rim | Four JVM policy tests added in Quiz batch; natural CI pending | +| Quiz footer | One existing Prismal surface plus a 3dp determinate indicator | Progress derived from local selected-count; no timer/polling | Text count remains visible; buttons retain 48dp targets | Source audit; device smoothness UNVERIFIED | + ## Product and material principles Liquid Glass is a functional interaction material, not a universal card background. Use it to clarify navigation, toolbars, search/filter controls and transient actions. Keep article text, article cards, statistics, quiz questions and other dense information surfaces calm, high-contrast and easy to read. @@ -117,7 +141,9 @@ Recheck every branch head and dependency before each future implementation commi | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | | Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; hide with reader chrome and avoid definition/action-mode overlap | Implemented; physical safe-area/selection checks unverified | | Definition popover | Interactive contextual glass | Anchored Prismal surface, full selected word and compact accessible actions | Existing anchored surface; title/actions improved in this batch | -| Quiz questions/options | Editorial content | Calm standard surfaces; persist only on submit | Continuous-corner content cards, >=48dp option targets and selected semantics; no live blur; submit-only persistence unchanged | +| Quiz questions and explanations | Editorial content | Calm, high-contrast content cards; no glass behind dense question text | Continuous-corner standard cards; no live blur; quiz data semantics unchanged | +| Quiz answer controls | Interactive control glass (static tint/rim) | Distinguish idle/selected/correct/incorrect states with accessible feedback and 52dp targets | Static button fill/border only; no backdrop capture or per-option blur; policy tests cover states and reduced-transparency alpha | +| Quiz action dock | Primary transient glass | Keep progress and submit/done actions reachable without obscuring questions | Reuses the existing single Prismal footer; one small progress track reads selected-count state; no polling or extra surface | | Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | | Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | One 5dp Prismal control preview plus a static SupportingGlassCard sample both reflect the preview intensity; slider state is child-scoped and commits app-wide only on release; device validation pending | | Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | From c6deffb96a89d56642374456e92477fbabb8e4b0 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:47:45 +0530 Subject: [PATCH 123/175] ui(glass): lighten shared header and release compact nav captures --- .../currentlens/GlassOpticsPolicy.kt | 14 +++++++++++ .../mangoloads/currentlens/MainActivity.kt | 25 ++++++++++--------- .../currentlens/GlassOpticsPolicyTest.kt | 15 +++++++++++ 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassOpticsPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassOpticsPolicy.kt index 105d47b9..fe7b763b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassOpticsPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassOpticsPolicy.kt @@ -65,6 +65,20 @@ internal object GlassOpticsPolicy { ) } + /** Lower-cost primary page header: enough lensing to read as glass without a dark blur slab. */ + private val HEADER_PROFILE = GlassOpticsProfile( + blurDp = 9f, + refractionHeightDp = 3f, + refractionAmountDp = 4f, + chromaticAberration = 0.0015f, + specularAlpha = 0.22f, + shadowAlpha = 0.16f, + insetAlpha = 0.04f, + tintAlpha = 0.10f + ) + + fun header(): GlassOpticsProfile = HEADER_PROFILE + /** Adds a small contrast reserve only as the sampled scene approaches either extreme. */ fun adaptiveTintAlpha( baseAlpha: Float, diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a7df1ef5..4ccc67d4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1106,6 +1106,7 @@ private fun HomeGlassHeader( val reduceTransparency = LocalGlassReduceTransparency.current val surfaceTint = MaterialTheme.colorScheme.surface val luminance = if (dark) 0.12f else 0.82f + val optics = remember { GlassOpticsPolicy.header() } Box( Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 5.dp) .drawPrismalGlass( @@ -1114,26 +1115,26 @@ private fun HomeGlassHeader( effects = { applyPrismalGlassEffects( density = density, adaptiveLuminance = true, luminance = luminance, - blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(13f, reduceTransparency).dp.toPx() }, - refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(4f, reduceTransparency).dp.toPx() }, - refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(6f, reduceTransparency).dp.toPx() }, + blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(optics.blurDp, reduceTransparency).dp.toPx() }, + refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(optics.refractionHeightDp, reduceTransparency).dp.toPx() }, + refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(optics.refractionAmountDp, reduceTransparency).dp.toPx() }, depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.003f, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration(optics.chromaticAberration, reduceTransparency), adaptiveTuning = PrismalAdaptiveTuning.Subtle ) }, specular = { - PrismalSpecular.Default.copy(width = 0.55.dp, blurRadius = 0.35.dp, alpha = GlassRenderingPolicy.specularAlpha(0.28f, reduceTransparency)) + PrismalSpecular.Default.copy(width = 0.55.dp, blurRadius = 0.35.dp, alpha = GlassRenderingPolicy.specularAlpha(optics.specularAlpha, reduceTransparency)) }, depthShadow = { PrismalDepthShadow(radius = 12.dp, offset = DpOffset(0.dp, 2.dp), - color = Color.Black.copy(alpha = 0.09f), alpha = GlassRenderingPolicy.shadowAlpha(0.20f, reduceTransparency)) + color = Color.Black.copy(alpha = 0.09f), alpha = GlassRenderingPolicy.shadowAlpha(optics.shadowAlpha, reduceTransparency)) }, depthInset = { PrismalDepthInset(radius = 4.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.05f), alpha = GlassRenderingPolicy.shadowAlpha(0.05f, reduceTransparency)) + color = Color.Black.copy(alpha = 0.05f), alpha = GlassRenderingPolicy.shadowAlpha(optics.insetAlpha, reduceTransparency)) }, - onDrawSurface = { drawRect(surfaceTint.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.13f, reduceTransparency))) } + onDrawSurface = { drawRect(surfaceTint.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * optics.tintAlpha, reduceTransparency))) } ) ) { Row(Modifier.fillMaxWidth().padding(start = 14.dp, end = 8.dp, top = 8.dp, bottom = 8.dp), @@ -2643,10 +2644,8 @@ private fun GlassTabBar( val isLtr = LocalLayoutDirection.current == LayoutDirection.Ltr val animationScope = rememberCoroutineScope() val latestOnSelect = rememberUpdatedState(onSelect) - // These sources are reused by the expanded state; the compact state does not - // read or render the hidden glyph capture or selected droplet. - val tabsBackdrop = rememberPrismalGlassLayer() - val dropletBackdrop = rememberPrismalMergedSource(backdrop, tabsBackdrop) + // The expanded branch owns the hidden glyph capture and merged droplet source. + // Keeping them inside that branch disposes both while the compact pill is active. val glassTint = if (adaptiveContentColor == Color.Black) Color(0xFFEAF0FA) else Color(0xFF1C2E49) val baseTintAlpha = GlassRenderingPolicy.tintAlpha( GlassOpticsPolicy.adaptiveTintAlpha( @@ -2795,6 +2794,8 @@ private fun GlassTabBar( ) if (!compact) { + val tabsBackdrop = rememberPrismalGlassLayer() + val dropletBackdrop = rememberPrismalMergedSource(backdrop, tabsBackdrop) Box( Modifier.align(Alignment.Center).width(barWidth).height(barHeight) .clip(PrismalCapsule()).then(rippleDrawModifier) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt index d5d3cac8..58601e78 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt @@ -97,4 +97,19 @@ class GlassOpticsPolicyTest { assertEquals(bright, dark, 0.0001f) assertEquals(0.14f, GlassOpticsPolicy.adaptiveTintAlpha(1f, 1f, 0.04f, 0.14f), 0.0001f) } + @Test + fun sharedHeaderUsesClearerLowerCostOpticsThanTheSelectedDroplet() { + val header = GlassOpticsPolicy.header() + val droplet = GlassOpticsPolicy.droplet(0f) + + assertEquals(9f, header.blurDp, 0.0001f) + assertTrue(header.blurDp < droplet.blurDp) + assertTrue(header.refractionHeightDp <= 3f) + assertTrue(header.refractionAmountDp <= 4f) + assertTrue(header.chromaticAberration <= 0.002f) + assertTrue(header.specularAlpha <= 0.24f) + assertTrue(header.shadowAlpha <= 0.18f) + assertTrue(header.tintAlpha <= 0.10f) + } + } From 12f5831122067cf7996b14d8b8aed4d8dc3bbd4d Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:48:53 +0530 Subject: [PATCH 124/175] docs(ui): record shared shell optical optimization --- docs/BRANCH_CONSOLIDATION.md | 22 +++++++++++++++++----- docs/LIQUID_GLASS_UI_ROADMAP.md | 27 ++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 10 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index b94e70e8..4f27007a 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,18 +1,18 @@ -# Live branch inventory and freshness decision — 8 November 2026, 07:32 IST +# Live branch inventory and freshness decision — 8 November 2026, 07:41 IST **Repository:** `Batmancpu/CurrentLens` **Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged) -**Owner-selected active line:** `black-box-bihar-news@94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351` at audit start; parent of the Quiz implementation commit `b06557acb2923d62c8c4f18e666b584f89243242`. -**Branch inventory:** 40 remote branches; **37 PRs** (23 open, 14 closed). Full pagination completed; no additional branch or PR page. PR #34 is the only active consolidation draft targeting main. +**Owner-selected active line:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` at audit start; parent of the shared-shell implementation commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. +**Branch inventory:** 41 remote branches; **38 PRs** (24 open, 14 closed). Full pagination completed; no additional branch or PR page. PR #34 is the only active consolidation draft targeting main. -The active source is not selected by timestamp alone: it is the owner-directed consolidation line, 123 ahead / 0 behind main, 66 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. Its lineage includes the PR #19 Reader work, the read-only stacked workflow, the selected network/cache/persistence/editorial ports, conservative adaptive contrast, Reader/Search/feed-navigation policies, shared supporting materials, Appearance preview and system Reduce Motion handling. PR #34 remains draft; no merge, retarget, main write or branch deletion. +The active source is not selected by timestamp alone: it is the owner-directed consolidation line, 125 ahead / 0 behind main, 68 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. Its lineage includes the PR #19 Reader work, the read-only stacked workflow, the selected network/cache/persistence/editorial ports, conservative adaptive contrast, Reader/Search/feed-navigation policies, shared supporting materials, Appearance preview and system Reduce Motion handling. PR #34 remains draft; no merge, retarget, main write or branch deletion. ## Complete remote branch inventory | Branch | Head SHA | Latest commit (UTC) | Latest commit subject | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b7` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open; policy represented | -| `black-box-bihar-news` | `94a1e9a3a6c0` | 2026-11-08 00:57Z | ui(appearance): align live preview controls with glass intensity | PR #34 open; active consolidation | +| `black-box-bihar-news` | `c7d50bb2bafe` | 2026-11-08 02:07Z | docs(ui): record Quiz batch and live branch audit | PR #34 open; active consolidation | | `brrrNEWS` | `e6fcfc25a4c8` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24; divergent sibling | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open; compatible workflow intent represented | | `ci/stacked-pr-validation-2026-11-07` | `5dc317936183` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed; integrated into consolidation | @@ -39,6 +39,7 @@ The active source is not selected by timestamp alone: it is the owner-directed c | `fix/startup-stability-performance-2026-11-06` | `654e660347de` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed; stability baseline superseded/represented | | `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9b` | 2026-11-07 20:48Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open; separate date/index candidate | | `main` | `73b8a0d1ba33` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bound-rss-entry-parsing-2026-11-08` | `9daad62c852a` | 2026-11-08 02:15Z | test(rss): cover per-feed parser entry limit | PR #38 open; direct child performance proposal, run #288 in progress | | `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846` | 2026-11-07 17:34Z | Record successful bounded-diagnostic CI | PR #35 open; diagnostics-only candidate | | `perf/bounded-read-history-2026-11-07` | `910178af3f59` | 2026-11-06 23:53Z | Verify legacy markers survive recent-history retention | PR #22 open; new markers bounded, legacy set retained | | `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc` | 2026-11-07 11:29Z | docs: record bounded RSS fetch review and CI state | PR #32 open; joint review with #33 | @@ -57,6 +58,7 @@ The active source is not selected by timestamp alone: it is the owner-directed c | Candidate | Comparison against active branch | Changed files / relationship | Decision | |---|---|---|---| | PR #16 stability head | Active branch is 66 commits ahead; PR #16 is an ancestor | Corrected background-only Prismal capture and startup stability prerequisite | Keep as ancestor; do not switch back | +| PR #38 bounded RSS parser entries | 2 ahead / 0 behind from current head `c7d50bb2` | `NewsRepository.kt` and `NewsRepositoryTest.kt`; caps each feed at 100 entries, including malformed records | Separate parser/performance proposal; natural run #288 in progress; no MainActivity/Prismal overlap and no blind port | | PR #37 Search compile repair | Diverged: PR head 6 ahead / active 4 ahead from `d451d225`; its code fix is already in active commit `6f777f87` | `MainActivity.kt` RowScope receiver repair plus handoff docs | No cherry-pick; preserve source PR untouched | | PR #36 IST midnight rollover | 3 ahead / 5 behind from `4a7a8f8c` | `AsiaKolkataDayPolicy.kt`, 11-line `MainActivity.kt` change, JVM tests | Defer to a separate data/date pass; it is not a UI baseline | | PR #35 bounded diagnostic reads | 6 ahead / 13 behind from `ed6c9419` | `LaunchCrashDiagnostics.kt`, tests and handoff docs | Diagnostics-only; do not mix into Quiz/UI pass | @@ -75,6 +77,16 @@ The active source is not selected by timestamp alone: it is the owner-directed c The exact full patch review was scoped by subsystem: Search/Reader/Prismal and Compose receiver fixes were checked against current `MainActivity.kt`; persistence and network candidates were reviewed by their actual touched files and ancestry, not by branch names. No unrelated source branch was modified. +## 8 November 2026, 07:41 IST — Shared shell optical clarity and compact capture lifecycle + +- **Source / parent:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea`; new code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. PR #34 remains open/draft to main; no merge or retarget. +- **Branch freshness:** 41 branches / 38 PRs (24 open, 14 closed). Active branch is 125 ahead / 0 behind main and 68 ahead / 0 behind PR #16. PR #38 is a direct 2-commit child of the previous head, limited to RSS parser entry caps and tests; run #288 was in progress and it is not a UI baseline. PR #37's RowScope fix is already present. PR #36, #35, #27, #32/#33 and #25/#26 remain separate as described in the live inventory above. +- **Exact parent CI:** PR run #287 and push run #286 passed on `c7d50bb2`: WordNet 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifacts. PR artifact #13598894928 (39,110,932 bytes; SHA-256 `84140d6901c7638e10b14e8b3911a69833312e7553b37407db2192cc1fa9b0a1`); push artifact #13600401190 (39,110,930 bytes). Both publish jobs skipped. These validate the parent only. +- **Implementation:** shared HomeGlassHeader optics were reduced from 13dp to 9dp blur, 4/6dp to 3/4dp refraction, 0.003 to 0.0015 chromatic aberration, and lower specular/shadow/inset/tint values. The same root background-only capture and one header Prismal surface remain. +- **Navigation resource lifecycle:** hidden tab-glyph and merged droplet sources are now composed only inside the expanded branch; compact mode retains one active-destination pill and disposes the unused sources. No extra capture/readback or second navigation layer. +- **Tests / cost:** one GlassOpticsPolicyTest asserts the header profile. No new live effect or dependency. Source-level parameter reduction only; no measured GPU/frame/memory/battery benefit. +- **Next verification:** natural push/PR runs for `c6deffb9` must validate the exact new head. Do not dispatch/rerun or use parent runs as new-head evidence. OPPO Reno10 visual, launch, accessibility, Reduce Motion, scroll, frame, GPU, memory, thermal and battery checks remain UNVERIFIED. + ## Current Quiz batch - Code commit: `b06557acb2923d62c8c4f18e666b584f89243242`, parent `94a1e9a3a6c0cc92abc41cfe332ebf821ed1e351`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 9aebfe0d..852f1359 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,20 @@ +# Live implementation batch — Shared shell optical clarity and compact-mode source lifecycle +**Audit time:** 8 November 2026, 07:41 IST + +- **Active branch:** `black-box-bihar-news`; implementation parent `c7d50bb2bafe29a43c106e4fb71b607e9830adea`, new code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. Draft PR #34 remains open against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; no merge, retarget or main write. +- **Freshness gate:** 41 remote branches and 38 PRs were re-enumerated (24 open, 14 closed; page 2 empty for branches and PRs). `black-box-bihar-news` is 125 ahead / 0 behind main and 68 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 head matched the selected branch before this commit. No newer coherent UI baseline supersedes this owner-selected line. +- **New source branch:** PR #38, `perf/bound-rss-entry-parsing-2026-11-08@9daad62c852ad87ae7b82888892c6dc4f26c31eb`, is a direct 2-commit child of the previous integration head `c7d50bb2`; its diff is limited to `NewsRepository.kt` and `NewsRepositoryTest.kt` (100 parsed entries per feed, including malformed entries). Natural run #288 was in progress during this audit. It is a separate RSS/parser change, not a newer UI baseline and does not overlap this shell batch; it remains unmerged and unmodified. +- **Other branch dispositions:** PR #37's Search RowScope repair is already in the active branch; PR #36's Asia/Kolkata midnight refresh is a separate date/index change (3 ahead / 7 behind from `4a7a8f8c`); PR #35 is bounded startup-diagnostic reads (6 ahead / 15 behind); PR #27 is editorial-only (44 ahead / 26 behind); PRs #32/#33 jointly touch `NewsRepository.kt`; PRs #25/#26 require joint publisher-resource security review. PRs #29/#30/#31 are represented; PR #13's conservative shared adaptive-contrast policy remains integrated. Stale Liquid Glass/v0.3 branches remain excluded. +- **Latest exact active-branch CI before this change:** natural PR run [#287](https://github.com/Batmancpu/CurrentLens/actions/runs/42437176437) and push run [#286](https://github.com/Batmancpu/CurrentLens/actions/runs/42437172792) both passed on `c7d50bb2`. WordNet builder 4/4, 151,456 unique words (50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. PR artifact [13598894928](https://github.com/Batmancpu/CurrentLens/actions/runs/42437176437/artifacts/13598894928), 39,110,932 bytes, SHA-256 `84140d6901c7638e10b14e8b3911a69833312e7553b37407db2192cc1fa9b0a1`, expires 22 November 2026 02:09:47 UTC. Push artifact `13600401190`, 39,110,930 bytes. Publish jobs skipped. +- **Actions / workflow / Release:** 288 runs fully paginated (100 + 100 + 88; page 4 empty): 173 success, 61 failure, 53 cancelled, 1 in progress, 0 queued. The sole active run #288 belongs to PR #38, not this branch. Integration `.github/workflows/build-apk.yml` uses read-only build/test permissions and a separate main-push-only Release-write job; main's workflow remains push-only with broader write permission. Latest published Release remains `v0.2.0-build-116` (6 November 2026); no Release was published. +- **Implementation:** `HomeGlassHeader` now uses a shared `GlassOpticsPolicy.header()` profile: blur 13→9dp, refraction height 4→3dp, amount 6→4dp, chromatic aberration 0.003→0.0015, specular 0.28→0.22, shadow 0.20→0.16, inset 0.05→0.04 and tint multiplier 0.13→0.10. The header retains its existing single Prismal surface and root background-only backdrop; the aim is clearer context with less optical work, not a measured performance claim. +- **Navigation lifecycle:** the hidden tab-glyph capture and merged droplet source are now created only inside the expanded-navigation branch. Compact mode retains the same single shared active-destination pill and no longer remembers those unused source objects. No second bar, extra sampler, readback, root capture or new Prismal surface was added. +- **Tests / cost evidence:** `GlassOpticsPolicyTest` asserts the header's bounded lower-cost profile. Source diff: three files, 42 additions / 12 deletions. No Compose screenshot test or device trace was available. Parameter reductions are source-level evidence only; frame timing, jank, GPU overdraw, allocation/memory, battery and thermal impact remain unmeasured. +- **Device / release safety:** OPPO Reno10 launch, header contrast, nav morph smoothness, TalkBack, font scaling, Reduce Motion runtime, safe-area/gesture navigation, Perfetto, GPU, memory, thermal and battery remain **UNVERIFIED**. CI is not device evidence. No manual dispatch/rerun, merge, main write, Release publication, package change or source-branch mutation. +- **Next:** inspect the exact natural push/PR runs for `c6deffb9`; then finish the shared-shell/header-to-filter spacing and whole-app transient-control consistency review. Preserve the one root background-only capture, expanded-only tab glyph source, one Coil decode and 4s/6s foreground-idle luminance cadence. + +--- + # Live implementation batch — Quiz controls and current branch audit **Audit time:** 8 November 2026, 07:32 IST @@ -40,7 +57,7 @@ # Liquid Glass UI Roadmap -**Status:** Cohesive Prismal coverage spans the shared shell, full/compact navigation, Search, Explore filters, Reader auto-hide, definition and completion controls, You/Saved/stats supporting materials, Appearance preview and Quiz transient chrome. This pass closes the remaining shared Reduce Motion gaps in destination transitions and the definition popover. +**Status:** Cohesive Prismal coverage spans the shared shell, full/compact navigation, Search, Explore filters, Reader auto-hide, definition and completion controls, You/Saved/stats supporting materials, Appearance preview and Quiz transient chrome. The latest shell pass reduces the shared header's optical intensity and limits hidden tab-glyph/merged droplet sources to expanded navigation; no measured device-performance claim is made. **Feature branch:** `black-box-bihar-news` — sole active integration/UI branch by explicit owner direction. **Source baseline for this pass:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; 121 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, and 64 ahead / 0 behind PR #16's corrected stability/Prismal head. **Latest exact active-branch validation:** natural PR run #279 and push run #278 both passed on `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; WordNet 4/4, 151,456-word offline database, JVM tests, APK assembly and artifact upload all passed. New reduced-motion commit is pending its own natural CI. @@ -127,8 +144,8 @@ Recheck every branch head and dependency before each future implementation commi | Screen / component | Material tier | Intended treatment | Current status | |---|---|---|---| -| Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Existing Prismal glass; contrast/hierarchy polish remains | -| Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Existing Prismal droplet, hidden glyph capture and merged source; no new sampler | +| Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Shared 9dp-blur / 3×4dp-refraction profile now reduces the dark-slab risk; OPPO contrast remains unverified | +| Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Hidden glyph capture and merged droplet source exist only in expanded state; compact mode releases both | | Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; state policy validated in runs #186 and #187; physical animation still needs device validation | | Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; run #183 passed | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | @@ -155,8 +172,8 @@ Recheck every branch head and dependency before each future implementation commi | Component | Live effect / scope | Cost-control strategy | Fallback / verification | |---|---|---|---| | Root backdrop | One full-window background-only Prismal capture source | Capture background pixels only; no descendants; reuse same source | Do not reintroduce self-capture; code reviewed, device launch still unverified | -| Navigation | One floating capsule plus existing tab-glyph source/merged droplet | Preserve existing two-source architecture; no new sampler/readback | Static/low-effects presentation under Reduce Motion; OPPO GPU cost unmeasured | -| Home header | One small header glass surface | Existing shared backdrop; no duplicate captures | Theme-derived contrast; no adaptive readback added | +| Navigation | One floating capsule plus expanded-only tab-glyph source/merged droplet | Create hidden glyph capture and merged droplet source only while expanded; compact pill uses the same shared bar surface | No new sampler/readback; compact state disposes unused sources; OPPO GPU cost unmeasured | +| Home header | One 9dp-blur / low-refraction glass surface | Reuse root background-only source; static profile reduces blur/refraction/chromatic work; no duplicate capture | Theme-derived contrast; Reduce Transparency still removes live optics; device GPU cost unmeasured | | Search | One morphing capsule | Reuse existing anchor/dock geometry and single backdrop | Preserve IME; clear affordance must not alter layout or focus | | Explore filters | One shared capsule, not one glass surface per chip | Reuse same backdrop; keep chip fills/borders as simple drawing | >=48dp target and selected semantics still require device/TalkBack checks | | Feed cards | No live blur | One Coil request per image; palette sampled from that decoded bitmap; cached per article | Standard content card if palette unavailable; no duplicate decode | From 400496d3a24e7ed9e1f2d4b62c964aa07ebb7348 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:50:39 +0530 Subject: [PATCH 125/175] test(glass): compare header blur against prior profile --- .../java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt index 58601e78..bbc06e3f 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassOpticsPolicyTest.kt @@ -100,10 +100,9 @@ class GlassOpticsPolicyTest { @Test fun sharedHeaderUsesClearerLowerCostOpticsThanTheSelectedDroplet() { val header = GlassOpticsPolicy.header() - val droplet = GlassOpticsPolicy.droplet(0f) assertEquals(9f, header.blurDp, 0.0001f) - assertTrue(header.blurDp < droplet.blurDp) + assertTrue(header.blurDp < 13f) assertTrue(header.refractionHeightDp <= 3f) assertTrue(header.refractionAmountDp <= 4f) assertTrue(header.chromaticAberration <= 0.002f) From df5a75cff6fe9e75570d5daec64cf3d1db8ae726 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 07:54:58 +0530 Subject: [PATCH 126/175] docs(ui): record exact-head glass CI and test correction --- docs/BRANCH_CONSOLIDATION.md | 38 ++++++++++++++++----------------- docs/LIQUID_GLASS_UI_ROADMAP.md | 35 +++++++++++++++--------------- 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 4f27007a..77cbac49 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,17 +2,17 @@ **Repository:** `Batmancpu/CurrentLens` **Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged) -**Owner-selected active line:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` at audit start; parent of the shared-shell implementation commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. +**Owner-selected active line:** `black-box-bihar-news@400496d3a24e7ed9e1f2d4b62c964aa07ebb7348`; code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`, docs sync `12f5831122067cf7996b14d8b8aed4d8dc3bbd4d`, test correction at current head. **Branch inventory:** 41 remote branches; **38 PRs** (24 open, 14 closed). Full pagination completed; no additional branch or PR page. PR #34 is the only active consolidation draft targeting main. -The active source is not selected by timestamp alone: it is the owner-directed consolidation line, 125 ahead / 0 behind main, 68 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. Its lineage includes the PR #19 Reader work, the read-only stacked workflow, the selected network/cache/persistence/editorial ports, conservative adaptive contrast, Reader/Search/feed-navigation policies, shared supporting materials, Appearance preview and system Reduce Motion handling. PR #34 remains draft; no merge, retarget, main write or branch deletion. +The active source is not selected by timestamp alone: it is the owner-directed consolidation line, 128 ahead / 0 behind main, 71 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. Its lineage includes the PR #19 Reader work, the read-only stacked workflow, the selected network/cache/persistence/editorial ports, conservative adaptive contrast, Reader/Search/feed-navigation policies, shared supporting materials, Appearance preview and system Reduce Motion handling. PR #34 remains draft; no merge, retarget, main write or branch deletion. ## Complete remote branch inventory | Branch | Head SHA | Latest commit (UTC) | Latest commit subject | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b7` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open; policy represented | -| `black-box-bihar-news` | `c7d50bb2bafe` | 2026-11-08 02:07Z | docs(ui): record Quiz batch and live branch audit | PR #34 open; active consolidation | +| `black-box-bihar-news` | `400496d3a24e` | 2026-11-08 02:20Z | test(glass): compare header blur against prior profile | PR #34 open; active consolidation | | `brrrNEWS` | `e6fcfc25a4c8` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24; divergent sibling | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open; compatible workflow intent represented | | `ci/stacked-pr-validation-2026-11-07` | `5dc317936183` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed; integrated into consolidation | @@ -57,14 +57,14 @@ The active source is not selected by timestamp alone: it is the owner-directed c | Candidate | Comparison against active branch | Changed files / relationship | Decision | |---|---|---|---| -| PR #16 stability head | Active branch is 66 commits ahead; PR #16 is an ancestor | Corrected background-only Prismal capture and startup stability prerequisite | Keep as ancestor; do not switch back | -| PR #38 bounded RSS parser entries | 2 ahead / 0 behind from current head `c7d50bb2` | `NewsRepository.kt` and `NewsRepositoryTest.kt`; caps each feed at 100 entries, including malformed records | Separate parser/performance proposal; natural run #288 in progress; no MainActivity/Prismal overlap and no blind port | -| PR #37 Search compile repair | Diverged: PR head 6 ahead / active 4 ahead from `d451d225`; its code fix is already in active commit `6f777f87` | `MainActivity.kt` RowScope receiver repair plus handoff docs | No cherry-pick; preserve source PR untouched | -| PR #36 IST midnight rollover | 3 ahead / 5 behind from `4a7a8f8c` | `AsiaKolkataDayPolicy.kt`, 11-line `MainActivity.kt` change, JVM tests | Defer to a separate data/date pass; it is not a UI baseline | -| PR #35 bounded diagnostic reads | 6 ahead / 13 behind from `ed6c9419` | `LaunchCrashDiagnostics.kt`, tests and handoff docs | Diagnostics-only; do not mix into Quiz/UI pass | -| PR #27 strict editorial action gate | 44 ahead / 24 behind from `3a08bb95`; latest branch commit is newer than active head | `UpscEngine.kt`, `UpscFeedPolicy.kt`, tests/docs | Newer but editorial-only; keep separate until full editorial regression review | -| PRs #32 and #33 | #32: 2 ahead / 18 behind; #33: 4 ahead / 16 behind | Both modify `NewsRepository.kt`; concurrency policy and relative Atom-link resolution | Jointly review before any port; no blind merge | -| PRs #25 and #26 | #25: 7 ahead / 25 behind; #26: 1 ahead / 24 behind | Reader repository, `MainActivity.kt`, publisher asset/subresource host policies and tests | Joint security/redirect review required; no port in this UI task | +| PR #16 stability head | Active branch is 71 commits ahead; PR #16 is an ancestor | Corrected background-only Prismal capture and startup stability prerequisite | Keep as ancestor; do not switch back | +| PR #38 bounded RSS parser entries | 2 ahead / 3 behind from merge base `c7d50bb2` | `NewsRepository.kt` and `NewsRepositoryTest.kt`; caps each feed at 100 entries, including malformed records | Separate parser/performance proposal; run #288 failed two parser tests; no MainActivity/Prismal overlap and no blind port | +| PR #37 Search compile repair | Diverged: PR head 6 ahead / active 9 ahead from `d451d225`; its code fix is already in active commit `6f777f87` | `MainActivity.kt` RowScope receiver repair plus handoff docs | No cherry-pick; preserve source PR untouched | +| PR #36 IST midnight rollover | 3 ahead / 10 behind from `4a7a8f8c` | `AsiaKolkataDayPolicy.kt`, 11-line `MainActivity.kt` change, JVM tests | Defer to a separate data/date pass; it is not a UI baseline | +| PR #35 bounded diagnostic reads | 6 ahead / 18 behind from `ed6c9419` | `LaunchCrashDiagnostics.kt`, tests and handoff docs | Diagnostics-only; do not mix into Quiz/UI pass | +| PR #27 strict editorial action gate | 44 ahead / 29 behind from `3a08bb95`; latest branch commit is newer than active head | `UpscEngine.kt`, `UpscFeedPolicy.kt`, tests/docs | Newer but editorial-only; keep separate until full editorial regression review | +| PRs #32 and #33 | #32: 2 ahead / 23 behind; #33: 4 ahead / 21 behind | Both modify `NewsRepository.kt`; concurrency policy and relative Atom-link resolution | Jointly review before any port; no blind merge | +| PRs #25 and #26 | #25: 7 ahead / 30 behind; #26: 1 ahead / 29 behind | Reader repository, `MainActivity.kt`, publisher asset/subresource host policies and tests | Joint security/redirect review required; no port in this UI task | | PRs #29, #30 and #31 | Diverged from older bases; their current useful policies are already present | Bookmark persistence, 48dp target policy, off-main appearance preferences | Treat as represented; source branches remain untouched | | PRs #22 and #8 | Separate persistence lineage | Ordered 5,000-entry supplemental new-marker window; legacy unordered set retained | Reconciled; do not claim all historical read storage is bounded | | PRs #11, #12 and #17 | Independent cache/parser/URL identity lineages | Provenance/date, Atom alternate selection and tracking-variant identity | Selectively represented in current code; no wholesale merge | @@ -77,15 +77,15 @@ The active source is not selected by timestamp alone: it is the owner-directed c The exact full patch review was scoped by subsystem: Search/Reader/Prismal and Compose receiver fixes were checked against current `MainActivity.kt`; persistence and network candidates were reviewed by their actual touched files and ancestry, not by branch names. No unrelated source branch was modified. -## 8 November 2026, 07:41 IST — Shared shell optical clarity and compact capture lifecycle +## 8 November 2026, 07:41 IST — Shared shell optical clarity and compact capture lifecycle (CI follow-up 07:54 IST) -- **Source / parent:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea`; new code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. PR #34 remains open/draft to main; no merge or retarget. -- **Branch freshness:** 41 branches / 38 PRs (24 open, 14 closed). Active branch is 125 ahead / 0 behind main and 68 ahead / 0 behind PR #16. PR #38 is a direct 2-commit child of the previous head, limited to RSS parser entry caps and tests; run #288 was in progress and it is not a UI baseline. PR #37's RowScope fix is already present. PR #36, #35, #27, #32/#33 and #25/#26 remain separate as described in the live inventory above. -- **Exact parent CI:** PR run #287 and push run #286 passed on `c7d50bb2`: WordNet 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifacts. PR artifact #13598894928 (39,110,932 bytes; SHA-256 `84140d6901c7638e10b14e8b3911a69833312e7553b37407db2192cc1fa9b0a1`); push artifact #13600401190 (39,110,930 bytes). Both publish jobs skipped. These validate the parent only. -- **Implementation:** shared HomeGlassHeader optics were reduced from 13dp to 9dp blur, 4/6dp to 3/4dp refraction, 0.003 to 0.0015 chromatic aberration, and lower specular/shadow/inset/tint values. The same root background-only capture and one header Prismal surface remain. -- **Navigation resource lifecycle:** hidden tab-glyph and merged droplet sources are now composed only inside the expanded branch; compact mode retains one active-destination pill and disposes the unused sources. No extra capture/readback or second navigation layer. -- **Tests / cost:** one GlassOpticsPolicyTest asserts the header profile. No new live effect or dependency. Source-level parameter reduction only; no measured GPU/frame/memory/battery benefit. -- **Next verification:** natural push/PR runs for `c6deffb9` must validate the exact new head. Do not dispatch/rerun or use parent runs as new-head evidence. OPPO Reno10 visual, launch, accessibility, Reduce Motion, scroll, frame, GPU, memory, thermal and battery checks remain UNVERIFIED. +- **Source baseline:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea`; code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`; docs sync `12f5831122067cf7996b14d8b8aed4d8dc3bbd4d`; test correction `400496d3a24e7ed9e1f2d4b62c964aa07ebb7348` (current head). PR #34 remains open/draft to main. +- **Current comparison:** 128 ahead / 0 behind main; 71 ahead / 0 behind PR #16. Branch inventory 41; PR inventory 38 (24 open, 14 closed). PR #38 is now 2 ahead / 3 behind the active branch from merge base `c7d50bb2`; it only touches RSS parsing/tests and remains separate. +- **Natural CI:** PR run #294 and push run #293 both passed exact head `400496d3`; WordNet 4/4, 151,456 unique words, JVM tests, APK assembly and artifact upload passed. Artifacts #13600736327 (39,111,083 bytes) and #13599529948 (39,111,082 bytes). +- **Failure/fix:** #289 and #291 each failed one test because the assertion compared the 9dp header profile against the 5.5dp droplet profile. The test now compares against the previous 13dp header value; #294/#293 pass. No production value was softened to hide a failure. +- **Separate RSS branch:** PR #38 run #288 failed two parser tests with RuntimeException at the test parse call sites; no artifact. Not ported. +- **Device / cost:** one existing root capture; expanded-only hidden glyph/merged droplet source; no extra readback. Header optical parameters are lower, but GPU/frame/memory/battery impact is unmeasured. OPPO Reno10, accessibility, motion and safe-area checks remain UNVERIFIED. +- **Next:** continue the shared-shell/transient-control audit. No dispatch/rerun, merge, main write, Release publication or source-branch mutation. ## Current Quiz batch diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 852f1359..ae2ee500 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,17 +1,18 @@ # Live implementation batch — Shared shell optical clarity and compact-mode source lifecycle -**Audit time:** 8 November 2026, 07:41 IST - -- **Active branch:** `black-box-bihar-news`; implementation parent `c7d50bb2bafe29a43c106e4fb71b607e9830adea`, new code commit `c6deffb96a89d56642374456e92477fbabb8e4b0`. Draft PR #34 remains open against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; no merge, retarget or main write. -- **Freshness gate:** 41 remote branches and 38 PRs were re-enumerated (24 open, 14 closed; page 2 empty for branches and PRs). `black-box-bihar-news` is 125 ahead / 0 behind main and 68 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 head matched the selected branch before this commit. No newer coherent UI baseline supersedes this owner-selected line. -- **New source branch:** PR #38, `perf/bound-rss-entry-parsing-2026-11-08@9daad62c852ad87ae7b82888892c6dc4f26c31eb`, is a direct 2-commit child of the previous integration head `c7d50bb2`; its diff is limited to `NewsRepository.kt` and `NewsRepositoryTest.kt` (100 parsed entries per feed, including malformed entries). Natural run #288 was in progress during this audit. It is a separate RSS/parser change, not a newer UI baseline and does not overlap this shell batch; it remains unmerged and unmodified. -- **Other branch dispositions:** PR #37's Search RowScope repair is already in the active branch; PR #36's Asia/Kolkata midnight refresh is a separate date/index change (3 ahead / 7 behind from `4a7a8f8c`); PR #35 is bounded startup-diagnostic reads (6 ahead / 15 behind); PR #27 is editorial-only (44 ahead / 26 behind); PRs #32/#33 jointly touch `NewsRepository.kt`; PRs #25/#26 require joint publisher-resource security review. PRs #29/#30/#31 are represented; PR #13's conservative shared adaptive-contrast policy remains integrated. Stale Liquid Glass/v0.3 branches remain excluded. -- **Latest exact active-branch CI before this change:** natural PR run [#287](https://github.com/Batmancpu/CurrentLens/actions/runs/42437176437) and push run [#286](https://github.com/Batmancpu/CurrentLens/actions/runs/42437172792) both passed on `c7d50bb2`. WordNet builder 4/4, 151,456 unique words (50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. PR artifact [13598894928](https://github.com/Batmancpu/CurrentLens/actions/runs/42437176437/artifacts/13598894928), 39,110,932 bytes, SHA-256 `84140d6901c7638e10b14e8b3911a69833312e7553b37407db2192cc1fa9b0a1`, expires 22 November 2026 02:09:47 UTC. Push artifact `13600401190`, 39,110,930 bytes. Publish jobs skipped. -- **Actions / workflow / Release:** 288 runs fully paginated (100 + 100 + 88; page 4 empty): 173 success, 61 failure, 53 cancelled, 1 in progress, 0 queued. The sole active run #288 belongs to PR #38, not this branch. Integration `.github/workflows/build-apk.yml` uses read-only build/test permissions and a separate main-push-only Release-write job; main's workflow remains push-only with broader write permission. Latest published Release remains `v0.2.0-build-116` (6 November 2026); no Release was published. -- **Implementation:** `HomeGlassHeader` now uses a shared `GlassOpticsPolicy.header()` profile: blur 13→9dp, refraction height 4→3dp, amount 6→4dp, chromatic aberration 0.003→0.0015, specular 0.28→0.22, shadow 0.20→0.16, inset 0.05→0.04 and tint multiplier 0.13→0.10. The header retains its existing single Prismal surface and root background-only backdrop; the aim is clearer context with less optical work, not a measured performance claim. -- **Navigation lifecycle:** the hidden tab-glyph capture and merged droplet source are now created only inside the expanded-navigation branch. Compact mode retains the same single shared active-destination pill and no longer remembers those unused source objects. No second bar, extra sampler, readback, root capture or new Prismal surface was added. -- **Tests / cost evidence:** `GlassOpticsPolicyTest` asserts the header's bounded lower-cost profile. Source diff: three files, 42 additions / 12 deletions. No Compose screenshot test or device trace was available. Parameter reductions are source-level evidence only; frame timing, jank, GPU overdraw, allocation/memory, battery and thermal impact remain unmeasured. -- **Device / release safety:** OPPO Reno10 launch, header contrast, nav morph smoothness, TalkBack, font scaling, Reduce Motion runtime, safe-area/gesture navigation, Perfetto, GPU, memory, thermal and battery remain **UNVERIFIED**. CI is not device evidence. No manual dispatch/rerun, merge, main write, Release publication, package change or source-branch mutation. -- **Next:** inspect the exact natural push/PR runs for `c6deffb9`; then finish the shared-shell/header-to-filter spacing and whole-app transient-control consistency review. Preserve the one root background-only capture, expanded-only tab glyph source, one Coil decode and 4s/6s foreground-idle luminance cadence. +**Freshness audit:** 8 November 2026, 07:41 IST; **latest code/test-fix head:** 8 November 2026, 07:50 IST; **exact-head CI completed:** 08:23 IST. + +- **Active branch / PR:** `black-box-bihar-news@400496d3a24e7ed9e1f2d4b62c964aa07ebb7348`; PR #34 remains open/draft against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Current lineage: 128 ahead / 0 behind main and 71 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +- **Commit chain:** code change `c6deffb96a89d56642374456e92477fbabb8e4b0` (parent `c7d50bb2`); documentation sync `12f5831122067cf7996b14d8b8aed4d8dc3bbd4d`; evidence-backed test correction `400496d3a24e7ed9e1f2d4b62c964aa07ebb7348` (current head, parent `12f58311`). +- **Freshness gate:** 41 remote branches and 38 PRs (24 open, 14 closed) were fully re-enumerated. PR #38 is a direct child of former head `c7d50bb2`, now 2 ahead / 3 behind the active head from that merge base; its diff is only `NewsRepository.kt` and `NewsRepositoryTest.kt`. It is not a newer UI baseline. PR #37's RowScope repair is already present; PR #36 date rollover, #35 diagnostic reads, #27 editorial gate, #32/#33 feed parsing and #25/#26 publisher security remain separate. PRs #29/#30/#31 and PR #13's conservative adaptive-contrast policy are represented. +- **UI / cost change:** `HomeGlassHeader` now uses a shared 9dp-blur / 3dp-height / 4dp-amount profile, chromatic aberration 0.0015, specular 0.22, shadow 0.16, inset 0.04 and tint multiplier 0.10 (previously 13dp, 4/6dp, 0.003, 0.28, 0.20, 0.05 and 0.13). The existing single Prismal header surface and one root background-only backdrop remain. This is a parameter reduction, not a measured performance claim. +- **Navigation lifecycle:** hidden tab-glyph capture and merged droplet source are instantiated only inside the expanded navigation branch; compact mode retains the same single active-destination pill and disposes those unused sources. No second bar, extra sampler/readback, new Prismal surface or root capture. +- **Tests:** `GlassOpticsPolicyTest` checks the bounded header profile. Natural run #289 on `c6deffb9` and run #291 on `12f58311` each failed one assertion because the test incorrectly compared 9dp header blur with the 5.5dp resting droplet blur. The production profile was not changed; test fix `400496d3` compares 9dp with the header's prior 13dp value. +- **Exact-head natural CI:** PR run [#294](https://github.com/Batmancpu/CurrentLens/actions/runs/42438138680) and push run [#293](https://github.com/Batmancpu/CurrentLens/actions/runs/42438135082) both **passed** on exact head `400496d3`. Both completed WordNet builder 4/4, 151,456 unique words (50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. PR artifact [13600736327](https://github.com/Batmancpu/CurrentLens/actions/runs/42438138680/artifacts/13600736327), 39,111,083 bytes, expires 22 November 2026 02:22:10 UTC. Push artifact [13599529948](https://github.com/Batmancpu/CurrentLens/actions/runs/42438135082/artifacts/13599529948), 39,111,082 bytes, expires 22 November 2026 02:23:30 UTC. Publish jobs skipped; only Node.js 20/action-runtime deprecation warnings. +- **Separate PR #38 failure:** natural run [#288](https://github.com/Batmancpu/CurrentLens/actions/runs/42437757601) failed two `NewsRepositoryTest` cases at parse call sites (lines 26 and 49) with `java.lang.RuntimeException`; the Actions log does not expose the underlying cause. No APK artifact was uploaded. This is outside the UI branch and was not ported. +- **Actions / workflow / Release:** 294 runs fully paginated (100 + 100 + 94; page 4 empty): 175 success, 64 failure, 55 cancelled, 0 in progress, 0 queued. Integration `.github/workflows/build-apk.yml` uses read-only build/test permissions and a separate main-push-only Release-write job; main's workflow remains push-only. Latest published Release remains `v0.2.0-build-116`; no Release was published. +- **Device / next:** OPPO Reno10 launch, header contrast, compact-nav morph, TalkBack, font scaling, Reduce Motion, safe areas, frame/jank, GPU, memory, thermal and battery remain **UNVERIFIED**. Next: continue the whole-app shared-shell/transient-control audit, while keeping physical-device claims explicitly unverified. No manual dispatch/rerun, merge, main write, Release publication, package change or source-branch mutation. + +--- --- @@ -59,11 +60,11 @@ **Status:** Cohesive Prismal coverage spans the shared shell, full/compact navigation, Search, Explore filters, Reader auto-hide, definition and completion controls, You/Saved/stats supporting materials, Appearance preview and Quiz transient chrome. The latest shell pass reduces the shared header's optical intensity and limits hidden tab-glyph/merged droplet sources to expanded navigation; no measured device-performance claim is made. **Feature branch:** `black-box-bihar-news` — sole active integration/UI branch by explicit owner direction. -**Source baseline for this pass:** `black-box-bihar-news@d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; 121 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, and 64 ahead / 0 behind PR #16's corrected stability/Prismal head. -**Latest exact active-branch validation:** natural PR run #279 and push run #278 both passed on `d9a4d1eac035172da0f8d7c40a984eb6c40c1b8b`; WordNet 4/4, 151,456-word offline database, JVM tests, APK assembly and artifact upload all passed. New reduced-motion commit is pending its own natural CI. -**Actions history:** 279 runs fully paginated (100 + 100 + 79): 166 success, 61 failure, 52 cancelled; queue empty. +**Source baseline for this pass:** `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea`; code commit `c6deffb9`, docs sync `12f58311`, test correction `400496d3`. +**Latest exact active-branch validation:** natural PR run #294 and push run #293 both passed on `400496d3`; WordNet 4/4, 151,456-word offline database, JVM tests, APK assembly and artifact upload all passed. +**Actions history:** 294 runs fully paginated (100 + 100 + 94): 175 success, 64 failure, 55 cancelled; no queued or in-progress runs. **Workflow / Releases:** integration workflow has read-only build/test and isolated main-push Release write; main remains push-only. Latest published Release `v0.2.0-build-116`; no Release published by runs #278/#279. -**Branch graph:** 40 remote branches; 37 PRs (23 open, 14 closed). PR #34 is the only consolidation PR this task updates. Source-branch treatment is recorded in the live audit above and `docs/BRANCH_CONSOLIDATION.md`. +**Branch graph:** 41 remote branches; 38 PRs (24 open, 14 closed). PR #34 is the only consolidation PR this task updates; PR #38 remains a separate failing RSS parser proposal. **Safety / device status:** no main write, PR merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change, source-branch mutation or deletion. OPPO Reno10 launch, visual, accessibility, motion, Perfetto/frame, GPU, memory, thermal and battery evidence remains **UNVERIFIED**. ## Current iteration — Reduced Motion consistency — 8 November 2026, 05:24 IST From a15984673f0b2c8b3cc032a38cfc7d08cdddc87b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 08:34:59 +0530 Subject: [PATCH 127/175] ui: unify glass filter control hierarchy --- .../currentlens/GlassSurfacePolicy.kt | 23 +++++ .../mangoloads/currentlens/MainActivity.kt | 90 ++++++++++++------- .../currentlens/GlassSurfacePolicyTest.kt | 48 ++++++++++ 3 files changed, 128 insertions(+), 33 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 4626d48a..610665a0 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -11,6 +11,7 @@ internal object GlassSurfacePolicy { const val TRANSIENT_REFRACTION_HEIGHT_DP = 2.5f const val TRANSIENT_REFRACTION_AMOUNT_DP = 3.5f const val TRANSIENT_TINT_SCALE = 0.42f + const val FILTER_PILL_CORNER_RADIUS_DP = 16f private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f @@ -66,6 +67,28 @@ internal object GlassSurfacePolicy { return if (reduceTransparency) maxOf(alpha, 0.20f) else alpha } + fun filterPillFillAlpha( + glassAlpha: Float, + selected: Boolean, + reduceTransparency: Boolean + ): Float { + val progress = intensityProgress(glassAlpha) + val alpha = if (selected) 0.14f + 0.08f * progress else 0.04f + 0.02f * progress + val minimum = if (selected) 0.24f else 0.10f + return (if (reduceTransparency) maxOf(alpha, minimum) else alpha).coerceIn(0f, 1f) + } + + fun filterPillBorderAlpha( + glassAlpha: Float, + selected: Boolean, + reduceTransparency: Boolean + ): Float { + val progress = intensityProgress(glassAlpha) + val alpha = if (selected) 0.36f + 0.10f * progress else 0.18f + 0.06f * progress + val minimum = if (selected) 0.48f else 0.30f + return (if (reduceTransparency) maxOf(alpha, minimum) else alpha).coerceIn(0f, 1f) + } + private fun intensityProgress(glassAlpha: Float): Float { val normalized = AppearancePreferencesPolicy.normalizeGlassAlpha(glassAlpha) return ((normalized - AppearancePreferencesPolicy.MIN_GLASS_ALPHA) / diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 4ccc67d4..14ce0af4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1457,6 +1457,7 @@ private fun SearchFeed( keyboardController?.hide() showFilters = true }, + modifier = Modifier.heightIn(min = 48.dp), label = { Text(if (activeFilterCount == 0) "Filters" else "Filters · $activeFilterCount") }, leadingIcon = { Icon(Icons.Outlined.Tune, contentDescription = null, modifier = Modifier.size(16.dp)) @@ -1982,6 +1983,44 @@ private fun SupportingEmptyPanel(title: String, description: String) { } } +@Composable +private fun GlassFilterPill( + label: String, + selected: Boolean, + onClick: () -> Unit, + glassAlpha: Float? = null, + reduceTransparency: Boolean? = null +) { + val colors = MaterialTheme.colorScheme + val intensity = glassAlpha ?: LocalGlassIntensity.current + val lowEffects = reduceTransparency ?: LocalGlassReduceTransparency.current + val fillAlpha = GlassSurfacePolicy.filterPillFillAlpha(intensity, selected, lowEffects) + val borderAlpha = GlassSurfacePolicy.filterPillBorderAlpha(intensity, selected, lowEffects) + val shape = remember { RoundedCornerShape(GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP.dp) } + val fill = (if (selected) colors.primary else colors.surface).copy(alpha = fillAlpha) + val rim = (if (selected) colors.primary else colors.outline).copy(alpha = borderAlpha) + + Box( + Modifier.clip(shape) + .background(fill) + .border(1.dp, rim, shape) + .selectable(selected = selected, role = Role.RadioButton, onClick = onClick) + .widthIn(min = TouchTargetPolicy.MIN_ICON_TARGET_DP.dp) + .heightIn(min = TouchTargetPolicy.MIN_ICON_TARGET_DP.dp) + .padding(horizontal = 12.dp, vertical = 8.dp), + contentAlignment = Alignment.Center + ) { + Text( + label, + fontSize = 12.sp, + fontWeight = if (selected) FontWeight.SemiBold else FontWeight.Medium, + color = if (selected) colors.onSurface else colors.onSurfaceVariant, + maxLines = 1, + softWrap = false + ) + } +} + @Composable private fun FilterChipRow( title: String, @@ -1999,19 +2038,10 @@ private fun FilterChipRow( ) { distinctOptions.forEach { option -> val isSelected = selected == option - FilterChip( + GlassFilterPill( + label = option, selected = isSelected, - onClick = { onSelected(option) }, - modifier = Modifier.widthIn(min = 48.dp).heightIn(min = 48.dp), - label = { - Text( - option, - fontSize = 12.sp, - fontWeight = if (isSelected) FontWeight.SemiBold else FontWeight.Medium, - maxLines = 1, - softWrap = false - ) - } + onClick = { onSelected(option) } ) } } @@ -2157,19 +2187,10 @@ private fun CompactFilterRow( ) { distinctOptions.forEach { option -> val isSelected = selected == option - FilterChip( + GlassFilterPill( + label = option, selected = isSelected, - onClick = { onSelected(option) }, - modifier = Modifier.widthIn(min = 48.dp).heightIn(min = 48.dp), - label = { - Text( - option, - fontSize = 12.sp, - fontWeight = if (isSelected) FontWeight.SemiBold else FontWeight.Medium, - maxLines = 1, - softWrap = false - ) - } + onClick = { onSelected(option) } ) } } @@ -4308,23 +4329,26 @@ private fun AppearanceGlassEditor( Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()), horizontalArrangement = Arrangement.spacedBy(8.dp) ) { - FilterChip( + GlassFilterPill( + label = "Clear", selected = selectedPreset == "Clear", onClick = { applyPreset(0.12f) }, - modifier = Modifier.heightIn(min = 48.dp), - label = { Text("Clear") } + glassAlpha = previewGlassAlpha, + reduceTransparency = reduceTransparency ) - FilterChip( + GlassFilterPill( + label = "Balanced", selected = selectedPreset == "Balanced", onClick = { applyPreset(0.32f) }, - modifier = Modifier.heightIn(min = 48.dp), - label = { Text("Balanced") } + glassAlpha = previewGlassAlpha, + reduceTransparency = reduceTransparency ) - FilterChip( + GlassFilterPill( + label = "Frosted", selected = selectedPreset == "Frosted", onClick = { applyPreset(0.55f) }, - modifier = Modifier.heightIn(min = 48.dp), - label = { Text("Frosted") } + glassAlpha = previewGlassAlpha, + reduceTransparency = reduceTransparency ) } Row( diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index eecb96d2..a6fa3b27 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -133,4 +133,52 @@ class GlassSurfacePolicyTest { ) } + @Test + fun filterPillsTrackClearFrostedIntensityAndSelectionHierarchy() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + + assertEquals(0.14f, GlassSurfacePolicy.filterPillFillAlpha(clear, true, false), 0.0001f) + assertEquals(0.22f, GlassSurfacePolicy.filterPillFillAlpha(frosted, true, false), 0.0001f) + assertEquals(0.04f, GlassSurfacePolicy.filterPillFillAlpha(clear, false, false), 0.0001f) + assertEquals(0.06f, GlassSurfacePolicy.filterPillFillAlpha(frosted, false, false), 0.0001f) + assertEquals(0.36f, GlassSurfacePolicy.filterPillBorderAlpha(clear, true, false), 0.0001f) + assertEquals(0.46f, GlassSurfacePolicy.filterPillBorderAlpha(frosted, true, false), 0.0001f) + assertEquals(0.18f, GlassSurfacePolicy.filterPillBorderAlpha(clear, false, false), 0.0001f) + assertEquals(0.24f, GlassSurfacePolicy.filterPillBorderAlpha(frosted, false, false), 0.0001f) + + assertTrue(GlassSurfacePolicy.filterPillFillAlpha(clear, true, false) > + GlassSurfacePolicy.filterPillFillAlpha(clear, false, false)) + assertTrue(GlassSurfacePolicy.filterPillBorderAlpha(clear, true, false) > + GlassSurfacePolicy.filterPillBorderAlpha(clear, false, false)) + } + + @Test + fun filterPillsUseHigherContrastStaticFallbackWhenTransparencyIsReduced() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + assertEquals(0.24f, GlassSurfacePolicy.filterPillFillAlpha(clear, true, true), 0.0001f) + assertEquals(0.10f, GlassSurfacePolicy.filterPillFillAlpha(clear, false, true), 0.0001f) + assertEquals(0.48f, GlassSurfacePolicy.filterPillBorderAlpha(clear, true, true), 0.0001f) + assertEquals(0.30f, GlassSurfacePolicy.filterPillBorderAlpha(clear, false, true), 0.0001f) + assertEquals(16f, GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP, 0f) + } + + @Test + fun nonFiniteFilterPillIntensityUsesTheDefaultPreference() { + assertEquals( + GlassSurfacePolicy.filterPillFillAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, true, false + ), + GlassSurfacePolicy.filterPillFillAlpha(Float.NaN, true, false), + 0.0001f + ) + assertEquals( + GlassSurfacePolicy.filterPillBorderAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, false, false + ), + GlassSurfacePolicy.filterPillBorderAlpha(Float.POSITIVE_INFINITY, false, false), + 0.0001f + ) + } + } From 7ee0976c18c2987854f870b51d5531e9b9185fe6 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 08:36:48 +0530 Subject: [PATCH 128/175] docs: record unified glass filter control batch --- docs/BRANCH_CONSOLIDATION.md | 40 +++++++++++++++++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 26 +++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 77cbac49..6dfc0b09 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,43 @@ +# Latest live freshness and integration audit — 8 November 2026 + +**Repository:** `Batmancpu/CurrentLens` +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected active line:** `black-box-bihar-news@a15984673f0b2c8b3cc032a38cfc7d08cdddc87b`; parent/source baseline `df5a75cff6fe9e75570d5daec64cf3d1db8ae726`. +**PR:** #34 remains open/draft, base `main`; no merge, retarget or main write. The active line is 130 ahead / 0 behind main and 73 ahead / 0 behind PR #16's corrected Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Inventory:** 41 remote branches; 38 PRs (24 open, 14 closed). Page 1 contained all branches/PRs; page 2 was empty for branches, open PRs and closed PRs. The current owner-selected line remains the newest coherent integration baseline, not a timestamp-only choice. + +## Relevant branch and PR dispositions + +- `black-box-bihar-news` is the only branch modified by this task. Its current code commit is `a15984673f0b2c8b3cc032a38cfc7d08cdddc87b`. +- `main` remains unchanged. PR #16 remains the corrected background-only Prismal/stability ancestor; PR #34 is the single draft consolidation PR. +- `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` is divergent (4 ahead / 35 behind); its earlier supporting-glass and Saved/You implementation is superseded by the active branch's evolved policy and screen coverage. +- PR #37 / `fix/search-clear-row-scope-compile-2026-11-08` is 6 ahead / 10 behind from its merge base; the RowScope repair and 48dp Search clear control are already present in active `MainActivity.kt`. Its remaining delta is handoff/ledger documentation, not a newer UI baseline. +- PR #36's Asia/Kolkata midnight feed refresh remains a separate MainActivity/date-policy change; PR #35's bounded startup diagnostic reads remain a separate diagnostics change. Neither is needed for this filter-control batch. +- PR #38's bounded RSS parser proposal remains unported: natural run #288 failed two `NewsRepositoryTest` cases and no APK artifact was uploaded. The failure is outside the UI branch. +- PRs #30 (48dp icon targets) and #31 (off-main appearance preference restore) are represented in the active code. PR #13's conservative shared adaptive-contrast probe remains one 8×8 source at 4s/6s cadence, paused during feed motion and non-home/background states; no second sampler was added. +- PRs #32/#33 still need joint `NewsRepository` parsing/concurrency review; PRs #25/#26 need a joint publisher asset/subresource host-security review. PR #27 remains newer editorial-only work. These are not UI baselines and were not blindly ported. + +## Natural CI, workflow and Release state + +- Actions history before the new code commit: 296 runs fully paginated (100 + 100 + 96; page 4 empty): 177 success, 64 failure, 55 cancelled. No older queued/in-progress runs remained. +- Exact parent-head runs #295 (push) and #296 (pull_request) passed on `df5a75cff6fe9e75570d5daec64cf3d1db8ae726`. Both completed WordNet builder 4/4, 151,456-word database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload. Artifacts: #295 `13600453110` (39,111,082 bytes; SHA-256 `56a1e963541407d28c87dac55cf77761e4dee58fbe2805ad5d8ee29059842c80`); #296 `13600826632` (39,111,083 bytes; SHA-256 `47de6ba07042d58f1539f28689b567f0c72f9cc610faed96dc759b6f3165e3cb`). +- New code head `a15984673f0b2c8b3cc032a38cfc7d08cdddc87b` triggered natural push run #297 and PR run #298; both were in progress at this audit. The parent runs do **not** validate this new commit. +- Active integration workflow `.github/workflows/build-apk.yml` uses read-only build/test permissions, natural push/PR triggers for the integration line and a separate main-push-only Release-write job. No manual dispatch/rerun was used. Main's workflow remains push-only; do not overstate PR-to-main validation. +- Latest published Release remains `v0.2.0-build-116`. No Release was created. + +## Latest implementation batch — filter-control material consistency + +- `GlassFilterPill` now unifies selected/unselected control styling across Search's filter sheet, Saved, Reading Stats, Quiz & Practice Stats and Appearance presets. Choice pills use RadioButton selected semantics and minimum 48dp width/height; Search's Filters action now has a 48dp minimum height. +- Fill/rim alpha follows Clear↔Frosted and uses higher static opacity floors when Reduce Transparency is enabled. Full option labels remain horizontally scrollable. +- The change adds only static fills/borders inside existing parent glass surfaces. No new Prismal surface, backdrop capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, network request or persistence path was added. +- Added pure JVM coverage for intensity endpoints, selected-state hierarchy, reduced-transparency fallback and non-finite preference fallback. Exact-head CI is pending on #297/#298. + +## Device and safety status + +OPPO Reno10 launch, screenshots, visual fidelity, TalkBack, font scaling, Reduce Motion, IME/safe areas, scroll smoothness, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. CI does not establish device launch stability or performance. No main write, PR merge/retarget, Release publication, package/app identity change, source-branch mutation or branch deletion occurred. + +--- + # Live branch inventory and freshness decision — 8 November 2026, 07:41 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index ae2ee500..d6e5133e 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,29 @@ +# Live implementation batch — Unified glass filter-control hierarchy +**Audit:** 8 November 2026 +**Active branch / PR:** `black-box-bihar-news`; code commit `a15984673f0b2c8b3cc032a38cfc7d08cdddc87b`; PR #34 remains open/draft against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Source baseline:** `black-box-bihar-news@df5a75cff6fe9e75570d5daec64cf3d1db8ae726`; the implementation is a direct child. The selected line is 130 commits ahead / 0 behind main and 73 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. + +- **Freshness gate:** 41 remote branches and 38 PRs (24 open, 14 closed) were fully paginated. No newer coherent UI baseline supersedes the owner-selected integration line. `brrrNEWS` is a divergent sibling (4 ahead / 35 behind); its earlier supporting-glass implementation is superseded by the more complete current `GlassSurfacePolicy` and shared card system. PR #37's Search RowScope compile repair is already present. PR #36's IST-midnight feed refresh and PR #35's bounded diagnostic reads remain separate changes; PR #38's RSS parser proposal is unported after its natural test failure. PRs #30 (48dp targets) and #31 (off-main appearance restore) are already represented in the active line. +- **Implementation:** introduced one reusable `GlassFilterPill` for Search's filter sheet, Saved, Reading Stats, Quiz & Practice Stats, and Appearance presets. Selected and unselected fills/rims track Clear↔Frosted intensity; Reduce Transparency applies stronger static contrast floors. The Search “Filters” action now has a 48dp minimum height. +- **Accessibility:** each choice pill exposes RadioButton role and selected state, has a minimum 48dp width and height, and keeps full labels in horizontally scrollable rows rather than truncating them. Appearance presets use the live preview intensity, not a stale committed value. +- **Paired optimization:** the pills use static tint and border inside the already-existing `GlassFilterGroup` / `PrismalTransientSurface`; no new Prismal surface, backdrop capture/readback, blur, refraction, shader, graphics layer, image decode, dependency, network request or persistence path was added. No per-chip live glass effect was introduced. +- **Tests:** `GlassSurfacePolicyTest` now covers Clear/Frosted endpoints, selected-vs-unselected hierarchy, reduced-transparency floors, non-finite preference fallback and the shared 16dp pill geometry. +- **Natural CI:** exact code head `a15984673f0b2c8b3cc032a38cfc7d08cdddc87b` triggered push run #297 and PR run #298; both were in progress at this documentation sync, so no pass is claimed. The parent head `df5a75cff6fe9e75570d5daec64cf3d1db8ae726` passed natural runs #295 (push) and #296 (PR): WordNet builder 4/4, 151,456-word offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload. Parent artifacts: #295 `13600453110` (39,111,082 bytes; SHA-256 `56a1e963541407d28c87dac55cf77761e4dee58fbe2805ad5d8ee29059842c80`); #296 `13600826632` (39,111,083 bytes; SHA-256 `47de6ba07042d58f1539f28689b567f0c72f9cc610faed96dc759b6f3165e3cb`). Those runs validate the parent, not the new filter code. +- **Actions / workflow:** 296 runs were fully paginated (100 + 100 + 96; page 4 empty): 177 success, 64 failure, 55 cancelled. Before #297/#298 there were no queued or in-progress runs; the two new exact-head runs are the only active work observed. The integration workflow keeps build/test read-only and Release write isolated to main pushes; no manual dispatch/rerun was used. +- **Release:** latest published tag remains `v0.2.0-build-116`; no Release was published. +- **Device / performance:** OPPO Reno10 screenshots, TalkBack, font scaling, Reduce Motion, IME/safe-area behaviour, frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. Source inspection establishes only that this batch adds static fills/rims and no new live render pass; no measured performance gain is claimed. +- **Next:** inspect the natural #297/#298 results on this exact code head, then continue the whole-app filter/secondary-screen consistency audit. No merge, main write, retarget, branch deletion, source-branch mutation or Release publication. + +## Coverage and paired-cost matrix — current filter batch + +| Screen/component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| Search filter sheet | Interactive control glass; active filter choices need an unmistakable selected state | Static pill fill/rim inside its existing single transient glass surface | Shared `GlassFilterPill` and `GlassSurfacePolicy`; Reduce Transparency raises fill/rim | RadioButton role, selected state, 48dp minimum, horizontal scrolling; policy JVM tests | No new live effect; device metrics UNVERIFIED | +| Saved / Reading Stats / Quiz Stats filters | Interactive control glass; distinguish Date, GS paper and Subject without adding more glass groups | Static pill fill/rim inside each existing shared `GlassFilterGroup` | Same helper and intensity policy; full option labels remain horizontally scrollable | RadioButton role, selected state, 48dp minimum; policy JVM tests | No new capture/readback; device metrics UNVERIFIED | +| Appearance presets | Interactive control glass; Clear/Balanced/Frosted should match the live slider preview | Static fill/rim inside the existing Appearance control card | Explicit preview intensity and reduced-transparency state; no extra backdrop consumer | RadioButton role, selected state, 48dp minimum; policy JVM tests | No new live effect; device metrics UNVERIFIED | + +--- + # Live implementation batch — Shared shell optical clarity and compact-mode source lifecycle **Freshness audit:** 8 November 2026, 07:41 IST; **latest code/test-fix head:** 8 November 2026, 07:50 IST; **exact-head CI completed:** 08:23 IST. From 748683f156ea05f650a49603f86750e8902551ed Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 09:33:34 +0530 Subject: [PATCH 129/175] ui(appearance): unify editor panel with supporting glass --- .../mangoloads/currentlens/MainActivity.kt | 9 +- docs/BRANCH_CONSOLIDATION.md | 86 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 26 ++++++ 3 files changed, 115 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 14ce0af4..e4ddec3b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4288,12 +4288,9 @@ private fun AppearanceGlassEditor( } Column(verticalArrangement = Arrangement.spacedBy(14.dp)) { - Card( - modifier = Modifier.fillMaxWidth(), - shape = RoundedCornerShape(24.dp), - colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), - elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) - ) { + // This interactive panel uses the shared static supporting-glass tier. + // The compact preview below remains the only live Prismal surface in this editor. + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { Column(Modifier.fillMaxWidth().padding(18.dp), verticalArrangement = Arrangement.spacedBy(12.dp)) { Column(verticalArrangement = Arrangement.spacedBy(3.dp)) { Text("Liquid Glass", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 6dfc0b09..36beb007 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,89 @@ +# Live branch-freshness, CI and consolidation audit — 8 November 2026, 09:27 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected active line:** `black-box-bihar-news@7ee0976c18c2987854f870b51d5531e9b9185fe6`; PR #34 is open/draft, head on this branch and base `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Ancestry:** current active head is **131 ahead / 0 behind main** and **74 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. The active branch remains the authoritative consolidated lineage; no newer coherent UI source supersedes it. +**Inventory:** 41 remote branches (page 1: 41; page 2: 0); 38 PRs (24 open, 14 closed). All branch head SHAs, latest commit UTC timestamps/messages and PR relationships are listed below. + +## Complete current remote branch inventory + +| Branch | Head SHA | Latest commit UTC | Latest commit subject | PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open head; based on black-box | +| `black-box-bihar-news` | `7ee0976c18c2987854f870b51d5531e9b9185fe6` | 2026-11-08 03:06Z | docs: record unified glass filter control batch | PR #34 open head; base for open #11, #25–27, #29–33, #35–38 | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of open PR #24; divergent sibling | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open head; based on main | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed/unmerged; head equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53Z | fix: refresh article card metadata when feed content changes | PR #6 open head; based on main | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14Z | fix: select Atom article alternate links deterministically | PR #12 open head; based on main | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open head; based on black-box | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33Z | fix: minimise shareable process-exit diagnostics | PR #16 open head; corrected Prismal/stability ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30Z | test(editorial): cover reality TV and television promotion | PR #27 open head; editorial-only | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open head; based on main | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46Z | fix(editorial): match policy action and target as separate words | PR #24 open head; based on brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16Z | test: align economy signal count with repo-rate mapping | PR #2 closed/merged | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34Z | fix: tighten UPSC editorial signal matching | PR #1 closed/merged | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27Z | fix: use supported calendar navigation glyph | PR #5 closed/merged | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49Z | test: preserve Parliament bill headline variants | PR #23 closed/merged into black-box | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15Z | Validate RSS redirects against publisher allowlists | PR #15 closed; superseded by PR #16 guards | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12Z | fix(quiz): qualify selected semantics receiver | PR #28 closed/merged into black-box | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59Z | test(rss): correct relative xml base fixture | PR #33 open head; based on black-box | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28Z | test(reader): cover publisher-only image resources | PR #25 open head; based on black-box | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42Z | fix: deduplicate RSS tracking URL variants | PR #17 open head; based on main | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55Z | docs: record verified search clear compile repair | PR #37 open head; code repair already ported | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44Z | fix: capture Search glass tint before draw callback | PR #10 closed/merged | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 closed/merged | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed/merged | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open head; based on older black-box head | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | Default branch; base for open #6, #8, #12, #13, #16, #17, #18, #21 | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31Z | fix(test): correct RSS budget test identifier | PR #38 open head; based on older black-box head | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34Z | Record successful bounded-diagnostic CI | PR #35 open head; based on older black-box head | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53Z | Verify legacy markers survive recent-history retention | PR #22 open head; base is PR #8 branch | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29Z | docs: record bounded RSS fetch review and CI state | PR #32 open head; based on black-box | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open head; code represented in black-box | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open head; based on black-box | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50Z | perf: move read-marker persistence off main thread | PR #8 open head; base for PR #22 | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27Z | privacy: block third-party publisher reader subresources | PR #26 open head; based on black-box | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31Z | fix: make selection decoding fallback valid JSON | No open PR; stale 225 commits behind active line | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open head; code selectively represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25Z | fix: import bottom navigation glyphs | PR #4 closed/unmerged; stale divergent UI branch | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11Z | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18Z | fix: finish syllabus metadata and thin-film feed eligibility | No open PR; ancestor/continuation of the consolidated line | + +## Freshness comparisons and source dispositions + +- **Active integration:** `black-box-bihar-news@7ee0976c18c2987854f870b51d5531e9b9185fe6`; PR #34 remains the single draft consolidation PR. Its current full diff is 74 files (9,567 additions / 813 deletions). No main write or merge. +- **PR #16:** corrected background-only Prismal capture and stability baseline is an ancestor; active branch is 74 commits ahead of it. PR #19 Reader work and PR #20 read-only stacked workflow were consolidated into this branch only; their source branches remain. +- **PR #37 Search clear:** head `9dd4ceac08e88e6ee4ea565025a70539a6e9e331`, 6 ahead / 12 behind active. The direct code change (fixed 48dp trailing slot uses Row for the `AnimatedVisibility` RowScope) is already present in current `MainActivity.kt`; its remaining distinct work is handoff/ledger documentation. Do not port it again. +- **PR #38 bounded RSS entries:** head `adade1ed8494c66b7e567de87f61f3dac3da7788`, 8 ahead / 6 behind active; its diff is limited to `FeedEntryBudgetPolicy.kt`, `NewsRepository.kt` and `NewsRepositoryTest.kt`. Natural PR run #306 passed on that exact head, but this parser change is not UI work and overlaps PR #32/#33's `NewsRepository` concurrency/relative-link changes; leave it separate for joint review. +- **PR #36 IST rollover:** 3 ahead / 13 behind; separate `AsiaKolkataDayPolicy` plus `MainActivity` date refresh. **PR #35 diagnostic reads:** 6 ahead / 21 behind; diagnostics-only. Neither replaces the UI baseline. +- **PR #30 / #31:** their 48dp target policy and off-main appearance preference restore are already represented in active code. PR #13's conservative single 8×8 adaptive-luminance probe is integrated with 4s/6s cadence and paused during feed motion/non-home states. +- **Other independent work:** PR #27 is newer editorial-only work (46 ahead / 32 behind); PRs #25/#26 require joint publisher image/subresource security review; PRs #32/#33 require joint feed parser/concurrency review. PR #11/#12/#17 selected cache/provenance/Atom/URL-identity work is already selectively ported. PR #8/#22 persistence is reconciled with legacy-marker preservation. PR #6/#21 editorial changes are represented. Do not blindly cherry-pick or merge these branches. +- **Superseded/divergent UI candidates:** `brrrNEWS` is 4 ahead / 37 behind and divergent; `ui/liquid-glass-performance` is 3 ahead / 149 behind; `redesign/v0.3-search-reader` is 0 ahead / 225 behind; `ui/liquid-glass-system-continuation` is an ancestor 47 commits behind. None is a safer current UI baseline. +- **Open PRs:** #6, #8, #11, #12, #13, #16, #17, #18, #21, #22, #24, #25, #26, #27, #29, #30, #31, #32, #33, #34, #35, #36, #37, #38. **Closed PRs:** #1–5, #7, #9, #10, #14, #15, #19, #20, #23, #28 (14 total). + +## Current natural Actions evidence + +- Actions history is fully paginated: 306 runs, 181 success, 65 failure, 60 cancelled; no queued or in-progress runs. +- Active branch exact parent head `7ee0976c18c2987854f870b51d5531e9b9185fe6`: push run [#299](https://github.com/Batmancpu/CurrentLens/actions/runs/42441329214) and PR run [#300](https://github.com/Batmancpu/CurrentLens/actions/runs/42441332518) both passed. WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload all succeeded. Artifacts #13601299645 and #13602145334: 39,112,177 bytes each; Release jobs skipped. +- Latest global run [#306](https://github.com/Batmancpu/CurrentLens/actions/runs/42443089324) passed on PR #38 head `adade1ed8494c66b7e567de87f61f3dac3da7788`; artifact #13602895434, 39,112,397 bytes. It does not validate the active UI branch. +- The integration workflow `.github/workflows/build-apk.yml` has read-only build/test permissions and a separate main-push-only Release-write job; main's own workflow remains push-only. No manual dispatch/rerun or Release publication. +- Latest published testing prerelease is `v0.2.0-build-116` (6 November 2026). No new Release. + +## Current UI iteration + +- On verified source head `7ee0976c18c2987854f870b51d5531e9b9185fe6`, the Appearance editor's plain `surfaceVariant` Material card was replaced by the shared `SupportingGlassCard`. It now uses the same 22dp continuous geometry, static intensity-driven tint/rim and near-opaque content surface as the other supporting panels. +- The single compact Appearance preview remains the only live Prismal surface in that editor. No extra backdrop source, blur/refraction, shader, sampler/readback, graphics layer, image decode, dependency, network or persistence path was added. +- Exact new-head CI is pending; parent runs #299/#300 are not substitutes. OPPO Reno10 launch/visual/accessibility/performance checks remain UNVERIFIED. + +## Safety and next step + +No main edit, merge, retarget, manual dispatch/rerun, Release publication, source-branch mutation/deletion, package identity change or privacy/network expansion. Continue only on `black-box-bihar-news`, after the next exact-head natural CI result is inspected. Preserve four destinations, Saved inside You, offline WordNet, local-first privacy, Asia/Kolkata dates, foreground-only reading tracking and submit-only quiz persistence. + +--- + # Latest live freshness and integration audit — 8 November 2026 **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index d6e5133e..2272da37 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,29 @@ +# Live implementation batch — Appearance editor supporting-material parity +**Audit:** 8 November 2026, 09:27 IST +**Active branch / PR:** `black-box-bihar-news@7ee0976c18c2987854f870b51d5531e9b9185fe6`; PR #34 remains open/draft against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The active line is **131 commits ahead / 0 behind main** and **74 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. + +- **Freshness gate:** all 41 remote branches were enumerated (page 1: 41; page 2: 0), and all 38 PRs were reviewed (24 open, 14 closed). The current owner-selected integration line remains the latest coherent UI baseline; the complete current branch/head/timestamp/PR map is recorded in `docs/BRANCH_CONSOLIDATION.md`. PR #37's RowScope Search-clear repair is already present in the active `MainActivity.kt`. PR #38 is newer parser-only work; its exact head passed natural run #306, but it remains separate because it overlaps the `NewsRepository` parsing/concurrency work in PRs #32/#33. PR #36 (IST date rollover) and #35 (diagnostic-read bounds) remain independent. PRs #30/#31 are already represented. The divergent `brrrNEWS`, old `ui/liquid-glass-performance`, and `redesign/v0.3-search-reader` branches are not newer UI baselines. +- **Source review:** re-read the full `AppearanceGlassEditor`, `GlassSettingsScreen`, `SupportingGlassCard`, shared `GlassSurfacePolicy`, root appearance state and complete `MainActivity.kt`. The Appearance editor's primary controls card was still a plain Material `surfaceVariant` card, while its explanatory panel and the rest of You/Stats already used the shared supporting material. +- **Implementation:** replaced only the Appearance editor's plain card wrapper with `SupportingGlassCard`. The control panel now shares the same 22dp continuous geometry, theme-aware near-opaque content surface, Clear↔Frosted tint and cached rim/tint brushes as the rest of the supporting system. The slider, Clear/Balanced/Frosted presets, Reduce Transparency switch, child-local preview state and save-on-release/preset semantics are unchanged. +- **Material hierarchy:** the editor controls use tier 3 supporting glass; the miniature Search/navigation preview below remains the screen's single tier 1/2 live `PrismalTransientSurface`; the article sample remains a calm, readable supporting content surface. No second live blur panel was introduced. +- **Paired optimization:** one settings-only card now draws the existing static tint gradient and rim through `SupportingGlassCard`; its brushes are remembered by theme/intensity. No additional Prismal surface, backdrop capture/readback, blur, refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence path. This is a source-level cost assessment, not a measured GPU/frame/memory/battery improvement. +- **Accessibility / state:** the existing slider and presets retain 48dp minimum interaction sizing and descriptive semantics; Reduce Transparency continues to remove live blur/refraction/adaptive sampling. Dragging remains editor-local; app-wide preference persists only on release or preset selection. No quiz, reader, navigation, filter or content semantics changed. +- **Tests:** no new policy was introduced. Existing `GlassSurfacePolicyTest` covers supporting-surface opacity, Clear/Frosted endpoints, non-finite fallback, preview contrast and supporting-card geometry. The new head still requires its own natural CI. +- **Parent exact-head CI:** natural push run [#299](https://github.com/Batmancpu/CurrentLens/actions/runs/42441329214) and pull-request run [#300](https://github.com/Batmancpu/CurrentLens/actions/runs/42441332518) both passed on parent `7ee0976c18c2987854f870b51d5531e9b9185fe6`. WordNet generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload succeeded; artifacts #13601299645 and #13602145334 were each 39,112,177 bytes. Publish jobs skipped. These validate the parent, not this new card change. +- **Latest separate CI:** run [#306](https://github.com/Batmancpu/CurrentLens/actions/runs/42443089324) passed on PR #38 parser head `adade1ed8494c66b7e567de87f61f3dac3da7788`; artifact #13602895434 (39,112,397 bytes). It is not a test of the UI branch. +- **Actions / workflow:** 306 runs fully paginated (100 + 100 + 100 + 6): 181 success, 65 failure, 60 cancelled; no queued or in-progress runs. The integration workflow keeps build/test permissions read-only and Release write isolated to main pushes. Main's own workflow remains push-only; no future PR-to-main validation is inferred from a branch push. +- **Release:** latest published testing prerelease remains `v0.2.0-build-116` (6 November 2026); no Release was published by these runs. +- **Device / performance:** OPPO Reno10 launch, Appearance screenshots, TalkBack, font scaling, Reduce Motion, IME/safe-area behaviour, frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No smoothness or battery improvement is claimed. +- **Next:** inspect the natural push/PR runs on the new exact head; after they complete, continue the remaining whole-app consistency pass. No merge, main write, retarget, manual dispatch/rerun, Release publication, package change, source-branch mutation or branch deletion. + +## Coverage and paired-cost matrix — Appearance editor +| Screen/component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| Appearance control panel | Tier 3 supporting glass; an interactive settings panel should share the app's material language without becoming a large live blur | One static tint/rim on the existing settings card; no new live capture | Shared `SupportingGlassCard`, `GlassSurfacePolicy`, remembered brushes; near-opaque content fallback | Slider/presets remain 48dp; Reduce Transparency switch and existing policy tests | No new live pass; device metrics UNVERIFIED | +| Appearance miniature preview | Tier 1/2 live control glass; demonstrates Clear↔Frosted navigation/search | One existing compact `PrismalTransientSurface`; static child controls and article sample | Shared intensity tokens; no nested glass consumer | Existing slider, preset and reduced-transparency semantics | No new capture/readback; device metrics UNVERIFIED | + +--- + # Live implementation batch — Unified glass filter-control hierarchy **Audit:** 8 November 2026 **Active branch / PR:** `black-box-bihar-news`; code commit `a15984673f0b2c8b3cc032a38cfc7d08cdddc87b`; PR #34 remains open/draft against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. From 45a3264319dfb16cd43a6912a354c1625054c8dc Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 10:32:32 +0530 Subject: [PATCH 130/175] ui(search): align filter action with shared glass controls --- .../currentlens/GlassSurfacePolicy.kt | 28 ++++++++++ .../mangoloads/currentlens/MainActivity.kt | 56 ++++++++++++++++--- .../currentlens/GlassSurfacePolicyTest.kt | 43 ++++++++++++++ 3 files changed, 120 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 610665a0..94eaa7f8 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -89,6 +89,34 @@ internal object GlassSurfacePolicy { return (if (reduceTransparency) maxOf(alpha, minimum) else alpha).coerceIn(0f, 1f) } + + /** + * Search's filter-sheet entry point is an action, not a choice chip. Give it a + * slightly stronger static rim/fill so it remains discoverable inside the + * existing shared glass header without adding another live material surface. + */ + fun actionPillFillAlpha( + glassAlpha: Float, + selected: Boolean, + reduceTransparency: Boolean + ): Float { + val progress = intensityProgress(glassAlpha) + val alpha = if (selected) 0.16f + 0.06f * progress else 0.08f + 0.04f * progress + val minimum = if (selected) 0.28f else 0.16f + return (if (reduceTransparency) maxOf(alpha, minimum) else alpha).coerceIn(0f, 1f) + } + + fun actionPillBorderAlpha( + glassAlpha: Float, + selected: Boolean, + reduceTransparency: Boolean + ): Float { + val progress = intensityProgress(glassAlpha) + val alpha = if (selected) 0.42f + 0.10f * progress else 0.24f + 0.08f * progress + val minimum = if (selected) 0.54f else 0.38f + return (if (reduceTransparency) maxOf(alpha, minimum) else alpha).coerceIn(0f, 1f) + } + private fun intensityProgress(glassAlpha: Float): Float { val normalized = AppearancePreferencesPolicy.normalizeGlassAlpha(glassAlpha) return ((normalized - AppearancePreferencesPolicy.MIN_GLASS_ALPHA) / diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index e4ddec3b..2ec13b47 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -100,7 +100,6 @@ import androidx.compose.material3.CardDefaults import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.DropdownMenu import androidx.compose.material3.DropdownMenuItem -import androidx.compose.material3.FilterChip import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton @@ -1451,16 +1450,13 @@ private fun SearchFeed( overflow = TextOverflow.Ellipsis ) } - FilterChip( + GlassActionPill( + label = if (activeFilterCount == 0) "Filters" else "Filters · $activeFilterCount", selected = activeFilterCount > 0, + icon = Icons.Outlined.Tune, onClick = { keyboardController?.hide() showFilters = true - }, - modifier = Modifier.heightIn(min = 48.dp), - label = { Text(if (activeFilterCount == 0) "Filters" else "Filters · $activeFilterCount") }, - leadingIcon = { - Icon(Icons.Outlined.Tune, contentDescription = null, modifier = Modifier.size(16.dp)) } ) } @@ -2021,6 +2017,52 @@ private fun GlassFilterPill( } } +@Composable +private fun GlassActionPill( + label: String, + selected: Boolean, + icon: ImageVector, + onClick: () -> Unit +) { + val colors = MaterialTheme.colorScheme + val intensity = LocalGlassIntensity.current + val reduceTransparency = LocalGlassReduceTransparency.current + val fillAlpha = GlassSurfacePolicy.actionPillFillAlpha(intensity, selected, reduceTransparency) + val borderAlpha = GlassSurfacePolicy.actionPillBorderAlpha(intensity, selected, reduceTransparency) + val shape = remember { RoundedCornerShape(GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP.dp) } + val fill = (if (selected) colors.primary else colors.surface).copy(alpha = fillAlpha) + val rim = (if (selected) colors.primary else colors.outline).copy(alpha = borderAlpha) + + Row( + Modifier.clip(shape) + .background(fill) + .border(1.dp, rim, shape) + .clickable(role = Role.Button, onClick = onClick) + .heightIn(min = TouchTargetPolicy.MIN_ICON_TARGET_DP.dp) + .semantics { + stateDescription = if (selected) "Filters active" else "No filters active" + } + .padding(horizontal = 12.dp, vertical = 8.dp), + horizontalArrangement = Arrangement.spacedBy(6.dp), + verticalAlignment = Alignment.CenterVertically + ) { + Icon( + icon, + contentDescription = null, + tint = if (selected) colors.primary else colors.onSurfaceVariant, + modifier = Modifier.size(16.dp) + ) + Text( + label, + style = MaterialTheme.typography.labelLarge, + fontWeight = if (selected) FontWeight.SemiBold else FontWeight.Medium, + color = if (selected) colors.onSurface else colors.onSurfaceVariant, + maxLines = 1, + softWrap = false + ) + } +} + @Composable private fun FilterChipRow( title: String, diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index a6fa3b27..440ae976 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -163,6 +163,49 @@ class GlassSurfacePolicyTest { assertEquals(16f, GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP, 0f) } + + @Test + fun searchActionPillHasAVisibleIdleStateAndStrongerActiveState() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + + assertEquals(0.08f, GlassSurfacePolicy.actionPillFillAlpha(clear, false, false), 0.0001f) + assertEquals(0.12f, GlassSurfacePolicy.actionPillFillAlpha(frosted, false, false), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.actionPillFillAlpha(clear, true, false), 0.0001f) + assertEquals(0.22f, GlassSurfacePolicy.actionPillFillAlpha(frosted, true, false), 0.0001f) + assertEquals(0.24f, GlassSurfacePolicy.actionPillBorderAlpha(clear, false, false), 0.0001f) + assertEquals(0.32f, GlassSurfacePolicy.actionPillBorderAlpha(frosted, false, false), 0.0001f) + assertEquals(0.42f, GlassSurfacePolicy.actionPillBorderAlpha(clear, true, false), 0.0001f) + assertEquals(0.52f, GlassSurfacePolicy.actionPillBorderAlpha(frosted, true, false), 0.0001f) + assertTrue(GlassSurfacePolicy.actionPillFillAlpha(clear, true, false) > + GlassSurfacePolicy.actionPillFillAlpha(clear, false, false)) + assertTrue(GlassSurfacePolicy.actionPillBorderAlpha(clear, true, false) > + GlassSurfacePolicy.actionPillBorderAlpha(clear, false, false)) + } + + @Test + fun searchActionPillUsesHighContrastFallbackAndDefaultForNonFiniteIntensity() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + assertEquals(0.16f, GlassSurfacePolicy.actionPillFillAlpha(clear, false, true), 0.0001f) + assertEquals(0.28f, GlassSurfacePolicy.actionPillFillAlpha(clear, true, true), 0.0001f) + assertEquals(0.38f, GlassSurfacePolicy.actionPillBorderAlpha(clear, false, true), 0.0001f) + assertEquals(0.54f, GlassSurfacePolicy.actionPillBorderAlpha(clear, true, true), 0.0001f) + assertEquals( + GlassSurfacePolicy.actionPillFillAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, true, false + ), + GlassSurfacePolicy.actionPillFillAlpha(Float.NaN, true, false), + 0.0001f + ) + assertEquals( + GlassSurfacePolicy.actionPillBorderAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, false, false + ), + GlassSurfacePolicy.actionPillBorderAlpha(Float.POSITIVE_INFINITY, false, false), + 0.0001f + ) + } + @Test fun nonFiniteFilterPillIntensityUsesTheDefaultPreference() { assertEquals( From 35b290226a0b480390611a20e1d8081b4c567180 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 10:33:55 +0530 Subject: [PATCH 131/175] docs(ui): record Search glass action batch and branch audit --- docs/BRANCH_CONSOLIDATION.md | 37 ++++++++++++++++++++++++++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 24 +++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 36beb007..4d3609fe 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,38 @@ +# Live branch, PR, CI and implementation audit — 8 November 2026, 10:27 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default branch:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected active line:** `black-box-bihar-news@45a3264319dfb16cd43a6912a354c1625054c8dc`; PR #34 remains open/draft and targets main. +**Ancestry:** 133 ahead / 0 behind main (merge base main); 76 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 currently changes 74 files (9,782 additions / 806 deletions). +**Inventory:** 41 remote branches (page 1: 41, page 2: 0); 38 PRs (24 open, 14 closed). The full branch/head/timestamp/PR table below is current; the active branch row has been advanced to the new Search UI commit. + +## Freshness comparisons and source dispositions + +- The selected integration line is still the latest coherent UI baseline. Main and PR #16 heads are unchanged. No newer relevant UI branch supersedes it. +- PR #37 Search clear compile repair is already represented in active `MainActivity.kt`; its six-commit branch also carries continuity documentation. Do not port again. +- PR #38 remains parser-only and diverged (8 ahead / 7 behind); PR #36 is a separate Today date/index refresh (3 ahead / 14 behind); PR #35 is startup diagnostic bounds (6 ahead / 22 behind); PR #27 is editorial-only (46 ahead / 33 behind). These are not UI baselines. +- PR #32/#33 still overlap `NewsRepository.kt`; PR #25/#26 still require combined publisher image/subresource security review. PR #29/#30/#31 and PR #13's conservative shared luminance policy are already represented. Stale `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded. +- No source branch was modified, cherry-picked, deleted or merged. + +## Exact-head CI and workflow + +- Parent head `748683f156ea05f650a49603f86750e8902551ed` passed natural push run [#307](https://github.com/Batmancpu/CurrentLens/actions/runs/42445240820) and PR run [#308](https://github.com/Batmancpu/CurrentLens/actions/runs/42445244470). Both completed WordNet builder/database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; publish job skipped. PR artifact [#13602938183](https://github.com/Batmancpu/CurrentLens/actions/runs/42445244470/artifacts/13602938183): 39,111,930 bytes, SHA-256 `e5767c219b24cff2526bba8e4c94676e0a12cfe8a390a95738a5be31f4078138`. +- Exact Search code head `45a3264319dfb16cd43a6912a354c1625054c8dc` triggered natural push run [#309](https://github.com/Batmancpu/CurrentLens/actions/runs/42449182759) and PR run [#310](https://github.com/Batmancpu/CurrentLens/actions/runs/42449186429). At this audit both were in progress: #309 had completed checkout, Java, signing-key restore, Android SDK/platform, Gradle and WordNet generation; compile/JVM tests were running. #310 had completed setup and was generating WordNet. No exact-head pass/artifact yet; parent evidence is not a substitute. +- Queue: 0 queued. The integration workflow retains read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only; no PR-to-main validation is inferred. +- Latest published testing Release remains `v0.2.0-build-116`; no Release was published. + +## Search UI change + +- Search's Material3 FilterChip action is replaced by `GlassActionPill` inside the existing Search header glass group. The static fill/rim uses Clear↔Frosted and Reduce Transparency policy, 48dp minimum sizing, Button role and active-state semantics. Tapping preserves the existing hide-keyboard/open-filter-sheet behaviour. +- Added `actionPillFillAlpha` / `actionPillBorderAlpha` and JVM tests for intensity endpoints, active hierarchy, reduced-transparency floors and non-finite fallback. +- No new Prismal surface, capture/readback, blur/refraction, sampler, shader, graphics layer, decode, dependency, network, timer or persistence path. + +## Safety / device status + +No main write, merge, retarget, manual dispatch/rerun, Release publication, package identity change or source-branch mutation/deletion. OPPO Reno10 launch, screenshots, TalkBack, font scaling, Reduce Motion, IME, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. + +--- + # Live branch-freshness, CI and consolidation audit — 8 November 2026, 09:27 IST **Repository:** `Batmancpu/CurrentLens` @@ -11,7 +46,7 @@ | Branch | Head SHA | Latest commit UTC | Latest commit subject | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open head; based on black-box | -| `black-box-bihar-news` | `7ee0976c18c2987854f870b51d5531e9b9185fe6` | 2026-11-08 03:06Z | docs: record unified glass filter control batch | PR #34 open head; base for open #11, #25–27, #29–33, #35–38 | +| `black-box-bihar-news` | `45a3264319dfb16cd43a6912a354c1625054c8dc` | 2026-11-08 05:02Z | ui(search): align filter action with shared glass controls | PR #34 open head; base for open #11, #25–27, #29–33, #35–38 | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of open PR #24; divergent sibling | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open head; based on main | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 2272da37..e79b97fc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,27 @@ +# Live implementation batch — Search filter action material parity +**Audit:** 8 November 2026, 10:27 IST +**Source baseline:** `black-box-bihar-news@748683f156ea05f650a49603f86750e8902551ed` +**Code commit:** `45a3264319dfb16cd43a6912a354c1625054c8dc` (direct child of the source baseline) +**PR:** #34 remains open/draft, unmerged, based on `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The code head is 133 ahead / 0 behind main and 76 ahead / 0 behind PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. + +- **Freshness gate:** all 41 remote branches (page 1: 41, page 2: 0) and all 38 PRs (24 open, 14 closed) were re-enumerated. The owner-selected consolidated line remains the latest coherent UI baseline. PR #37's Search clear RowScope fix is already in the active SearchMorphField; its branch remains 6 ahead / 13 behind and was not replayed. PR #38 is parser-only (8 ahead / 7 behind, FeedEntryBudgetPolicy/NewsRepository/tests); PR #36 is a separate Asia/Kolkata date/index refresh (3 ahead / 14 behind); PR #35 is startup diagnostics; PR #27 is editorial-only. PRs #32/#33 still overlap NewsRepository and remain a joint review; PRs #25/#26 remain a joint publisher-resource security review. PRs #29/#30/#31 and PR #13's conservative adaptive-contrast policy are represented in the integration tree. No source branch was modified. +- **Implementation:** replaced SearchFeed's Material3 FilterChip action with one `GlassActionPill` inside the existing Search header glass group. It uses the shared Clear↔Frosted intensity and Reduce Transparency state, a static selected/idle tint and rim, a 48dp minimum target, Button role and explicit “Filters active” / “No filters active” state description. The active filter count remains visible in its label. Tapping still hides the keyboard and opens the existing filter sheet; category/GS/subject values and search query are unchanged. +- **Material hierarchy:** this is tier 2 interactive control glass within the existing single Search header surface. It is not another live Prismal surface and does not add a competing glass bar. +- **Paired optimization:** reuses the root background-only backdrop and existing Search header draw surface; only static fill/rim drawing was added. No additional capture/readback, blur/refraction, sampler, shader, graphics layer, image decode, dependency, polling, network request or persistence path. No GPU/frame/memory/battery improvement is claimed from source inspection. +- **Tests:** added `actionPillFillAlpha` / `actionPillBorderAlpha` to the existing `GlassSurfacePolicy`, with JVM coverage for Clear/Frosted endpoints, active-vs-idle hierarchy, Reduce Transparency floors and non-finite fallback. The Compose button itself has no screenshot test; natural Android compile/JVM CI is the integration check. +- **Natural CI:** code head `45a3264319dfb16cd43a6912a354c1625054c8dc` triggered push run [#309](https://github.com/Batmancpu/CurrentLens/actions/runs/42449182759) and PR run [#310](https://github.com/Batmancpu/CurrentLens/actions/runs/42449186429); both were in progress at this documentation sync. On #309, SDK/Gradle/WordNet steps passed and compile/JVM tests were running; #310 was still generating the offline WordNet database. No pass or artifact is claimed yet. Parent head `748683f156ea05f650a49603f86750e8902551ed` passed #307/#308; PR artifact [#13602938183](https://github.com/Batmancpu/CurrentLens/actions/runs/42445244470/artifacts/13602938183) is 39,111,930 bytes (SHA-256 `e5767c219b24cff2526bba8e4c94676e0a12cfe8a390a95738a5be31f4078138`). Parent runs do not validate this Search change. No manual dispatch/rerun. +- **Workflow / release:** integration workflow keeps build/test permissions read-only and Release write isolated to main pushes. Main's workflow remains push-only; no main-target PR validation is inferred. Latest published testing release remains `v0.2.0-build-116`; no Release was published. +- **Unverified:** OPPO Reno10 Search visuals, TalkBack state announcement, font scaling, keyboard/IME interaction, animation, launch stability, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. + +## Coverage and paired-cost matrix — Search filter action +| Screen/component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| Search header “Filters” action | Tier 2 interactive glass; a primary filter-sheet entry point must be discoverable and consistent with the surrounding Search control material | Static fill/rim only inside the existing Search header Prismal surface; no new capture | Existing `GlassSurfacePolicy`, Clear↔Frosted tokens and Reduce Transparency floors; high-contrast static fallback | Button role, active-state description, visible filter count, 48dp minimum; JVM alpha policy tests | No new live pass; device metrics UNVERIFIED | + +**Next:** inspect #309/#310's exact-head job results, full logs and artifacts. If they pass, continue the remaining whole-app transient-control/Today-loading consistency audit; keep all device and performance measurements explicitly unverified. + +--- + # Live implementation batch — Appearance editor supporting-material parity **Audit:** 8 November 2026, 09:27 IST **Active branch / PR:** `black-box-bihar-news@7ee0976c18c2987854f870b51d5531e9b9185fe6`; PR #34 remains open/draft against `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The active line is **131 commits ahead / 0 behind main** and **74 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. From cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 11:35:22 +0530 Subject: [PATCH 132/175] perf(search): reuse article relevance index --- .../ArticleRelevanceIndexPolicy.kt | 29 ++++++ .../mangoloads/currentlens/ExploreFilters.kt | 41 +++++++-- .../mangoloads/currentlens/MainActivity.kt | 31 +++++-- .../ArticleRelevanceIndexPolicyTest.kt | 91 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 16 ++++ 5 files changed, 192 insertions(+), 16 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicy.kt new file mode 100644 index 00000000..158bb216 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicy.kt @@ -0,0 +1,29 @@ +package com.mangoloads.currentlens + +/** + * Stable key and one-pass relevance index for feed screens that need classification + * for both filter choices and visible article metadata. + * + * The index uses article ID for stable lookup; UpscEngine.classify itself reads only + * title and description. Publisher, date, image and section changes do not invalidate + * the relevance result. + */ +internal data class ArticleRelevanceKey( + val articleId: String, + val title: String, + val description: String +) + +internal object ArticleRelevanceIndexPolicy { + fun keys(articles: List
): List = + articles.map { ArticleRelevanceKey(it.id, it.title, it.description) } + + fun build( + articles: List
, + classify: (Article) -> Relevance = UpscEngine::classify + ): Map { + val index = LinkedHashMap(articles.size) + articles.forEach { article -> index[article.id] = classify(article) } + return index + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt b/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt index 8c7f13fe..ecf62340 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ExploreFilters.kt @@ -2,8 +2,21 @@ package com.mangoloads.currentlens /** Deterministic Explore matching over publisher sections and RSS metadata only. */ internal object ExploreFilters { - fun matches(article: Article, category: String, query: String): Boolean = - matchesCategory(article, category) && matchesSearchTerms(article, query) + private val relevanceQueryTerms = setOf( + "gs1", "gsi", "gs-i", + "gs2", "gsii", "gs-ii", + "gs3", "gsiii", "gs-iii", + "gs4", "gsiv", "gs-iv", + "geography", "geographic", "geographical" + ) + + fun matches( + article: Article, + category: String, + query: String, + relevance: Relevance? = null + ): Boolean = + matchesCategory(article, category) && matchesSearchTerms(article, query, relevance) fun matchesCategory(article: Article, category: String): Boolean { if (category.equals("All", true)) return true @@ -35,21 +48,33 @@ internal object ExploreFilters { } } - fun matchesSearchTerms(article: Article, query: String): Boolean { + fun matchesSearchTerms( + article: Article, + query: String, + relevance: Relevance? = null + ): Boolean { val terms = query.split(",").map { it.trim() }.filter { it.isNotBlank() } if (terms.isEmpty()) return true + + // Resolve at most once for all GS/Geography terms. SearchFeed supplies its + // already-cached relevance; other callers retain the original lazy behaviour. + val needsRelevance = terms.any { + it.lowercase().replace(" ", "") in relevanceQueryTerms + } + val resolvedRelevance = if (needsRelevance) relevance ?: UpscEngine.classify(article) else null val text = (article.title + " " + article.description + " " + article.section + " " + article.source).lowercase() + return terms.all { raw -> when (raw.lowercase().replace(" ", "")) { - "gs1", "gsi", "gs-i" -> UpscEngine.classify(article).gsPaper == "GS I" - "gs2", "gsii", "gs-ii" -> UpscEngine.classify(article).gsPaper == "GS II" - "gs3", "gsiii", "gs-iii" -> UpscEngine.classify(article).gsPaper == "GS III" - "gs4", "gsiv", "gs-iv" -> UpscEngine.classify(article).gsPaper == "GS IV" + "gs1", "gsi", "gs-i" -> resolvedRelevance?.gsPaper == "GS I" + "gs2", "gsii", "gs-ii" -> resolvedRelevance?.gsPaper == "GS II" + "gs3", "gsiii", "gs-iii" -> resolvedRelevance?.gsPaper == "GS III" + "gs4", "gsiv", "gs-iv" -> resolvedRelevance?.gsPaper == "GS IV" "india", "indian" -> text.contains("india") || text.contains("indian") || text.contains("new delhi") "world", "global", "international" -> article.section.contains("world", true) || article.section.contains("international", true) || text.contains("global") "economy", "economic" -> text.contains("econom") || text.contains("rbi") || text.contains("inflation") "environment", "climate" -> text.contains("environment") || text.contains("climate") || text.contains("biodiversity") - "geography", "geographic", "geographical" -> UpscEngine.classify(article).subject == "Geography" + "geography", "geographic", "geographical" -> resolvedRelevance?.subject == "Geography" "science", "technology", "tech" -> text.contains("science") || text.contains("technology") || text.contains("space") || text.contains("isro") || text.contains("semiconductor") else -> text.contains(raw.lowercase()) } diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 2ec13b47..d79dc648 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1373,8 +1373,17 @@ private fun SearchFeed( val reduceTransparency = LocalGlassReduceTransparency.current val glassSurfaceColor = MaterialTheme.colorScheme.surface val categories = listOf("All", "India", "World", "Politics", "Geography", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") - val subjects = remember(eligibleArticles) { - listOf("All") + eligibleArticles.map { UpscEngine.classify(it).subject }.distinct().sorted() + val classificationInputs = remember(eligibleArticles) { + ArticleRelevanceIndexPolicy.keys(eligibleArticles) + } + // Classification depends only on id/title/description. Reuse the same index for + // subject choices, query filters and visible Search cards instead of rerunning the + // keyword engine for every query change. + val relevanceById = remember(classificationInputs) { + ArticleRelevanceIndexPolicy.build(eligibleArticles) + } + val subjects = remember(relevanceById) { + listOf("All") + relevanceById.values.map { it.subject }.distinct().sorted() } val gsPapers = listOf("All", "GS I", "GS II", "GS III", "GS IV") val activeFilterCount = listOf( @@ -1387,10 +1396,10 @@ private fun SearchFeed( selectedGsPaper.takeIf { it != "All" }, selectedSubject.takeIf { it != "All" } ).joinToString(" · ") - val filtered = remember(eligibleArticles, query, selectedCategory, selectedSubject, selectedGsPaper) { + val filtered = remember(eligibleArticles, relevanceById, query, selectedCategory, selectedSubject, selectedGsPaper) { eligibleArticles.filter { article -> - val relevance = UpscEngine.classify(article) - ExploreFilters.matches(article, selectedCategory, query) && + val relevance = relevanceById[article.id] ?: return@filter false + ExploreFilters.matches(article, selectedCategory, query, relevance) && (selectedSubject == "All" || relevance.subject == selectedSubject) && (selectedGsPaper == "All" || relevance.gsPaper == selectedGsPaper) } @@ -1480,7 +1489,10 @@ private fun SearchFeed( } else if (filtered.isEmpty()) item { EmptyPanel("No matching articles", "Change your search or remove one of the filters.") } else items(filtered, key = { it.id }, contentType = { "article" }) { article -> - NewsCard(article, bookmarks.contains(article.url), onOpenArticle, onToggleBookmark) + NewsCard( + article, bookmarks.contains(article.url), onOpenArticle, onToggleBookmark, + relevanceOverride = relevanceById[article.id] + ) } } } @@ -2403,11 +2415,14 @@ private fun NewsCard( article: Article, saved: Boolean, onOpenArticle: (Article) -> Unit, - onToggleBookmark: (Article) -> Unit + onToggleBookmark: (Article) -> Unit, + relevanceOverride: Relevance? = null ) { val context = LocalContext.current val density = LocalDensity.current - val relevance = remember(article.id, article.title, article.description) { UpscEngine.classify(article) } + val relevance = remember(article.id, article.title, article.description, relevanceOverride) { + relevanceOverride ?: UpscEngine.classify(article) + } val syllabusHint = remember(article.id, article.title, article.description, relevance.gsPaper, relevance.subject, relevance.matchedTerms, relevance.syllabusLink) { ArticleCardMetaPolicy.syllabusHint( gsPaper = relevance.gsPaper, diff --git a/app/src/test/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicyTest.kt new file mode 100644 index 00000000..3ad7f480 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ArticleRelevanceIndexPolicyTest.kt @@ -0,0 +1,91 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertNotEquals +import org.junit.Assert.assertTrue +import org.junit.Test + +class ArticleRelevanceIndexPolicyTest { + private fun article( + id: String, + title: String, + description: String + ) = Article( + id = id, + title = title, + description = description, + url = "https://example.test/$id", + source = "Test", + section = "India", + published = "2026-11-03T10:00:00Z" + ) + + private fun relevance(gsPaper: String, subject: String) = Relevance( + gsPaper = gsPaper, + subject = subject, + syllabusLink = "Test syllabus", + matchedTerms = emptyList(), + signalLabel = "Cached", + topicKey = "cached" + ) + + @Test + fun cacheKeyTracksOnlyIdentityAndClassifierInputs() { + val original = article("one", "Monsoon patterns", "Rainfall and river basins.") + val displayMetadataChange = original.copy( + url = "https://example.test/updated", + source = "Another publisher", + section = "World", + published = "2026-11-04T10:00:00Z", + imageUrl = "https://example.test/image.jpg", + weekendRead = true, + feedUrl = "https://example.test/feed.xml" + ) + assertEquals( + ArticleRelevanceIndexPolicy.keys(listOf(original)), + ArticleRelevanceIndexPolicy.keys(listOf(displayMetadataChange)) + ) + assertNotEquals( + ArticleRelevanceIndexPolicy.keys(listOf(original)), + ArticleRelevanceIndexPolicy.keys(listOf(original.copy(title = "Cyclone update"))) + ) + assertNotEquals( + ArticleRelevanceIndexPolicy.keys(listOf(original)), + ArticleRelevanceIndexPolicy.keys(listOf(original.copy(description = "New excerpt"))) + ) + assertNotEquals( + ArticleRelevanceIndexPolicy.keys(listOf(original)), + ArticleRelevanceIndexPolicy.keys(listOf(original.copy(id = "new-id"))) + ) + } + + @Test + fun indexClassifiesEachArticleOnceAndPreservesFeedOrder() { + val articles = listOf( + article("first", "Monsoon update", "Rainfall"), + article("second", "RBI policy", "Inflation") + ) + val calls = mutableListOf() + val index = ArticleRelevanceIndexPolicy.build(articles) { item -> + calls += item.id + relevance("GS III", item.id) + } + + assertEquals(listOf("first", "second"), calls) + assertEquals(listOf("first", "second"), index.keys.toList()) + assertEquals("first", index["first"]?.subject) + assertEquals("second", index["second"]?.subject) + } + + @Test + fun searchSyllabusTermsUseTheSuppliedCachedRelevance() { + val article = article("monsoon", "Monsoon patterns", "Rainfall and river basins.") + // The cached result intentionally differs from the classifier's natural result. + val cached = relevance("GS II", "Constitution") + + assertTrue(ExploreFilters.matches(article, "All", "GS II", cached)) + assertFalse(ExploreFilters.matches(article, "All", "GS I", cached)) + assertFalse(ExploreFilters.matches(article, "All", "Geography", cached)) + } +} diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index e79b97fc..50cbd3e1 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,19 @@ +# Live implementation batch — Search relevance index reuse +**Audit:** 8 November 2026, 11:26 IST +**Source branch / SHA:** `black-box-bihar-news@35b290226a0b480390611a20e1d8081b4c567180` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; consolidation PR #34 remains open/draft and unmerged. The source is 134 commits ahead / 0 behind main and 77 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. + +- **Freshness gate:** all 41 remote branches were enumerated (page 1: 41, page 2: 0); all 38 PRs were reviewed (24 open, 14 closed), including current heads and relevant full diffs. `black-box-bihar-news` remains the latest coherent owner-selected integration line. PR #37's Search-clear RowScope repair, PR #30's 48dp icon-target policy, PR #31's off-main appearance restore, PR #29 bookmark persistence and PR #13's conservative shared luminance probe are already represented in the active tree. PR #36 (IST midnight refresh) and #35 (diagnostic-read bounds) remain independent; #38 is parser-only and overlaps the #32/#33 feed-parser review; #25/#26 remain a joint publisher-resource security review. The divergent `brrrNEWS`, stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` lines are not newer UI baselines. No source branch was modified. +- **Parent exact-head CI:** natural push run [#311](https://github.com/Batmancpu/CurrentLens/actions/runs/42449279845) and PR run [#312](https://github.com/Batmancpu/CurrentLens/actions/runs/42449282621) both passed on source SHA `35b290226a0b480390611a20e1d8081b4c567180`. Full job logs show WordNet builder 4/4, 151,456 unique words (50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload passed. PR artifact [#13604848543](https://github.com/Batmancpu/CurrentLens/actions/runs/42449282621/artifacts/13604848543) is 39,112,976 bytes, SHA-256 `54e2db37d1045253f46b61d3051cf638817e99c9d05cffd6d2e2dc67679c0245`; publish job skipped. Actions history: 312 runs (186 success, 65 failure, 61 cancelled), queue 0, in-progress 0. Integration build/test permissions remain read-only with a separate main-push Release-write job; main's workflow remains push-only with `contents: write`. Latest published Release remains `v0.2.0-build-116`; no Release was published. +- **Implementation:** SearchFeed now builds one immutable relevance index keyed by article ID for stable lookup, with title and description as the classifier's only inputs. Subject choices, GS/subject filtering, query matching and visible Search-card syllabus metadata reuse the same result. `ExploreFilters` accepts an optional cached `Relevance` and resolves all GS/Geography query tokens from it, with at most one fallback classification for other callers. +- **Paired optimization:** removes repeated full-feed classification on every Search query/filter change and avoids a second classification for each visible Search card. The index invalidates only when classifier inputs change; publisher, date, section, image and feed-endpoint metadata do not trigger reclassification. No new Prismal surface, backdrop capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence path. This is a source-level cost reduction; no GPU/frame/memory/battery improvement is claimed without profiling. +- **Tests:** added `ArticleRelevanceIndexPolicyTest` for key invalidation boundaries, exactly-once index construction/order and supplied cached relevance for GS/Geography queries. Existing `ExploreFiltersTest` remains unchanged and continues to cover category/query semantics. Exact new-head natural CI is pending; parent #311/#312 do not validate this code. +- **Coverage / paired-cost matrix:** Search keeps its existing tier-1/2 glass surfaces and one shared root backdrop; this batch adds no material or render pass. Classification is a pure CPU index reused by Search filters and cards, with stable Compose keys and no per-query classifier pass. TalkBack, font scaling, IME, Reduce Motion, OPPO Reno10 visuals/launch, frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. + +**Next:** inspect the exact new-head natural CI jobs/logs/artifact. If they pass, continue the final Today loading/skeleton and whole-app consistency audit; keep physical-device and performance measurements explicitly unverified. + +--- + # Live implementation batch — Search filter action material parity **Audit:** 8 November 2026, 10:27 IST **Source baseline:** `black-box-bihar-news@748683f156ea05f650a49603f86750e8902551ed` From 5f7e8cfe7c536dec2923a67348fb028916ca637c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 12:41:54 +0530 Subject: [PATCH 133/175] ui(today): align weekend surface and loading semantics --- .../mangoloads/currentlens/MainActivity.kt | 22 ++++-- docs/BRANCH_CONSOLIDATION.md | 78 ++++++++++++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 17 ++++ 3 files changed, 111 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d79dc648..f8f5f33a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -154,9 +154,11 @@ import androidx.compose.ui.graphics.TransformOrigin import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.LocalView +import androidx.compose.ui.semantics.LiveRegionMode import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.Role +import androidx.compose.ui.semantics.liveRegion import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.selected import androidx.compose.ui.semantics.stateDescription @@ -1255,8 +1257,12 @@ private fun TodayFeed( Row(verticalAlignment = Alignment.CenterVertically) { Text("UPSC CURRENT AFFAIRS", color = MaterialTheme.colorScheme.primary, fontSize = 10.sp, fontWeight = FontWeight.Bold, letterSpacing = 1.4.sp) Spacer(Modifier.weight(1f)) - Text(if (refreshing || loading) "Updating" else articles.size.toString() + " relevant stories", - color = MaterialTheme.colorScheme.secondary, fontSize = 11.sp) + Text( + if (refreshing || loading) "Updating" else articles.size.toString() + " relevant stories", + modifier = Modifier.semantics { liveRegion = LiveRegionMode.Polite }, + color = MaterialTheme.colorScheme.secondary, + fontSize = 11.sp + ) } } when { @@ -1283,14 +1289,19 @@ private fun TodayFeed( private fun WeekendPanel(articles: List
, onOpenArticle: (Article) -> Unit) { Column(verticalArrangement = Arrangement.spacedBy(8.dp)) { Text("WEEKEND READING", color = MaterialTheme.colorScheme.primary, fontWeight = FontWeight.Bold, fontSize = 10.sp, letterSpacing = 1.4.sp) - Card(shape = RoundedCornerShape(24.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant)) { + Card( + modifier = Modifier.fillMaxWidth(), + shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), + colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), + elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) + ) { Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(9.dp)) { Text("The best of the weekend", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) Text("Express Sunday Eye stories published in the latest weekend window.", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.secondary) articles.forEach { article -> Text(article.title, - modifier = Modifier.fillMaxWidth().clip(RoundedCornerShape(10.dp)).clickable { onOpenArticle(article) }.padding(vertical = 7.dp), + modifier = Modifier.fillMaxWidth().clip(ContinuousCornerShape(12.dp)).clickable { onOpenArticle(article) }.padding(vertical = 7.dp), style = MaterialTheme.typography.titleSmall, fontWeight = FontWeight.SemiBold) } } @@ -2629,7 +2640,8 @@ private fun FeedSkeletonCard() { val line = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.075f) Card( modifier = Modifier.fillMaxWidth() - .padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp), + .padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp) + .clearAndSetSemantics { }, shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 4d3609fe..e3eea95e 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,77 @@ +# Live branch/PR/CI audit — 8 November 2026, 12:31 IST + +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Active:** `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84`, PR #34 open/draft to main; 135 ahead / 0 behind main, 78 ahead / 0 behind PR #16, 65 ahead / 0 behind the incorporated PR #19 UI head. +**Inventory:** 43 remote branches (page 1 = 43, page 2 = 0); 40 PRs (26 open, 14 closed). The 41 unchanged branch rows remain in the complete inventory table below; the active row was advanced and the two new branches (#39/#40) were added. No source branch was modified. + +## Freshness / dependency decision + +- PR #39 is 6 ahead / 0 behind the active head but changes only the workflow, Gradle signing and release docs; it is not a UI baseline. Its successful run #320 validates only PR #39's head. It remains unmerged; the proposed stable release key needs owner-managed secrets and an explicit first-install/data-migration decision. +- PR #37 is 6 ahead / 16 behind; its RowScope correction is already represented in active history. PR #30 (48dp targets) and #31 (off-main appearance restore) are represented. PR #36 (IST midnight refresh), #35 (diagnostic-read bounds), #38 (parser budget), #32/#33 (RSS concurrency/Atom links), #25/#26 (publisher resource security) and #27 (editorial gate) remain separate proposals. No blind cherry-picks. +- PR #19/#20/#23/#28 are closed/merged into black-box only. PR #15 is closed unmerged, with its redirect safeguards already in the PR #16/active ancestor. Stale brrrNEWS, ui/liquid-glass-performance and redesign/v0.3 remain excluded. +- The active UI source remains the latest coherent owner-selected line. No other branch was reset, force-pushed, deleted or merged. + +## Complete PR ref inventory — 8 November 2026, 12:31 IST (40 total) + +| PR | State / merge | Head ref@SHA | Base ref@SHA | Updated UTC | +|---|---|---|---|---| +| #1 closed / merged | `fix/editorial-token-boundaries-2026-11-06@0045c24637f162f1c13dceb1f8878f42f6eb15fd` | `main@682432a6a3122e3ddcd2710e052a30fc2958ed6c` | 2026-11-06T05:14:24Z | +| #2 closed / merged | `fix/editorial-signal-count-test@4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | `main@f758af2ecc381ebeb6f9bb96aab172967eb973fb` | 2026-11-06T05:16:51Z | +| #3 closed / merged | `ui/liquid-glass-performance-2026-11-06@b51d5e79ee8d3261c5458712f4e869ada1693697` | `main@6cf84bacd3dce62081cf0efee386e73411357ce0` | 2026-11-06T06:23:55Z | +| #4 closed / closed unmerged | `ui/liquid-glass-performance-2026-11-06@2e9c7f62ca65a899e18d9026e1535392835b3724` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | 2026-11-06T06:26:39Z | +| #5 closed / merged | `fix/navigation-icon-imports-2026-11-06@fa8868940c08ed5b4a9def014a850e8a9dcb3490` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | 2026-11-06T06:27:23Z | +| #6 open / open draft | `feat/gs1-geography-editorial-coverage@ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | 2026-11-07T00:14:20Z | +| #7 closed / merged | `fix/startup-stability-performance-2026-11-06@654e660347de692ef88531dfa49c610269d69671` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | 2026-11-06T07:19:26Z | +| #8 open / open draft | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | 2026-11-06T10:50:48Z | +| #9 closed / merged | `fix/startup-crash-diagnostics-feed-jank-2026-11-06@5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | 2026-11-06T07:42:06Z | +| #10 closed / merged | `fix/search-glass-theme-capture-2026-11-06@c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | `main@2475970123a2a2fb0e05be25d1d9a45061186c73` | 2026-11-06T07:44:54Z | +| #11 open / open draft | `fix/cache-publication-date-integrity-2026-11-06@be5151e674c2bd4fa9beb166fc38ddf622781f84` | `black-box-bihar-news@c6223c93de84cb25d1e19da42be3bd4992213f6d` | 2026-11-07T02:58:17Z | +| #12 open / open draft | `fix/atom-alternate-link-selection-2026-11-06@cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | 2026-11-06T09:14:32Z | +| #13 open / open draft | `ui/foreground-adaptive-glass-contrast-2026-11-06@3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | 2026-11-07T00:14:47Z | +| #14 closed / closed unmerged | `docs/ai-agent-handoff-2026-11-06@ab2e4815d5077b96142a7aa8217443236739aacb` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T15:16:49Z | +| #15 closed / closed unmerged | `fix/publisher-redirect-allowlist-2026-11-06@83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T12:37:37Z | +| #16 open / open draft | `fix/early-startup-crash-diagnostics-2026-11-06@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T19:36:06Z | +| #17 open / open draft | `fix/rss-tracking-variant-dedup-2026-11-06@2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-07T00:13:16Z | +| #18 open / open draft | `ci/read-only-pr-validation-isolated-release-write-2026-11-06@963118f0abe5f7e38f2aa66a49d4b8e74548660c` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T17:19:11Z | +| #19 closed / merged | `ui/liquid-glass-system-2026-11-07@1f7cd2e5ddc5d169d1443035a8334538e44efc40` | `black-box-bihar-news@0e01bd5df661de6110ed8e045eb344f3219317fa` | 2026-11-07T02:57:33Z | +| #20 closed / merged | `ci/stacked-pr-validation-2026-11-07@5dc3179361835b77fb3186a99d9b5791301463fd` | `black-box-bihar-news@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-07T02:56:15Z | +| #21 open / open draft | `fix/editorial-heatwave-bill-signals-2026-11-07@89464104e300f48da10e3e32e33715cbe2405084` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T22:06:16Z | +| #22 open / open draft | `perf/bounded-read-history-2026-11-07@910178af3f595993557533cb65d03e714bcd7760` | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06T23:53:25Z | +| #23 closed / merged | `fix/parliamentary-syllabus-signal-gate-2026-11-07@9d754953a29c0355ce55306ce4fd5463193c9dbb` | `black-box-bihar-news@ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` | 2026-11-07T03:55:36Z | +| #24 open / open draft | `fix/editorial-policy-exception-guard-2026-11-07@1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07T07:29:39Z | +| #25 open / open draft | `fix/rss-image-host-allowlist-2026-11-07@7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | `black-box-bihar-news@2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0` | 2026-11-07T07:30:59Z | +| #26 open / open draft | `privacy/webview-publisher-subresource-gate-2026-11-07@b8d2ef9ff2413c378347986d00961c401dfa771d` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | 2026-11-07T07:30:38Z | +| #27 open / open draft | `fix/editorial-action-gate-blackbox-2026-11-07@2468ed33326ac7310a2ddd5f993495e4051245b8` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | 2026-11-08T03:32:29Z | +| #28 closed / merged | `fix/quiz-option-selected-semantics-compile-2026-11-07@6f9b3c1e1a484233721863d0b736734c0d282cd5` | `black-box-bihar-news@947310a157e03df25dde3856d2686d18ffca68e8` | 2026-11-07T09:01:53Z | +| #29 open / open draft | `perf/off-main-bookmark-persistence-2026-11-07@a64857b5efa62ea053c0c96e5f374fd35924b340` | `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07T09:08:11Z | +| #30 open / open draft | `a11y/48dp-icon-targets-2026-11-07@25107ce905b70bde1a41282ffd1d606819ebf58d` | `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` | 2026-11-07T11:12:58Z | +| #31 open / open draft | `perf/off-main-appearance-preferences-2026-11-07@bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:14:31Z | +| #32 open / open draft | `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c83cc69451f128aa259df86a8ce28f43a` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:30:22Z | +| #33 open / open draft | `fix/resolve-relative-atom-links-2026-11-07@c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | `black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7` | 2026-11-07T14:59:51Z | +| #34 open / open draft | `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T06:05:44Z | +| #35 open / open draft | `perf/bound-startup-diagnostic-reads-2026-11-07@c4a977831846224182f16981b15e5c803761e26d` | `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` | 2026-11-07T17:34:25Z | +| #36 open / open draft | `fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6ef9be33d04a882ba463d4c72473419e2` | `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8` | 2026-11-07T20:48:45Z | +| #37 open / open draft | `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2` | 2026-11-07T22:51:33Z | +| #38 open / open draft | `perf/bound-rss-entry-parsing-2026-11-08@adade1ed8494c66b7e567de87f61f3dac3da7788` | `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` | 2026-11-08T03:34:06Z | +| #39 open / open draft | `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8` | `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | 2026-11-08T07:06:50Z | +| #40 open / open draft | `fix/validate-rss-article-hosts-2026-11-08@dcdbce939d0626767163f6133a42b60d23af7e57` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T06:53:49Z | + + +## Actions / workflow / Release + +- 320 Actions runs fully paginated: 190 success, 67 failure, 63 cancelled; queue 0, in-progress 0. +- Exact active-head parent runs #313 (push) and #314 (pull_request) passed on `cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84`; #314 full log: WordNet 4/4, 151,456 words, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload. Artifact #13606870590, 39,115,995 bytes, expires 22 Nov 2026 06:07 UTC; publish job skipped. +- Latest overall run #320 passed on PR #39 head `4250de5040a8ca0efbf96a990218ef7d69ef26e8`, not the UI branch; artifact #13608018053, 39,115,994 bytes, expires 22 Nov 2026 07:05 UTC; publish job skipped. +- Active workflow is read-only for build/test, with Release write isolated to main push. Main workflow SHA `37197497288d9f0a60f4d1cfa8453e3dee52a902` remains push-only with `contents: write`. Latest Release `v0.2.0-build-116`; no Release published. + +## Today UI batch + +- Today status row now announces refresh/loading via a polite live region; skeleton placeholders are hidden from accessibility traversal. Weekend Reading adopts the shared continuous 29dp feed-card geometry and zero elevation; content cards remain clear, non-glass surfaces. +- No new render pass, Prismal source, capture/readback, blur, shader, image decode, dependency, timer or persistence. New-head CI is pending; parent #313/#314 do not validate the new commit. +- OPPO Reno10 screenshots, TalkBack runtime, launch, Reduce Motion, IME, frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. + +--- + # Live branch, PR, CI and implementation audit — 8 November 2026, 10:27 IST **Repository:** `Batmancpu/CurrentLens` @@ -46,7 +120,7 @@ No main write, merge, retarget, manual dispatch/rerun, Release publication, pack | Branch | Head SHA | Latest commit UTC | Latest commit subject | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02Z | test(a11y): cover minimum icon action target | PR #30 open head; based on black-box | -| `black-box-bihar-news` | `45a3264319dfb16cd43a6912a354c1625054c8dc` | 2026-11-08 05:02Z | ui(search): align filter action with shared glass controls | PR #34 open head; base for open #11, #25–27, #29–33, #35–38 | +| `black-box-bihar-news` | `cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | 2026-11-08 06:05:22Z | perf(search): reuse article relevance index | PR #34 open head; base for open #11, #25–27, #29–33, #35–39; older bases for merged #19/#20/#23/#28 | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13Z | ui: consolidate lightweight supporting glass surfaces | Base of open PR #24; divergent sibling | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18Z | ci: validate pull requests with read-only build permissions | PR #18 open head; based on main | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | @@ -69,9 +143,11 @@ No main write, merge, retarget, manual dispatch/rerun, Release publication, pack | `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42Z | fix: deduplicate RSS tracking URL variants | PR #17 open head; based on main | | `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55Z | docs: record verified search clear compile repair | PR #37 open head; code repair already ported | | `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44Z | fix: capture Search glass tint before draw callback | PR #10 closed/merged | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31Z | docs: record stable signing validation and migration gate | PR #39 open head; base black-box-bihar-news@cc5a01b4; signing/workflow proposal only | | `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 closed/merged | | `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed/merged | | `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open head; based on older black-box head | +| `fix/validate-rss-article-hosts-2026-11-08` | `dcdbce939d0626767163f6133a42b60d23af7e57` | 2026-11-08 06:52:22Z | Test publisher-bound RSS article URLs | PR #40 open head; base main@73b8a0d1; independent feed-host validation | | `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16Z | Correct icon artwork accessibility name to brrrNews | Default branch; base for open #6, #8, #12, #13, #16, #17, #18, #21 | | `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31Z | fix(test): correct RSS budget test identifier | PR #38 open head; based on older black-box head | | `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34Z | Record successful bounded-diagnostic CI | PR #35 open head; based on older black-box head | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 50cbd3e1..46b67fbf 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,20 @@ +# Live implementation batch — Today feed rhythm and loading accessibility +**Audit:** 8 November 2026, 12:31 IST +**Source branch / SHA:** `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; consolidation PR #34 remains open/draft and unmerged. + +- **Freshness gate:** all 43 remote branches were enumerated (43 on page 1, 0 on page 2); all 40 PRs were reviewed (26 open, 14 closed). The selected line is 135 commits ahead / 0 behind main, 78 ahead / 0 behind PR #16's corrected background-only Prismal/stability ancestor, and 65 ahead / 0 behind the former PR #19 UI branch now incorporated into this line. PR #39 is 6 ahead / 0 behind the current head, but its diff is limited to workflow/build signing and release documentation; it is not a newer UI baseline. PR #37's Search-clear RowScope repair is already present in active history; PR #30's TouchTargetPolicy and PR #31's off-main appearance restore are represented. PR #36 (IST midnight refresh), #35 (diagnostic-read bounds), #38 (parser entry budget), #32/#33 (RSS concurrency/Atom URL handling) and #25/#26 (publisher resource security) remain independent proposals and were not blindly ported. The divergent brrrNEWS and stale UI branches were not selected. No other branch was modified. +- **Parent exact-head CI:** natural push run [#313](https://github.com/Batmancpu/CurrentLens/actions/runs/42453306122) and PR run [#314](https://github.com/Batmancpu/CurrentLens/actions/runs/42453310279) passed on `cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84`. Run #314's full job log shows offline WordNet generation (151,456 unique words; 50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug`, and artifact upload all succeeded; build reported `BUILD SUCCESSFUL in 1m 28s`. Artifact [#13606870590](https://github.com/Batmancpu/CurrentLens/actions/runs/42453310279/artifacts/13606870590) is 39,115,995 bytes and expires 22 November 2026 06:07 UTC. Publish job skipped. Run #320 passed on PR #39's separate signing branch, not this UI head. Actions history: 320 runs (190 success, 67 failure, 63 cancelled), queue 0, in-progress 0. +- **Workflow / release:** active integration workflow has read-only build/test permissions and isolates Release write to main pushes. Main's workflow remains push-only with write permission; no main-target PR validation is inferred. Latest published Release remains `v0.2.0-build-116`; no Release was published. +- **Implementation:** Today’s “Updating / relevant stories” status is a polite live region, so refresh/loading transitions can be announced without making each skeleton placeholder a separate TalkBack stop. Skeleton cards clear their decorative semantics. Weekend Reading now uses the same continuous 29dp feed-card geometry and zero elevation as article/skeleton surfaces; inner article actions use continuous geometry. Feed cards, skeletons and reading content remain standard high-contrast surfaces, not glass. +- **Paired optimization:** reuses `FeedCardGeometryPolicy` and the existing `ContinuousCornerShape`; no new Prismal surface, backdrop capture/readback, blur, refraction, shader, graphics layer, image decode, dependency, timer, polling or persistence. Live-region semantics change only when the status text changes; skeleton geometry remains static. No frame-time, memory, battery or GPU improvement is claimed. +- **Tests:** exact new-head natural CI is pending; parent #313/#314 do not validate this commit. No Compose screenshot test was added for the status semantics or weekend shape; existing JVM policy tests remain unchanged. +- **Coverage / paired-cost matrix:** Today weekend panel = tier 4 clear content surface; loading skeleton = non-glass decorative content state; one shared background-only Prismal source remains unchanged. Accessibility status is polite and skeletons are hidden from traversal. Render-pass/capture delta = 0. OPPO Reno10 screenshots, TalkBack runtime, font scaling, Reduce Motion, launch stability, IME, frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. + +**Next:** inspect the exact new-head natural push/PR jobs, full logs and artifact; then finish the whole-app consistency pass without adding glass to dense content or repeated feed cards. + +--- + # Live implementation batch — Search relevance index reuse **Audit:** 8 November 2026, 11:26 IST **Source branch / SHA:** `black-box-bihar-news@35b290226a0b480390611a20e1d8081b4c567180` From d1d74580676d5f4d6df33ab37510b80dea9c14f5 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 13:36:02 +0530 Subject: [PATCH 134/175] fix(reader): reveal completion action after reaching article end --- .../mangoloads/currentlens/MainActivity.kt | 10 ++ .../currentlens/ReaderChromePolicy.kt | 6 +- .../currentlens/ReaderChromePolicyTest.kt | 10 ++ docs/BRANCH_CONSOLIDATION.md | 127 ++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 37 +++++ 5 files changed, 189 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index f8f5f33a..fe4f5faf 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -3310,6 +3310,9 @@ private fun ReaderScreen( } webView.setReaderChromePinned(readerChromePinned) webView.onReachedBottom = { + // The final downward scroll may already have scheduled chrome auto-hide. + // Reveal it again so the completion action is actually discoverable. + webView.revealReaderChrome() webView.markReadingPositionCompleted() onClearReaderPosition(article.url) savedReadingProgress = 0f @@ -3697,6 +3700,13 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) } } + /** Reveal controls after true completion without permanently pinning them. */ + fun revealReaderChrome() { + cancelPendingReaderChromeHide() + readerChromeScrollState = ReaderChromePolicy.reveal(readerChromeScrollState) + setReaderChromeVisible(readerChromeScrollState.visible) + } + private fun setReaderChromeVisible(visible: Boolean) { if (readerChromeVisible == visible) return readerChromeVisible = visible diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index d6075688..cf4cf4ad 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -28,6 +28,10 @@ internal object ReaderChromePolicy { * reveals it after a smaller threshold. Direction changes reset accumulated distance. * Pinning (selection/definition/IME/accessibility/transient menu) and returning to the top always reveal. */ + /** Explicit reveal resets directional accumulation and any stale hide intent. */ + fun reveal(state: ReaderChromeScrollState): ReaderChromeScrollState = + state.copy(visible = true, direction = 0, accumulatedDeltaPx = 0) + fun onScroll( state: ReaderChromeScrollState, deltaY: Int, @@ -36,7 +40,7 @@ internal object ReaderChromePolicy { pinned: Boolean, atTop: Boolean ): ReaderChromeScrollState { - if (pinned || atTop) return ReaderChromeScrollState() + if (pinned || atTop) return reveal(state) if (deltaY == 0) return state val direction = if (deltaY > 0) 1 else -1 val magnitude = kotlin.math.abs(deltaY.toLong()).coerceAtMost(Int.MAX_VALUE.toLong()).toInt() diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt index b9f65b2b..24b3d19e 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -98,6 +98,16 @@ class ReaderChromePolicyTest { ) } + @Test + fun explicitRevealRestoresHiddenChromeAndClearsDirectionalAccumulation() { + val hidden = ReaderChromeScrollState( + visible = false, + direction = 1, + accumulatedDeltaPx = 31 + ) + assertEquals(ReaderChromeScrollState(), ReaderChromePolicy.reveal(hidden)) + } + @Test fun downwardScrollHidesOnlyAfterLargerThreshold() { var state = ReaderChromeScrollState() diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index e3eea95e..0ea0d6a9 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,130 @@ +# Live branch/PR/CI audit — 8 November 2026, 13:26 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged) +**Active:** `black-box-bihar-news@5f7e8cfe7c536dec2923a67348fb028916ca637c`, PR #34 open/draft → main; 136 ahead / 0 behind main and 79 ahead / 0 behind PR #16's corrected background-only Prismal/stability baseline. This is the exact pre-implementation parent for the Reader completion-reveal batch below. +**Inventory:** 43 remote branches (43 + 0 pagination); 40 PRs (26 open, 14 closed). All PR refs and the full branch list were re-read. No source branch was deleted or modified. + +## Baseline decision / branch freshness + +- PR #34 remains the only active consolidation line. It is a direct descendant of PR #16 and contains the corrected background-only Prismal source, the Reader/Search/feed-only navigation work, consolidated CI and the current app architecture. +- PR #39 is open/draft on `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8`, based on the older `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84`. Comparison against active: 6 ahead / 1 behind; its changed files are workflow, Gradle signing and release documentation only. The secret-backed main signing path and first-install migration require owner action; not a UI baseline. +- PR #37's Search clear RowScope repair is already in the active `SearchMorphField` (fixed 48dp trailing Row slot). PR #30's TouchTargetPolicy and PR #31's off-main appearance restore are represented. PR #13's adaptive contrast is represented by the single 8×8 shared probe with 4s/6s cadence and stricter pause conditions; its older 1.5s/2.5s cadence was not copied. +- `brrrNEWS` is a divergent sibling (4 ahead / 42 behind active). Its fixed-intensity supporting card treatment is older than the active intensity-aware `GlassSurfacePolicy` and shared geometry; no port. `ui/liquid-glass-system-continuation` is 52 behind active; `redesign/v0.3-search-reader` is 230 behind; neither is authoritative. +- PR #40 publisher-bound RSS URL validation, #25/#26 publisher asset/WebView security, #35 diagnostic-read bounds, #36 IST rollover, #38 parser budget, #32/#33 RSS concurrency/relative Atom and other independent changes remain in their own review streams. No blind cherry-pick. +- PR #19 and #20 are closed/merged into `black-box-bihar-news` only, not main. PR #23/#28 are also merged into black-box only. PR #15's older redirect proposal is closed unmerged; the active PR #16 lineage supplies the current redirect/privacy guards. + +## Actions, workflow and Release + +- Actions history was fully paginated: pages 1–4 = 100 + 100 + 100 + 22; page 5 empty. Total 322: 192 success, 67 failure, 63 cancelled; active/queued = 0. +- Exact parent push run [#321](https://github.com/Batmancpu/CurrentLens/actions/runs/42457787922) and PR run [#322](https://github.com/Batmancpu/CurrentLens/actions/runs/42457791091) both passed on `5f7e8cfe7c536dec2923a67348fb028916ca637c`. Full job logs inspected: WordNet builder 4/4; 151,456 words / 50,950,144-byte DB; `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload passed. Publish job skipped. +- PR artifact #13608536799: 39,117,807 bytes, SHA-256 `b65f0f9beb0a0468beaa7e99e33c122aed6f160987e0d0ca898b9019db1aea3f`, expires 22 November 2026 07:14 UTC. Push artifact #13607972960: 39,117,807 bytes, SHA-256 `b9badb72f4838e40a5325bc45be459f16d77811fbcce486855b6fbe32019a57c`. +- Active `.github/workflows/build-apk.yml`: read-only build permissions; push and pull_request triggers cover main, PR #16's base and black-box; separate contents:write publish job is main-push-only. Main's own workflow remains push-only with contents:write. +- Latest published Release: `v0.2.0-build-116`, published 6 November 2026 11:18:59 UTC. No Release created by #321/#322. + +## Full remote branch inventory (43) + +| Remote branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open head; represented in active policy | +| `black-box-bihar-news` | `5f7e8cfe7c536dec2923a67348fb028916ca637c` | 2026-11-08 07:11:54Z | ui(today): align weekend surface and loading semantics | PR #34 open/draft head; active integration; base of stacked proposals at earlier SHAs | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | PR #24 base; divergent sibling, not selected | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open head; compatible workflow intent represented in active | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed unmerged; current branch equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35Z | fix: refresh article card metadata when feed content changes | PR #6 open head; editorial work represented selectively | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27Z | fix: select Atom article alternate links deterministically | PR #12 open head; compatible parser work selectively represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open head; compatible date/provenance work represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20Z | fix: minimise shareable process-exit diagnostics | PR #16 open head; corrected Prismal/stability ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19Z | test(editorial): cover reality TV and television promotion | PR #27 open head; independent editorial gate | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open head; combined editorial work represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47Z | fix(editorial): match policy action and target as separate words | PR #24 open head; based on divergent brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32Z | test: align economy signal count with repo-rate mapping | PR #2 merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28Z | fix: tighten UPSC editorial signal matching | PR #1 merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06Z | fix: use supported calendar navigation glyph | PR #5 merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44Z | test: preserve Parliament bill headline variants | PR #23 merged into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39Z | Validate RSS redirects against publisher allowlists | PR #15 closed unmerged; safeguards superseded by PR #16 lineage | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10Z | fix(quiz): qualify selected semantics receiver | PR #28 merged into black-box only | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24Z | test(rss): correct relative xml base fixture | PR #33 open head; separate RSS parser work | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46Z | test(reader): cover publisher-only image resources | PR #25 open head; separate publisher security review | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29Z | fix: deduplicate RSS tracking URL variants | PR #17 open head; compatible dedupe represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56Z | docs: record verified search clear compile repair | PR #37 open head; RowScope correction already in active | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03Z | fix: capture Search glass tint before draw callback | PR #10 merged into main | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31Z | docs: record stable signing validation and migration gate | PR #39 open head; workflow/Gradle/signing only, not UI baseline | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06Z | fix: harden cold start and reduce feed rendering workload | PR #7 merged into main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open head; separate date-policy review | +| `fix/validate-rss-article-hosts-2026-11-08` | `dcdbce939d0626767163f6133a42b60d23af7e57` | 2026-11-08 06:52:22Z | Test publisher-bound RSS article URLs | PR #40 open head; independent publisher URL security | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | Default branch; unchanged | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36Z | fix(test): correct RSS budget test identifier | PR #38 open head; separate parser budget | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16Z | Record successful bounded-diagnostic CI | PR #35 open head; separate diagnostic performance | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04Z | Verify legacy markers survive recent-history retention | PR #22 open head; based on PR #8 | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26Z | docs: record bounded RSS fetch review and CI state | PR #32 open head; separate network performance | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open head; equivalent IO restore represented | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open head; separate persistence review | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31Z | perf: move read-marker persistence off main thread | PR #8 open head; history policy reconciled on active line | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22Z | privacy: block third-party publisher reader subresources | PR #26 open head; separate WebView security review | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48Z | fix: make selection decoding fallback valid JSON | No PR; 230 commits behind active; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open head; conservative variant represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39Z | fix: import bottom navigation glyphs | PR #4 closed unmerged; PR #3 merged an earlier commit; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36Z | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box only | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34Z | fix: finish syllabus metadata and thin-film feed eligibility | No PR; 52 commits behind active; stale | + +## Full PR inventory (40) + +| PR | State / merge | Head branch @ SHA | Base branch @ SHA | +|---:|---|---|---| +| #34 | open/draft | `black-box-bihar-news@5f7e8cfe7c536dec2923a67348fb028916ca637c` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #39 | open/draft | `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8` | `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | +| #40 | open/draft | `fix/validate-rss-article-hosts-2026-11-08@dcdbce939d0626767163f6133a42b60d23af7e57` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #38 | open/draft | `perf/bound-rss-entry-parsing-2026-11-08@adade1ed8494c66b7e567de87f61f3dac3da7788` | `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` | +| #27 | open/draft | `fix/editorial-action-gate-blackbox-2026-11-07@2468ed33326ac7310a2ddd5f993495e4051245b8` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | +| #37 | open/draft | `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2` | +| #36 | open/draft | `fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6ef9be33d04a882ba463d4c72473419e2` | `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8` | +| #35 | open/draft | `perf/bound-startup-diagnostic-reads-2026-11-07@c4a977831846224182f16981b15e5c803761e26d` | `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` | +| #33 | open/draft | `fix/resolve-relative-atom-links-2026-11-07@c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | `black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7` | +| #32 | open/draft | `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c83cc69451f128aa259df86a8ce28f43a` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | +| #31 | open/draft | `perf/off-main-appearance-preferences-2026-11-07@bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | +| #30 | open/draft | `a11y/48dp-icon-targets-2026-11-07@25107ce905b70bde1a41282ffd1d606819ebf58d` | `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` | +| #29 | open/draft | `perf/off-main-bookmark-persistence-2026-11-07@a64857b5efa62ea053c0c96e5f374fd35924b340` | `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5` | +| #28 | closed/merged | `fix/quiz-option-selected-semantics-compile-2026-11-07@6f9b3c1e1a484233721863d0b736734c0d282cd5` | `black-box-bihar-news@947310a157e03df25dde3856d2686d18ffca68e8` | +| #25 | open/draft | `fix/rss-image-host-allowlist-2026-11-07@7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | `black-box-bihar-news@2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0` | +| #26 | open/draft | `privacy/webview-publisher-subresource-gate-2026-11-07@b8d2ef9ff2413c378347986d00961c401dfa771d` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | +| #24 | open/draft | `fix/editorial-policy-exception-guard-2026-11-07@1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | +| #23 | closed/merged | `fix/parliamentary-syllabus-signal-gate-2026-11-07@9d754953a29c0355ce55306ce4fd5463193c9dbb` | `black-box-bihar-news@ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` | +| #11 | open/draft | `fix/cache-publication-date-integrity-2026-11-06@be5151e674c2bd4fa9beb166fc38ddf622781f84` | `black-box-bihar-news@c6223c93de84cb25d1e19da42be3bd4992213f6d` | +| #19 | closed/merged | `ui/liquid-glass-system-2026-11-07@1f7cd2e5ddc5d169d1443035a8334538e44efc40` | `black-box-bihar-news@0e01bd5df661de6110ed8e045eb344f3219317fa` | +| #20 | closed/merged | `ci/stacked-pr-validation-2026-11-07@5dc3179361835b77fb3186a99d9b5791301463fd` | `black-box-bihar-news@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | +| #13 | open/draft | `ui/foreground-adaptive-glass-contrast-2026-11-06@3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | +| #6 | open/draft | `feat/gs1-geography-editorial-coverage@ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | +| #17 | open/draft | `fix/rss-tracking-variant-dedup-2026-11-06@2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #22 | open/draft | `perf/bounded-read-history-2026-11-07@910178af3f595993557533cb65d03e714bcd7760` | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | +| #21 | open/draft | `fix/editorial-heatwave-bill-signals-2026-11-07@89464104e300f48da10e3e32e33715cbe2405084` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #16 | open/draft | `fix/early-startup-crash-diagnostics-2026-11-06@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #18 | open/draft | `ci/read-only-pr-validation-isolated-release-write-2026-11-06@963118f0abe5f7e38f2aa66a49d4b8e74548660c` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #14 | closed/unmerged | `docs/ai-agent-handoff-2026-11-06@ab2e4815d5077b96142a7aa8217443236739aacb` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #15 | closed/unmerged | `fix/publisher-redirect-allowlist-2026-11-06@83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | +| #8 | open/draft | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | +| #12 | open/draft | `fix/atom-alternate-link-selection-2026-11-06@cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | +| #10 | closed/merged | `fix/search-glass-theme-capture-2026-11-06@c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | `main@2475970123a2a2fb0e05be25d1d9a45061186c73` | +| #9 | closed/merged | `fix/startup-crash-diagnostics-feed-jank-2026-11-06@5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | +| #7 | closed/merged | `fix/startup-stability-performance-2026-11-06@654e660347de692ef88531dfa49c610269d69671` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | +| #5 | closed/merged | `fix/navigation-icon-imports-2026-11-06@fa8868940c08ed5b4a9def014a850e8a9dcb3490` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | +| #4 | closed/unmerged | `ui/liquid-glass-performance-2026-11-06@2e9c7f62ca65a899e18d9026e1535392835b3724` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | +| #3 | closed/merged | `ui/liquid-glass-performance-2026-11-06@b51d5e79ee8d3261c5458712f4e869ada1693697` | `main@6cf84bacd3dce62081cf0efee386e73411357ce0` | +| #2 | closed/merged | `fix/editorial-signal-count-test@4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | `main@f758af2ecc381ebeb6f9bb96aab172967eb973fb` | +| #1 | closed/merged | `fix/editorial-token-boundaries-2026-11-06@0045c24637f162f1c13dceb1f8878f42f6eb15fd` | `main@682432a6a3122e3ddcd2710e052a30fc2958ed6c` | + +## Current implementation batch + +- Parent `5f7e8cfe7c536dec2923a67348fb028916ca637c` is the exact source SHA. ReaderWebView's end detector can report true completion after the last downward scroll has already scheduled chrome auto-hide; the completion dock is gated by the same visibility state and could disappear after the 160ms settle delay. +- The new batch adds a pure ReaderChromePolicy reveal/reset transition and calls it when true completion is reported. It cancels only the pending hide; it does not permanently pin the toolbar. Subsequent downward reading can still hide it. +- No new timer, polling, capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, network or persistence path. Added one focused JVM policy test. +- Parent CI above does not validate the new child commit. Await its natural push/PR run; no manual dispatch/rerun. +- OPPO Reno10 visual, launch, TalkBack, native selection, Reduce Motion, frame timing/jank, GPU overdraw, allocation/memory, thermal and battery checks remain UNVERIFIED. No performance improvement is claimed. + +--- + # Live branch/PR/CI audit — 8 November 2026, 12:31 IST **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 46b67fbf..de8d32ac 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,40 @@ +# Live implementation batch — Reader completion chrome reveal +**Audit:** 8 November 2026, 13:26 IST +**Source branch / SHA before this batch:** `black-box-bihar-news@5f7e8cfe7c536dec2923a67348fb028916ca637c` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 remains open/draft and unmerged. + +## Freshness and dependency gate +- Re-enumerated all **43 remote branches** (page 1: 43; page 2: 0) and all **40 PRs** (26 open, 14 closed). Main is unchanged. The active branch is **136 commits ahead / 0 behind main** and **79 ahead / 0 behind PR #16**; its lineage contains the corrected background-only Prismal capture, consolidated Reader/Search/feed-navigation work and the current app architecture. +- PR #34 is the sole active consolidation PR: `black-box-bihar-news@5f7e8cfe7c536dec2923a67348fb028916ca637c` → `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, open/draft, mergeable. The branch remains the freshest coherent UI baseline. +- PR #39 (`fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8`) is 6 ahead / 1 behind the active head; its diff is workflow, Gradle signing and release documentation only. It requires owner-managed secrets and a first-install/data-migration decision; it is not a UI baseline and was not ported. +- PR #37's RowScope repair is already in the active Search clear implementation; PR #30's 48dp TouchTargetPolicy and PR #31's off-main appearance restore are represented. PR #13's adaptive-contrast intent is already integrated with the more conservative shared 8×8 probe at 4s/6s cadence, paused during scrolling and outside foreground home. +- The divergent `brrrNEWS` line is 4 ahead / 42 behind the active branch; its fixed-intensity supporting material is superseded by the active Clear↔Frosted-aware GlassSurfacePolicy and shared card geometry. `ui/liquid-glass-system-continuation-2026-11-07` is 52 behind; `redesign/v0.3-search-reader` is 230 behind. Neither is a safe baseline. +- PR #40's publisher-bound RSS URL validation, PRs #25/#26 publisher-resource security, #35 diagnostic-read bounds, #36 IST rollover, #38 parser budget and #32/#33 RSS changes remain separate review streams; no blind cherry-pick or source-branch mutation. + +## Parent exact-head Actions verification +- Fully paginated **322 workflow runs** (100 + 100 + 100 + 22): 192 success, 67 failure, 63 cancelled; queued/in-progress runs: **0**. +- Natural push run [#321](https://github.com/Batmancpu/CurrentLens/actions/runs/42457787922) and pull-request run [#322](https://github.com/Batmancpu/CurrentLens/actions/runs/42457791091) both passed on the exact parent SHA `5f7e8cfe7c536dec2923a67348fb028916ca637c`. Full job logs were inspected: WordNet builder 4/4, 151,456 unique words (50,950,144-byte database), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded. Publish job skipped. +- PR artifact [#13608536799](https://github.com/Batmancpu/CurrentLens/actions/runs/42457791091) is 39,117,807 bytes, SHA-256 `b65f0f9beb0a0468beaa7e99e33c122aed6f160987e0d0ca898b9019db1aea3f`, expires 22 November 2026 07:14 UTC. Push artifact #13607972960 is the same size and expires 22 November 2026 07:13 UTC. +- Active workflow `.github/workflows/build-apk.yml` uses read-only build permissions and natural push/pull_request triggers for main, the PR #16 base and this branch; the separate contents:write publish job runs only on a main push. Main's own workflow remains push-only with contents:write. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC); no Release was created by #321/#322. + +## Implementation — completion must reveal its contextual action +- ReaderWebView's final downward `onScrollChanged` can schedule the 160ms chrome-hide callback immediately before the end detector reports true completion. Because the completion dock is gated by `readerChromeVisible`, it could disappear just after the reader reached the end. +- Added a small pure `ReaderChromePolicy.reveal(state)` transition that restores visibility and clears directional accumulation. ReaderWebView now cancels a pending hide and reveals its existing chrome when true completion is reported; it does **not** pin controls permanently. Subsequent downward reading can still hide the toolbar/action layer normally. +- The same reveal policy is used for existing pinned/top resets. Native selection ActionMode, definition anchoring, IME/accessibility pinning, saved reading position, completion dismissal and five-question submit-only persistence are unchanged. + +## Coverage and paired-cost matrix — Reader completion +| Screen/component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| Reader toolbar + completion action | Tier 1/2 transient glass; source/Aa controls and the contextual completion CTA must be discoverable at the actual end state | Reuses the existing Reader toolbar/completion surfaces and one root background-only backdrop; no added blur, capture, readback or render pass | Existing PrismalTransientSurface; existing 160ms auto-hide and Reduced Motion timing remain unchanged | Pure policy test covers explicit reveal and hysteresis reset; selection, definition, IME, accessibility and native ActionMode paths unchanged | Source audit: 0 new render passes/captures; visual timing and OPPO cost UNVERIFIED | + +## Tests, risks and next step +- Added `ReaderChromePolicyTest.explicitRevealRestoresHiddenChromeAndClearsDirectionalAccumulation`. Natural CI must run on the new exact commit; the successful #321/#322 runs validate only the parent SHA above. +- No new timer, polling, frame callback, WebView JavaScript, network, image decode, persistence path, dependency, shader, blur, refraction, graphics layer or GPU readback was introduced. +- OPPO Reno10 screenshots/logcat/tombstone, reader-end dock visibility, native selection collision, TalkBack, font scaling, Reduce Motion, frame timing/jank, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. CI success does not prove device launch or animation smoothness. +- Next: inspect the new exact-head natural CI jobs/logs/artifact, then continue the remaining transient-control and whole-app consistency audit. No main write, PR merge/retarget, manual dispatch/rerun, Release publication, package identity change or source-branch deletion. + +--- + # Live implementation batch — Today feed rhythm and loading accessibility **Audit:** 8 November 2026, 12:31 IST **Source branch / SHA:** `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` From d5fab2ae9aa097e24180d831d6e0e8d64e441b43 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 13:37:02 +0530 Subject: [PATCH 135/175] docs(reader): scope chrome policy comments correctly --- .../java/com/mangoloads/currentlens/ReaderChromePolicy.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index cf4cf4ad..7f19cf70 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -23,15 +23,15 @@ internal object ReaderChromePolicy { ): Boolean = definitionOpen || selectionActive || imeVisible || accessibilityEnabled || textSizeMenuExpanded + /** Explicit reveal resets directional accumulation and any stale hide intent. */ + fun reveal(state: ReaderChromeScrollState): ReaderChromeScrollState = + state.copy(visible = true, direction = 0, accumulatedDeltaPx = 0) + /** * Downward document movement hides chrome after a larger threshold; upward movement * reveals it after a smaller threshold. Direction changes reset accumulated distance. * Pinning (selection/definition/IME/accessibility/transient menu) and returning to the top always reveal. */ - /** Explicit reveal resets directional accumulation and any stale hide intent. */ - fun reveal(state: ReaderChromeScrollState): ReaderChromeScrollState = - state.copy(visible = true, direction = 0, accumulatedDeltaPx = 0) - fun onScroll( state: ReaderChromeScrollState, deltaY: Int, From bf87623548e72a6e3fc757a26e7ad7af44a73cf0 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 14:31:37 +0530 Subject: [PATCH 136/175] fix(today): refresh editorial index at IST midnight --- .../currentlens/AsiaKolkataDayPolicy.kt | 23 ++++ .../mangoloads/currentlens/MainActivity.kt | 12 +- .../currentlens/AsiaKolkataDayPolicyTest.kt | 38 ++++++ docs/BRANCH_CONSOLIDATION.md | 116 ++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 32 +++++ 5 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/AsiaKolkataDayPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/AsiaKolkataDayPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/AsiaKolkataDayPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/AsiaKolkataDayPolicy.kt new file mode 100644 index 00000000..cffa3576 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/AsiaKolkataDayPolicy.kt @@ -0,0 +1,23 @@ +package com.mangoloads.currentlens + +import java.time.Duration +import java.time.Instant +import java.time.LocalDate +import java.time.ZoneId + +/** Calendar-day clock used by the Today feed; publisher timestamps remain unchanged. */ +internal object AsiaKolkataDayPolicy { + private val zone = ZoneId.of("Asia/Kolkata") + + fun today(now: Instant = Instant.now()): LocalDate = + now.atZone(zone).toLocalDate() + + fun millisUntilNextMidnight(now: Instant): Long { + val nextMidnight = now.atZone(zone) + .toLocalDate() + .plusDays(1) + .atStartOfDay(zone) + .toInstant() + return Duration.between(now, nextMidnight).toMillis().coerceAtLeast(1L) + } +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index fe4f5faf..24e737c2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -565,7 +565,17 @@ private fun BrrrNewsApp() { isLightTheme = !dark, bandHeight = 104.dp ) - val todayDate = LocalDate.now(ZoneId.of(INDIA_ZONE)) + var todayDate by remember { mutableStateOf(AsiaKolkataDayPolicy.today()) } + // Today is a calendar-day view, not a fetch-time snapshot. Keep its index current + // across IST midnight while foregrounded, and refresh immediately after backgrounding. + LaunchedEffect(appResumed) { + if (!appResumed) return@LaunchedEffect + todayDate = AsiaKolkataDayPolicy.today() + while (true) { + delay(AsiaKolkataDayPolicy.millisUntilNextMidnight(Instant.now())) + todayDate = AsiaKolkataDayPolicy.today() + } + } var feedIndex by remember { mutableStateOf(EditorialFeedIndex(emptyList(), emptyList(), emptyList())) } diff --git a/app/src/test/java/com/mangoloads/currentlens/AsiaKolkataDayPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/AsiaKolkataDayPolicyTest.kt new file mode 100644 index 00000000..c7613559 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/AsiaKolkataDayPolicyTest.kt @@ -0,0 +1,38 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test +import java.time.Instant +import java.time.LocalDate + +class AsiaKolkataDayPolicyTest { + @Test + fun calendarDateChangesAtAsiaKolkataMidnightNotUtcMidnight() { + val oneSecondBeforeKolkataMidnight = Instant.parse("2026-11-07T18:29:59Z") + val atKolkataMidnight = Instant.parse("2026-11-07T18:30:00Z") + + assertEquals( + LocalDate.of(2026, 11, 7), + AsiaKolkataDayPolicy.today(oneSecondBeforeKolkataMidnight) + ) + assertEquals( + LocalDate.of(2026, 11, 8), + AsiaKolkataDayPolicy.today(atKolkataMidnight) + ) + } + + @Test + fun foregroundRefreshWaitEndsAtTheNextKolkataMidnight() { + val oneSecondBeforeKolkataMidnight = Instant.parse("2026-11-07T18:29:59Z") + val atKolkataMidnight = Instant.parse("2026-11-07T18:30:00Z") + + assertEquals( + 1_000L, + AsiaKolkataDayPolicy.millisUntilNextMidnight(oneSecondBeforeKolkataMidnight) + ) + assertEquals( + 86_400_000L, + AsiaKolkataDayPolicy.millisUntilNextMidnight(atKolkataMidnight) + ) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 0ea0d6a9..b776ca7d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,119 @@ +# Latest live branch/PR/CI audit — 8 November 2026, 14:23 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged). +**Active:** `black-box-bihar-news@d5fab2ae9aa097e24180d831d6e0e8d64e441b43`, PR #34 open/draft → main; **138 ahead / 0 behind main** and **81 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. +**Inventory:** 44 remote branches (44 + 0 pagination); 41 PRs (27 open, 14 closed). No source branch was deleted or modified. + +## Baseline decision and branch freshness +- The owner-selected black-box branch remains the latest coherent UI integration line: it is a direct descendant of PR #16, retains the corrected background-only root capture and consolidated Reader/Search/feed-navigation implementation, and contains the latest verified UI state. +- PR #36 is a 3-commit/20-behind Today-date branch; its isolated Asia/Kolkata calendar policy was selectively ported into black-box without copying its older MainActivity. Source PR #36 exact head passed natural run #268; the integration commit requires its own exact-head CI. +- PR #37's RowScope repair, PR #30's 48dp target policy, PR #31's off-main appearance restore, PR #13's conservative 8×8 luminance probe and the prior PR #19/#20 work are represented in the active tree. +- PR #39 remains separate: owner-managed secrets and a first-install/local-data migration decision are required. PRs #40/#41 are unvalidated main-based RSS security/field-bound proposals; PR #38 and #32/#33 overlap parser/network code. The divergent brrrNEWS and stale Liquid Glass/v0.3 branches are not baselines. +- No main write, merge, retarget, force update, source-branch mutation, manual workflow dispatch/rerun or Release publication. + +## Actions, workflow and Release +- Exact parent PR run [#326](https://github.com/Batmancpu/CurrentLens/actions/runs/42461549072) and push run [#325](https://github.com/Batmancpu/CurrentLens/actions/runs/42461544503) passed on `d5fab2ae9aa097e24180d831d6e0e8d64e441b43`: WordNet 4/4; 151,456 unique words / 50,950,144-byte database; `:app:testDebugUnitTest`; `:app:assembleDebug`; APK artifact upload. Build successful in 1m 9s; Release job skipped. +- PR artifact #13610236262: 39,118,591 bytes; ZIP SHA-256 `db1f34ac9d690e85d398f5b25d5defea6686b5af477b6f70653f3b5fdf464b44`; expires 22 November 2026 08:09 UTC. +- Actions history: 326 runs (195 success, 67 failure, 64 cancelled); active/queued 0. `.github/workflows/build-apk.yml` uses read-only build/test permissions, natural push/PR validation for main, PR #16's base and black-box, and a separate main-push-only Release-write job. Latest published Release remains `v0.2.0-build-116`; no Release was published. + +## Complete remote branch inventory (44) + +| Branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open head; policy represented | +| `black-box-bihar-news` | `d5fab2ae9aa097e24180d831d6e0e8d64e441b43` | 2026-11-08 08:07:02Z | docs(reader): scope chrome policy comments correctly | PR #34 open/draft head; active integration | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | PR #24 open base; divergent/superseded material | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open head; compatible workflow intent represented | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed/unmerged; head equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35Z | fix: refresh article card metadata when feed content changes | PR #6 open head; editorial work represented selectively | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27Z | fix: select Atom article alternate links deterministically | PR #12 open head; compatible parser work selectively represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open head; provenance represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20Z | fix: minimise shareable process-exit diagnostics | PR #16 open head; corrected Prismal/stability ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19Z | test(editorial): cover reality TV and television promotion | PR #27 open head; independent editorial gate | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open head; combined editorial work represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47Z | fix(editorial): match policy action and target as separate words | PR #24 open head; based on divergent brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32Z | test: align economy signal count with repo-rate mapping | PR #2 merged into main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28Z | fix: tighten UPSC editorial signal matching | PR #1 merged into main | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06Z | fix: use supported calendar navigation glyph | PR #5 merged into main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44Z | test: preserve Parliament bill headline variants | PR #23 merged into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39Z | Validate RSS redirects against publisher allowlists | PR #15 closed/unmerged; safeguards superseded by PR #16 | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10Z | fix(quiz): qualify selected semantics receiver | PR #28 merged into black-box only | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24Z | test(rss): correct relative xml base fixture | PR #33 open head; NewsRepository overlap | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46Z | test(reader): cover publisher-only image resources | PR #25 open head; security review | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29Z | fix: deduplicate RSS tracking URL variants | PR #17 open head; dedupe represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56Z | docs: record verified search clear compile repair | PR #37 open head; RowScope correction already present | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03Z | fix: capture Search glass tint before draw callback | PR #10 merged into main | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31Z | docs: record stable signing validation and migration gate | PR #39 open head; owner secret/data migration gate | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06Z | fix: harden cold start and reduce feed rendering workload | PR #7 merged into main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open head; selected and ported in this batch | +| `fix/validate-rss-article-hosts-2026-11-08` | `dcdbce939d0626767163f6133a42b60d23af7e57` | 2026-11-08 06:52:22Z | Test publisher-bound RSS article URLs | PR #40 open head; unvalidated NewsRepository/security proposal | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | Default branch; base of open PRs #6, #8, #12, #13, #17, #18, #21, #40 and #41 | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36Z | fix(test): correct RSS budget test identifier | PR #38 open head; parser overlap with #32/#33 | +| `perf/bound-rss-field-values-2026-11-08` | `fb5f7517e8b03d92d72964622a156a68ff1f6397` | 2026-11-08 08:36:27Z | Test Unicode-safe RSS field bounds | PR #41 open head; unvalidated main-based parser proposal | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16Z | Record successful bounded-diagnostic CI | PR #35 open head; diagnostic-only | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04Z | Verify legacy markers survive recent-history retention | PR #22 open head; legacy markers retained | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26Z | docs: record bounded RSS fetch review and CI state | PR #32 open head; parser/network review | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open head; IO restore represented | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open head; persistence path represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31Z | perf: move read-marker persistence off main thread | PR #8 open head; history policy reconciled | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22Z | privacy: block third-party publisher reader subresources | PR #26 open head; joint security review | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48Z | fix: make selection decoding fallback valid JSON | No PR; stale, 230 behind active | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open head; conservative 8x8 policy represented | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39Z | fix: import bottom navigation glyphs | PR #4 closed/unmerged; PR #3 merged earlier code; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36Z | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box only | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34Z | fix: finish syllabus metadata and thin-film feed eligibility | No PR; 52 behind active | + +## Complete PR inventory (41) + +| PR | State / merge | Head branch @ SHA | Base branch @ SHA | Updated UTC | +|---:|---|---|---|---| +| #1 | closed/merged | `fix/editorial-token-boundaries-2026-11-06@0045c24637f162f1c13dceb1f8878f42f6eb15fd` | `main@682432a6a3122e3ddcd2710e052a30fc2958ed6c` | 2026-11-06T05:14:24Z | +| #2 | closed/merged | `fix/editorial-signal-count-test@4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | `main@f758af2ecc381ebeb6f9bb96aab172967eb973fb` | 2026-11-06T05:16:51Z | +| #3 | closed/merged | `ui/liquid-glass-performance-2026-11-06@b51d5e79ee8d3261c5458712f4e869ada1693697` | `main@6cf84bacd3dce62081cf0efee386e73411357ce0` | 2026-11-06T06:23:55Z | +| #4 | closed/unmerged | `ui/liquid-glass-performance-2026-11-06@2e9c7f62ca65a899e18d9026e1535392835b3724` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | 2026-11-06T06:26:39Z | +| #5 | closed/merged | `fix/navigation-icon-imports-2026-11-06@fa8868940c08ed5b4a9def014a850e8a9dcb3490` | `main@df28a43c0beae2e0a6ef74589a56c0e1786d66d3` | 2026-11-06T06:27:23Z | +| #6 | open/draft | `feat/gs1-geography-editorial-coverage@ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | 2026-11-07T00:14:20Z | +| #7 | closed/merged | `fix/startup-stability-performance-2026-11-06@654e660347de692ef88531dfa49c610269d69671` | `main@17b47e453ca02ade9d10110614736e904c9a4490` | 2026-11-06T07:19:26Z | +| #8 | open/draft | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | 2026-11-06T10:50:48Z | +| #9 | closed/merged | `fix/startup-crash-diagnostics-feed-jank-2026-11-06@5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | `main@81de60cca96bbbbfb066261b23e3f9843f82b7ee` | 2026-11-06T07:42:06Z | +| #10 | closed/merged | `fix/search-glass-theme-capture-2026-11-06@c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | `main@2475970123a2a2fb0e05be25d1d9a45061186c73` | 2026-11-06T07:44:54Z | +| #11 | open/draft | `fix/cache-publication-date-integrity-2026-11-06@be5151e674c2bd4fa9beb166fc38ddf622781f84` | `black-box-bihar-news@c6223c93de84cb25d1e19da42be3bd4992213f6d` | 2026-11-07T02:58:17Z | +| #12 | open/draft | `fix/atom-alternate-link-selection-2026-11-06@cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | 2026-11-06T09:14:32Z | +| #13 | open/draft | `ui/foreground-adaptive-glass-contrast-2026-11-06@3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | `main@ba06a8f3713884b4c4ac524386a6a11576f0bb24` | 2026-11-07T00:14:47Z | +| #14 | closed/unmerged | `docs/ai-agent-handoff-2026-11-06@ab2e4815d5077b96142a7aa8217443236739aacb` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T15:16:49Z | +| #15 | closed/unmerged | `fix/publisher-redirect-allowlist-2026-11-06@83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T12:37:37Z | +| #16 | open/draft | `fix/early-startup-crash-diagnostics-2026-11-06@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T19:36:06Z | +| #17 | open/draft | `fix/rss-tracking-variant-dedup-2026-11-06@2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-07T00:13:16Z | +| #18 | open/draft | `ci/read-only-pr-validation-isolated-release-write-2026-11-06@963118f0abe5f7e38f2aa66a49d4b8e74548660c` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T17:19:11Z | +| #19 | closed/merged | `ui/liquid-glass-system-2026-11-07@1f7cd2e5ddc5d169d1443035a8334538e44efc40` | `black-box-bihar-news@0e01bd5df661de6110ed8e045eb344f3219317fa` | 2026-11-07T02:57:33Z | +| #20 | closed/merged | `ci/stacked-pr-validation-2026-11-07@5dc3179361835b77fb3186a99d9b5791301463fd` | `black-box-bihar-news@6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-07T02:56:15Z | +| #21 | open/draft | `fix/editorial-heatwave-bill-signals-2026-11-07@89464104e300f48da10e3e32e33715cbe2405084` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06T22:06:16Z | +| #22 | open/draft | `perf/bounded-read-history-2026-11-07@910178af3f595993557533cb65d03e714bcd7760` | `perf/off-main-session-persistence-2026-11-06@ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06T23:53:25Z | +| #23 | closed/merged | `fix/parliamentary-syllabus-signal-gate-2026-11-07@9d754953a29c0355ce55306ce4fd5463193c9dbb` | `black-box-bihar-news@ebdfdd7b22c9164ab4ea24a6fa744e706081fc7f` | 2026-11-07T03:55:36Z | +| #24 | open/draft | `fix/editorial-policy-exception-guard-2026-11-07@1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | `brrrNEWS@e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07T07:29:39Z | +| #25 | open/draft | `fix/rss-image-host-allowlist-2026-11-07@7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | `black-box-bihar-news@2e2c15f5189ec6c60fa1f07f384bce4aa1734ea0` | 2026-11-07T07:30:59Z | +| #26 | open/draft | `privacy/webview-publisher-subresource-gate-2026-11-07@b8d2ef9ff2413c378347986d00961c401dfa771d` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | 2026-11-07T07:30:38Z | +| #27 | open/draft | `fix/editorial-action-gate-blackbox-2026-11-07@2468ed33326ac7310a2ddd5f993495e4051245b8` | `black-box-bihar-news@3a08bb95b0f9a0fed8ec11dae055f0ac2817a523` | 2026-11-08T03:32:29Z | +| #28 | closed/merged | `fix/quiz-option-selected-semantics-compile-2026-11-07@6f9b3c1e1a484233721863d0b736734c0d282cd5` | `black-box-bihar-news@947310a157e03df25dde3856d2686d18ffca68e8` | 2026-11-07T09:01:53Z | +| #29 | open/draft | `perf/off-main-bookmark-persistence-2026-11-07@a64857b5efa62ea053c0c96e5f374fd35924b340` | `black-box-bihar-news@6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07T09:08:11Z | +| #30 | open/draft | `a11y/48dp-icon-targets-2026-11-07@25107ce905b70bde1a41282ffd1d606819ebf58d` | `black-box-bihar-news@f7e10ab13e5098bd51f8c3ff3c03189ef0b72fbb` | 2026-11-07T11:12:58Z | +| #31 | open/draft | `perf/off-main-appearance-preferences-2026-11-07@bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:14:31Z | +| #32 | open/draft | `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c83cc69451f128aa259df86a8ce28f43a` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:30:22Z | +| #33 | open/draft | `fix/resolve-relative-atom-links-2026-11-07@c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | `black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7` | 2026-11-07T14:59:51Z | +| #34 | open/draft | `black-box-bihar-news@d5fab2ae9aa097e24180d831d6e0e8d64e441b43` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T08:07:11Z | +| #35 | open/draft | `perf/bound-startup-diagnostic-reads-2026-11-07@c4a977831846224182f16981b15e5c803761e26d` | `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` | 2026-11-07T17:34:25Z | +| #36 | open/draft | `fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6ef9be33d04a882ba463d4c72473419e2` | `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8` | 2026-11-07T20:48:45Z | +| #37 | open/draft | `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2` | 2026-11-07T22:51:33Z | +| #38 | open/draft | `perf/bound-rss-entry-parsing-2026-11-08@adade1ed8494c66b7e567de87f61f3dac3da7788` | `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` | 2026-11-08T03:34:06Z | +| #39 | open/draft | `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8` | `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | 2026-11-08T07:06:50Z | +| #40 | open/draft | `fix/validate-rss-article-hosts-2026-11-08@dcdbce939d0626767163f6133a42b60d23af7e57` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T06:53:49Z | +| #41 | open/draft | `perf/bound-rss-field-values-2026-11-08@fb5f7517e8b03d92d72964622a156a68ff1f6397` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T08:36:38Z | + +--- + # Live branch/PR/CI audit — 8 November 2026, 13:26 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index de8d32ac..aa7c8586 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -810,3 +810,35 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 appearance fidelity, card text contrast at large font scale, TalkBack, Reduce Motion, frame timing, jank, allocation/memory, GPU overdraw, thermal and battery remain UNVERIFIED. No performance win is claimed from code inspection. - Next: inspect this exact head's natural CI logs/artifact; then run the final whole-app shared-header, transient-control, accessibility and performance audit. Keep article text and repeated feed cards non-glass/no-per-card blur, one root background-only source, expanded-only tab glyph capture and the 4s/6s foreground-idle luminance cadence. + + +--- + +# Live implementation batch — Today index follows Asia/Kolkata midnight +**Audit:** 8 November 2026, 14:23 IST +**Source branch / parent SHA:** `black-box-bihar-news@d5fab2ae9aa097e24180d831d6e0e8d64e441b43` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 remains open/draft, unmerged, targeting main. + +## Freshness and dependency gate +- Re-enumerated the complete remote inventory: **44 branches** (page 1: 44, page 2: 0) and **41 PRs** (**27 open, 14 closed**). Exact branch heads/timestamps/messages and PR head/base refs are recorded in `docs/BRANCH_CONSOLIDATION.md`. +- Active integration head `d5fab2ae9aa097e24180d831d6e0e8d64e441b43` is **138 ahead / 0 behind main** and **81 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. PR #34 head/base match the active branch and unchanged main. +- PR #36 (`fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6ef9be33d04a882ba463d4c72473419e2`) is 3 commits ahead / 20 behind the current integration head, based on `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8`. Its isolated delta is `AsiaKolkataDayPolicy.kt`, the BrrrNewsApp date-state/timer insertion and two pure JVM tests. Its exact source head passed natural run #268; this selective port needs its own exact-head natural CI. +- PR #37's Search-clear RowScope repair is already present in the active Search field. PR #30's 48dp target policy and PR #31's off-main appearance restore are represented. PR #39 remains separate because its stable signing path needs owner-managed secrets and an explicit first-install/local-data migration decision. PRs #40/#41 are unvalidated main-based RSS security/field-bound proposals that need reconciliation against the newer `NewsRepository`; PR #38 overlaps #32/#33 parser work. The divergent `brrrNEWS`, old Liquid Glass and v0.3 branches are not valid baselines. +- No other branch was changed. No main write, merge, retarget, force update, source-branch mutation, manual workflow dispatch/rerun or Release publication. + +## Parent exact-head natural CI +- PR run [#326](https://github.com/Batmancpu/CurrentLens/actions/runs/42461549072) and push run [#325](https://github.com/Batmancpu/CurrentLens/actions/runs/42461544503) passed on exact parent SHA `d5fab2ae9aa097e24180d831d6e0e8d64e441b43`. Full PR job log: WordNet builder 4/4; 151,456 unique words (50,950,144-byte database); `:app:testDebugUnitTest`; `:app:assembleDebug`; APK artifact upload. Gradle reported `BUILD SUCCESSFUL in 1m 9s`; Release job skipped. +- PR artifact [#13610236262](https://github.com/Batmancpu/CurrentLens/actions/runs/42461549072/artifacts/13610236262): 39,118,591 bytes; ZIP SHA-256 `db1f34ac9d690e85d398f5b25d5defea6686b5af477b6f70653f3b5fdf464b44`; expires 22 November 2026 08:09 UTC. +- Actions history is fully paginated: **326 runs** (195 success, 67 failure, 64 cancelled); queue/in-progress **0**. Active workflow `.github/workflows/build-apk.yml` has read-only build/test permissions, natural push/PR triggers for main, PR #16's base and black-box, and a separate main-push-only Release-write job. Latest Release remains `v0.2.0-build-116`; no Release was published. + +## Implementation +- Replaced BrrrNewsApp's immutable composition-time Today date with a state-backed Asia/Kolkata calendar date. +- While the app is resumed, one cancellable coroutine waits directly until the next IST midnight, refreshes the date, and lets the existing `LaunchedEffect(articles, todayDate, localStateLoaded)` rebuild the editorial index. The timer is cancelled on pause/stop and the date is refreshed immediately on resume. +- This fixes a foreground-across-midnight stale Today index without refetching RSS, changing publisher timestamps, altering Explore retention, or touching saved/read/quiz data. Manual wall-clock changes while continuously resumed are not polled; resume refresh covers changes after backgrounding. + +## Paired cost control, tests and remaining verification +- One lifecycle-scoped delay, no polling, no background wakeup, no new network request, classification pass, backdrop capture/readback, blur/refraction, shader, graphics layer, image decode, dependency or persistence path. Existing off-main feed-index build and state invalidation are reused. +- Added pure tests for the 18:30 UTC / 00:00 IST date boundary and the next-midnight delay (1 second before boundary; 24 hours at boundary). The source PR's run #268 passed, but this integration commit still requires its own natural CI. +- No material/render-pass changes. OPPO Reno10 midnight transition, device launch, TalkBack, font scaling, Reduce Motion, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. + +**Next:** inspect the new exact-head natural push/PR jobs, full logs and APK artifact; then continue the remaining transient-control and whole-app consistency audit without adding glass to dense reading/data surfaces. From 90508dad6d8ce1327051f78eedf8273a1c5010cc Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 15:34:30 +0530 Subject: [PATCH 137/175] perf(ui): cache NewsCard palette glow draw resources --- .../mangoloads/currentlens/MainActivity.kt | 40 +++++++++++++------ docs/LIQUID_GLASS_UI_ROADMAP.md | 22 ++++++++++ 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 24e737c2..bf8da9ea 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -141,6 +141,7 @@ import androidx.compose.ui.geometry.CornerRadius import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.drawBehind +import androidx.compose.ui.draw.drawWithCache import androidx.compose.ui.draw.drawWithContent import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Brush @@ -2440,7 +2441,6 @@ private fun NewsCard( relevanceOverride: Relevance? = null ) { val context = LocalContext.current - val density = LocalDensity.current val relevance = remember(article.id, article.title, article.description, relevanceOverride) { relevanceOverride ?: UpscEngine.classify(article) } @@ -2468,19 +2468,35 @@ private fun NewsCard( Box( modifier = Modifier.fillMaxWidth().padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp) .graphicsLayer { clip = false } - .drawBehind { - val sampled = palette ?: return@drawBehind - val overscan = with(density) { 24.dp.toPx() } - drawRoundRect( - brush = Brush.radialGradient( - colors = listOf(sampled.copy(alpha = 0.30f), sampled.copy(alpha = 0.16f), Color.Transparent), + // Cache the palette glow's brush and geometry by card size/palette rather + // than allocating a new radial gradient on every draw invalidation. + .drawWithCache { + val sampled = palette + val overscan = 24.dp.toPx() + val glowTopLeft = Offset(-overscan, -overscan) + val glowSize = Size(size.width + overscan * 2f, size.height + overscan * 2f) + val glowCornerRadius = CornerRadius(34.dp.toPx()) + val glowBrush = sampled?.let { + Brush.radialGradient( + colors = listOf( + it.copy(alpha = 0.30f), + it.copy(alpha = 0.16f), + Color.Transparent + ), center = Offset(size.width * 0.5f, size.height * 0.40f), radius = maxOf(size.width, size.height) * 0.82f - ), - topLeft = Offset(-overscan, -overscan), - size = Size(size.width + overscan * 2f, size.height + overscan * 2f), - cornerRadius = CornerRadius(with(density) { 34.dp.toPx() }) - ) + ) + } + onDrawBehind { + if (glowBrush != null) { + drawRoundRect( + brush = glowBrush, + topLeft = glowTopLeft, + size = glowSize, + cornerRadius = glowCornerRadius + ) + } + } } ) { Card( diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index aa7c8586..f62bffc0 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -842,3 +842,25 @@ Next: after natural CI validates this exact head, perform the Appearance preview - No material/render-pass changes. OPPO Reno10 midnight transition, device launch, TalkBack, font scaling, Reduce Motion, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. **Next:** inspect the new exact-head natural push/PR jobs, full logs and APK artifact; then continue the remaining transient-control and whole-app consistency audit without adding glass to dense reading/data surfaces. + + +## Live implementation batch — cache NewsCard palette glow draw resources (8 November 2026, 15:28 IST) + +**Freshness and dependency gate** +- Re-enumerated all **44 remote branches** (page 1 complete; page 2 empty), all **41 pull requests** (**27 open, 14 closed**), and all branch head SHAs, commit timestamps/messages and PR head/base refs. The active source is black-box-bihar-news@bf87623548e72a6e3fc757a26e7ad7af44a73cf0, PR #34's exact open/draft head; comparison to main@73b8a0d1ba33503fede02db2c3c0af082d724a12 is **139 ahead / 0 behind** with main as merge base. PR #16's corrected background-only Prismal/stability line is an ancestor; PR #19 Reader/Search and PR #20 read-only stacked workflow changes are already consolidated in this branch. No branch was created, retargeted, merged or modified. +- The current branch already contains the PR #37 Search clear RowScope repair, PR #36 Asia/Kolkata midnight refresh, and the current equivalents of PR #30's 48dp target policy, PR #31's off-main appearance restore and PR #29's serialized bookmark persistence. The current exact-head CI confirms the integrated Search/Today source compiles. +- Kept separate: PR #39 stable signing is 6 ahead / 4 behind this branch and changes signing/build workflow plus migration documentation; it is not a UI baseline. PRs #40/#41 and #38/#32/#33 are independent RSS host/field/parser/concurrency work with divergent NewsRepository changes. PR #35 diagnostic-read bounds, PR #25/#26 publisher-resource restrictions and PR #27 editorial gating remain separate reviews. The old brrrNEWS, ui/liquid-glass-performance, ui/liquid-glass-system, continuation and redesign/v0.3-search-reader branches are not fresher safe UI baselines; their compare results are divergent or behind. +- Actions history is fully paginated: **328 runs** (100 + 100 + 100 + 28); queued and in-progress runs are **0**. The latest natural PR run [#328](https://github.com/Batmancpu/CurrentLens/actions/runs/42465403337) and push run [#327](https://github.com/Batmancpu/CurrentLens/actions/runs/42465399086) both passed on the exact parent SHA bf87623548e72a6e3fc757a26e7ad7af44a73cf0. PR job #128683637204 completed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder/database, :app:testDebugUnitTest, :app:assembleDebug and artifact upload successfully; the separate publish job was skipped. Artifact [#13611522689](https://github.com/Batmancpu/CurrentLens/actions/runs/42465403337/artifacts/13611522689) is **39,120,459 bytes**, SHA-256 5dbedc5c5445255c8b177093421dfc65974cb7c03f4028b4d7488e17751bcca2, expiring 22 November 2026 09:03 UTC. This validates the parent only, not the new commit below. +- .github/workflows/build-apk.yml remains read-only for build/test with a separately gated main-push Release-write job. Latest published Release remains v0.2.0-build-116; no Release was published. + +**Implementation** +- Changed only NewsCard's existing ambient image-palette glow from drawBehind to drawWithCache. The radial Brush, overscan bounds and rounded-corner geometry are now cached against the card's measured size and current decoded-image palette; a palette or size change rebuilds the cache, ordinary draw invalidations reuse it. +- Preserved the single Coil ImageRequest, one decoded bitmap palette sample, card shape/content, image sizing and standard non-glass content surface. No per-card blur/glass, second decode, new Prismal surface, backdrop capture/readback, shader, dependency, network, persistence or new animation was introduced. Existing graphicsLayer(clip = false) is unchanged to preserve the glow's overflow drawing. +- Paired optimization is allocation/cache scope only: it removes repeated radial-gradient Brush and geometry construction during redraws. This is source-level evidence, not a measured frame-time, allocation, memory, GPU, battery or thermal improvement. + +**Tests and verification** +- No new pure-policy test was added because the change is a Compose draw-cache lifecycle substitution with no changed policy output; existing feed geometry and app JVM tests remain the regression suite. The next natural workflow must validate this exact commit; no manual dispatch/rerun. +- OPPO Reno10 palette appearance, clipping, scroll jank, frame timing, allocation churn, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. CI compile success is not device-launch or visual proof. + +**Next** +- Inspect this exact head's natural PR run, complete job steps/logs and APK artifact before another UI change. Then complete the shared header/transient-control and whole-app consistency audit without adding blur to repeated feed cards or dense reading/data surfaces. From 9efd103a0cd8a272bbce3c61140e40bfa6a8b707 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 16:01:54 +0530 Subject: [PATCH 138/175] docs: record RSS Atom content review and CI snapshot --- docs/BUILD_AND_DEBUG.md | 13 +++++++++++++ docs/KNOWN_ISSUES.md | 9 +++++++++ docs/PROJECT_HANDOFF.md | 16 ++++++++++++++++ docs/SESSION_LEDGER.md | 15 +++++++++++++++ 4 files changed, 53 insertions(+) diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index b08b5dea..da32c6c2 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -1,5 +1,18 @@ # CurrentLens — Build, Test, Release and Debug Record +## Live review snapshot — 8 November 2026, 15:55 IST + +- Canonical main: `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- Full Actions history: 330 runs across four pages; 199 success, 67 failure, 64 cancelled; 0 queued/in progress. +- Latest natural integration run #330: https://github.com/Batmancpu/CurrentLens/actions/runs/42469858410; exact integration head `90508dad6d8ce1327051f78eedf8273a1c5010cc`. WordNet builder 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload passed; publish job skipped. Artifact 13612618168, 39,121,080 bytes, SHA-256 `e5556d4be8c6e760329f9919caad83af93f822611fa6b6be9762355f868e1f9a`, expires 22 Nov 2026 10:06:44 UTC. +- Latest Release sorted by publication timestamp: v0.2.0-build-116, published 6 Nov 2026 11:18:59 UTC. No Release created in this review. +- Main workflow remains push-only with workflow-wide `contents: write`; the integration branch's workflow is a separate unmerged proposal with read-only build/test and isolated main-push release-write. +- PR #41 now points to `e4ca4a522dd236052142aa31dc518979bfafe891`, draft/open/mergeable, base main. It adds bounded RSS fields and inline Atom content handling. Exact-head statuses/check-runs are empty; tests are added, not run. +- CI warnings observed in run #330: deprecated Android system-bar APIs, ArrowBack icon, Compose scale/updateTransition and LinearProgressIndicator overloads; Node 20 action deprecation forced to Node 24; punycode and url.parse() warnings. They did not fail the build. +- CI does not establish OPPO Reno10 launch stability, screenshot correctness, TalkBack, IME, frame time, GPU, memory, thermal or battery performance. + +--- + ## Application and toolchain at snapshot - Repository: Batmancpu/CurrentLens. Repository name remains CurrentLens. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index e20e220e..a76bb31d 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -171,3 +171,12 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - Correction: `.semantics { this.selected = chosen }`. The change is one line, preserves the intended selected-state semantics and does not alter quiz answer/scoring/submission persistence. - PR #28's direct child commit was fast-forwarded into the active integration branch. Natural run #209 passed on the exact code head in PR context; natural active-branch run #210 passed the same exact SHA with `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. - This is a compile defect, not evidence of a device crash. TalkBack selected-state behaviour, font scaling and physical-device layout still require a real-device check. + + +### KL-022 — Inline Atom content is discarded when no summary is present + +- **Status:** Standards-based parser false-negative risk; correction proposed in draft PR [#41](https://github.com/Batmancpu/CurrentLens/pull/41), exact-head tests added but not run. +- On main, `NewsRepository.parse()` treats the local-name `content` element only as an image URL candidate. A valid Atom entry can put its readable text in `atom:content` without a separate `summary`; the parser then discards that content. This can remove the explanatory excerpt used for syllabus classification. +- RFC 4287 defines Atom content constructs with text, HTML and XHTML forms. PR #41's follow-up commit `e4ca4a522dd236052142aa31dc518979bfafe891` reads inline Atom content only for the Atom namespace and accepted text/HTML/XHTML types, while preserving URL-backed Media RSS image handling and ignoring external Atom `src` references. +- Added policy tests for default/text/html/xhtml/MIME forms, external `src`, binary media and Media RSS, plus a nested-XHTML parser-cursor fixture. Tests are added, not run; main's workflow is still push-only. +- This is a standards-derived false-negative risk, not an observed live-feed count or measured editorial recall result. It adds no network request and does not make the 2 MiB whole-document parser streaming. Relative Atom links, entry ceilings, concurrency and publisher-host validation remain separate issues. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 98caa8f1..36a4e444 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,19 @@ +## Live snapshot — 8 November 2026, 15:55 IST + +- **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- **Active integration:** `black-box-bihar-news@90508dad6d8ce1327051f78eedf8273a1c5010cc`; PR [#34](https://github.com/Batmancpu/CurrentLens/pull/34) remains draft/open, 140 commits ahead and 0 behind main. The branch-specific workflow is not the workflow currently on main. +- **Repository inventory:** 44 branches, 27 open PRs, 14 closed PRs. No branch deletion or PR merge occurred. +- **Actions:** all four history pages were inspected (330 runs): 199 success, 67 failure, 64 cancelled; 0 queued and 0 in progress. Latest run [#330](https://github.com/Batmancpu/CurrentLens/actions/runs/42469858410) passed on the exact integration head. WordNet builder 4/4; 151,456 unique words; `:app:testDebugUnitTest`; `:app:assembleDebug`; artifact upload. Release job skipped. Artifact [13612618168](https://github.com/Batmancpu/CurrentLens/actions/runs/42469858410/artifacts/13612618168), 39,121,080 bytes, SHA-256 `e5556d4be8c6e760329f9919caad83af93f822611fa6b6be9762355f868e1f9a`, expires 22 November 2026 10:06:44 UTC. This validates the pre-documentation integration head, not PR #41. +- **Workflow:** main still has one push-only `.github/workflows/build-apk.yml` with workflow-wide `contents: write`; it does not validate PR #41. The integration branch's one workflow uses read-only build/test permissions and a separate main-push release-write job. PR #18's main workflow proposal remains open; no workflow was changed. +- **Latest Release:** [v0.2.0-build-116](https://github.com/Batmancpu/CurrentLens/releases/tag/v0.2.0-build-116), published 6 November 2026 11:18:59 UTC. Release list was sorted by publication time; API's default first item was not the newest by timestamp. No Release was created. +- **RSS parser follow-up:** existing draft [PR #41](https://github.com/Batmancpu/CurrentLens/pull/41), based on main, was extended rather than duplicated. New head `e4ca4a522dd236052142aa31dc518979bfafe891`; 8 commits, 6 files, draft/open/mergeable. It now bounds individual RSS fields, preserves nested Atom XHTML summaries, and reads inline Atom `content` text/html/xhtml when no external `src` is present. URL-backed Media RSS content remains an image; external Atom `src` is not fetched. Three additional focused tests were added across field-policy and XML-reader tests. Exact-head statuses/check-runs are empty; tests are **added, not run**. +- **Editorial:** integration `UpscFeedPolicy.kt` still has the generic action-term exception and global syllabus-signal gate. PR #27 is the existing strict-gate proposal, but its head remains unvalidated; do not claim the entertainment false-positive class is resolved. +- **Other integration blockers:** PRs #32/#38 RSS concurrency/entry bounds; #33 relative Atom links; #25/#26 image/WebView resource restrictions; #35 bounded startup diagnostic reads; #40 publisher article-host validation still need reconciliation with shared parser/security files. +- **Device evidence:** no fresh OPPO Reno10 logcat/tombstone or Perfetto trace was available. Native cold-start causality, visual/IME/TalkBack/font-scale/Reduce Motion and GPU/frame-time/memory/battery/thermal behaviour remain **UNVERIFIED**. CI is not device verification. +- **Safety:** no main edit, merge, workflow dispatch/rerun, Release publication or branch deletion. + +--- + ## Live snapshot — 8 November 2026, 05:24 IST - **Main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index c2823906..b7bcdc07 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -429,3 +429,18 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Rendering/cost:** no new Prismal surface, capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network or persistence operation. Only bounded scalar alpha calculations were added; no measured performance claim. - **CI parent evidence:** exact parent SHA passed natural PR run #281 and push run #280. PR #281 full job log: WordNet builder 4/4, 151,456-word dictionary, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; artifact `13596471410` (39,107,655 bytes). Push #280 also passed all build steps; artifact `13595943420` (39,107,647 bytes). The new commit requires its own natural run; no manual dispatch/rerun. - **Unverified:** OPPO Reno10 appearance, launch, visual contrast, accessibility, Reduce Motion, IME, frame timing, GPU overdraw, memory, thermal and battery remain UNVERIFIED. No release, main write, merge or source-branch mutation. + + +## 2026-11-08 15:55 IST / 10:25 UTC — Extend RSS parser hardening for inline Atom content + +- **Request / priority:** continue the strict UPSC CurrentLens quality review; preserve publisher provenance, avoid new network paths, and fix evidence-backed RSS false negatives without duplicating existing proposals. +- **Freshness gate:** canonical main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`. Active integration `black-box-bihar-news@90508dad6d8ce1327051f78eedf8273a1c5010cc`, PR #34 draft/open, 140 ahead / 0 behind main. Repository inventory: 44 branches, 27 open PRs, 14 closed PRs. Full Actions history paginated: 330 runs (199 success, 67 failure, 64 cancelled), queue/in-progress 0. Latest natural integration PR run #330 passed on exact head; WordNet builder 4/4, 151,456-word database, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; release job skipped. Artifact 13612618168, 39,121,080 bytes, SHA-256 `e5556d4be8c6e760329f9919caad83af93f822611fa6b6be9762355f868e1f9a`. Latest Release by publication timestamp remains v0.2.0-build-116. Main workflow remains push-only / workflow-wide contents:write; integration branch has PR validation and isolated release-write. +- **Evidence:** main's `NewsRepository.parse()` and the existing PR #41 parser treated local-name `content` only as a URL-backed image candidate. A valid Atom entry may supply readable content in `atom:content` without a separate `summary`; inline text/html/xhtml was silently ignored. RFC 4287 defines Atom content constructs, including text, HTML and XHTML. This is a standards-based parser false-negative risk, not a claim about a currently measured live-feed item. +- **Change:** reused existing draft PR #41 / branch `perf/bound-rss-field-values-2026-11-08` rather than creating a duplicate. Added `FeedFieldPolicy.isInlineAtomTextContent`; parser now reads inline Atom content only when the namespace is Atom, the type is an accepted text/HTML/XHTML form (or default text), and neither external `src` nor URL-backed media is present. Media RSS URL content continues through the image path. External Atom `src` is not fetched, so no network capability is added. Existing field bounds and `FeedXmlTextReader` remain in use. +- **Tests added:** two policy tests cover accepted Atom inline types, external `src`, non-text media and Media RSS; one XML-reader fixture covers nested Atom XHTML content and parser position before the next sibling. Existing PR #41 tests also cover bounded field values, supplementary Unicode, Atom XHTML summary, plain text/entities, CDATA and parser cursor behaviour. +- **Files on PR #41:** `FeedFieldPolicy.kt`, `NewsRepository.kt`, `FeedFieldPolicyTest.kt`, `FeedXmlTextReaderTest.kt`. Code commit `e4ca4a522dd236052142aa31dc518979bfafe891`, parent `9acf330c8e6b3fa1cb215e754b093bb59e666059`. PR #41 title updated to “Bound RSS fields and preserve inline Atom text constructs”; base remains main; 8 commits, 6 files, draft/open/mergeable. +- **Verification:** exact-head commit status and check-runs both contain zero entries; tests are **added, not run**. Main workflow is push-only, and no local build environment was available (container clone failed because github.com DNS resolution was unavailable). No workflow dispatch/rerun. No PR merge or Release. +- **Risks / limits:** accepted inline MIME types are deliberately conservative; unknown/binary types and external Atom `src` are ignored. This does not make the parser streaming; the existing whole-document RSS byte ceiling remains. Relative Atom links, feed concurrency/entry limits and publisher-host validation remain separate PRs. No live-feed precision/recall or memory benchmark is claimed. +- **Other findings:** integration editorial gate still admits generic policy/action combinations and uses a global syllabus-signal list; PR #27 remains the existing unvalidated correction. PR #32/#38, #33, #25/#26, #35 and #40 remain separate reconciliation work. +- **Device / visual:** no fresh OPPO Reno10 logcat/tombstone/Perfetto. Cold-start root cause, UI screenshots, TalkBack, IME, font scale, Reduce Motion, frame timing, GPU, memory, thermal and battery remain unverified. +- **Safety:** no direct main edit, merge, workflow change, manual dispatch/rerun, Release publication or branch deletion. From 8c1239a6762cacfce281233b96298096bf28a3a6 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 16:05:56 +0530 Subject: [PATCH 139/175] docs: record RSS redirect boundary review --- docs/BUILD_AND_DEBUG.md | 13 +++++++++++++ docs/KNOWN_ISSUES.md | 9 +++++++++ docs/PROJECT_HANDOFF.md | 18 ++++++++++++++++++ docs/SESSION_LEDGER.md | 15 +++++++++++++++ 4 files changed, 55 insertions(+) diff --git a/docs/BUILD_AND_DEBUG.md b/docs/BUILD_AND_DEBUG.md index da32c6c2..0a22f98e 100644 --- a/docs/BUILD_AND_DEBUG.md +++ b/docs/BUILD_AND_DEBUG.md @@ -1,5 +1,18 @@ # CurrentLens — Build, Test, Release and Debug Record +## Live review snapshot — 8 November 2026, 16:05 IST + +- Canonical main: `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- Full Actions history: 332 runs across four pages; 201 success, 67 failure, 64 cancelled; 0 queued/in progress. +- Latest natural PR #34 run #332 and push run #331 both passed on exact integration/docs head `9efd103a0cd8a272bbce3c61140e40bfa6a8b707`. WordNet builder 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; publish jobs skipped. PR artifact 13613339920 (39,121,080 bytes, SHA-256 `4b1c580f4224a731a1523e2df5e477ab64efb6543e6f3bea3b5ba63b059e4245`); push artifact 13613817606 (39,121,079 bytes, SHA-256 `c7b46466803b5da8e78c58410f51c0a2db5110c11f7bae2d0983c336934daa00`). Both expire 22 Nov 2026 around 10:34 UTC. +- Latest Release by publication timestamp: v0.2.0-build-116, published 6 Nov 2026 11:18:59 UTC. No Release created. +- Main workflow remains push-only with workflow-wide `contents: write`; integration branch workflow is a separate unmerged proposal with read-only build/test and isolated main-push release-write. +- PR #40 exact head `552b96e7948ac5ade821a711ea8dd225984824a9` and PR #41 exact head `e4ca4a522dd236052142aa31dc518979bfafe891` both have zero status/check-run entries. Their tests are added, not run. +- Non-blocking CI warnings in #331/#332: deprecated Android system-bar APIs, ArrowBack icon, Compose scale/updateTransition and LinearProgressIndicator overloads; Node 20 action deprecation forced to Node 24; punycode and url.parse() warnings. +- These runs validate the integration/docs head only, not PR #40/#41 or Android device behaviour. + +--- + ## Live review snapshot — 8 November 2026, 15:55 IST - Canonical main: `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/KNOWN_ISSUES.md b/docs/KNOWN_ISSUES.md index a76bb31d..3ae46fed 100644 --- a/docs/KNOWN_ISSUES.md +++ b/docs/KNOWN_ISSUES.md @@ -180,3 +180,12 @@ Snapshot main: 73b8a0d1ba33503fede02db2c3c0af082d724a12 (6 Nov 2026). - RFC 4287 defines Atom content constructs with text, HTML and XHTML forms. PR #41's follow-up commit `e4ca4a522dd236052142aa31dc518979bfafe891` reads inline Atom content only for the Atom namespace and accepted text/HTML/XHTML types, while preserving URL-backed Media RSS image handling and ignoring external Atom `src` references. - Added policy tests for default/text/html/xhtml/MIME forms, external `src`, binary media and Media RSS, plus a nested-XHTML parser-cursor fixture. Tests are added, not run; main's workflow is still push-only. - This is a standards-derived false-negative risk, not an observed live-feed count or measured editorial recall result. It adds no network request and does not make the 2 MiB whole-document parser streaming. Relative Atom links, entry ceilings, concurrency and publisher-host validation remain separate issues. + + +### KL-023 — RSS endpoint redirects are not constrained to the configured publisher + +- **Status:** Evidence-backed network-boundary defect; correction proposed in draft PR [#40](https://github.com/Batmancpu/CurrentLens/pull/40), exact-head tests added but not run. +- `NewsRepository.fetchOne()` previously relied on `HttpURLConnection` automatic redirect following. The initial RSS endpoint was publisher-configured, but a 3xx response could send the next request to an arbitrary host before article URL validation. +- PR #40 disables automatic redirects, validates the initial feed host and each resolved `Location` against the configured publisher's HTTPS allowlist, accepts only standard redirect codes, caps the chain at five and fails closed on cross-publisher/lookalike/cleartext/credential/non-standard-port/oversized targets. `bbci.co.uk` is included for the configured `feeds.bbci.co.uk` source. +- Four focused redirect-policy tests and one BBC feed-host assertion were added. Tests are **added, not run**; main's workflow is push-only and PR #40 has no statuses/check-runs. +- This prevents an RSS endpoint from silently widening the app's network boundary. It does not restrict image URLs or WebView subresources; those remain separate PRs #25/#26. It adds no new network request and does not prove every live publisher feed's redirect chain. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 36a4e444..b5cb1a5a 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,21 @@ +## Live snapshot — 8 November 2026, 16:05 IST + +- **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- **Active integration:** `black-box-bihar-news@9efd103a0cd8a272bbce3c61140e40bfa6a8b707`; PR [#34](https://github.com/Batmancpu/CurrentLens/pull/34) is draft/open, 141 commits ahead and 0 behind main. The current snapshot is the code/documentation head before this handoff refresh. +- **Repository inventory:** 44 branches, 27 open PRs, 14 closed PRs. No branch deletion or PR merge. +- **Actions:** 332 runs across four pages; 201 success, 67 failure, 64 cancelled; queue and in-progress 0. Latest natural push run [#331](https://github.com/Batmancpu/CurrentLens/actions/runs/42471818414) and PR run [#332](https://github.com/Batmancpu/CurrentLens/actions/runs/42471821932) both passed on exact integration head `9efd103a0cd8a272bbce3c61140e40bfa6a8b707`. WordNet builder 4/4; 151,456 unique words; `:app:testDebugUnitTest`; `:app:assembleDebug`; artifact upload. Release jobs skipped. Artifacts: push [13613817606](https://github.com/Batmancpu/CurrentLens/actions/runs/42471818414/artifacts/13613817606), 39,121,079 bytes, SHA-256 `c7b46466803b5da8e78c58410f51c0a2db5110c11f7bae2d0983c336934daa00`; PR [13613339920](https://github.com/Batmancpu/CurrentLens/actions/runs/42471821932/artifacts/13613339920), 39,121,080 bytes, SHA-256 `4b1c580f4224a731a1523e2df5e477ab64efb6543e6f3bea3b5ba63b059e4245`. Both expire 22 November 2026 around 10:34 UTC. These runs validate PR #34's integration/docs head, not the separate PR #40/#41 heads. +- **Workflow:** main has one push-only `.github/workflows/build-apk.yml` with workflow-wide `contents: write`; it does not validate PR #40/#41. The integration branch's workflow is a separate unmerged version with read-only build/test and isolated main-push release-write. PR #18 remains the main-workflow proposal. +- **Latest Release:** [v0.2.0-build-116](https://github.com/Batmancpu/CurrentLens/releases/tag/v0.2.0-build-116), published 6 November 2026 11:18:59 UTC. No Release created. +- **RSS PRs:** [#40](https://github.com/Batmancpu/CurrentLens/pull/40) now validates both RSS article destinations and every publisher-feed redirect. Head `552b96e7948ac5ade821a711ea8dd225984824a9`; 6 commits, 7 files, draft/open/mergeable; tests added, not run. [#41](https://github.com/Batmancpu/CurrentLens/pull/41) bounds untrusted RSS fields and preserves Atom XHTML summaries plus inline Atom content; head `e4ca4a522dd236052142aa31dc518979bfafe891`; 8 commits, 6 files, draft/open/mergeable; tests added, not run. Both are main-based and both modify `NewsRepository.kt`; reconcile their parser/redirect changes before integration rather than merging independently. +- **Editorial:** current integration `UpscFeedPolicy.kt` still has a generic action-term exception and global syllabus-signal gate. PR #27 remains the existing strict-gate proposal without verified exact-head CI. Entertainment false positives and unrelated-excerpt false positives are not certified resolved. +- **Remaining RSS/security work:** #32 concurrency limit, #38 per-feed parser-entry budget, #33 relative Atom links, #25 publisher image hosts, #26 WebView subresource restrictions, #35 bounded startup diagnostic reads. These require coordinated review. +- **Primary-source evidence:** configured live feeds remain publisher RSS; no per-story independently verified PIB/Gazette/ministry/Parliament/PRS/RBI/Supreme Court/regulator corroboration is yet implemented. Publisher RSS remains secondary provenance. +- **UPSC baseline:** official 2026 Prelims GS I–II and Mains GS I–IV papers are available from UPSC; the 2017–2026 ten-year reference window is current. [Official UPSC previous papers](https://www.upsc.gov.in/examinations/previous-question-papers). +- **Device evidence:** no fresh OPPO Reno10 logcat/tombstone or Perfetto trace. Cold-start causality, visual/IME/TalkBack/font-scale/Reduce Motion and GPU/frame-time/memory/battery/thermal remain **UNVERIFIED**. +- **Safety:** no main edit, merge, workflow dispatch/rerun, Release publication or branch deletion. + +--- + ## Live snapshot — 8 November 2026, 15:55 IST - **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index b7bcdc07..80714c73 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -444,3 +444,18 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Other findings:** integration editorial gate still admits generic policy/action combinations and uses a global syllabus-signal list; PR #27 remains the existing unvalidated correction. PR #32/#38, #33, #25/#26, #35 and #40 remain separate reconciliation work. - **Device / visual:** no fresh OPPO Reno10 logcat/tombstone/Perfetto. Cold-start root cause, UI screenshots, TalkBack, IME, font scale, Reduce Motion, frame timing, GPU, memory, thermal and battery remain unverified. - **Safety:** no direct main edit, merge, workflow change, manual dispatch/rerun, Release publication or branch deletion. + + +## 2026-11-08 16:05 IST / 10:35 UTC — Constrain RSS feed redirects to publisher hosts (PR #40) + +- **Evidence:** main and the current integration `NewsRepository.fetchOne()` opened configured HTTPS RSS endpoints with `HttpURLConnection` default redirect-following enabled. Only the initial feed URL was configured; automatic 3xx handling could issue a subsequent request to a foreign host before any article-link validation. This violated the intended network boundary even though the feed's item links were separately being validated in PR #40. +- **Dependency check:** PR #40 already owned publisher-host validation for RSS article destinations and changed `NewsRepository.kt` / `PublisherHostPolicy.kt`. No existing PR was found that validated the RSS endpoint's redirect chain. Extended PR #40 rather than opening a duplicate host-policy PR. +- **Implementation:** set `instanceFollowRedirects = false`; validate the configured initial feed URL and each redirect target with `PublisherHostPolicy` before opening the next connection; resolve relative `Location` references against the current URL; allow only 301/302/303/307/308; reject missing/oversized locations, unsupported statuses, cross-publisher/lookalike hosts, cleartext downgrade, credentials, non-standard ports and chains beyond five redirects. Added `bbci.co.uk` because the configured BBC feed host is `feeds.bbci.co.uk`. No new cookie, proxy, JavaScript, DOM-storage, external asset or fallback path was added. +- **Tests added:** four `PublisherRedirectPolicyTest` methods cover standard redirect statuses, relative/absolute same-publisher resolution, cross-host/lookalike/cleartext rejection and missing/oversized/exhausted chains. Extended `PublisherHostPolicyTest` for the configured BBC feed hostname. Tests are **added, not run**. +- **Files on PR #40:** `NewsRepository.kt`, `PublisherHostPolicy.kt`, new `PublisherRedirectPolicy.kt`, `PublisherHostPolicyTest.kt`, new `PublisherRedirectPolicyTest.kt`. Commits `73fcadd6c05aa314b8a7302d6f8bffbe9bd6d401` and `552b96e7948ac5ade821a711ea8dd225984824a9`; PR #40 head is `552b96e7948ac5ade821a711ea8dd225984824a9`, base main, 6 commits / 7 files, draft/open/mergeable. +- **Verification:** PR #40 exact-head commit has zero status entries and zero check-runs. Main's workflow is push-only; no local Gradle environment was available (container clone could not resolve github.com). No workflow dispatch/rerun. No merge or Release. +- **Integration conflict:** PR #41 independently changes `NewsRepository.kt` for bounded fields and Atom text constructs. Both PRs remain main-based; reconcile parser, redirect and article-link changes together before integration. PR #40 does not include PR #41's field/XHTML work. +- **CI / workflow audit:** the documentation-only commit on PR #34 produced natural runs #331 (push) and #332 (pull_request), both passed on exact PR #34 head `9efd103a0cd8a272bbce3c61140e40bfa6a8b707`. WordNet builder 4/4; 151,456 words; `:app:testDebugUnitTest`; `:app:assembleDebug`; artifact upload; release jobs skipped. Artifacts 13613817606 (39,121,079 bytes, SHA-256 `c7b46466803b5da8e78c58410f51c0a2db5110c11f7bae2d0983c336934daa00`) and 13613339920 (39,121,080 bytes, SHA-256 `4b1c580f4224a731a1523e2df5e477ab64efb6543e6f3bea3b5ba63b059e4245`). These runs do not validate PR #40 or #41. +- **Current priorities:** strict editorial action/syllabus gate PR #27; RSS redirect/article-host PR #40; bounded fields/Atom inline content PR #41; RSS concurrency/entry budgets #32/#38; Atom relative-link selection #33; image/WebView resource restrictions #25/#26; bounded startup diagnostic reads #35. +- **Device / visual:** no fresh OPPO Reno10 logcat/tombstone/Perfetto. Native launch causality, screenshots, TalkBack, IME, font scale, Reduce Motion, frame timing, GPU, memory, thermal and battery remain unverified. +- **Safety:** no main write, merge, workflow modification, manual dispatch/rerun, Release publication or branch deletion. From f73ea24fe71489813df3f576ee843d564b51de56 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 16:36:43 +0530 Subject: [PATCH 140/175] ui(appearance): reuse shared glass page header --- .../mangoloads/currentlens/MainActivity.kt | 81 ++++++++++--------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index bf8da9ea..a818cea9 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4300,52 +4300,53 @@ private fun GlassSettingsScreen( onGlassAlphaChange: (Float) -> Unit, onBack: () -> Unit ) { - Column( - Modifier.fillMaxSize().verticalScroll(rememberScrollState()) - .padding(horizontal = 18.dp).padding(bottom = 28.dp), - verticalArrangement = Arrangement.spacedBy(16.dp) - ) { - Row( - Modifier.fillMaxWidth().padding(top = 8.dp).heightIn(min = 52.dp), - verticalAlignment = Alignment.CenterVertically - ) { - IconButton(onClick = onBack) { - Icon(Icons.Outlined.ArrowBack, contentDescription = "Back") - } - Column(verticalArrangement = Arrangement.spacedBy(1.dp)) { - Text("Appearance", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) - Text( - "Personalise controls and reading surfaces", - style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary - ) - } - } - - AppearanceGlassEditor( + val dark = isSystemInDarkTheme() + Column(Modifier.fillMaxSize()) { + HomeGlassHeader( backdrop = backdrop, glassAlpha = glassAlpha, - reduceTransparency = reduceTransparency, - dark = isSystemInDarkTheme(), - onReduceTransparencyChange = onReduceTransparencyChange, - onGlassAlphaChange = onGlassAlphaChange + dark = dark, + pageTitle = "Appearance", + subtitle = "Personalise controls and reading surfaces", + showRefresh = false, + onRefresh = {}, + refreshing = false, + showBack = true, + onBack = onBack ) - SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { - Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { - Text("Designed for reading first", fontWeight = FontWeight.SemiBold) - Text( - "Navigation and controls borrow the glass material; article text, imagery and study data stay clear and high-contrast. Your appearance choice is saved locally on this device.", - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.onSurfaceVariant - ) + Column( + Modifier.weight(1f).fillMaxWidth() + .verticalScroll(rememberScrollState()) + .padding(horizontal = 18.dp) + .padding(top = 8.dp, bottom = 28.dp), + verticalArrangement = Arrangement.spacedBy(16.dp) + ) { + AppearanceGlassEditor( + backdrop = backdrop, + glassAlpha = glassAlpha, + reduceTransparency = reduceTransparency, + dark = dark, + onReduceTransparencyChange = onReduceTransparencyChange, + onGlassAlphaChange = onGlassAlphaChange + ) + + SupportingGlassCard(modifier = Modifier.fillMaxWidth()) { + Column(Modifier.padding(16.dp), verticalArrangement = Arrangement.spacedBy(5.dp)) { + Text("Designed for reading first", fontWeight = FontWeight.SemiBold) + Text( + "Navigation and controls borrow the glass material; article text, imagery and study data stay clear and high-contrast. Your appearance choice is saved locally on this device.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } } + Text( + "Unsupported shader effects fall back automatically. Reduce transparency removes live blur and refraction; appearance settings use no cloud service.", + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.secondary + ) } - Text( - "Unsupported shader effects fall back automatically. Reduce transparency removes live blur and refraction; appearance settings use no cloud service.", - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.secondary - ) } } From c7f3711ddb13a4bd595bbde7d003f641f58eb705 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 16:40:16 +0530 Subject: [PATCH 141/175] docs: record appearance header and live branch audit --- docs/BRANCH_CONSOLIDATION.md | 62 +++++++++++++++++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 24 +++++++++++++ 2 files changed, 86 insertions(+) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index b776ca7d..f27e002c 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1717,3 +1717,65 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 - This pass adds shared SupportingCardGeometryPolicy tokens and standardises You/Saved/Reading Stats/Quiz Stats supporting surfaces and empty states. Existing static SupportingGlassCard is reused; no additional blur, backdrop capture, sampler, shader, graphics layer, decode, dependency or persistence path. The exact implementation commits are d8b7146e3546e0e248bb5db766ccb0ec8ac09184, 41b572e77f1a7eca48abb11729ac5dd175b3ee69 and dfcc792887cd56d7e5272ca4087c6517c88b3a44. - Actions limitation: the connected GitHub actions expose exact-commit PR runs, job steps, logs and artifacts, but no repository-wide list-runs/queue action. Therefore run #256 is the latest verified exact active-branch PR run; the full queue/history could not be independently enumerated in this pass. The connector also exposes no Releases listing action; the last recorded Release v0.2.0-build-116 remains historical, not freshly verified here. - New exact-head CI is pending after the code and documentation commits; do not dispatch/rerun. No main change, Release publication, PR merge, source-branch deletion or device-backed performance claim. + + +## Live repository/branch/PR/Actions audit — 8 November 2026, 11:06 UTC + +- **Default branch:** \`main@73b8a0d1ba33503fede02db2c3c0af082d724a12\`, unchanged. +- **Active integration:** \`black-box-bihar-news@f73ea24fe71489813df3f576ee843d564b51de56\`; parent \`8c1239a6762cacfce281233b96298096bf28a3a6\`. PR #34 is open/draft, head matches the branch, base is main, mergeable; comparison is **143 ahead / 0 behind main**, merge base main. PR #16's corrected background-only Prismal/stability head is an ancestor; active integration is **86 commits ahead** of it. +- **Complete graph:** 44 remote branches (page 1 = 44, page 2 = 0); 41 PRs (27 open, 14 closed). The full branch metadata table follows. This table supersedes earlier inventory tables for current refs; older historical entries remain for chronology. +- **Relevant ancestry/diff review:** PR #37 is 6 ahead / 24 behind active at this snapshot; its RowScope Search clear fix is already present in current \`MainActivity.kt\`. PR #30 is 3 ahead / 39 behind; its \`TouchTargetPolicy.kt\` blob is identical. PR #36 is 3 ahead / 25 behind; its AsiaKolkataDayPolicy and test blobs are identical. PR #31 is 5 ahead / 38 behind; AppearancePreferencesPolicy is identical. PR #29 is 1 ahead / 42 behind; BookmarkSetPolicy is identical. These source branches remain untouched. +- PR #39 is 6 ahead / 8 behind and changes the build/signing workflow, Gradle signing configuration and migration documentation; it is not a UI baseline and remains blocked on owner-configured secrets, pinned certificate fingerprint and explicit local-data migration acceptance. PR #40/#41 are main-based RSS changes (6/143 and 8/143 ahead/behind relative to active) and both alter NewsRepository; do not port independently. PR #32/#33/#38 also overlap parser/concurrency paths. PR #35 is diagnostic-only. PR #25/#26 require joint resource-security review. PR #27/#21/#24/#6 are editorial proposals. PR #13's source differs from the current conservative shared luminance implementation. No unrelated branch was changed. +- **Current source commit:** \`f73ea24fe71489813df3f576ee843d564b51de56\` (\`ui(appearance): reuse shared glass page header\`, 11:06:43 UTC). It replaces only the Appearance page's plain title/back row with the shared glass header; the detailed design/cost rationale is in \`LIQUID_GLASS_UI_ROADMAP.md\`. +- **Actions:** fully paginated 334 runs (100 + 100 + 100 + 34): 203 success, 67 failure, 64 cancelled; queued/in-progress 0. Latest natural push run #333 and PR run #334 passed on parent \`8c1239a6\`; WordNet builder 4/4, 151,456-word database, \`:app:testDebugUnitTest\`, \`:app:assembleDebug\`, artifact upload; publish jobs skipped. PR artifact #13614265719 is 39,121,080 bytes (SHA-256 \`95dd164522c666932f4dccb52b8c918c164a4879f0e42474b3cb161aa8750c11\`); push artifact #13614275602 is 39,121,079 bytes (SHA-256 \`507da7fd7fcddd2c23c485f73ae194473cc546cce9f4911ab5dc7a41537b2942\`). These runs do **not** validate new head f73ea24; its natural push/PR runs are pending. +- **Workflow / Release:** integration \`.github/workflows/build-apk.yml\` has read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only with workflow-wide contents:write. Latest Release remains \`v0.2.0-build-116\`, published 6 November 2026 11:18:59 UTC; no Release was created. +- **Safety:** no main write, merge, retarget, force update, workflow dispatch/rerun, Release publication or branch deletion. No OPPO Reno10 logcat/tombstone/Perfetto or screenshot evidence was available; native launch, visuals, accessibility, frame timing, GPU, memory, thermal and battery remain UNVERIFIED. + +### Complete remote branch inventory + +| Remote branch | Head SHA | Last commit (UTC) | Last commit message | PR relationship / disposition | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open; policy already represented | +| `black-box-bihar-news` | `f73ea24fe71489813df3f576ee843d564b51de56` | 2026-11-08 11:06:43 | ui(appearance): reuse shared glass page header | #34 open/draft; active; base main | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | base of #24; divergent sibling, not baseline | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open; separate main workflow proposal | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed; CI design represented in active branch | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | current ref equals main; #14 closed | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | #6 open; editorial proposal | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | #12 open; parser delta selectively represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | #11 open; selected policies represented | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890` | 2026-11-06 19:33:20 | fix: minimise shareable process-exit diagnostics | #16 open; corrected stability ancestor | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19 | test(editorial): cover reality TV and television promotion | #27 open; editorial-only | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open; editorial proposal | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | #24 open; based on divergent brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 closed | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 closed | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 closed; integrated into black-box only | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed; redirect policy lineage superseded by later host review | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 closed; integrated into black-box only | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 | test(rss): correct relative xml base fixture | #33 open; NewsRepository/parser delta | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | #25 open; security review pending | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | #17 open; URL identity policy selectively represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 | docs: record verified search clear compile repair | #37 open; RowScope fix already present in active MainActivity | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 closed | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31 | docs: record stable signing validation and migration gate | #39 open; secret-backed signing/migration proposal | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 closed | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 | test(today): cover Asia/Kolkata midnight rollover | #36 open; policy/test blobs identical in active tree | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28 | fix(rss): keep redirect result non-null | #40 open; main-based RSS/network delta | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36 | fix(test): correct RSS budget test identifier | #38 open; parser-only | +| `perf/bound-rss-field-values-2026-11-08` | `e4ca4a522dd236052142aa31dc518979bfafe891` | 2026-11-08 10:30:00 | fix(rss): retain inline Atom content text | #41 open; main-based parser/field delta | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 | Record successful bounded-diagnostic CI | #35 open; diagnostic-only | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | #22 open; based on #8; legacy markers retained | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 | docs: record bounded RSS fetch review and CI state | #32 open; NewsRepository delta | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 | fix(startup): keep appearance snapshot API module-internal | #31 open; AppearancePreferencesPolicy blob identical | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | #29 open; BookmarkSetPolicy blob identical | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | #8 open; reconciled persistence lineage | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | #26 open; security review pending | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | no PR; stale, 236 behind active | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open; older policy differs from active conservative implementation | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #3/#4 closed; divergent and 160 behind active | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed; integrated into black-box only | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | no PR; 59 behind active, superseded | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index f62bffc0..5ddfa85a 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -864,3 +864,27 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Next** - Inspect this exact head's natural PR run, complete job steps/logs and APK artifact before another UI change. Then complete the shared header/transient-control and whole-app consistency audit without adding blur to repeated feed cards or dense reading/data surfaces. + + +## Appearance settings adopt the shared glass page header — 8 November 2026 + +**Branch freshness and source** +- Re-enumerated the complete remote graph: **44 branches** (page 1 = 44, page 2 = 0) and **41 pull requests** (**27 open, 14 closed**). The complete per-branch head, commit timestamp/message and PR relationship table is appended to \`docs/BRANCH_CONSOLIDATION.md\`. +- Owner-selected source remains \`black-box-bihar-news\`. The pre-change source was \`8c1239a6762cacfce281233b96298096bf28a3a6\`, **142 ahead / 0 behind** \`main@73b8a0d1ba33503fede02db2c3c0af082d724a12\`; PR #34 head matched that source, was open/draft and targeted main. This screen-sized commit is \`f73ea24fe71489813df3f576ee843d564b51de56\`, direct child of that source; current branch/PR #34 head matches and is **143 ahead / 0 behind main**. No retarget, merge, force update or source-branch mutation. +- PR #16's corrected background-only Prismal/stability lineage remains an ancestor. The current branch is 86 commits ahead of that PR #16 head. PR #37's Search RowScope correction is already present in the active Search field; PR #30's \`TouchTargetPolicy.kt\`, PR #36's Asia/Kolkata day policy/test, PR #31's appearance-preference policy and PR #29's bookmark-set policy match current source blobs and were not replayed. +- Kept separate: PR #39 stable signing is divergent (6 ahead / 7 behind the pre-change source) and requires owner-managed signing secrets, a pinned certificate fingerprint and an explicit first-install/local-data migration decision. PRs #40/#41 are main-based RSS redirect/field changes; #32/#33/#38 are overlapping parser/concurrency proposals; #35 is diagnostic-only; #25/#26 require a joint publisher-resource security review; #27 is editorial-only. The adaptive-contrast source branch #13 differs from the current conservative implementation and was not copied. Divergent \`brrrNEWS\`, stale \`ui/liquid-glass-performance\`, old Liquid Glass siblings and \`redesign/v0.3-search-reader\` are not baselines. + +**Parent exact-head CI** +- The pre-change source \`8c1239a6762cacfce281233b96298096bf28a3a6\` passed natural push run [#333](https://github.com/Batmancpu/CurrentLens/actions/runs/42472112589) and PR run [#334](https://github.com/Batmancpu/CurrentLens/actions/runs/42472116961). Both build jobs completed checkout, Java, stable test-signing cache, Android SDK/platform, Gradle, WordNet builder tests (4/4), 151,456-word offline dictionary generation, \`:app:testDebugUnitTest\`, \`:app:assembleDebug\` and artifact upload; the publish job was skipped. +- PR artifact [#13614265719](https://github.com/Batmancpu/CurrentLens/actions/runs/42472116961/artifacts/13614265719): **39,121,080 bytes**, SHA-256 \`95dd164522c666932f4dccb52b8c918c164a4879f0e42474b3cb161aa8750c11\`, expires 22 November 2026 10:38 UTC. Push artifact [#13614275602](https://github.com/Batmancpu/CurrentLens/actions/runs/42472112589/artifacts/13614275602): **39,121,079 bytes**, SHA-256 \`507da7fd7fcddd2c23c485f73ae194473cc546cce9f4911ab5dc7a41537b2942\`, expires 22 November 2026 10:38 UTC. +- Actions history is fully paginated: **334 runs** (100 + 100 + 100 + 34), **203 success / 67 failure / 64 cancelled**, queue/in-progress **0**. The current branch workflow retains read-only build/test permissions and an isolated main-push Release-write job; main's workflow remains push-only with broader write permission. Latest Release remains \`v0.2.0-build-116\` (6 November 2026); no Release was published. These runs validate the parent, not commit \`f73ea24\`; the new exact head awaits its natural push/PR runs. + +**Implementation** +- Replaced the Appearance screen's plain scrolling 52dp title/back row with the existing \`HomeGlassHeader\`: the same 24dp continuous geometry, 9dp low-cost header profile, provenance-safe title/subtitle hierarchy and 48dp back target used by Today/Explore/Search and You subpages. The header stays fixed while only the editor/content column scrolls. +- Reused the existing background-only root Prismal capture; no new capture source, sampler, readback, shader, graphics layer, image decode, dependency, network request or persistence path was added. This introduces one additional compact live header surface on Settings using the existing header component; it does not create a second glass pipeline. The Appearance preview remains its existing single compact \`PrismalTransientSurface\`, with static supporting content beneath it. +- \`GlassLuminanceActivationPolicy\` continues to pause the shared 8×8 bottom-band readback while Settings is open; its 4s/6s cadence and foreground/feed-motion/Reader/Reduce Transparency gates are unchanged. Slider drag remains child-scoped to the preview; app-wide intensity is committed only on release or preset selection, so the new header does not recompose for each preview tick. +- No policy/state semantics changed, so no new JVM policy test was added. Existing UI/policy tests and the next exact-head natural compile/test workflow are the regression checks. + +**Unverified / next** +- OPPO Reno10 Settings header/preview appearance, pinned-header scroll behaviour, back-target reachability, TalkBack, large font scale, Reduce Motion/Reduce Transparency, frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No measured performance win is claimed. +- After exact-head natural CI completes, continue the final whole-app transient-control and shared-header consistency audit. Do not increase adaptive readback cadence or add per-card live blur. From d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 17:29:46 +0530 Subject: [PATCH 142/175] ui(glass): unify continuous control corner geometry --- .../currentlens/GlassSurfacePolicy.kt | 5 ++- .../mangoloads/currentlens/MainActivity.kt | 17 +++++++--- .../currentlens/GlassSurfacePolicyTest.kt | 12 +++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 32 +++++++++++++++++++ 4 files changed, 60 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 94eaa7f8..65f12604 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -11,7 +11,10 @@ internal object GlassSurfacePolicy { const val TRANSIENT_REFRACTION_HEIGHT_DP = 2.5f const val TRANSIENT_REFRACTION_AMOUNT_DP = 3.5f const val TRANSIENT_TINT_SCALE = 0.42f - const val FILTER_PILL_CORNER_RADIUS_DP = 16f + const val CONTROL_CORNER_RADIUS_DP = 16f + const val FILTER_PILL_CORNER_RADIUS_DP = CONTROL_CORNER_RADIUS_DP + const val FILTER_SHEET_CORNER_RADIUS_DP = 28f + const val READER_MENU_CORNER_RADIUS_DP = 18f private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a818cea9..d1c38b7a 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1180,7 +1180,7 @@ private fun ExploreGlassCategories( val reduceTransparency = LocalGlassReduceTransparency.current val surfaceTint = MaterialTheme.colorScheme.surface val luminance = if (dark) 0.14f else 0.80f - val chipShape = ContinuousCornerShape(18.dp) + val chipShape = glassControlShape Box( Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 5.dp) .drawPrismalGlass( @@ -1522,7 +1522,7 @@ private fun SearchFeed( ModalBottomSheet( onDismissRequest = { showFilters = false }, sheetState = filterSheetState, - shape = RoundedCornerShape(28.dp), + shape = glassFilterSheetShape, containerColor = Color.Transparent, contentColor = MaterialTheme.colorScheme.onSurface, tonalElevation = 0.dp, @@ -2026,7 +2026,7 @@ private fun GlassFilterPill( val lowEffects = reduceTransparency ?: LocalGlassReduceTransparency.current val fillAlpha = GlassSurfacePolicy.filterPillFillAlpha(intensity, selected, lowEffects) val borderAlpha = GlassSurfacePolicy.filterPillBorderAlpha(intensity, selected, lowEffects) - val shape = remember { RoundedCornerShape(GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP.dp) } + val shape = glassControlShape val fill = (if (selected) colors.primary else colors.surface).copy(alpha = fillAlpha) val rim = (if (selected) colors.primary else colors.outline).copy(alpha = borderAlpha) @@ -2608,6 +2608,13 @@ private data class ContinuousCornerShape(private val radius: androidx.compose.ui } } +private val glassControlShape = + ContinuousCornerShape(GlassSurfacePolicy.CONTROL_CORNER_RADIUS_DP.dp) +private val glassFilterSheetShape = + ContinuousCornerShape(GlassSurfacePolicy.FILTER_SHEET_CORNER_RADIUS_DP.dp) +private val readerTextSizeMenuShape = + ContinuousCornerShape(GlassSurfacePolicy.READER_MENU_CORNER_RADIUS_DP.dp) + private fun sampleImagePalette(bitmap: Bitmap): Color { if (bitmap.width <= 0 || bitmap.height <= 0) return Color(0xFF527AA8) val positions = arrayOf( @@ -3613,7 +3620,7 @@ private fun ReaderGlassToolbar( expanded = textSizeMenuExpanded, onDismissRequest = { onTextSizeMenuExpandedChange(false) }, modifier = Modifier.widthIn(min = 196.dp), - shape = RoundedCornerShape(18.dp), + shape = readerTextSizeMenuShape, containerColor = Color.Transparent, tonalElevation = 0.dp, shadowElevation = 0.dp @@ -4530,7 +4537,7 @@ private fun AppearanceGlassEditor( ) } - val searchShape = RoundedCornerShape(16.dp) + val searchShape = glassControlShape Row( Modifier.fillMaxWidth().heightIn(min = 48.dp) .clip(searchShape) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 440ae976..150567af 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -72,6 +72,18 @@ class GlassSurfacePolicyTest { assertEquals(20f, GlassSurfacePolicy.SUPPORTING_VALUE_SIZE_SP, 0f) } + @Test + fun interactiveGlassControlsShareContinuousCornerTokens() { + assertEquals(16f, GlassSurfacePolicy.CONTROL_CORNER_RADIUS_DP, 0f) + assertEquals( + GlassSurfacePolicy.CONTROL_CORNER_RADIUS_DP, + GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP, + 0f + ) + assertEquals(28f, GlassSurfacePolicy.FILTER_SHEET_CORNER_RADIUS_DP, 0f) + assertEquals(18f, GlassSurfacePolicy.READER_MENU_CORNER_RADIUS_DP, 0f) + } + @Test fun supportingCardsShareConsistentReadableGeometry() { assertEquals(16f, SupportingCardGeometryPolicy.CONTENT_PADDING_DP, 0f) diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 5ddfa85a..cffbe216 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -888,3 +888,35 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Unverified / next** - OPPO Reno10 Settings header/preview appearance, pinned-header scroll behaviour, back-target reachability, TalkBack, large font scale, Reduce Motion/Reduce Transparency, frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No measured performance win is claimed. - After exact-head natural CI completes, continue the final whole-app transient-control and shared-header consistency audit. Do not increase adaptive readback cadence or add per-card live blur. + + +## Live implementation batch — unified continuous geometry for glass controls (8 November 2026, 17:22 IST) + +**Branch freshness and source** +- Re-enumerated all **44 remote branches** (complete first page; second page empty) and **41 pull requests** (**27 open, 14 closed**). Default branch remains main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. The owner-selected active line is black-box-bihar-news at pre-change head c7f3711ddb13a4bd595bbde7d003f641f58eb705, **144 ahead / 0 behind main**; PR #34 is open/draft and targets main. The source is **87 ahead / 0 behind PR #16's corrected background-only Prismal/stability head** 6ab1e6a02ac8e91027f21900d64d63b9f2e6a890. The former PR #19 UI branch is fully ancestral to this line (active branch is 74 commits ahead). +- PR #37's Search RowScope fix, #30's 48dp TouchTargetPolicy, #31's off-main AppearancePreferencesPolicy and #36's AsiaKolkataDayPolicy/tests are already represented in the active code; no duplicate port. PR #13's older adaptive contrast differs from the active conservative shared 8×8 probe (4s/6s, foreground-home only, paused during feed motion/Reader/Settings/background). PR #39 remains a divergent signing/workflow proposal requiring owner-managed secrets, pinned certificate and explicit local-data migration approval. PRs #40/#41 and #32/#33/#38 remain overlapping RSS/parser reviews; #25/#26 require joint publisher-resource security review; #35 is diagnostic-only. No source branch was modified. +- Main's latest workflow remains push-only with workflow-wide contents:write. The active integration workflow is .github/workflows/build-apk.yml at 6cef6ca19f3babd331c9deb59be9da0067c6fa66: read-only build/test and a separate contents:write publish job restricted to main pushes. PR #34 remains the only consolidation PR; no retarget, merge or main write. + +**Parent exact-head natural CI** +- Before this batch, exact head c7f3711ddb13a4bd595bbde7d003f641f58eb705 passed natural push run [#337](https://github.com/Batmancpu/CurrentLens/actions/runs/42474559492) and PR run [#338](https://github.com/Batmancpu/CurrentLens/actions/runs/42474565983). Both build jobs completed checkout, Java, cached stability test key, Android SDK/platform, Gradle, WordNet builder, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload; separate publish jobs were skipped. Full logs show 151,456 unique offline WordNet words (50,950,144-byte database), BUILD SUCCESSFUL in 1m33s (push) and 1m30s (PR). +- PR artifact [#13614966470](https://github.com/Batmancpu/CurrentLens/actions/runs/42474565983/artifacts/13614966470): **39,119,852 bytes**, SHA-256 1a8b4939f3b1000433919c01c3dd013d206fbbcb4f4fb80bd36dc89fa0b688c3, expires 22 November 2026 11:12 UTC. Push artifact #13614399835: **39,119,848 bytes**, SHA-256 6ecf491fcea2d7433129ffa896d6055418e70d4a0d3acdfb07195bdaded33ef5, expires 22 November 2026 11:12 UTC. +- Fully paginated Actions history: **338 runs** (207 success, 67 failure, 64 cancelled), queued/in-progress **0**. Latest published Release remains v0.2.0-build-116; no Release was created by #337/#338. These runs validate the parent only; the new shape batch needs its own natural exact-head run. + +**Implementation — continuous control geometry** +- Replaced the remaining conventional RoundedCornerShape usage on Explore category chips, shared filter/action pills, the Search filter sheet, Reader Aa menu and Appearance preview Search control with the same custom continuous-corner geometry used by the app's existing feed/supporting surfaces. Centralised 16dp control, 28dp filter-sheet and 18dp Reader-menu radii in GlassSurfacePolicy. +- Added one immutable shared Shape instance per radius; the Explore, Saved/Stats, Search, Reader and Appearance controls now reuse them instead of constructing separate pill shapes during recomposition. The filter-sheet and Aa-menu outer containers now match their inner Prismal surfaces. Skeleton line ends retain their simple 6dp rounded geometry; article/quiz content surfaces are unchanged. +- Added GlassSurfacePolicyTest coverage for the shared control/sheet/menu radius tokens. All chip selection semantics, 48dp targets, active filter state, sheet dismissal, Reader font-size actions, Reduced Transparency fallback and search/IME behaviour are unchanged. + +**Paired cost and coverage** +| Surface | Material / geometry | Effect scope and reuse | Accessibility / fallback | Evidence | +|---|---|---|---|---| +| Explore category chips; Saved/Stats filter pills; Search filter action | Tier 2 static control glass, 16dp continuous corners | No added blur/capture/readback; one shared immutable Shape object | Existing RadioButton/Tab/Button semantics and 48dp targets; Reduced Transparency uses the same stronger static fill/rim | Source diff; exact-head CI pending | +| Search filter sheet | Tier 2 transient Prismal glass, 28dp continuous outer/inner geometry | Reuses existing single PrismalTransientSurface and root background-only source | Existing modal dismissal/drag semantics; static fallback when effects are reduced | Source diff; exact-head CI pending | +| Reader Aa menu | Tier 2 transient Prismal glass, 18dp continuous outer/inner geometry | Reuses existing menu surface; no new capture or render pass | Existing Aa entry point and text-size actions unchanged | Source diff; exact-head CI pending | +| Appearance preview Search field | Tier 2 static preview control, shared 16dp shape | Reuses one preview Prismal surface; no nested blur | Existing 48dp height and local preview-only intensity state | Source diff; exact-head CI pending | + +- Render-pass delta: **0**. Added backdrop captures/readbacks, shaders, blur surfaces, graphics layers, image decodes, dependencies, timers, network calls and persistence work: **0**. The cost control is shared immutable geometry and removal of repeated per-composable Shape construction; this is a source-level allocation reduction, not a measured frame-time or memory win. +- OPPO Reno10 appearance, corner rendering, touch/selection behaviour, TalkBack, font scaling, Reduce Motion/Reduce Transparency, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. CI success does not establish device launch stability or animation smoothness. + +**Next** +- Inspect the new exact-head natural push/PR jobs, complete logs and artifact before another UI batch. Continue only with an evidence-backed whole-app inconsistency; preserve one root background-only capture, the expanded-only tab glyph source, low-cadence adaptive luminance and calm high-contrast article/quiz content. No Release publication, main write, merge, manual dispatch/rerun, retarget or source-branch deletion. From 21fee7f625a211962bd9e94c0846226d0501196d Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 18:37:31 +0530 Subject: [PATCH 143/175] perf(saved): reuse cached relevance across filters and cards --- .../mangoloads/currentlens/MainActivity.kt | 22 +++++++++++---- .../com/mangoloads/currentlens/StudyStats.kt | 5 ++-- .../mangoloads/currentlens/StudyStatsTest.kt | 28 +++++++++++++++++++ 3 files changed, 48 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d1c38b7a..74f6c616 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1753,12 +1753,21 @@ private fun SavedFeed( val savedArticles = remember(articles, bookmarks) { articles.filter { bookmarks.contains(it.url) } } - val subjects = remember(savedArticles) { - listOf("All") + savedArticles.map { UpscEngine.classify(it).subject }.distinct().sorted() + // Relevance depends only on ID/title/description. Reuse one index for filter choices, + // filtering and visible cards; date/source/image updates do not rerun the keyword engine. + val classificationInputs = remember(savedArticles) { + ArticleRelevanceIndexPolicy.keys(savedArticles) } - val filtered = remember(savedArticles, dateRange, selectedSubject, selectedGsPaper, today) { + val relevanceById = remember(classificationInputs) { + ArticleRelevanceIndexPolicy.build(savedArticles) + } + val subjects = remember(relevanceById) { + listOf("All") + relevanceById.values.map { it.subject }.distinct().sorted() + } + val filtered = remember(savedArticles, relevanceById, dateRange, selectedSubject, selectedGsPaper, today) { StudyStatsPolicy.filterArticles( - savedArticles, dateRange, selectedSubject, selectedGsPaper, today + savedArticles, dateRange, selectedSubject, selectedGsPaper, today, + relevanceByArticleId = relevanceById ) } val previouslyOpened = remember(articles, readHistory, bookmarks) { @@ -1795,7 +1804,10 @@ private fun SavedFeed( } else if (filtered.isEmpty()) item { SupportingEmptyPanel("No saved articles match", "Change the publication-date, subject or GS-paper filter.") } else items(filtered, key = { it.id }, contentType = { "article" }) { article -> - NewsCard(article, true, onOpenArticle, onToggleBookmark) + NewsCard( + article, true, onOpenArticle, onToggleBookmark, + relevanceOverride = relevanceById[article.id] + ) } if (previouslyOpened.isNotEmpty()) { item { diff --git a/app/src/main/java/com/mangoloads/currentlens/StudyStats.kt b/app/src/main/java/com/mangoloads/currentlens/StudyStats.kt index a58af1e0..3fb8e97d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/StudyStats.kt +++ b/app/src/main/java/com/mangoloads/currentlens/StudyStats.kt @@ -242,9 +242,10 @@ internal object StudyStatsPolicy { subject: String, gsPaper: String, today: LocalDate, - zone: ZoneId = indiaZone + zone: ZoneId = indiaZone, + relevanceByArticleId: Map? = null ): List
= articles.filter { article -> - val relevance = UpscEngine.classify(article) + val relevance = relevanceByArticleId?.get(article.id) ?: UpscEngine.classify(article) val date = ArticleFilters.publishedDate(article, zone) val dateMatches = if (dateRange == StatsDateRange.ALL_TIME) { date == null || dateRange.includes(date, today) diff --git a/app/src/test/java/com/mangoloads/currentlens/StudyStatsTest.kt b/app/src/test/java/com/mangoloads/currentlens/StudyStatsTest.kt index c71546bf..a80af1a3 100644 --- a/app/src/test/java/com/mangoloads/currentlens/StudyStatsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/StudyStatsTest.kt @@ -180,4 +180,32 @@ class StudyStatsTest { ) assertEquals(listOf("1"), filtered.map { it.id }) } + + @Test + fun savedArticleFiltersReuseSuppliedRelevanceIndex() { + val article = Article( + "cached", "Parliament passes bill", "", "url-cached", "The Hindu", "India", + "Tue, 03 Nov 2026 06:00:00 GMT" + ) + // Deliberately differs from the headline's normal Constitution/GS II mapping: + // the supplied index must be the source used by the saved-filter pass. + val cached = Relevance( + gsPaper = "GS III", + subject = "Indian Economy", + syllabusLink = "Cached relevance for this feed snapshot.", + matchedTerms = listOf("repo rate"), + signalLabel = "1 matched keyword", + topicKey = "economy" + ) + val filtered = StudyStatsPolicy.filterArticles( + listOf(article), + StatsDateRange.TODAY, + "Indian Economy", + "GS III", + today, + zone, + relevanceByArticleId = mapOf(article.id to cached) + ) + assertEquals(listOf(article.id), filtered.map { it.id }) + } } From f7cc74a4b82c15d23b7a9df9ebcea0a6595e13cb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 18:39:15 +0530 Subject: [PATCH 144/175] docs(ui): record saved-feed reuse and live branch audit --- docs/BRANCH_CONSOLIDATION.md | 39 +++++++++++++++++++-------------- docs/LIQUID_GLASS_UI_ROADMAP.md | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 16 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index f27e002c..f1230319 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,28 +1,35 @@ -# Latest live branch/PR/CI audit — 8 November 2026, 14:23 IST +# Latest live branch/PR/CI audit — 8 November 2026, 18:38 IST **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged). -**Active:** `black-box-bihar-news@d5fab2ae9aa097e24180d831d6e0e8d64e441b43`, PR #34 open/draft → main; **138 ahead / 0 behind main** and **81 ahead / 0 behind** PR #16's corrected background-only Prismal/stability head `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. -**Inventory:** 44 remote branches (44 + 0 pagination); 41 PRs (27 open, 14 closed). No source branch was deleted or modified. +**Active code line:** `black-box-bihar-news@21fee7f625a211962bd9e94c0846226d0501196d`, PR #34 open/draft → main; **145 ahead / 0 behind main**, **88 ahead / 0 behind PR #16**. The documentation audit commit is a direct child of this code commit. +**Inventory:** 44 remote branches (44 + 0 pagination); 41 PRs (27 open, 14 closed; 0 additional PRs). No source branch was deleted or modified. ## Baseline decision and branch freshness -- The owner-selected black-box branch remains the latest coherent UI integration line: it is a direct descendant of PR #16, retains the corrected background-only root capture and consolidated Reader/Search/feed-navigation implementation, and contains the latest verified UI state. -- PR #36 is a 3-commit/20-behind Today-date branch; its isolated Asia/Kolkata calendar policy was selectively ported into black-box without copying its older MainActivity. Source PR #36 exact head passed natural run #268; the integration commit requires its own exact-head CI. -- PR #37's RowScope repair, PR #30's 48dp target policy, PR #31's off-main appearance restore, PR #13's conservative 8×8 luminance probe and the prior PR #19/#20 work are represented in the active tree. -- PR #39 remains separate: owner-managed secrets and a first-install/local-data migration decision are required. PRs #40/#41 are unvalidated main-based RSS security/field-bound proposals; PR #38 and #32/#33 overlap parser/network code. The divergent brrrNEWS and stale Liquid Glass/v0.3 branches are not baselines. +- The owner-selected `black-box-bihar-news` line remains the freshest coherent UI baseline: direct descendant of PR #16, preserving the corrected background-only Prismal root capture, Reader/Search/feed-navigation work, the shared material system and the current app architecture. PR #34 remains the only consolidation PR updated by this task; it is open/draft and based on main. +- PR #41's newest head `f3fa5daf3242e4d69b1db4666eca3b009821c6e2` is 12 ahead / 145 behind the active line and changes only RSS field/XML parsing, NewsRepository, build/test dependency and parser tests. It is not a newer UI baseline and does not overlap SavedFeed/StudyStats. PR #40 `552b96e7948ac5ade821a711ea8dd225984824a9` is 6 ahead / 145 behind and is a separate RSS article-host/redirect policy. Both remain separate review streams; neither was cherry-picked. +- PR #39 `4250de5040a8ca0efbf96a990218ef7d69ef26e8` is 6 ahead / 10 behind and touches workflow, Gradle signing and release/migration docs only; owner-managed secrets and first-install/local-data migration approval remain required. PR #37's RowScope repair, #30's 48dp target policy, #31's off-main appearance restore and #13's conservative shared luminance probe are already represented. +- The older `brrrNEWS` line is 4 ahead / 51 behind; its fixed-intensity supporting material is superseded by the active Clear↔Frosted GlassSurfacePolicy. `ui/liquid-glass-performance` is 3 ahead / 163 behind; `redesign/v0.3-search-reader` is 239 behind. Neither is a safe baseline. PR #16 remains an ancestor; PR #19/#20 work is consolidated only on this branch. - No main write, merge, retarget, force update, source-branch mutation, manual workflow dispatch/rerun or Release publication. ## Actions, workflow and Release -- Exact parent PR run [#326](https://github.com/Batmancpu/CurrentLens/actions/runs/42461549072) and push run [#325](https://github.com/Batmancpu/CurrentLens/actions/runs/42461544503) passed on `d5fab2ae9aa097e24180d831d6e0e8d64e441b43`: WordNet 4/4; 151,456 unique words / 50,950,144-byte database; `:app:testDebugUnitTest`; `:app:assembleDebug`; APK artifact upload. Build successful in 1m 9s; Release job skipped. -- PR artifact #13610236262: 39,118,591 bytes; ZIP SHA-256 `db1f34ac9d690e85d398f5b25d5defea6686b5af477b6f70653f3b5fdf464b44`; expires 22 November 2026 08:09 UTC. -- Actions history: 326 runs (195 success, 67 failure, 64 cancelled); active/queued 0. `.github/workflows/build-apk.yml` uses read-only build/test permissions, natural push/PR validation for main, PR #16's base and black-box, and a separate main-push-only Release-write job. Latest published Release remains `v0.2.0-build-116`; no Release was published. +- Fully paginated **340 Actions runs** (100 + 100 + 100 + 40; page 5 empty): **209 success, 67 failure, 64 cancelled**; queued/in-progress: **0**. +- Natural push [#339](https://github.com/Batmancpu/CurrentLens/actions/runs/42478159581) and pull-request [#340](https://github.com/Batmancpu/CurrentLens/actions/runs/42478162564) passed on parent SHA `d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494`. Full job logs: WordNet builder/database (151,456 unique words; 50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded; build completed in 1m 30s; publish jobs skipped. +- PR artifact #13616009073: 39,119,842 bytes, ZIP SHA-256 `59fb508f433027c43183c24dc34ba205b326f2b080761c92705acc51ffe815cb`, expires 22 November 2026 12:01:55 UTC. Push artifact #13616506663: 39,119,834 bytes, ZIP SHA-256 `5b9eb6bc4804f99ae5dead80b187545ecc093b7ca2120b3910e92901bee9d42b`. +- The Saved-feed code commit `21fee7f6` and its documentation child require their own natural CI; parent #339/#340 do not validate them. `.github/workflows/build-apk.yml` on this branch has read-only build/test permissions, natural push/PR validation for main, PR #16's base and black-box, and a separate main-push-only Release-write job. Main's workflow remains push-only with broader write permission. +- Latest published Release: `v0.2.0-build-116`, published 6 November 2026 11:18:59 UTC. No Release was created. + +## Current implementation batch — Saved-feed relevance reuse +- `SavedFeed` now creates one stable relevance index keyed by article ID/title/description and reuses it for Subject options, GS/Subject/date filtering and visible saved NewsCards. `StudyStatsPolicy.filterArticles` accepts the optional map but keeps its classifier fallback. The existing filter, publication-date, bookmark and previously-opened semantics are unchanged. +- Added `StudyStatsTest.savedArticleFiltersReuseSuppliedRelevanceIndex`; the test intentionally supplies a cached classification that differs from the headline's default mapping, while the existing test still covers the no-map fallback. +- Paired cost: no new material, blur, refraction, graphics layer, capture/readback, image decode, dependency, timer, network or persistence path. Classifier work is reduced at source level; no measured frame/memory/battery improvement is claimed. OPPO Reno10 and all device-backed visual/accessibility/performance checks remain UNVERIFIED. ## Complete remote branch inventory (44) | Branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open head; policy represented | -| `black-box-bihar-news` | `d5fab2ae9aa097e24180d831d6e0e8d64e441b43` | 2026-11-08 08:07:02Z | docs(reader): scope chrome policy comments correctly | PR #34 open/draft head; active integration | +| `black-box-bihar-news` | `21fee7f625a211962bd9e94c0846226d0501196d` | 2026-11-08 13:07:31Z | perf(saved): reuse cached relevance across filters and cards | PR #34 open/draft; code head for this audit (documentation commit is its direct child) | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | PR #24 open base; divergent/superseded material | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open head; compatible workflow intent represented | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only | @@ -49,10 +56,10 @@ | `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 merged into main | | `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06Z | fix: harden cold start and reduce feed rendering workload | PR #7 merged into main | | `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open head; selected and ported in this batch | -| `fix/validate-rss-article-hosts-2026-11-08` | `dcdbce939d0626767163f6133a42b60d23af7e57` | 2026-11-08 06:52:22Z | Test publisher-bound RSS article URLs | PR #40 open head; unvalidated NewsRepository/security proposal | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28Z | fix(rss): keep redirect result non-null | PR #40 open head; separate main-based RSS URL/redirect review | | `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | Default branch; base of open PRs #6, #8, #12, #13, #17, #18, #21, #40 and #41 | | `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36Z | fix(test): correct RSS budget test identifier | PR #38 open head; parser overlap with #32/#33 | -| `perf/bound-rss-field-values-2026-11-08` | `fb5f7517e8b03d92d72964622a156a68ff1f6397` | 2026-11-08 08:36:27Z | Test Unicode-safe RSS field bounds | PR #41 open head; unvalidated main-based parser proposal | +| `perf/bound-rss-field-values-2026-11-08` | `f3fa5daf3242e4d69b1db4666eca3b009821c6e2` | 2026-11-08 12:48:49Z | fix(rss): guard nullable XHTML block names | PR #41 open head; separate main-based parser proposal | | `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16Z | Record successful bounded-diagnostic CI | PR #35 open head; diagnostic-only | | `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04Z | Verify legacy markers survive recent-history retention | PR #22 open head; legacy markers retained | | `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26Z | docs: record bounded RSS fetch review and CI state | PR #32 open head; parser/network review | @@ -103,14 +110,14 @@ | #31 | open/draft | `perf/off-main-appearance-preferences-2026-11-07@bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:14:31Z | | #32 | open/draft | `perf/bounded-rss-fetch-concurrency-2026-11-07@8c56c98c83cc69451f128aa259df86a8ce28f43a` | `black-box-bihar-news@ee82dfde140aeb0d1ca80146379a0a2818c695df` | 2026-11-07T11:30:22Z | | #33 | open/draft | `fix/resolve-relative-atom-links-2026-11-07@c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | `black-box-bihar-news@48b54808807f5b15e637b6177524fd923741e1f7` | 2026-11-07T14:59:51Z | -| #34 | open/draft | `black-box-bihar-news@d5fab2ae9aa097e24180d831d6e0e8d64e441b43` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T08:07:11Z | +| #34 | open/draft | `black-box-bihar-news@21fee7f625a211962bd9e94c0846226d0501196d` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T13:07:34Z | | #35 | open/draft | `perf/bound-startup-diagnostic-reads-2026-11-07@c4a977831846224182f16981b15e5c803761e26d` | `black-box-bihar-news@ed6c94190296c8d7af400b80f6fe26f2252fafe1` | 2026-11-07T17:34:25Z | | #36 | open/draft | `fix/today-ist-midnight-rollover-2026-11-08@5fbd14e6ef9be33d04a882ba463d4c72473419e2` | `black-box-bihar-news@4a7a8f8c1db651d8b06d636836c8221569938ff8` | 2026-11-07T20:48:45Z | | #37 | open/draft | `fix/search-clear-row-scope-compile-2026-11-08@9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | `black-box-bihar-news@d451d22518b8065e2865dae6b40679c3d7b41dc2` | 2026-11-07T22:51:33Z | | #38 | open/draft | `perf/bound-rss-entry-parsing-2026-11-08@adade1ed8494c66b7e567de87f61f3dac3da7788` | `black-box-bihar-news@c7d50bb2bafe29a43c106e4fb71b607e9830adea` | 2026-11-08T03:34:06Z | | #39 | open/draft | `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8` | `black-box-bihar-news@cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` | 2026-11-08T07:06:50Z | -| #40 | open/draft | `fix/validate-rss-article-hosts-2026-11-08@dcdbce939d0626767163f6133a42b60d23af7e57` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T06:53:49Z | -| #41 | open/draft | `perf/bound-rss-field-values-2026-11-08@fb5f7517e8b03d92d72964622a156a68ff1f6397` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T08:36:38Z | +| #40 | open/draft | `fix/validate-rss-article-hosts-2026-11-08@552b96e7948ac5ade821a711ea8dd225984824a9` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T10:34:40Z | +| #41 | open/draft | `perf/bound-rss-field-values-2026-11-08@f3fa5daf3242e4d69b1db4666eca3b009821c6e2` | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-08T12:48:59Z | --- diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index cffbe216..f0a2c4fe 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,42 @@ +# Live implementation batch — Saved-feed relevance index reuse +**Audit:** 8 November 2026, 18:38 IST +**Source branch / SHA before this batch:** `black-box-bihar-news@d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494` +**Implementation commit:** `21fee7f625a211962bd9e94c0846226d0501196d` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 remains open/draft and unmerged. + +## Freshness and dependency gate +- Re-enumerated all **44 remote branches** (page 1: 44; page 2: 0) and all **41 PRs** (27 open, 14 closed; page 2: 0). Default `main` is unchanged. The owner-selected integration branch is **145 commits ahead / 0 behind main** and **88 ahead / 0 behind PR #16**; the corrected background-only Prismal capture and consolidated Reader/Search/feed-navigation lineage remain ancestors. +- PR #34 is the single consolidation draft: `black-box-bihar-news` → `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Its code head for this batch is `21fee7f625a211962bd9e94c0846226d0501196d`, a direct child of `d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494`; the documentation audit is a direct child of the implementation commit. +- The newest independent commit is PR #41's `perf/bound-rss-field-values-2026-11-08@f3fa5daf3242e4d69b1db4666eca3b009821c6e2` (12 ahead / 145 behind this integration line). Its reviewed diff is parser-only: FeedFieldPolicy, FeedXmlTextReader, NewsRepository, build/test dependency and parser tests; it does not change SavedFeed/StudyStats and is not a UI baseline. PR #40 `fix/validate-rss-article-hosts-2026-11-08@552b96e7948ac5ade821a711ea8dd225984824a9` (6 ahead / 145 behind) is a separate RSS URL/redirect policy. Neither was blindly ported. +- PR #39 `fix/stable-release-signing-2026-11-08@4250de5040a8ca0efbf96a990218ef7d69ef26e8` is 6 ahead / 10 behind and changes workflow/build signing and migration documentation; it remains gated on owner-managed secrets and explicit first-install/local-data migration approval. +- PR #37's Search-clear RowScope repair is already present in the active SearchMorphField; PR #30's 48dp target policy, PR #31's off-main appearance restore and PR #13's more conservative shared 8×8 luminance probe are represented. The divergent `brrrNEWS` line is 4 ahead / 51 behind and its fixed-intensity material is superseded; `ui/liquid-glass-performance` is 3 ahead / 163 behind and `redesign/v0.3-search-reader` is 239 behind. No other branch was modified. + +## Parent exact-head Actions verification +- Fully paginated **340 workflow runs** (100 + 100 + 100 + 40; page 5 empty): **209 success, 67 failure, 64 cancelled**; queued/in-progress: **0**. +- Natural push run [#339](https://github.com/Batmancpu/CurrentLens/actions/runs/42478159581) and PR run [#340](https://github.com/Batmancpu/CurrentLens/actions/runs/42478162564) passed on exact parent SHA `d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494`. Full job logs show WordNet builder tests and offline database generation (151,456 unique words; 50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload all succeeded; build completed successfully in 1m 30s. Publish jobs skipped. +- PR artifact [#13616009073](https://github.com/Batmancpu/CurrentLens/actions/runs/42478162564/artifacts/13616009073) is 39,119,842 bytes; ZIP SHA-256 `59fb508f433027c43183c24dc34ba205b326f2b080761c92705acc51ffe815cb`; expires 22 November 2026 12:01:55 UTC. Push artifact #13616506663 is 39,119,834 bytes; ZIP SHA-256 `5b9eb6bc4804f99ae5dead80b187545ecc093b7ca2120b3910e92901bee9d42b`. +- These runs validate only the parent SHA. Natural CI for implementation commit `21fee7f6` and the following documentation head is pending; no pass is claimed for the new Saved-feed change. +- Active `.github/workflows/build-apk.yml` uses read-only build/test permissions and natural push/pull_request triggers for main, PR #16's base and this branch; Release write is isolated to main pushes. Main's own workflow remains push-only with broader write permission. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC); no Release was created. + +## Implementation — one Saved-feed relevance index +- SavedFeed previously classified each saved article separately to build Subject choices, again inside `StudyStatsPolicy.filterArticles`, and again when a visible `NewsCard` had no relevance override. +- It now builds one `ArticleRelevanceIndexPolicy` map keyed by the actual classifier inputs (article ID, title and description), then reuses it for Subject choices, GS/Subject/date filtering and visible saved cards. Changes to publication date, source, section or image do not invalidate the classifier result. +- `StudyStatsPolicy.filterArticles` accepts an optional cached map and preserves its original classifier fallback for callers that do not supply one or whose article ID is absent. Filter semantics, Asia/Kolkata publication-date handling, bookmark identity, previously-opened behaviour and saved-card presentation are unchanged. + +## Coverage and paired-cost matrix — Saved +| Screen/component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| Saved filter group | Tier 2 interactive glass; Published/GS/Subject choices need one coherent control hierarchy | Existing single `GlassFilterGroup` Prismal draw; no new surface, capture or readback | Existing `GlassFilterPill`, shared Clear↔Frosted tokens and low-effects fallback | Selected radio semantics and 48dp minimum targets retained; existing filter tests | Render-pass delta 0; device visuals UNVERIFIED | +| Saved article cards | Tier 4 high-contrast content; headlines and imagery remain readable | Standard NewsCard surface; one Coil request/decode and existing cached palette glow | Same relevance map feeds the card's syllabus metadata; existing single-decode path unchanged | Bookmark target and article semantics unchanged; JVM filter/index tests | No additional blur/capture/decode; frame/memory/battery effects UNVERIFIED | + +## Paired optimization, tests and next step +- Keyword classification changes from separate subject/filter passes plus per-visible-card classification to **one index build per relevant content-input change**; subsequent filter changes use map lookups while retaining the existing date/sort work. The index is invalidated only by ID/title/description changes. +- Added `StudyStatsTest.savedArticleFiltersReuseSuppliedRelevanceIndex`, deliberately supplying a cached GS III/Economy result for a headline that would otherwise classify as GS II/Constitution. The existing no-map test continues to cover the fallback path. +- No Prismal/AGSL surface, blur/refraction, shader, graphics layer, backdrop capture/readback, image decode, dependency, timer, polling, network request, persistence path or quiz-data change was introduced. This is a source-level CPU-work reduction; no frame-time, memory, battery or thermal improvement is claimed without measurement. +- Next: inspect natural CI for the exact new branch head and full logs/artifact, then continue the final whole-app visual/accessibility/performance audit. OPPO Reno10 launch, screenshots, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No main write, PR merge/retarget, manual dispatch/rerun, Release publication, package identity change or source-branch deletion. + +--- + # Live implementation batch — Reader completion chrome reveal **Audit:** 8 November 2026, 13:26 IST **Source branch / SHA before this batch:** `black-box-bihar-news@5f7e8cfe7c536dec2923a67348fb028916ca637c` From 261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 18:40:23 +0530 Subject: [PATCH 145/175] docs(repo): clarify source and audit ancestry counts --- docs/BRANCH_CONSOLIDATION.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index f1230319..4da40fb1 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,7 +2,9 @@ **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged). -**Active code line:** `black-box-bihar-news@21fee7f625a211962bd9e94c0846226d0501196d`, PR #34 open/draft → main; **145 ahead / 0 behind main**, **88 ahead / 0 behind PR #16**. The documentation audit commit is a direct child of this code commit. +**Source baseline:** `black-box-bihar-news@d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494` (**145 ahead / 0 behind main**, **88 ahead / 0 behind PR #16**). +**Implementation code commit:** `21fee7f625a211962bd9e94c0846226d0501196d` (**146 ahead / 0 behind main**, **89 ahead / 0 behind PR #16**). +**Documentation audit commit:** `f7cc74a4b82c15d23b7a9df9ebcea0a6595e13cb` (**147 ahead / 0 behind main**, **90 ahead / 0 behind PR #16**), a direct child of the implementation commit. PR #34 remains open/draft → main and mergeable; subsequent audit metadata commits do not alter the app code. **Inventory:** 44 remote branches (44 + 0 pagination); 41 PRs (27 open, 14 closed; 0 additional PRs). No source branch was deleted or modified. ## Baseline decision and branch freshness @@ -29,7 +31,7 @@ | Branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship / disposition | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open head; policy represented | -| `black-box-bihar-news` | `21fee7f625a211962bd9e94c0846226d0501196d` | 2026-11-08 13:07:31Z | perf(saved): reuse cached relevance across filters and cards | PR #34 open/draft; code head for this audit (documentation commit is its direct child) | +| `black-box-bihar-news` | `21fee7f625a211962bd9e94c0846226d0501196d` | 2026-11-08 13:07:31Z | perf(saved): reuse cached relevance across filters and cards | PR #34 open/draft; implementation code head; audit documentation commits follow without app-code changes | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | PR #24 open base; divergent/superseded material | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open head; compatible workflow intent represented | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box only | From 0e94d82be37a891dd4546a3f856a9cd47b5687d6 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 19:36:01 +0530 Subject: [PATCH 146/175] perf(saved): reuse eligibility relevance for previously opened cards --- .../mangoloads/currentlens/MainActivity.kt | 21 ++++++++--- .../mangoloads/currentlens/UpscFeedPolicy.kt | 24 +++++++++--- .../EditorialConsolidationRegressionTest.kt | 37 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 32 ++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 37 +++++++++++++++++++ docs/PROJECT_HANDOFF.md | 15 ++++++++ docs/SESSION_LEDGER.md | 16 ++++++++ 7 files changed, 172 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 74f6c616..efb19ff2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1770,10 +1770,18 @@ private fun SavedFeed( relevanceByArticleId = relevanceById ) } - val previouslyOpened = remember(articles, readHistory, bookmarks) { - articles.filter { - readHistory.contains(it.url) && !bookmarks.contains(it.url) && UpscFeedPolicy.shouldInclude(it) - } + val previouslyOpenedCandidates = remember(articles, readHistory, bookmarks) { + articles.filter { readHistory.contains(it.url) && !bookmarks.contains(it.url) } + } + // Eligibility returns the same relevance result used by NewsCard. Cache it once so + // the Previously Opened filter and visible cards do not classify an article twice. + val previouslyOpenedRelevanceById = remember(previouslyOpenedCandidates) { + previouslyOpenedCandidates.mapNotNull { article -> + UpscFeedPolicy.eligibleRelevance(article)?.let { article.id to it } + }.toMap() + } + val previouslyOpened = remember(previouslyOpenedCandidates, previouslyOpenedRelevanceById) { + previouslyOpenedCandidates.filter { previouslyOpenedRelevanceById.containsKey(it.id) } .sortedByDescending { it.publishedAtMillis ?: 0L }.take(15) } @@ -1818,7 +1826,10 @@ private fun SavedFeed( style = MaterialTheme.typography.labelSmall, color = MaterialTheme.colorScheme.secondary) } items(previouslyOpened, key = { "opened-" + it.id }) { article -> - NewsCard(article, false, onOpenArticle, onToggleBookmark) + NewsCard( + article, false, onOpenArticle, onToggleBookmark, + relevanceOverride = previouslyOpenedRelevanceById[article.id] + ) } } } diff --git a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt index 9ee81528..aad684f4 100644 --- a/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/UpscFeedPolicy.kt @@ -92,7 +92,19 @@ internal object UpscFeedPolicy { "weathering", "desertification", "photovoltaic", "solar cell", "thin film" ) - fun shouldInclude(article: Article): Boolean { + fun shouldInclude(article: Article): Boolean = + eligibleRelevance(article) != null + + /** + * Returns the classification used by the eligibility decision so a visible card can + * reuse it instead of classifying the same article a second time. + * + * The classifier is deliberately invoked only after the existing noise/exception gate. + */ + fun eligibleRelevance( + article: Article, + classify: (Article) -> Relevance = UpscEngine::classify + ): Relevance? { val title = EditorialTextMatcher.normalize(article.title) val text = EditorialTextMatcher.normalize( article.title + " " + article.description + " " + article.section @@ -107,12 +119,14 @@ internal object UpscFeedPolicy { EditorialTextMatcher.contains(title, "thin film") && listOf("photovoltaic", "solar cell").any { EditorialTextMatcher.contains(title, it) } - if (hasNoise && !hasPolicyException && !hasThinFilmScienceException) return false + if (hasNoise && !hasPolicyException && !hasThinFilmScienceException) return null - val relevance = UpscEngine.classify(article) - if (relevance.gsPaper == "Unmapped" || relevance.matchedTerms.isEmpty()) return false + val relevance = classify(article) + if (relevance.gsPaper == "Unmapped" || relevance.matchedTerms.isEmpty()) return null - return hasPolicyException || + return if ( + hasPolicyException || specificSyllabusSignals.any { EditorialTextMatcher.contains(text, it) } + ) relevance else null } } diff --git a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt index 3505d546..9c02b6da 100644 --- a/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/EditorialConsolidationRegressionTest.kt @@ -2,6 +2,7 @@ package com.mangoloads.currentlens import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse +import org.junit.Assert.assertNull import org.junit.Assert.assertTrue import org.junit.Test @@ -146,4 +147,40 @@ class EditorialConsolidationRegressionTest { assertTrue(hint.contains("Geography")) assertTrue(hint.contains("Syllabus: Physical geography")) } + + @Test + fun eligibleRelevanceReturnsTheClassificationUsedByItsGateExactlyOnce() { + val story = article( + "Monsoon onset shifts across the river basin", + "Rainfall distribution changes across the region" + ) + val expected = UpscEngine.classify(story) + var calls = 0 + + val actual = UpscFeedPolicy.eligibleRelevance(story) { + calls += 1 + expected + } + + assertEquals(1, calls) + assertEquals(expected, actual) + } + + @Test + fun editorialNoiseIsRejectedBeforeTheClassifierRuns() { + val story = article( + "Celebrity film promotion", + "A viral clip mentions climate change" + ) + var calls = 0 + + val actual = UpscFeedPolicy.eligibleRelevance(story) { + calls += 1 + UpscEngine.classify(it) + } + + assertNull(actual) + assertEquals(0, calls) + } + } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 4da40fb1..a61cfc87 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,35 @@ +# Latest live branch/PR/CI audit — 8 November 2026, 19:28 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` (unchanged). +**Pre-change source:** `black-box-bihar-news@261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18` (**148 ahead / 0 behind main**, **91 ahead / 0 behind PR #16**, **78 ahead / 0 behind the former PR #19 UI head**). +**PR:** #34 remains open/draft → main, mergeable, no retarget or merge. The implementation and this audit are committed on the same existing branch; the new commit SHA is recorded by GitHub and will be copied into the next ledger refresh. +**Inventory:** 44 remote branches (44 + 0 pagination); 41 PRs (27 open, 14 closed; page 2 empty). No source branch was deleted or modified. + +## Baseline and open-branch treatment +- `black-box-bihar-news` remains the owner-selected, coherent development line with the corrected background-only Prismal capture and all consolidated UI prerequisites. The branch is 91 commits ahead of PR #16's corrected stability baseline; the previous PR #19 UI line is ancestral. +- PR #37's Search clear RowScope fix, #36's Asia/Kolkata date rollover, #30's 48dp target policy and #31's off-main Appearance preferences are already represented in current source. PR #39 remains separate: stable signing changes touch Gradle/workflow and require owner-managed secrets, a pinned certificate fingerprint and explicit first-install/local-data migration approval. PRs #40/#41 remain separate main-based RSS redirect/parser proposals; #32/#33/#38 overlap parser/network work; #25/#26 need a joint publisher-resource security review; #27 is editorial-only; #35 diagnostic-only. +- The older `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` lines remain divergent/stale and are not baselines. No cherry-pick, merge or source-branch mutation was performed. + +## Actions, workflow and Release +- Fully paginated **346 Actions runs**: **213 success / 67 failure / 66 cancelled**; queue and in-progress **0**. +- Exact parent `261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18` passed natural push [#345](https://github.com/Batmancpu/CurrentLens/actions/runs/42483678631) and PR [#346](https://github.com/Batmancpu/CurrentLens/actions/runs/42483682905). Full PR job log: WordNet 4/4, 151,456 unique words / 50,950,144-byte database, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; BUILD SUCCESSFUL in 1m30s. Publish jobs skipped. PR artifact #13618970693: 39,120,818 bytes, SHA-256 `26b04cf919118ba3c0fec84b8efb95affbd4e19763477454e9bfaf9f68b1e32a`, expires 22 November 2026 13:12:57 UTC. +- Active branch workflow retains read-only build/test and a separate main-push-only Release-write job. Main's workflow remains push-only with broader `contents: write`. No workflow edit or manual dispatch/rerun. +- Latest Release remains `v0.2.0-build-116` (6 November 2026); no Release was published. + +## Current implementation — Saved Previously Opened relevance reuse +- The Saved Previously Opened section previously called `UpscFeedPolicy.shouldInclude` for eligibility and then let each visible `NewsCard` classify the same article again. +- Added `UpscFeedPolicy.eligibleRelevance` to return the classification used by the existing eligibility gate; `shouldInclude` remains a boolean wrapper, the noise/policy-exception checks are unchanged, and rejected noise still short-circuits before classification. +- SavedFeed now reuses one ID-keyed relevance result for eligibility and visible-card syllabus metadata. The existing single Coil request/decode/palette extraction is unchanged. Added JVM tests for exactly-once classification and early noise rejection. +- No added render pass, blur, Prismal surface, capture/readback, shader, graphics layer, image decode, dependency, timer, network or persistence path. This is a source-level CPU-work reduction; no measured frame/memory/battery win is claimed. New exact-head CI is pending. + +## Device / product safety +- Preserve exactly Today / Explore / Search / You; Saved remains within You; no Archive. Offline WordNet, local-first privacy, Asia/Kolkata dates, foreground-only reading-session accounting and submit-only quiz persistence remain unchanged. +- OPPO Reno10 launch/visuals, TalkBack, font scale, Reduce Motion, IME, frame timing/jank, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. CI does not prove the historical native cold-start failure is fixed. +- No main write, PR merge/retarget, force update, Release publication, app/package identity change or source-branch deletion. + +--- + # Latest live branch/PR/CI audit — 8 November 2026, 18:38 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index f0a2c4fe..2a309fd8 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,40 @@ +# Live implementation batch — Saved “Previously Opened” relevance reuse +**Audit:** 8 November 2026, 19:28 IST +**Pre-change source:** `black-box-bihar-news@261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**PR:** #34 remains the single open/draft consolidation PR targeting main. This commit is created on the existing owner-selected branch; its own SHA is recorded in the next ledger refresh. + +## Branch-freshness and dependency gate +- Re-enumerated the complete remote branch list: **44 branches** (page 1 complete; page 2 empty), and **41 PRs** (**27 open / 14 closed**). Default main is unchanged. Before this batch, `black-box-bihar-news` was **148 ahead / 0 behind main**, **91 ahead / 0 behind PR #16**, and **78 ahead / 0 behind the former PR #19 UI head**. It remains the freshest coherent owner-authorised integration line containing the background-only Prismal root capture, Reader/Search/feed navigation, current material system and reconciled application code. +- PR #34 is open/draft, based on `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; no retarget, merge or main write. +- Rechecked relevant branch proposals and actual diffs: PR #37's Search RowScope repair, #36's Asia/Kolkata rollover, #30's 48dp target policy and #31's off-main Appearance restore are already represented. PR #39 remains a separate signing/workflow migration requiring owner-managed secrets, a pinned certificate and explicit first-install/local-data migration approval. PRs #40/#41 are main-based RSS redirect/parser proposals; #32/#33/#38 overlap parser/network work; #25/#26 require a joint publisher-resource security review; #27 is editorial-only; #35 is diagnostic-only. No source branch was modified. The divergent `brrrNEWS`, old `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` branches are not safe baselines. +- Main's workflow remains push-only with workflow-wide `contents: write`. The active integration workflow has read-only build/test permissions, natural push/PR validation for the integration line, and a separate main-push-only Release-write job; no workflow change was made. + +## Parent exact-head Actions verification +- Fully paginated **346 Actions runs** (100 + 100 + 100 + 46): **213 success, 67 failure, 66 cancelled**; queued/in-progress: **0**. +- Natural push run [#345](https://github.com/Batmancpu/CurrentLens/actions/runs/42483678631) and pull-request run [#346](https://github.com/Batmancpu/CurrentLens/actions/runs/42483682905) passed on exact parent SHA `261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18`. Full PR job log: WordNet builder **4/4**, offline dictionary **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug`, and APK artifact upload all succeeded; build completed in **1m 30s**. Both Release jobs were skipped. +- PR artifact [#13618970693](https://github.com/Batmancpu/CurrentLens/actions/runs/42483682905/artifacts/13618970693): **39,120,818 bytes**, ZIP SHA-256 `26b04cf919118ba3c0fec84b8efb95affbd4e19763477454e9bfaf9f68b1e32a`, expires **22 November 2026 13:12:57 UTC**. Push artifact #13619005997 is also 39,120,818 bytes. These runs validate the parent only; the new commit awaits its own natural push/PR run. + +## Implementation — one eligibility classification for previously opened cards +- Previously Opened candidates were classified in `UpscFeedPolicy.shouldInclude` to decide eligibility, then classified again by `NewsCard` to build the card's syllabus metadata. +- `UpscFeedPolicy.eligibleRelevance` now returns the exact `Relevance` used by the existing eligibility decision. `shouldInclude` remains the same boolean API and delegates to this method; the title/description/section noise gate and policy exceptions are unchanged, and the classifier still short-circuits for rejected noise. +- `SavedFeed` builds one ID-keyed map for previously opened candidates, filters the visible top 15 from that map, and passes the same relevance to each `NewsCard`. Ordering, 15-item cap, bookmark/read URL semantics, GS/subject/date filters and editorial eligibility are unchanged. +- Added two pure JVM regression tests: the eligible path invokes its classifier exactly once and returns that result; a noise-rejected story exits before invoking the classifier. Existing editorial positive/negative fixtures remain in place. + +## Paired cost and coverage +| Surface | Material / reason | Effect/capture scope | Reuse strategy | Accessibility/fallback | Evidence | +|---|---|---|---|---|---| +| You → Saved → Previously Opened | Standard high-contrast NewsCard; no additional glass is warranted on article content | **0** new blur, refraction, Prismal surface, capture/readback, shader or graphics layer | One eligibility result per candidate is reused for both inclusion and card metadata; the existing single Coil request and same-decoded-bitmap palette path remain unchanged | Existing article-card semantics, bookmark action and native Reader selection are untouched | Source diff + focused tests added; exact-head CI pending | + +- Render-pass/effect delta: **0**. New backdrop captures/readbacks, blur surfaces, shaders, image decodes, dependencies, timers, network calls and persistence operations: **0**. The expected reduction is one duplicate classifier invocation per eligible Previously Opened card; this is source-level evidence, not a measured frame-time, allocation, memory or battery win. +- OPPO Reno10 launch, Saved visual layout, TalkBack, font scaling, Reduce Motion, frame timing/jank, GPU overdraw, memory/allocation churn, thermal and battery remain **UNVERIFIED**. CI compilation cannot establish device stability or animation smoothness. + +## Next +- Inspect the exact new-head natural push and PR jobs, complete logs and artifact before the next UI batch. Continue the final whole-app transient-control/shared-header audit without adding another material stack or changing quiz/read-history semantics. +- No main write, merge, retarget, force update, workflow dispatch/rerun, Release publication, app/package identity change or source-branch deletion. + +--- + # Live implementation batch — Saved-feed relevance index reuse **Audit:** 8 November 2026, 18:38 IST **Source branch / SHA before this batch:** `black-box-bihar-news@d21ff270011b80ff6fd4ad6fcbaf7ce15cb8b494` diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index b5cb1a5a..e1f33824 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,18 @@ +## Live snapshot — 8 November 2026, 19:28 IST + +- **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- **Active integration:** `black-box-bihar-news`, owner-selected branch; this pass advances it from pre-change parent `261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18` with one Saved-feed eligibility-reuse implementation/audit commit. PR [#34](https://github.com/Batmancpu/CurrentLens/pull/34) remains open/draft and targets main; no merge or retarget. The exact new head is available from the branch/PR and will be copied into the next handoff refresh. +- **Branch/PR inventory:** 44 remote branches and 41 PRs (27 open, 14 closed), fully paginated. Before this pass the active line was 148 ahead / 0 behind main, 91 ahead / 0 behind PR #16's corrected Prismal/stability baseline, and 78 ahead / 0 behind the former PR #19 UI line. +- **Actions:** 346 runs, fully paginated: 213 success, 67 failure, 66 cancelled; queued/in-progress 0. Exact parent natural push [#345](https://github.com/Batmancpu/CurrentLens/actions/runs/42483678631) and PR [#346](https://github.com/Batmancpu/CurrentLens/actions/runs/42483682905) passed. WordNet builder 4/4; 151,456 unique words / 50,950,144-byte database; `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. PR artifact [#13618970693](https://github.com/Batmancpu/CurrentLens/actions/runs/42483682905/artifacts/13618970693) is 39,120,818 bytes (SHA-256 `26b04cf919118ba3c0fec84b8efb95affbd4e19763477454e9bfaf9f68b1e32a`), expires 22 November 2026 13:12:57 UTC. Release jobs skipped. New implementation head awaits its own natural CI. +- **Workflow:** active integration workflow retains read-only build/test permissions and a separate main-push-only Release-write job. Main's workflow remains push-only with workflow-wide `contents: write`; no workflow changes. +- **Latest Release:** [v0.2.0-build-116](https://github.com/Batmancpu/CurrentLens/releases/tag/v0.2.0-build-116), published 6 November 2026 11:18:59 UTC; no Release created. +- **Current work:** Saved → Previously Opened now reuses one editorial relevance result for eligibility and the visible NewsCard's syllabus metadata. Existing noise rejection, ordering, top-15 limit, bookmarks/read markers and card/image semantics remain unchanged. Two focused JVM regression tests were added; exact-head CI is pending. +- **Open branch decisions:** PR #37 Search RowScope fix, #36 IST rollover, #30 touch-target policy and #31 Appearance restore are represented. PR #39 stable signing remains owner-gated; #40/#41 and #32/#33/#38 remain separate RSS/parser reviews; #25/#26 need joint publisher-resource security review; #27 editorial-only; #35 diagnostic-only. +- **Device evidence:** no fresh OPPO Reno10 logcat/tombstone/Perfetto or screenshot. Launch stability, visual/IME/TalkBack/font-scale/Reduce Motion and frame-time/GPU/memory/thermal/battery remain **UNVERIFIED**. +- **Safety:** no main write, merge, retarget, manual dispatch/rerun, workflow edit, Release publication, package identity change or branch deletion. + +--- + ## Live snapshot — 8 November 2026, 16:05 IST - **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 80714c73..0a66fc1f 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -459,3 +459,19 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Current priorities:** strict editorial action/syllabus gate PR #27; RSS redirect/article-host PR #40; bounded fields/Atom inline content PR #41; RSS concurrency/entry budgets #32/#38; Atom relative-link selection #33; image/WebView resource restrictions #25/#26; bounded startup diagnostic reads #35. - **Device / visual:** no fresh OPPO Reno10 logcat/tombstone/Perfetto. Native launch causality, screenshots, TalkBack, IME, font scale, Reduce Motion, frame timing, GPU, memory, thermal and battery remain unverified. - **Safety:** no main write, merge, workflow modification, manual dispatch/rerun, Release publication or branch deletion. + + +## 2026-11-08 19:28 IST / 2026-11-08 13:58 UTC — Saved Previously Opened eligibility classification reuse + +- **Repository / source:** Batmancpu/CurrentLens; owner-selected branch `black-box-bihar-news`; pre-change parent `261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18`. Base remains `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 remains the single open/draft consolidation PR. The branch was 148 ahead / 0 behind main, 91 ahead / 0 behind PR #16 and 78 ahead / 0 behind the former PR #19 UI line. +- **Freshness:** complete inventory rechecked: 44 branches, 41 PRs (27 open, 14 closed). PR #37's Search RowScope repair, #36's Asia/Kolkata rollover, #30's 48dp target policy and #31's off-main Appearance restore are already represented. PR #39 signing/workflow migration remains gated on owner-managed secrets and data-migration approval; #40/#41 and #32/#33/#38 remain separate RSS/parser reviews; #25/#26 require joint publisher-resource security review. No other branch was changed. +- **Parent CI:** exact parent passed natural push #345 and PR #346. Full PR log: WordNet builder 4/4, 151,456 unique words (50,950,144 bytes), `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; BUILD SUCCESSFUL in 1m30s. Artifact #13618970693 (39,120,818 bytes; SHA-256 `26b04cf919118ba3c0fec84b8efb95affbd4e19763477454e9bfaf9f68b1e32a`). These runs do not validate the new head. +- **Files changed:** `MainActivity.kt` caches the exact relevance result for Previously Opened candidates and passes it to visible NewsCards; `UpscFeedPolicy.kt` adds `eligibleRelevance` while preserving the existing `shouldInclude(Article): Boolean` API and noise short-circuit; `EditorialConsolidationRegressionTest.kt` covers exactly-once classification and noise rejection before classifier invocation; roadmap, branch-consolidation ledger and project handoff record the audit and paired-cost rationale. +- **Before / after:** Previously Opened eligibility classified an article, then NewsCard classified the same article again for syllabus metadata. Now one relevance result per candidate drives eligibility and the visible card. Eligibility terms, ordering, 15-card cap, bookmark/read semantics, feed contents, image request/decode/palette and card appearance are unchanged. +- **Alternatives rejected:** no broad cross-feed relevance-index rewrite; no per-card glass/blur; no duplicated cache keyed by display metadata; no change to editorial rules or network/storage semantics. Keep the change isolated to the Saved Previously Opened section. +- **Tests:** added two JVM tests to `EditorialConsolidationRegressionTest`: the eligible path invokes the supplied classifier once and returns that exact result; editorial noise returns null without invoking the classifier. Tests are **added, not run** until the natural exact-head workflow completes. +- **CI:** natural push/PR runs on the new commit are pending; no dispatch/rerun. Parent #345/#346 are not evidence for the new commit. The branch workflow is read-only for build/test with isolated main-push Release write; publish jobs are skipped on branch/PR runs. +- **Performance/material:** no additional render pass, Prismal surface, backdrop capture/readback, blur/refraction, shader, graphics layer, image decode, dependency, timer, network request or persistence operation. One duplicate classifier invocation is removed per eligible Previously Opened card; this is source-level evidence only, not a measured frame/memory/battery win. +- **Device / risks:** OPPO Reno10 cold/warm launch, Saved visual layout, TalkBack, font scale, Reduce Motion, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No device-backed launch or performance claim. +- **Safety:** no main write, PR merge/retarget, force update, workflow change, manual dispatch/rerun, Release publication, package identity change or source-branch deletion. The new commit SHA is in the GitHub branch history and will be recorded in the next ledger refresh. + From f65d72488497ed59ed492d4d24b6e8a2572f4185 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 20:35:55 +0530 Subject: [PATCH 147/175] ui: unify Search action pill continuous geometry --- .../mangoloads/currentlens/MainActivity.kt | 2 +- docs/BRANCH_CONSOLIDATION.md | 73 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 33 +++++++++ 3 files changed, 107 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index efb19ff2..6144386f 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2086,7 +2086,7 @@ private fun GlassActionPill( val reduceTransparency = LocalGlassReduceTransparency.current val fillAlpha = GlassSurfacePolicy.actionPillFillAlpha(intensity, selected, reduceTransparency) val borderAlpha = GlassSurfacePolicy.actionPillBorderAlpha(intensity, selected, reduceTransparency) - val shape = remember { RoundedCornerShape(GlassSurfacePolicy.FILTER_PILL_CORNER_RADIUS_DP.dp) } + val shape = glassControlShape val fill = (if (selected) colors.primary else colors.surface).copy(alpha = fillAlpha) val rim = (if (selected) colors.primary else colors.outline).copy(alpha = borderAlpha) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index a61cfc87..e7ec998d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1820,3 +1820,76 @@ Repository/default: `Batmancpu/CurrentLens`, default `main@73b8a0d1ba33503fede02 | `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #3/#4 closed; divergent and 160 behind active | | `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed; integrated into black-box only | | `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | no PR; 59 behind active, superseded | + + +## 8 November 2026, 20:28 IST — complete branch inventory and Search control geometry audit + +### Live repository state +- Repository: Batmancpu/CurrentLens. Default main remains 73b8a0d1ba33503fede02db2c3c0af082d724a12. The owner-selected active line is black-box-bihar-news@0e94d82be37a891dd4546a3f856a9cd47b5687d6, 149 ahead / 0 behind main; PR #34 remains open/draft, based on main, unmerged. +- Fully enumerated 44 remote branches (page 1: 44, page 2: 0) and 41 PRs (27 open, 14 closed). The exact head SHA, committer timestamp/message and PR relationship for every remote branch are recorded below. No source branch was deleted, retargeted, force-updated or otherwise modified. +- PR #16 head c9dc394e920542d1e329c123bcf354310753b9a7 is 4 commits ahead / 92 behind the active branch. Its four commits are appearance preference normalization/IO startup restore only; the active branch already has a richer combined appearance snapshot and IO restore, so no cherry-pick was needed. +- PR #39 stable signing remains separate pending owner-managed secrets and migration approval. PR #40/#41/#32/#33/#38 remain RSS/parser/network review work; PR #25/#26 remain a joint publisher-resource security review; PR #35 diagnostic-only and PR #27 editorial-only. PR #37/#36/#30/#31/#29 and the former PR #19 UI are represented in the active branch. + +### Exact-head Actions and Release audit +- Actions pages: 100 + 100 + 100 + 52 = 352 runs; 216 success, 67 failure, 69 cancelled; no queued or in-progress runs. +- PR #34 parent SHA 0e94d82be37a891dd4546a3f856a9cd47b5687d6 passed push #347 and pull-request #348. Full logs confirm WordNet builder 4/4, 151,456 unique words, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. PR artifact #13620755048 (39,122,676 bytes); push artifact #13620281982 (39,122,679 bytes). +- PR #16 exact head c9dc394e920542d1e329c123bcf354310753b9a7 passed run #352; artifact #13620729002 (38,996,580 bytes). It does not validate PR #34. +- Latest Release: v0.2.0-build-116. No Release publication occurred in this audit. + +### Search glass control geometry correction +- MainActivity.kt's GlassActionPill was the sole remaining glass control constructing RoundedCornerShape(16dp), while Explore/category/filter pills use the shared immutable ContinuousCornerShape(16dp). It now references glassControlShape directly. +- No new glass surface, render pass, blur, refraction, capture/readback, shader, graphics layer, image decode, dependency, timer, network request or persistence operation. Existing 48dp action height, active state and Search/filter behaviour are unchanged. This is a source-level shape reuse, not a measured performance win. +- New code commit: pending in the immediately following commit record; exact-head CI must be inspected before further implementation. + +### Complete remote branch inventory +Commit timestamps are UTC. PR relationship is the live open/closed/merged state and target observed during this audit. + +| Remote branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship at audit | +|---|---|---|---|---| +| a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box-bihar-news | +| black-box-bihar-news | 0e94d82be37a891dd4546a3f856a9cd47b5687d6 | 2026-11-08 14:06:01 | perf(saved): reuse eligibility relevance for previously opened cards | #34 open/draft → main; active consolidation | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; not active consolidation | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box-bihar-news | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged → main | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | #6 open/draft → main | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | #12 open/draft → main | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | #11 open/draft → black-box-bihar-news | +| fix/early-startup-crash-diagnostics-2026-11-06 | c9dc394e920542d1e329c123bcf354310753b9a7 | 2026-11-08 14:41:59 | test(prefs): cover glass alpha normalization | #16 open/draft → main | +| fix/editorial-action-gate-blackbox-2026-11-07 | 2468ed33326ac7310a2ddd5f993495e4051245b8 | 2026-11-08 03:30:19 | test(editorial): cover reality TV and television promotion | #27 open/draft → black-box-bihar-news | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open/draft → main | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed/merged → main | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 closed/merged → main | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 closed/merged → black-box-bihar-news | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed/unmerged → main | +| fix/quiz-option-selected-semantics-compile-2026-11-07 | 6f9b3c1e1a484233721863d0b736734c0d282cd5 | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 closed/merged → black-box-bihar-news | +| fix/resolve-relative-atom-links-2026-11-07 | c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4 | 2026-11-07 14:59:24 | test(rss): correct relative xml base fixture | #33 open/draft → black-box-bihar-news | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | #25 open/draft → black-box-bihar-news | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | #17 open/draft → main | +| fix/search-clear-row-scope-compile-2026-11-08 | 9dd4ceac08e88e6ee4ea565025a70539a6e9e331 | 2026-11-07 21:55:56 | docs: record verified search clear compile repair | #37 open/draft → black-box-bihar-news | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 closed/merged → main | +| fix/stable-release-signing-2026-11-08 | 4250de5040a8ca0efbf96a990218ef7d69ef26e8 | 2026-11-08 07:03:31 | docs: record stable signing validation and migration gate | #39 open/draft → black-box-bihar-news | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged → main | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 closed/merged → main | +| fix/today-ist-midnight-rollover-2026-11-08 | 5fbd14e6ef9be33d04a882ba463d4c72473419e2 | 2026-11-07 20:48:43 | test(today): cover Asia/Kolkata midnight rollover | #36 open/draft → black-box-bihar-news | +| fix/validate-rss-article-hosts-2026-11-08 | 552b96e7948ac5ade821a711ea8dd225984824a9 | 2026-11-08 10:34:28 | fix(rss): keep redirect result non-null | #40 open/draft → main | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch; no PR | +| perf/bound-rss-entry-parsing-2026-11-08 | adade1ed8494c66b7e567de87f61f3dac3da7788 | 2026-11-08 03:31:36 | fix(test): correct RSS budget test identifier | #38 open/draft → black-box-bihar-news | +| perf/bound-rss-field-values-2026-11-08 | 39acde8373eb3405f655e052ccd3445f22eedebb | 2026-11-08 14:39:53 | test(rss): reject non-editorial XHTML script and style text | #41 open/draft → main | +| perf/bound-startup-diagnostic-reads-2026-11-07 | c4a977831846224182f16981b15e5c803761e26d | 2026-11-07 17:34:16 | Record successful bounded-diagnostic CI | #35 open/draft → black-box-bihar-news | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | #22 open/draft → perf/off-main-session-persistence | +| perf/bounded-rss-fetch-concurrency-2026-11-07 | 8c56c98c83cc69451f128aa259df86a8ce28f43a | 2026-11-07 11:29:26 | docs: record bounded RSS fetch review and CI state | #32 open/draft → black-box-bihar-news | +| perf/off-main-appearance-preferences-2026-11-07 | bc48daec98ff076c9db3c2c69084d9b08cd0bbce | 2026-11-07 11:11:45 | fix(startup): keep appearance snapshot API module-internal | #31 open/draft → black-box-bihar-news | +| perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | #29 open/draft → black-box-bihar-news | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | #8 open/draft → main | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | #26 open/draft → black-box-bihar-news | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | No PR; stale ancestry | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main (older base) | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #4 closed/unmerged; #3 merged earlier head; stale | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed/merged → black-box-bihar-news | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | No PR; superseded by consolidation | + +### Device and measurement boundary +- OPPO Reno10 cold launch/native crash causality, screenshots, Reader/IME, selection, TalkBack, Reduce Motion, animation smoothness, Perfetto/frame timing, GPU overdraw, memory/allocation churn, thermal and battery remain UNVERIFIED. No CI build is presented as device evidence. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 2a309fd8..19d92d3a 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,36 @@ +# Live implementation batch — Search filter action corner parity (8 November 2026, 20:28 IST) + +**Source:** black-box-bihar-news@0e94d82be37a891dd4546a3f856a9cd47b5687d6 +**Base:** main@73b8a0d1ba33503fede02db2c3c0af082d724a12 +**PR:** #34 remains open/draft, targets main, and is not merged or retargeted. + +## Branch freshness and dependency decision +- Complete remote inventory: 44 branches (page 1 = 44; page 2 = 0); 41 PRs (27 open, 14 closed). The owner-selected consolidation branch remains 149 commits ahead / 0 behind main. +- PR #16 is newer by timestamp at c9dc394e920542d1e329c123bcf354310753b9a7 (4 commits ahead / 92 behind the consolidation branch). Its four-commit delta only adds appearance-alpha normalization and moves the first alpha read into the startup IO snapshot. The active branch already has the richer LocalAppearancePreferences snapshot (glass alpha plus Reduce Transparency), AppearancePreferencesPolicy.create/normalize, LocalStore.appearancePreferences, and restores both values inside LocalAppSnapshot on Dispatchers.IO; the current JVM test covers finite/range fallback and Reduce Transparency. This is a functional superset, so the four commits are superseded and were not cherry-picked. +- PR #37's RowScope Search-clear repair, #36's Asia/Kolkata midnight policy, #30's 48dp icon-target policy, #31's off-main appearance snapshot, #29's off-main bookmark persistence, #13's conservative adaptive contrast, and the earlier PR #19 Reader UI are already represented in the active branch. +- PR #39 remains a separate stable-signing proposal requiring owner-managed secrets, certificate pinning and explicit install/data migration approval. PRs #40/#41 and #32/#33/#38 touch RSS/network/parser boundaries and remain separate joint review work; #25/#26 require a combined publisher-resource security review; #35 is diagnostic-only; #27 is editorial-only. No other branch was modified. +- Stale ui/liquid-glass-performance and redesign/v0.3-search-reader remain excluded. PR #34 is the only branch/PR modified by this automation. + +## Exact-head verification before this batch +- Natural push run #347 and pull-request run #348 both passed on exact parent SHA 0e94d82be37a891dd4546a3f856a9cd47b5687d6. Full logs show WordNet builder 4/4, 151,456 unique offline words (50,950,144-byte database), :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload all succeeded; both Release jobs were skipped. +- PR artifact #13620755048 is 39,122,676 bytes and expires 22 November 2026 14:08 UTC. Push artifact #13620281982 is 39,122,679 bytes. These runs validate the parent, not the new commit. +- PR #16's separate exact-head push run #352 passed on c9dc394e920542d1e329c123bcf354310753b9a7; artifact #13620729002 is 38,996,580 bytes. This validates PR #16 only, not PR #34. +- Actions history is fully paginated: 352 runs (216 success, 67 failure, 69 cancelled), queue empty. Latest published Release remains v0.2.0-build-116; no Release was published. + +## Implementation — shared continuous control geometry +- Whole-app source audit found one remaining functional glass control that still constructed RoundedCornerShape: Search's GlassActionPill. All sibling filter/category chips use the immutable shared glassControlShape (ContinuousCornerShape, 16dp). +- Replaced that one remembered RoundedCornerShape instance with glassControlShape. The Search Filters action now shares the exact same continuous geometry as the rest of the control system; its static fill/rim, active-count label, 48dp minimum height, Button role, state description, sheet action, keyboard dismissal and filter state are unchanged. + +## Paired optimization and verification +- Added/removed render passes: 0. Added/removed live blur/refraction, Prismal surfaces, backdrop captures/readbacks, shaders, graphics layers, image decodes, dependencies, timers, network calls and persistence operations: 0. +- Reuses the existing immutable shared Shape instance rather than constructing a separate rounded shape during composition. No measured allocation/frame-time/battery improvement is claimed. +- No new policy test was warranted for a one-line reference to the already-used shared shape. The new exact-head natural push/PR runs are pending; do not treat #347/#348 or #352 as validation of this new commit. +- OPPO Reno10 visuals, touch/IME behaviour, TalkBack, font scaling, Reduce Motion, startup, Perfetto/frame timing, GPU overdraw, memory/allocation churn, thermal and battery remain UNVERIFIED. + +## Next +- Inspect the new exact-head natural push and pull-request jobs, complete logs and artifact before another UI change. Continue the whole-app material audit only where a concrete inconsistency is present; preserve one root background-only capture, the expanded-only hidden tab glyph source, and calm high-contrast article/quiz content. +- No main write, merge, retarget, force update, manual dispatch/rerun, Release publication, app identity change or source-branch deletion. + # Live implementation batch — Saved “Previously Opened” relevance reuse **Audit:** 8 November 2026, 19:28 IST **Pre-change source:** `black-box-bihar-news@261c387bb196e1bb74d5a20df9b3d1bc4f9ebc18` From 5863f29ab4e598230492b8c43d2f0d2d882112d5 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 21:41:40 +0530 Subject: [PATCH 148/175] fix(reader): reveal hidden chrome on intentional content tap --- .../mangoloads/currentlens/MainActivity.kt | 54 ++++++++- .../currentlens/ReaderChromePolicy.kt | 22 ++++ .../currentlens/ReaderChromePolicyTest.kt | 104 ++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 38 +++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 47 +++++++- 5 files changed, 262 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 6144386f..95623007 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -3743,6 +3743,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) private var readingPositionCompleted = false private var readerChromeVisible = true private var readerChromePinned = false + // Track native ActionMode locally so a long-press is never treated as a tap. + private var selectionActionModeActive = false private var readerChromeScrollState = ReaderChromeScrollState() private var pendingReaderChromeHide: Runnable? = null @@ -3798,6 +3800,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelPendingReaderChromeHide() readerChromeScrollState = ReaderChromeScrollState() readerChromePinned = false + selectionActionModeActive = false + onSelectionActionModeChanged(false) setReaderChromeVisible(true) readingPositionCompleted = false } @@ -3947,6 +3951,12 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelShortPageEndCheck(resetStability = true) cancelPendingAutoDefine() cancelPendingReaderChromeHide() + selectionActionModeActive = false + touchDownX = null + touchDownY = null + touchDownAtMillis = null + tapCandidate = false + upwardSwipeDetected = false onSelectionActionModeChanged(false) super.onDetachedFromWindow() } @@ -3997,7 +4007,10 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) object : ActionMode.Callback2() { override fun onCreateActionMode(mode: ActionMode, menu: Menu): Boolean { val created = original.onCreateActionMode(mode, menu) - if (created) onSelectionActionModeChanged(true) + if (created) { + selectionActionModeActive = true + onSelectionActionModeChanged(true) + } if (created && selectionBridgeEnabled) { menu.add(0, MENU_DEFINE_WORD, menu.size(), "Define") .setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS) @@ -4063,6 +4076,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) override fun onDestroyActionMode(mode: ActionMode) { cancelPendingAutoDefine() + selectionActionModeActive = false onSelectionActionModeChanged(false) original.onDestroyActionMode(mode) } @@ -4074,6 +4088,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) } private var touchDownX: Float? = null private var touchDownY: Float? = null + private var touchDownAtMillis: Long? = null + private var tapCandidate = false private var upwardSwipeDetected = false private fun cancelPendingAutoDefineIfGestureInvalidated( @@ -4109,6 +4125,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) } touchDownX = event.x touchDownY = event.y + touchDownAtMillis = event.eventTime + tapCandidate = true upwardSwipeDetected = false } MotionEvent.ACTION_POINTER_DOWN -> { @@ -4116,19 +4134,49 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) // A second pointer changes selection into a multi-touch gesture (for example, // pinch zoom). Keep WebView's native gesture, but stop definition/end tracking. cancelPendingAutoDefine() + tapCandidate = false + touchDownAtMillis = null touchDownX = null touchDownY = null upwardSwipeDetected = false } } MotionEvent.ACTION_MOVE -> { + val startX = touchDownX val startY = touchDownY + val touchSlop = ViewConfiguration.get(context).scaledTouchSlop.toFloat() + if (startX == null || startY == null) { + tapCandidate = false + } else { + val deltaX = event.x - startX + val deltaY = event.y - startY + if (deltaX * deltaX + deltaY * deltaY > touchSlop * touchSlop) { + tapCandidate = false + } + } cancelPendingAutoDefineIfGestureInvalidated(event) if (startY != null && startY - event.y > 24f) upwardSwipeDetected = true } MotionEvent.ACTION_UP -> { // ACTION_UP is the final safety net if the platform omitted a MOVE sample. cancelPendingAutoDefineIfGestureInvalidated(event) + val startX = touchDownX + val startY = touchDownY + val tapDuration = touchDownAtMillis?.let { (event.eventTime - it).coerceAtLeast(0L) } + ?: Long.MAX_VALUE + val tapDeltaX = startX?.let { event.x - it } ?: Float.POSITIVE_INFINITY + val tapDeltaY = startY?.let { event.y - it } ?: Float.POSITIVE_INFINITY + val shouldRevealForTap = tapCandidate && ReaderChromePolicy.shouldRevealOnTap( + durationMs = tapDuration, + deltaX = tapDeltaX, + deltaY = tapDeltaY, + touchSlopPx = ViewConfiguration.get(context).scaledTouchSlop.toFloat(), + selectionActive = selectionActionModeActive, + chromePinned = readerChromePinned, + selectionPending = pendingAutoDefine != null || autoDefineEvaluationPending + ) + // Reveal only; always forward the event to WebView's native link/selection handling. + if (shouldRevealForTap && !readerChromeVisible) revealReaderChrome() val attemptedToReadDown = upwardSwipeDetected if (attemptedToReadDown) { post { @@ -4142,6 +4190,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) } touchDownX = null touchDownY = null + touchDownAtMillis = null + tapCandidate = false upwardSwipeDetected = false } MotionEvent.ACTION_CANCEL -> { @@ -4149,6 +4199,8 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) cancelPendingAutoDefineIfGestureInvalidated(event, gestureCancelled = true) touchDownX = null touchDownY = null + touchDownAtMillis = null + tapCandidate = false upwardSwipeDetected = false } } diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt index 7f19cf70..b5b1a0e7 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderChromePolicy.kt @@ -27,6 +27,28 @@ internal object ReaderChromePolicy { fun reveal(state: ReaderChromeScrollState): ReaderChromeScrollState = state.copy(visible = true, direction = 0, accumulatedDeltaPx = 0) + const val TAP_REVEAL_MAX_DURATION_MS = 360L + + /** + * A short, stationary content tap may reveal hidden controls. Selection, long-press, + * drag, multi-touch and any pinned/transient state are deliberately excluded. + */ + fun shouldRevealOnTap( + durationMs: Long, + deltaX: Float, + deltaY: Float, + touchSlopPx: Float, + selectionActive: Boolean, + chromePinned: Boolean, + selectionPending: Boolean + ): Boolean { + if (selectionActive || chromePinned || selectionPending) return false + if (durationMs !in 0L..TAP_REVEAL_MAX_DURATION_MS) return false + if (!deltaX.isFinite() || !deltaY.isFinite() || !touchSlopPx.isFinite()) return false + val slop = touchSlopPx.coerceAtLeast(0f) + return deltaX * deltaX + deltaY * deltaY <= slop * slop + } + /** * Downward document movement hides chrome after a larger threshold; upward movement * reveals it after a smaller threshold. Direction changes reset accumulated distance. diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt index 24b3d19e..35e9e7b7 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderChromePolicyTest.kt @@ -151,4 +151,108 @@ class ReaderChromePolicyTest { assertEquals(-1, state.direction) } + @Test + fun shortStationaryTapCanRevealHiddenChrome() { + assertTrue( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 220, + deltaX = 3f, + deltaY = 4f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = false + ) + ) + assertTrue( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = ReaderChromePolicy.TAP_REVEAL_MAX_DURATION_MS, + deltaX = 0f, + deltaY = 0f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = false + ) + ) + } + + @Test + fun longPressAndMovementDoNotRevealChromeAsATap() { + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = ReaderChromePolicy.TAP_REVEAL_MAX_DURATION_MS + 1, + deltaX = 0f, + deltaY = 0f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = false + ) + ) + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 180, + deltaX = 9f, + deltaY = 0f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = false + ) + ) + } + + @Test + fun selectionAndPinnedReaderStatesSuppressTapReveal() { + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 180, + deltaX = 2f, + deltaY = 2f, + touchSlopPx = 8f, + selectionActive = true, + chromePinned = false, + selectionPending = false + ) + ) + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 180, + deltaX = 2f, + deltaY = 2f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = true, + selectionPending = false + ) + ) + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 180, + deltaX = 2f, + deltaY = 2f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = true + ) + ) + } + + @Test + fun invalidTapMeasurementsAreRejected() { + assertFalse( + ReaderChromePolicy.shouldRevealOnTap( + durationMs = 180, + deltaX = Float.NaN, + deltaY = 0f, + touchSlopPx = 8f, + selectionActive = false, + chromePinned = false, + selectionPending = false + ) + ) + } + } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index e7ec998d..dcac9038 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,41 @@ +# Latest live branch/PR/CI audit — 8 November 2026, 21:29 IST + +**Repository:** \`Batmancpu/CurrentLens\` +**Default:** \`main@73b8a0d1ba33503fede02db2c3c0af082d724a12\` +**Active integration/UI line:** \`black-box-bihar-news@f65d72488497ed59ed492d4d24b6e8a2572f4185\` — **150 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, head matches the active branch, unmerged and not retargeted. + +## Complete branch/PR freshness gate +- Re-enumerated all **44 remote branches** (page 1 = 44, page 2 = 0) and **41 PRs** (27 open, 14 closed; page 2 empty). Current open PRs: #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6. Closed PRs: #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2, #1. +- The preceding complete 44-row branch table remains the inventory source; only these two refs advanced since that table: + | Branch | Current head | Latest commit UTC/message | PR relationship | + |---|---|---|---| + | \`black-box-bihar-news\` | \`f65d72488497ed59ed492d4d24b6e8a2572f4185\` | 2026-11-08 15:05:55Z — ui: unify Search action pill continuous geometry | #34 open/draft → main | + | \`fix/early-startup-crash-diagnostics-2026-11-06\` | \`ebea0aac68ce2cf17aad376304f7915fe937e807\` | 2026-11-08 15:11:25Z — docs: record off-main diagnostics verification [skip ci] | #16 open/draft → main | + All other 42 branch names, head SHAs, latest commit timestamps/messages and PR relationships were rechecked and match the prior full table. +- Comparison: active branch vs main = **150 ahead / 0 behind**; PR #16 vs active = **7 ahead / 93 behind**, merge base \`6ab1e6a02ac8e91027f21900d64d63b9f2e6a890\`; former PR #19 UI head = **0 ahead / 80 behind** active. The owner-selected branch remains the only coherent current UI/integration line. +- PR #16's four appearance preference/alpha changes are superseded by the active branch's richer \`LocalAppearancePreferences\` and IO-restored glass-alpha + Reduce Transparency snapshot. Its two newer code commits move startup diagnostics off-main across \`CurrentLensApplication\`, \`LaunchCrashDiagnostics\`, tests and the top-level \`MainActivity\` startup path; the latest PR #16 head is docs-only \`[skip ci]\`. PR #35 also modifies \`LaunchCrashDiagnostics\` and its tests, so those changes require a joint diagnostic review before any port. They are not a dependency of this Reader UI change and no native startup fix is claimed. +- PR #39 remains separate (**6 ahead / 15 behind**) for stable signing/workflow/Gradle migration; owner-managed secrets, certificate fingerprint pinning and explicit first-install/local-data migration approval remain required. PR #41 is parser-only (**14 ahead / 150 behind**); PR #40/#32/#33/#38 remain RSS/network/parser work. PR #25/#26 require joint publisher-resource security review; #27 is editorial-only. PR #37/#36/#30/#31/#29 and the former PR #19 UI are represented in the active tree. Old \`ui/liquid-glass-performance\` and \`redesign/v0.3-search-reader\` remain excluded. + +## Exact parent Actions / workflow / Release +- Fully paginated **356 Actions runs**: **219 success, 68 failure, 69 cancelled**; queued/in-progress: **0**. +- Exact active parent \`f65d72488497ed59ed492d4d24b6e8a2572f4185\` passed push run [#354](https://github.com/Batmancpu/CurrentLens/actions/runs/42493059399) and PR run [#355](https://github.com/Batmancpu/CurrentLens/actions/runs/42493063222). The PR build job passed WordNet builder **4/4**, generated **151,456 words / 50,950,144 bytes**, \`:app:testDebugUnitTest\`, \`:app:assembleDebug\` and artifact upload; Release job skipped. PR artifact #13622606443: **39,122,460 bytes**; push artifact #13621439638: **39,000,680 bytes**. These validate the parent only. +- Latest global run #356 is on PR #16's preceding code head \`5e36e52915f1232cdfefc7dc28abd5a5360b388b\`; current PR #16 head \`ebea0aac...\` is documentation-only \`[skip ci]\`. It does not validate the active branch. +- Active workflow blob \`6cef6ca19f3babd331c9deb59be9da0067c6fa66\` has read-only build/test permissions, natural push/PR triggers and isolated main-push-only Release write. Main's workflow remains push-only with broader write permission. Latest published Release: \`v0.2.0-build-116\`, 2026-11-06 11:18:59Z. No Release was created. + +## Reader hidden-chrome tap reveal — implementation batch +- Reader auto-hide previously revealed on upward scroll but not on a stationary tap after the toolbar had hidden. Added a 360ms/touch-slop pure policy and ACTION_DOWN/MOVE/UP bookkeeping on the existing ReaderWebView path. +- A qualifying tap reveals only when chrome is hidden and no native ActionMode/selection, pending dictionary selection, definition, IME, accessibility or Aa state pins it. The event always continues to \`super.onTouchEvent\`; links, native Copy/Select/share and the dictionary bridge are not replaced. +- Added JVM tests for accepted tap/boundary, long-press and movement rejection, selection/pinned suppression and invalid measurements. Article reset/detach clear local gesture/ActionMode state. +- Render/capture delta: **0** new surfaces, blur/refraction, shaders, readbacks, image decodes, dependencies, timers, network or persistence. One policy check on ACTION_UP; at most one visibility transition; no per-pixel Compose state. +- New exact-head natural CI is pending. No device claim: OPPO launch/visual/IME/TalkBack/Reduce Motion/Perfetto/frame timing/GPU/memory/thermal/battery remain **UNVERIFIED**. + +## Safety +- No main write, merge, retarget, force update, workflow dispatch/rerun, Release publication, package identity change, source-branch deletion or modification outside \`black-box-bihar-news\`. + + +--- + # Latest live branch/PR/CI audit — 8 November 2026, 19:28 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 19d92d3a..2b388c2c 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,46 @@ +# Live implementation batch — Reader hidden-chrome tap reveal (8 November 2026, 21:29 IST) + +**Pre-change source:** \`black-box-bihar-news@f65d72488497ed59ed492d4d24b6e8a2572f4185\` +**Base:** \`main@73b8a0d1ba33503fede02db2c3c0af082d724a12\` +**PR:** #34 remains open/draft → main; no retarget or merge. The implementation and this roadmap update are committed together on the existing owner-selected branch. + +## Branch freshness and dependency gate +- Re-enumerated the complete remote branch endpoint: **44 branches** (page 1 = 44; page 2 = 0), and **41 PRs** (**27 open / 14 closed**; page 2 empty). Default \`main\` is unchanged. The selected branch is **150 ahead / 0 behind main**, with main as merge base. +- Current open PRs: #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8 and #6. Closed PRs: #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2 and #1. +- Since the prior complete 44-row inventory, only two branch heads changed: \`black-box-bihar-news@f65d72488497ed59ed492d4d24b6e8a2572f4185\` (2026-11-08 15:05:55Z, “ui: unify Search action pill continuous geometry”, PR #34 open/draft → main) and \`fix/early-startup-crash-diagnostics-2026-11-06@ebea0aac68ce2cf17aad376304f7915fe937e807\` (2026-11-08 15:11:25Z, “docs: record off-main diagnostics verification [skip ci]”, PR #16 open/draft → main). The other 42 branch names, heads, timestamps/messages and PR relationships match the preceding full inventory table in \`BRANCH_CONSOLIDATION.md\`. +- PR #16 is **7 commits ahead / 93 behind** this selected branch (merge base \`6ab1e6a02ac8e91027f21900d64d63b9f2e6a890\`). Its appearance-alpha/first-read changes are superseded by the active branch's richer \`LocalAppearancePreferences\` (glass alpha + Reduce Transparency) and IO-restored snapshot. Its two newer code commits move startup diagnostic work off the main thread across \`CurrentLensApplication\`, \`LaunchCrashDiagnostics\` and the top-level \`MainActivity\` startup path; these are not Reader prerequisites. PR #35 also changes \`LaunchCrashDiagnostics\` and its tests, so those diagnostic hunks need one joint review before porting. No startup/device-stability claim is made. +- PR #19's old UI head is **0 ahead / 80 behind** this branch; its Reader/Search implementation is already in the consolidated ancestry. PR #37's Search RowScope repair, #36's Asia/Kolkata rollover, #30's 48dp target policy, #31's appearance IO snapshot, #29's bookmark persistence and the conservative shared adaptive-contrast policy are represented. +- PR #39 remains a separate signing/workflow proposal (**6 ahead / 15 behind**) requiring owner-managed secrets, certificate pinning and explicit install/local-data migration approval. PR #40/#41 and #32/#33/#38 remain separate RSS/parser/network review work; #25/#26 require a joint publisher-resource security review; #27 is editorial-only. The stale \`ui/liquid-glass-performance\` and \`redesign/v0.3-search-reader\` branches remain excluded. No other branch was modified. + +## Exact parent CI and repository state +- Fully paginated **356 Actions runs**: **219 success, 68 failure, 69 cancelled**; queued/in-progress: **0**. +- Exact parent SHA \`f65d72488497ed59ed492d4d24b6e8a2572f4185\` passed natural push run [#354](https://github.com/Batmancpu/CurrentLens/actions/runs/42493059399) and PR run [#355](https://github.com/Batmancpu/CurrentLens/actions/runs/42493063222). The PR build job passed checkout, Java, signing-key restore, Android SDK/platform setup, Gradle, WordNet builder tests (**4/4**), offline dictionary generation (**151,456 unique words / 50,950,144 bytes**), \`:app:testDebugUnitTest\`, \`:app:assembleDebug\` and artifact upload; Release job skipped. +- PR artifact [#13622606443](https://github.com/Batmancpu/CurrentLens/actions/runs/42493063222/artifacts/13622606443) is **39,122,460 bytes**; push artifact #13621439638 is **39,000,680 bytes**. These validate the parent only; the new Reader commit requires its own natural run. +- Latest global run #356 is a separate PR #16 run on code head \`5e36e52915f1232cdfefc7dc28abd5a5360b388b\`; PR #16's current \`ebea0aac...\` head is a documentation-only \`[skip ci]\` child. Run #356 does not validate this branch. +- Active workflow blob \`6cef6ca19f3babd331c9deb59be9da0067c6fa66\` keeps build/test read-only, natural push/PR triggers and a separate main-push-only Release-write job. Main's workflow remains push-only with broader write permission. Latest Release remains \`v0.2.0-build-116\` (published 6 November 2026 11:18:59Z); no Release was created. + +## Reader interaction gap and implementation +- Reader auto-hide already reveals on upward scroll and pins controls for definition, native selection ActionMode, IME, enabled accessibility services and the open Aa menu. It did not reveal hidden controls on a short intentional tap in the reading canvas. +- Added pure \`ReaderChromePolicy.shouldRevealOnTap\`: a tap must complete within **360ms**, remain within Android touch slop, and have no active/pending native selection or pinned transient state. +- \`ReaderWebView\` records only the existing ACTION_DOWN/MOVE/UP/CANCEL gesture stream. A qualifying tap calls the existing reveal path only when chrome is hidden; the original event is always forwarded to \`super.onTouchEvent\`, so links and native Copy/Select/share/selection behaviour are not consumed or replaced. Local ActionMode tracking closes the timing gap before Compose pin state propagates. Article changes and detach clear gesture/selection state. +- The existing 160ms hide settle, directional thresholds, completion dock, definition anchor, WebView permissions, publisher fallback, saved reading position and quiz persistence are unchanged. + +## Policy tests and state matrix +- Added JVM coverage for a valid short tap and inclusive 360ms boundary; long-press and touch-slop rejection; selection, pending-definition and pinned-state suppression; and invalid measurement rejection. +- Reader states remain one shared chrome component: **visible**, **hidden while reading**, **tap-revealed**, **upward-scroll revealed**, **definition-open**, **native ActionMode/selection pinned**, **IME/accessibility/Aa pinned**, and **completion visible/dismissed**. No duplicate toolbar or bottom bar is introduced. +- Existing Reduce Motion path still sets Reader chrome transition duration to zero (snap); no new spring or continuous animation is added. Device smoothness and native selection behaviour remain unverified. + +## Paired rendering/performance strategy +- **Added/removed render passes:** 0. New Prismal surfaces, blur/refraction, backdrop captures/readbacks, shaders, graphics layers, image decodes, dependencies, timers, network calls and persistence operations: **0**. +- The only new work is constant-time gesture bookkeeping on the existing WebView touch stream and one pure policy call on ACTION_UP; Compose visibility changes only once when hidden chrome is revealed. No scroll-pixel state updates, polling or new capture source. +- This is source-level cost containment, not a measured frame-time, memory, GPU, thermal or battery improvement. The OPPO Reno10 remains the target device, but screenshots, logcat/tombstone, TalkBack, IME, Reduce Motion, Perfetto/frame timing, GPU overdraw, memory/allocation, thermal and battery are **UNVERIFIED**. + +## Next +- Inspect the new exact-head natural push/PR jobs, full logs and artifact before another implementation pass. Then continue the whole-app coverage review without expanding live blur on repeated cards or adding another backdrop system. +- No main write, merge, retarget, force update, manual dispatch/rerun, Release publication, package identity change, or source-branch deletion. + +--- + # Live implementation batch — Search filter action corner parity (8 November 2026, 20:28 IST) **Source:** black-box-bihar-news@0e94d82be37a891dd4546a3f856a9cd47b5687d6 @@ -409,7 +452,7 @@ Recheck every branch head and dependency before each future implementation commi | You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity now scales cached tint/rim tokens; no live blur; OPPO contrast unverified | | Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | | Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting cards use the same committed Clear↔Frosted tint/rim intensity; no live blur; summaries memoized | -| Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa control; direction-aware auto-hide | Implemented; pinned during selection, definition, IME and accessibility states; device motion unverified | +| Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa; direction-aware auto-hide plus short content-tap reveal while hidden | Implemented; tap preserves native links/selection; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | | Reader completion action | Transient contextual glass | Compact, dismissible, only after true completion; hide with reader chrome and avoid definition/action-mode overlap | Implemented; physical safe-area/selection checks unverified | @@ -433,7 +476,7 @@ Recheck every branch head and dependency before each future implementation commi | Search | One morphing capsule | Reuse existing anchor/dock geometry and single backdrop | Preserve IME; clear affordance must not alter layout or focus | | Explore filters | One shared capsule, not one glass surface per chip | Reuse same backdrop; keep chip fills/borders as simple drawing | >=48dp target and selected semantics still require device/TalkBack checks | | Feed cards | No live blur | One Coil request per image; palette sampled from that decoded bitmap; cached per article | Standard content card if palette unavailable; no duplicate decode | -| Reader toolbar | One 8dp-blur glass toolbar, 60dp minimum height | Reuse root backdrop; one small bounded surface; Aa menu exists only when opened | Static material/Reduce Motion fallback; device GPU cost unmeasured | +| Reader toolbar | One 8dp-blur glass toolbar, 60dp minimum height | Reuse root backdrop; one small bounded surface; Aa menu exists only when opened; tap reveal adds no surface/effect | Static material/Reduce Motion fallback; tap is one ACTION_UP policy check; device GPU cost unmeasured | | Reader progress | 2dp content indicator | Reuse existing debounced `savedReadingProgress`; no polling, WebView injection or readback | Hidden at zero/completion; visual timing needs device validation | | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | | Definition popover | Existing anchored Prismal surface | Keep one existing popover; do not add another capture; action buttons use native Compose controls | Compact scroll bounds retained; selection/ActionMode requires device validation | From 6160d58cd54719c83d8dace2f99ba2104e27efcb Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 22:35:33 +0530 Subject: [PATCH 149/175] perf(ui): coalesce feed scroll idle settling --- .../mangoloads/currentlens/MainActivity.kt | 23 ++++- docs/BRANCH_CONSOLIDATION.md | 89 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 41 +++++++++ 3 files changed, 149 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 95623007..0d8f45e5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -133,6 +133,7 @@ import androidx.compose.runtime.staticCompositionLocalOf import androidx.compose.runtime.withFrameNanos import androidx.compose.ui.Alignment import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.unit.Velocity import androidx.compose.ui.input.nestedscroll.NestedScrollConnection import androidx.compose.ui.input.nestedscroll.NestedScrollSource import androidx.compose.ui.input.nestedscroll.nestedScroll @@ -501,11 +502,9 @@ private fun BrrrNewsApp() { if (!feedNavigationEnabled) return Offset.Zero if (consumed.y != 0f) { if (!feedIsScrolling) feedIsScrolling = true + // A new scroll delta supersedes a pending idle settle. The settle + // coroutine is scheduled once after the nested fling/drag completes. feedScrollSettleJob[0]?.cancel() - feedScrollSettleJob[0] = persistenceScope.launch { - delay(550L) - feedIsScrolling = false - } } // LazyColumn scrolls forward with positive consumed Y; pulling past its // top edge leaves a negative unconsumed delta. @@ -523,6 +522,22 @@ private fun BrrrNewsApp() { if (nextCompact != compactNavigation) compactNavigation = nextCompact return Offset.Zero } + + override suspend fun onPostFling( + consumed: Velocity, + available: Velocity + ): Velocity { + if (feedNavigationEnabled && feedIsScrolling) { + // Keep adaptive luminance paused for the same 550ms settle window, + // without creating a coroutine for every consumed scroll delta. + feedScrollSettleJob[0]?.cancel() + feedScrollSettleJob[0] = persistenceScope.launch { + delay(550L) + feedIsScrolling = false + } + } + return Velocity.Zero + } } } LaunchedEffect(selectedTab, searchExpanded, selectedArticle?.url, showSettings, quizMode) { diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index dcac9038..9ab44a3c 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,92 @@ +# Latest live branch/PR/CI audit — 8 November 2026, 22:25 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected integration/UI line:** `black-box-bihar-news@5863f29ab4e598230492b8c43d2f0d2d882112d5` — **151 ahead / 0 behind main**; main is the merge base. +**PR:** #34 is open/draft → main, unmerged, and its head matches the selected branch. No retarget. + +## Complete remote branch inventory and comparison + +The branch endpoint was fully paginated: **45 branches** on page 1 and **0** on page 2. Every head was compared against `black-box-bihar-news@5863f29ab4e598230492b8c43d2f0d2d882112d5`; A/B means commits ahead/behind the selected line. Latest commit timestamps/messages and PR relationships are recorded below. + +| Branch | Head SHA | Latest commit UTC | Latest commit message | PR relationship | A/B | +|---|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open | 3/47 | +| `black-box-bihar-news` | `5863f29ab4e598230492b8c43d2f0d2d882112d5` | 2026-11-08 16:11:40Z | fix(reader): reveal hidden chrome on intentional content tap | PR #34 open/draft | 0/0 | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24; no PR head | 4/57 | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open | 1/151 | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged | 0/92 | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed | 0/151 | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35Z | fix: refresh article card metadata when feed content changes | PR #6 open | 10/164 | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27Z | fix: select Atom article alternate links deterministically | PR #12 open | 1/164 | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open | 3/151 | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `ebea0aac68ce2cf17aad376304f7915fe937e807` | 2026-11-08 15:11:25Z | docs: record off-main diagnostics verification [skip ci] | PR #16 open | 7/94 | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19Z | test(editorial): cover reality TV and television promotion | PR #27 open | 46/52 | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open | 11/151 | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47Z | fix(editorial): match policy action and target as separate words | PR #24 open | 9/57 | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32Z | test: align economy signal count with repo-rate mapping | PR #2 closed/merged | 1/170 | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28Z | fix: tighten UPSC editorial signal matching | PR #1 closed/merged | 1/171 | +| `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45Z | docs(editorial): fix baseline paragraph spacing | PR #42 open | 6/0 | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06Z | fix: use supported calendar navigation glyph | PR #5 closed/merged | 2/168 | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44Z | test: preserve Parliament bill headline variants | PR #23 closed/merged | 0/60 | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39Z | Validate RSS redirects against publisher allowlists | PR #15 closed, not merged | 2/151 | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10Z | fix(quiz): qualify selected semantics receiver | PR #28 closed/merged | 0/50 | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24Z | test(rss): correct relative xml base fixture | PR #33 open | 4/44 | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46Z | test(reader): cover publisher-only image resources | PR #25 open | 7/53 | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29Z | fix: deduplicate RSS tracking URL variants | PR #17 open | 1/151 | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56Z | docs: record verified search clear compile repair | PR #37 open | 6/32 | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03Z | fix: capture Search glass tint before draw callback | PR #10 closed/merged | 1/165 | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31Z | docs: record stable signing validation and migration gate | PR #39 open | 6/16 | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 closed/merged | 1/166 | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed/merged | 1/167 | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open | 3/33 | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28Z | fix(rss): keep redirect result non-null | PR #40 open | 6/151 | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | default branch | 0/151 | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36Z | fix(test): correct RSS budget test identifier | PR #38 open | 8/26 | +| `perf/bound-rss-field-values-2026-11-08` | `39acde8373eb3405f655e052ccd3445f22eedebb` | 2026-11-08 14:39:53Z | test(rss): reject non-editorial XHTML script and style text | PR #41 open | 14/151 | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16Z | Record successful bounded-diagnostic CI | PR #35 open | 6/41 | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04Z | Verify legacy markers survive recent-history retention | PR #22 open | 9/164 | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26Z | docs: record bounded RSS fetch review and CI state | PR #32 open | 2/46 | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open | 5/46 | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open | 1/50 | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31Z | perf: move read-marker persistence off main thread | PR #8 open | 3/164 | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22Z | privacy: block third-party publisher reader subresources | PR #26 open | 1/52 | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48Z | fix: make selection decoding fallback valid JSON | No direct PR; stale | 0/245 | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open | 1/164 | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39Z | fix: import bottom navigation glyphs | PR #4 closed, not merged; PR #3 merged older head | 3/169 | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36Z | docs(reader): record native selection collision guard | PR #19 closed/merged into active line | 0/81 | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34Z | fix: finish syllabus metadata and thin-film feed eligibility | No direct PR; ancestral work | 0/67 | + +## PR state and baseline decision + +- Fully paginated PR inventory: **42 total**, **28 open / 14 closed**. Open: #42, #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6. Closed: #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2, #1. +- PR #42 is the only newer branch descendant of the selected line (**6 ahead / 0 behind**). Its changed files are exclusively `UpscEngine.kt`, `UpscFeedPolicy.kt`, corresponding tests and `UPSC_EDITORIAL_BASELINE.md`; it is editorial-only and was not copied into the UI branch. +- PR #16 is **7 ahead / 94 behind** (merge base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`). Its later startup/diagnostic changes are not UI prerequisites and overlap PR #35's diagnostic work; no native launch-fix claim. +- PR #37's Search RowScope fix is present in the current `SearchMorphField` (AnimatedVisibility inside Row; reserved 48dp trailing slot). PR #30's TouchTargetPolicy, #31's IO appearance snapshot and #36's AsiaKolkataDayPolicy are present. The old `brrrNEWS` material policy is superseded: 1,104 bytes on that branch versus 6,222 bytes in the active policy, which now covers supporting surfaces, transient controls, preview tokens and filter hierarchy. `brrrNEWS` is 4/57; `ui/liquid-glass-performance` is 3/169; `redesign/v0.3-search-reader` is 0/245 and stale. +- PR #39 remains a separate signing/workflow/Gradle proposal requiring owner-managed secrets, certificate pinning and explicit first-install/local-data migration approval. PRs #25/#26/#32/#33/#38/#40/#41 remain RSS/parser/network/security review work; #8/#22/#29 are persistence proposals; #6/#21/#27 are editorial proposals. None was modified by this UI task. +- The chosen baseline is the newest coherent UI/integration lineage containing the corrected background-only Prismal root source, Reader/Search/feed navigation, shared material policies and consolidated app code. The newer PR #42 is explicitly excluded as editorial-only. No branch was created, deleted, rebased, force-updated or modified except the owner-selected `black-box-bihar-news` line. + +## Exact Actions, workflow and Release + +- Fully paginated **360 Actions runs**: **222 success / 68 failure / 70 cancelled**; queue/in-progress **0**. +- Exact selected parent SHA `5863f29ab4e598230492b8c43d2f0d2d882112d5` passed natural push run [#357](https://github.com/Batmancpu/CurrentLens/actions/runs/42498635717) and PR run [#358](https://github.com/Batmancpu/CurrentLens/actions/runs/42498640377). Run #358's full job log confirms WordNet builder 4/4, **151,456 words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug`, BUILD SUCCESSFUL in 1m12s and artifact upload. Release job skipped. +- PR artifact [#13624666099](https://github.com/Batmancpu/CurrentLens/actions/runs/42498640377/artifacts/13624666099): **39,123,522 bytes**, SHA-256 `9180dff13acee7f4627c6aed120a8afe0ccc15a27b84d1dc134aa588b4540ce9`, expires **22 November 2026 16:13:29 UTC**. This validates the parent only. +- Latest global run #360 is a successful PR #42 run on its separate editorial SHA `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8`; it does not validate the selected UI line. +- Active workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` provides read-only build/test, natural push/PR validation and an isolated main-push-only Release-write job. Main's workflow remains push-only with workflow-wide `contents: write`. Latest Release is `v0.2.0-build-116`, published 6 November 2026 11:18:59Z; no Release was created. + +## Current implementation — coalesced feed scroll settling + +- The 550ms feed idle-settle coroutine was previously cancelled/recreated on every non-zero nested-scroll delta. It is now cancelled on new deltas and scheduled once from `NestedScrollConnection.onPostFling`; the same quiet window and feed-scrolling gate remain. This removes per-delta coroutine churn without changing compact-nav thresholds, state, probe cadence or capture scope. +- Render/capture delta: **0**. No new Prismal surfaces, blur/refraction, captures/readbacks, shaders, graphics layers, image decodes, dependencies, network or persistence paths. At most one settle coroutine per completed drag/fling. +- Existing FeedNavigationPolicy JVM tests cover directional hysteresis, thresholds, top reset, ineligible screens and tracker reset. No new policy test was warranted because policy semantics are unchanged. The new exact-head natural push/PR runs are pending. +- OPPO Reno10 visual/scroll/IME/TalkBack/Reduce Motion/launch checks, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. This source-level cost reduction is not a measured performance win. + +## Safety + +- No main write, PR merge/retarget, manual dispatch/rerun, Release publication, package/app identity change, or source-branch deletion. Continue only on `black-box-bihar-news`. + +--- + # Latest live branch/PR/CI audit — 8 November 2026, 21:29 IST **Repository:** \`Batmancpu/CurrentLens\` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 2b388c2c..e7563547 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,44 @@ +# Live implementation batch — coalesced feed scroll settling (8 November 2026, 22:25 IST) + +**Source:** `black-box-bihar-news@5863f29ab4e598230492b8c43d2f0d2d882112d5` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**PR:** #34 remains open/draft → main; no retarget or merge. This change stays on the owner-selected consolidation branch. + +## Freshness and dependency gate + +- Re-enumerated all **45 remote branches** (page 1 = 45; page 2 = 0) and **42 PRs** (**28 open / 14 closed**; page 2 = 0). Default branch remains `main`. Before this implementation, `black-box-bihar-news` was **151 ahead / 0 behind main**, with main as merge base; PR #34 head matched it. +- The only branch ahead of the selected line with a newer timestamp is PR #42, `fix/gst-council-syllabus-disambiguation-2026-11-08@2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8`, **6 ahead / 0 behind**. Its complete comparison is limited to `UpscEngine.kt`, `UpscFeedPolicy.kt`, their tests and `UPSC_EDITORIAL_BASELINE.md`; it is editorial-only and does not change the UI baseline, so it was not ported into this UI pass. +- PR #16 `fix/early-startup-crash-diagnostics-2026-11-06@ebea0aac68ce2cf17aad376304f7915fe937e807` is **7 ahead / 94 behind** the selected line (merge base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`). Its newer diagnostic/startup changes are not Reader/navigation prerequisites and overlap PR #35 diagnostic work; no diagnostic code was copied and no native launch fix is claimed. +- PR #37's RowScope Search-clear correction is present in the current `SearchMorphField`: the 48dp trailing slot is reserved and `AnimatedVisibility` is inside a `Row`. PR #30's `TouchTargetPolicy`, PR #31's IO-restored appearance preferences and PR #36's Asia/Kolkata day policy are present in the active tree. The old `brrrNEWS` line is **4 ahead / 57 behind**; its 1,104-byte `GlassSurfacePolicy` is superseded by the active 6,222-byte policy covering supporting, transient, preview and filter-control tiers. The stale `ui/liquid-glass-performance` line is **3 ahead / 169 behind**; `redesign/v0.3-search-reader` is **245 behind**. Neither is a baseline. +- PR #39 remains a separate signing/workflow/Gradle migration requiring owner-managed secrets, certificate pinning and an explicit first-install/local-data migration decision. RSS/parser/network proposals (#25, #26, #32, #33, #38, #40, #41), persistence proposals (#8, #22, #29), and editorial proposals (#6, #21, #27) were not modified by this UI pass. No source branch was deleted or changed. + +## Exact parent CI, Actions, workflow and Release + +- Exact parent SHA `5863f29ab4e598230492b8c43d2f0d2d882112d5` passed natural push run [#357](https://github.com/Batmancpu/CurrentLens/actions/runs/42498635717) and pull-request run [#358](https://github.com/Batmancpu/CurrentLens/actions/runs/42498640377). Run #358's complete build log confirms WordNet builder **4/4**, offline dictionary generation **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug`, **BUILD SUCCESSFUL in 1m 12s**, and artifact upload. The separate publish job was skipped. +- PR artifact [#13624666099](https://github.com/Batmancpu/CurrentLens/actions/runs/42498640377/artifacts/13624666099) is **39,123,522 bytes**, ZIP SHA-256 `9180dff13acee7f4627c6aed120a8afe0ccc15a27b84d1dc134aa588b4540ce9`, expires **22 November 2026 16:13:29 UTC**. It validates the parent SHA only; the new commit below requires its own natural run. +- Actions history is fully paginated: **360 runs** (**222 success / 68 failure / 70 cancelled**), with **0 queued or in-progress**. Latest global run #360 is PR #42 on its separate editorial head `2629cfbe...`; it does not validate this UI branch. No manual dispatch/rerun. +- Active branch workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, natural push/PR triggers, and a separate main-push-only Release-write job. Main's workflow remains push-only with workflow-wide `contents: write`; PR #34's natural validation is from the active branch workflow. Latest Release remains `v0.2.0-build-116` (published 6 November 2026 11:18:59Z); no Release was created. + +## Implementation — one idle-settle job per scroll gesture + +- `BrrrNewsApp` previously cancelled and launched a 550ms coroutine on every non-zero `NestedScrollConnection.onPostScroll` delta. That kept the shared 8×8 adaptive-luminance probe paused correctly, but created avoidable coroutine/job churn during long feed drags and flings. +- `onPostScroll` now only marks the feed active and cancels a pending settle. The existing 550ms idle settle is scheduled once from `onPostFling`, after the drag/fling has completed; a new delta cancels that pending job. Tab/destination changes and composition disposal retain their existing cancellation/reset paths. +- Feed direction thresholds, hysteresis, top reset, compact/expanded nav state, eligible destinations, 550ms quiet window, 4s/6s probe cadence, single 8×8 readback source and Reduce Transparency/Reader/Settings/background gates are unchanged. No polling, per-pixel Compose state, second sampler, or additional backdrop source. + +## Paired performance and accessibility strategy + +- **Render/effect delta:** 0 new or removed Prismal surfaces, blur/refraction passes, backdrop captures/readbacks, shaders, image decodes, graphics layers, dependencies, network calls or persistence operations. +- **Cost-control change:** removes repeated coroutine creation/cancellation from the scroll-delta path; at most one settle coroutine is created per completed drag/fling. The existing 550ms pause remains, so the shared luminance sampler does not resume during an active gesture. +- Existing `FeedNavigationPolicyTest` continues to cover directional threshold boundaries, hysteresis, ineligible destinations, top reset and tracker reset. No new pure-policy test was warranted because navigation policy and state transitions are unchanged; the exact-head natural build must compile the new nested-scroll callback. +- This is source-level cost containment, **not** a measured frame-time, jank, memory, GPU, thermal or battery improvement. OPPO Reno10 screenshots, scroll traces, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. Startup/launcher stability and native selection behaviour also remain device-unverified. + +## Next + +- Inspect the new exact-head natural push and PR jobs, complete logs and artifact before another implementation pass. Continue the whole-app coverage audit only where a concrete inconsistency remains; preserve calm high-contrast article/quiz reading surfaces, one background-only root capture, expanded-only tab glyph capture and the existing low-cadence shared luminance probe. +- No main write, merge, retarget, force update, manual workflow dispatch/rerun, Release publication, package/app identity change or source-branch deletion. + +--- + # Live implementation batch — Reader hidden-chrome tap reveal (8 November 2026, 21:29 IST) **Pre-change source:** \`black-box-bihar-news@f65d72488497ed59ed492d4d24b6e8a2572f4185\` From 58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sun, 8 Nov 2026 23:36:05 +0530 Subject: [PATCH 150/175] ui(search): remove competing inline glass panel --- .../mangoloads/currentlens/MainActivity.kt | 74 +++++-------------- docs/BRANCH_CONSOLIDATION.md | 40 +++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 48 +++++++++++- 3 files changed, 103 insertions(+), 59 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 0d8f45e5..d70482f2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1406,9 +1406,6 @@ private fun SearchFeed( val filterSheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true) val keyboardController = LocalSoftwareKeyboardController.current val eligibleArticles = articles - val density = LocalDensity.current - val reduceTransparency = LocalGlassReduceTransparency.current - val glassSurfaceColor = MaterialTheme.colorScheme.surface val categories = listOf("All", "India", "World", "Politics", "Geography", "Economy", "Environment", "Science", "Explained", "UPSC", "Opinion") val classificationInputs = remember(eligibleArticles) { ArticleRelevanceIndexPolicy.keys(eligibleArticles) @@ -1442,60 +1439,26 @@ private fun SearchFeed( } } Column(Modifier.fillMaxSize()) { - Box( - Modifier.fillMaxWidth().padding(horizontal = 12.dp, vertical = 5.dp) - .drawPrismalGlass( - backdrop = backdrop, - shape = { PrismalRoundedRectangle(22.dp) }, - effects = { - applyPrismalGlassEffects( - density = density, - adaptiveLuminance = true, - luminance = if (dark) 0.10f else 0.90f, - blurRadiusPx = with(density) { GlassRenderingPolicy.blurDp(7f, reduceTransparency).dp.toPx() }, - refractionHeightPx = with(density) { GlassRenderingPolicy.refractionDp(3f, reduceTransparency).dp.toPx() }, - refractionAmountPx = with(density) { GlassRenderingPolicy.refractionDp(4f, reduceTransparency).dp.toPx() }, - depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.001f, reduceTransparency), - adaptiveTuning = PrismalAdaptiveTuning.Subtle - ) - }, - specular = { - PrismalSpecular.Default.copy(width = 0.42.dp, blurRadius = 0.28.dp, alpha = GlassRenderingPolicy.specularAlpha(0.19f, reduceTransparency)) - }, - depthShadow = { - PrismalDepthShadow(radius = 8.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.06f), alpha = GlassRenderingPolicy.shadowAlpha(0.12f, reduceTransparency)) - }, - depthInset = { - PrismalDepthInset(radius = 3.dp, offset = DpOffset(0.dp, 1.dp), - color = Color.Black.copy(alpha = 0.04f), alpha = GlassRenderingPolicy.shadowAlpha(0.04f, reduceTransparency)) - }, - onDrawSurface = { - drawRect(glassSurfaceColor.copy(alpha = GlassRenderingPolicy.tintAlpha(glassAlpha * 0.10f, reduceTransparency))) - } - ) + Row( + Modifier.fillMaxWidth() + .padding(horizontal = 16.dp, vertical = 3.dp) + .heightIn(min = TouchTargetPolicy.MIN_ICON_TARGET_DP.dp), + verticalAlignment = Alignment.CenterVertically ) { - Row( - Modifier.fillMaxWidth().padding(start = 12.dp, end = 8.dp, top = 7.dp, bottom = 7.dp), - verticalAlignment = Alignment.CenterVertically - ) { - Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { - Text( - if (query.isBlank()) "UPSC-RELEVANT ARTICLES" else "UPSC SEARCH RESULTS", - style = MaterialTheme.typography.labelSmall, - color = MaterialTheme.colorScheme.secondary, - letterSpacing = 1.0.sp, - fontWeight = FontWeight.SemiBold - ) - Text( - if (activeFilterCount == 0) "Syllabus-linked topics and subjects" else activeSummary, - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.onSurfaceVariant, - maxLines = 1, - overflow = TextOverflow.Ellipsis - ) + val resultStatus = when { + loading && filtered.isEmpty() -> "Finding articles" + activeFilterCount > 0 -> activeSummary + filtered.size == 1 -> "1 article" + else -> "${filtered.size} articles" } + Text( + resultStatus, + modifier = Modifier.weight(1f), + style = MaterialTheme.typography.labelMedium, + color = MaterialTheme.colorScheme.onSurfaceVariant, + maxLines = 1, + overflow = TextOverflow.Ellipsis + ) GlassActionPill( label = if (activeFilterCount == 0) "Filters" else "Filters · $activeFilterCount", selected = activeFilterCount > 0, @@ -1505,7 +1468,6 @@ private fun SearchFeed( showFilters = true } ) - } } LazyColumn( Modifier.weight(1f), diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 9ab44a3c..fc4d360e 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,4 +1,42 @@ -# Latest live branch/PR/CI audit — 8 November 2026, 22:25 IST +# Latest live branch/PR/CI audit — 8 November 2026, 23:27 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected integration/UI line:** `black-box-bihar-news@6160d58cd54719c83d8dace2f99ba2104e27efcb` — **152 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, head matches the active branch, unmerged and unretargeted. + +## Freshness delta and branch selection + +- Re-enumerated all **45 remote branches** (page 1 = 45, page 2 = 0) and **42 PRs** (**28 open / 14 closed**). The default branch remains main. The selected branch head is `6160d58cd54719c83d8dace2f99ba2104e27efcb` (8 November 17:05:33 UTC, “perf(ui): coalesce feed scroll idle settling”); PR #34 head matches it and targets main. +- PR #42 is **6 ahead / 1 behind** this line; its five-file delta is only `UpscEngine.kt`, `UpscFeedPolicy.kt`, their tests and `UPSC_EDITORIAL_BASELINE.md`, so it is not a UI baseline. PR #16 is **7 ahead / 95 behind** and its newer startup/diagnostic changes overlap PR #35; no startup code was copied. PR #37's Search RowScope fix, #30's 48dp target policy, #31's IO appearance snapshot and #36's Asia/Kolkata policy are represented in the active tree. +- `brrrNEWS` is **4 ahead / 58 behind** and its earlier GlassSurfacePolicy is superseded by the active supporting/transient/preview/filter policy. `ui/liquid-glass-system-continuation` is 68 behind; `ui/liquid-glass-performance` is 3 ahead / 170 behind; `redesign/v0.3-search-reader` is 246 behind. PR #39's signing migration remains owner-gated; RSS/parser/security, persistence and editorial branches remain separate. No source branch was modified. +- The complete 45-row head/timestamp/message/PR table below is the prior 22:25 IST snapshot; since then only the selected branch advanced from `5863f29ab4e598230492b8c43d2f0d2d882112d5` to `6160d58cd54719c83d8dace2f99ba2104e27efcb`. All other 44 branch heads and commit metadata are unchanged. + +## PR inventory + +- Open (28): #42, #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6. +- Closed (14): #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2, #1. + +## Exact Actions, workflow and Release + +- Fully paginated **362 Actions runs**: **224 success / 68 failure / 70 cancelled**; queued/in-progress **0**. +- Exact active head `6160d58cd54719c83d8dace2f99ba2104e27efcb` passed natural push run [#361](https://github.com/Batmancpu/CurrentLens/actions/runs/42503199872) and PR run [#362](https://github.com/Batmancpu/CurrentLens/actions/runs/42503204114). Run #362's full job log and steps show WordNet builder 4/4, 151,456 unique words / 50,950,144-byte offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload. PR artifact [#13625902905](https://github.com/Batmancpu/CurrentLens/actions/runs/42503204114/artifacts/13625902905) is 39,124,172 bytes, SHA-256 `ca03ff3dce7fa10a8b13f84cbe0eb7ebda245bec00cfa96ea9c9a1081ae48a9d`, expires 22 November 2026 17:07:33 UTC. Both Release jobs skipped. +- Active branch workflow `.github/workflows/build-apk.yml` has read-only build/test permissions, natural push/PR triggers and a separate main-push-only Release-write job. Main's workflow remains push-only with workflow-wide `contents: write`. Latest Release remains `v0.2.0-build-116`; no Release was published. +- The new Search hierarchy commit described in the roadmap below has not yet received CI; #361/#362 validate its parent only. No manual dispatch/rerun. + +## Current UI pass — Search hierarchy de-duplication + +- Removed the redundant inline Search `drawPrismalGlass` slab (7dp blur, 3dp/4dp refraction, specular and depth effects). The Search header already names the destination and the lower morphing capsule owns query entry; the inline panel repeated the same hierarchy. +- Replaced it with a plain 48dp result/active-filter row and the existing static glass Filters action. The filter sheet, filter state, query classification, search clear/focus/IME behaviour and root capture are unchanged. +- One resting Search live-glass surface and its associated optics are removed; no new capture/readback, shader, graphics layer, image decode, dependency, network or persistence path. Source-level cost reduction only; device/GPU/battery measurements remain unverified. + +## Device and measurement boundary + +OPPO Reno10 cold/warm launch, screenshots, Search/IME/selection, TalkBack, Reduce Motion, font scaling, Perfetto/frame timing, GPU overdraw, allocation/memory churn, thermal and battery remain **UNVERIFIED**. CI compile/JVM success is not device-launch, animation or performance certification. + +--- + +# Previous live branch/PR/CI audit — 8 November 2026, 22:25 IST **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index e7563547..85a5b570 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,46 @@ +# Live implementation batch — Search hierarchy de-duplication (8 November 2026, 23:27 IST) + +**Source:** `black-box-bihar-news@6160d58cd54719c83d8dace2f99ba2104e27efcb` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — source is **152 ahead / 0 behind**, with main as merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. This pass stays on the owner-selected consolidation branch. + +## Branch freshness and dependency gate + +- Re-enumerated the complete remote inventory: **45 branches** (page 1 = 45, page 2 = 0) and **42 PRs** (**28 open / 14 closed**). The default branch remains main. The selected branch head is `6160d58cd54719c83d8dace2f99ba2104e27efcb` (8 November 17:05:33 UTC, “perf(ui): coalesce feed scroll idle settling”); PR #34 head matches it and targets main. +- PR #42, `fix/gst-council-syllabus-disambiguation-2026-11-08@2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8`, is **6 ahead / 1 behind** the selected line. Its complete diff is limited to `UpscEngine.kt`, `UpscFeedPolicy.kt`, their tests and `UPSC_EDITORIAL_BASELINE.md`; it is editorial-only and was not ported into this UI pass. +- PR #16, `fix/early-startup-crash-diagnostics-2026-11-06@ebea0aac68ce2cf17aad376304f7915fe937e807`, is **7 ahead / 95 behind**. Its newer startup/diagnostic and MainActivity/LocalStore changes overlap separate PR #35 diagnostic work and are not Search prerequisites; no diagnostic code was copied and no native launch fix is claimed. +- PR #37's Search RowScope compile correction is already present in the active 48dp trailing clear slot; PR #30's TouchTargetPolicy, #31's IO-restored appearance preferences and #36's Asia/Kolkata day policy are also present. The old `brrrNEWS` line is **4 ahead / 58 behind** and its small GlassSurfacePolicy is superseded by the active supporting/transient/preview/filter policy. `ui/liquid-glass-system-continuation` is 68 behind; `ui/liquid-glass-performance` is 3 ahead / 170 behind; `redesign/v0.3-search-reader` is 246 behind. None is a safe newer UI baseline. +- PR #39's signing/workflow migration remains owner-gated on secrets, certificate pinning and first-install/local-data migration. RSS/parser/security proposals (#25, #26, #32, #33, #38, #40, #41), persistence proposals (#8, #22, #29), and editorial proposals (#6, #21, #27, #42) were not changed. No source branch was modified. + +## Exact parent CI, Actions, workflow and Release + +- Fully paginated **362 Actions runs** (100 + 100 + 100 + 62): **224 success / 68 failure / 70 cancelled**, with **0 queued or in-progress**. +- Exact parent SHA `6160d58cd54719c83d8dace2f99ba2104e27efcb` passed natural push run [#361](https://github.com/Batmancpu/CurrentLens/actions/runs/42503199872) and pull-request run [#362](https://github.com/Batmancpu/CurrentLens/actions/runs/42503204114). Both build jobs passed WordNet builder tests (**4/4**), generated **151,456 unique words** (**50,950,144 bytes**), passed `:app:testDebugUnitTest` and `:app:assembleDebug`, and uploaded the debug APK. PR artifact [#13625902905](https://github.com/Batmancpu/CurrentLens/actions/runs/42503204114/artifacts/13625902905) is **39,124,172 bytes**, SHA-256 `ca03ff3dce7fa10a8b13f84cbe0eb7ebda245bec00cfa96ea9c9a1081ae48a9d`, expires **22 November 2026 17:07:33 UTC**. Both Release jobs were skipped. The full PR build log and every job step were inspected. +- The active `.github/workflows/build-apk.yml` uses read-only build/test permissions, natural push/PR triggers for the integration branch and a separate main-push-only Release-write job. Main's workflow remains push-only with workflow-wide `contents: write`. Latest published Release remains `v0.2.0-build-116`; no Release was created. + +## Implementation — remove the competing inline Search glass slab + +- Search already has the shared glass page header, the morphing Search capsule and a functional Filters action. Its additional inline `drawPrismalGlass` panel repeated the “UPSC-relevant articles / syllabus-linked topics” hierarchy and placed another full glass slab between those controls. +- Replaced that panel with one compact **48dp plain status row**: result count when no filters are active, or the existing active-filter summary when filters are selected; the existing `GlassActionPill` remains the sole inline Filters affordance. It stays a static tinted/rimmed control rather than another live backdrop consumer. +- The filter sheet, topic/GS/subject state, active-filter count, query classification/index reuse, search-clear callback, focus, keyboard/IME docking and root backdrop ownership are unchanged. No duplicate control or second clear affordance was introduced. + +## Paired material/performance strategy + +- **Removed:** one resting Search-feed `drawPrismalGlass` surface and its 7dp blur, 3dp/4dp refraction, specular, shadow and inset effects. +- **Retained:** the one shared root background-only capture, the existing morphing Search capsule, the static `GlassActionPill`, and the conditional 5dp `PrismalTransientSurface` only while the filter sheet is open. No new sampler/readback, shader, graphics layer, image decode, dependency, timer, network or persistence path. +- The result/status row derives only from the already-computed filtered list and filter state; no new classifier pass or per-pixel state. This is a source-level reduction of one active glass surface, not a measured frame-time, GPU, memory, battery or thermal improvement. + +## Tests and remaining verification + +- No new pure-policy test was warranted: filter state, classification, navigation and IME semantics are unchanged; this is a Compose hierarchy/material-scope change. Parent run #362 validates the source before this change only; the new commit requires its own natural push/PR run. No manual dispatch/rerun. +- OPPO Reno10 Search hierarchy, light/dark contrast, filter target reachability, keyboard/cursor/IME behaviour, TalkBack, font scaling, Reduce Motion, launch stability, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. No device or performance claim is made. + +## Next + +- Inspect the exact new-head natural push/PR jobs, complete logs and APK artifact before another implementation pass. Continue the whole-app audit only where a concrete inconsistency remains; preserve the one root background-only capture, expanded-only tab glyph source, static content surfaces and low-cadence shared luminance probe. + +--- + # Live implementation batch — coalesced feed scroll settling (8 November 2026, 22:25 IST) **Source:** `black-box-bihar-news@5863f29ab4e598230492b8c43d2f0d2d882112d5` @@ -487,7 +530,8 @@ Recheck every branch head and dependency before each future implementation commi | Shared home header | Primary floating glass | Clear translucent header, restrained edge/specular, stable height across destinations | Shared 9dp-blur / 3×4dp-refraction profile now reduces the dark-slab risk; OPPO contrast remains unverified | | Four-tab navigation | Primary floating glass | One droplet bar with selected glyph aligned to its hit region | Hidden glyph capture and merged droplet source exist only in expanded state; compact mode releases both | | Compact feed navigation | Primary floating glass | Morph the same bar into one active-destination pill on eligible feed scroll only | Implemented; state policy validated in runs #186 and #187; physical animation still needs device validation | -| Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; run #183 passed | +| Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; filter clearing remains independent | +| Search results hierarchy | Plain status row + static control glass | One result/active-filter label beside the existing Filters action; no redundant inline live-glass slab | One 7dp blur/refraction panel removed; conditional filter sheet and morph field retained; device hierarchy unverified | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | | You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity now scales cached tint/rim tokens; no live blur; OPPO contrast unverified | @@ -514,7 +558,7 @@ Recheck every branch head and dependency before each future implementation commi | Root backdrop | One full-window background-only Prismal capture source | Capture background pixels only; no descendants; reuse same source | Do not reintroduce self-capture; code reviewed, device launch still unverified | | Navigation | One floating capsule plus expanded-only tab-glyph source/merged droplet | Create hidden glyph capture and merged droplet source only while expanded; compact pill uses the same shared bar surface | No new sampler/readback; compact state disposes unused sources; OPPO GPU cost unmeasured | | Home header | One 9dp-blur / low-refraction glass surface | Reuse root background-only source; static profile reduces blur/refraction/chromatic work; no duplicate capture | Theme-derived contrast; Reduce Transparency still removes live optics; device GPU cost unmeasured | -| Search | One morphing capsule | Reuse existing anchor/dock geometry and single backdrop | Preserve IME; clear affordance must not alter layout or focus | +| Search | One morphing capsule + one static glass Filters pill; no inline live-blur panel | Reuse existing anchor/dock geometry and root backdrop; result/status row is plain text | Preserve IME; clear and Filters controls retain 48dp targets; no extra readback | | Explore filters | One shared capsule, not one glass surface per chip | Reuse same backdrop; keep chip fills/borders as simple drawing | >=48dp target and selected semantics still require device/TalkBack checks | | Feed cards | No live blur | One Coil request per image; palette sampled from that decoded bitmap; cached per article | Standard content card if palette unavailable; no duplicate decode | | Reader toolbar | One 8dp-blur glass toolbar, 60dp minimum height | Reuse root backdrop; one small bounded surface; Aa menu exists only when opened; tap reveal adds no surface/effect | Static material/Reduce Motion fallback; tap is one ACTION_UP policy check; device GPU cost unmeasured | From 86e095d858784b59b231f64f647aed869698f992 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 00:41:33 +0530 Subject: [PATCH 151/175] fix(reader): release WebView resources on permanent disposal --- .../mangoloads/currentlens/MainActivity.kt | 54 ++++++++++++ .../currentlens/ReaderWebViewReleaseGuard.kt | 17 ++++ .../ReaderWebViewReleaseGuardTest.kt | 55 ++++++++++++ docs/BRANCH_CONSOLIDATION.md | 86 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 49 +++++++++++ 5 files changed, 261 insertions(+) create mode 100644 app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d70482f2..429629f2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -3436,6 +3436,12 @@ private fun ReaderScreen( } } } + }, + onRelease = { webView -> + webView.releaseForDisposal() + if (readerWebViewHolder.value === webView) { + readerWebViewHolder.value = null + } } ) @@ -3690,6 +3696,7 @@ private fun readerDocument(article: Article, content: String, fontSize: Int, dar } private class ReaderWebView(context: android.content.Context) : WebView(context) { + private val releaseGuard = ReaderWebViewReleaseGuard() var loadedKey: String? = null var onReachedBottom: () -> Unit = {} var onSelectionActionModeChanged: (Boolean) -> Unit = {} @@ -3920,6 +3927,53 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) postDelayed(check, SHORT_PAGE_END_CHECK_DELAY_MS) } + /** + * Called only when Compose permanently releases this AndroidView. A WebView may + * detach temporarily during window changes, so temporary detachment must not destroy it. + */ + fun releaseForDisposal() { + releaseGuard.release( + listOf( + // Flush the last debounced position before callbacks are disconnected. + { flushReadingPosition() }, + { stopLoading() }, + { + readingPositionSave?.let { removeCallbacks(it) } + readingPositionSave = null + cancelReadingPositionRestore() + cancelShortPageEndCheck(resetStability = true) + cancelPendingReaderChromeHide() + }, + { + selectionBridgeEnabled = false + selectionActionModeActive = false + readerChromePinned = false + readerChromeScrollState = ReaderChromeScrollState() + readingPositionCompleted = true + onReachedBottom = {} + onSelectionActionModeChanged = {} + onDefineWord = { _, _ -> } + onReaderPageFinished = {} + onReaderMainFrameError = {} + allowReaderNavigation = { false } + onOpenPublisherLink = {} + onReadingProgressChanged = {} + onReaderChromeVisibilityChanged = {} + }, + { + settings.javaScriptEnabled = false + settings.domStorageEnabled = false + webViewClient = WebViewClient() + webChromeClient = null + }, + { clearHistory() }, + { (parent as? android.view.ViewGroup)?.removeView(this) }, + { removeAllViews() }, + { destroy() } + ) + ) + } + override fun onDetachedFromWindow() { flushReadingPosition() readingPositionSave?.let { removeCallbacks(it) } diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt new file mode 100644 index 00000000..68ad3c58 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt @@ -0,0 +1,17 @@ +package com.mangoloads.currentlens + +/** + * Runs WebView teardown once and continues best-effort cleanup if an earlier step + * throws. The caller supplies actions in ownership order, ending with destroy(). + */ +internal class ReaderWebViewReleaseGuard { + private var released = false + + fun release(cleanup: List<() -> Unit>) { + if (released) return + released = true + cleanup.forEach { action -> + runCatching { action() } + } + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt new file mode 100644 index 00000000..5718e4bb --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt @@ -0,0 +1,55 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Test + +class ReaderWebViewReleaseGuardTest { + @Test + fun releaseRunsCleanupInOrderOnlyOnce() { + val guard = ReaderWebViewReleaseGuard() + val calls = mutableListOf() + val cleanup = listOf<() -> Unit>( + { calls += "flush-position" }, + { calls += "stop-loading" }, + { calls += "cancel-callbacks" }, + { calls += "clear-client-closures" }, + { calls += "clear-history" }, + { calls += "remove-parent" }, + { calls += "remove-children" }, + { calls += "destroy" } + ) + + guard.release(cleanup) + guard.release(cleanup) + + assertEquals( + listOf( + "flush-position", "stop-loading", "cancel-callbacks", + "clear-client-closures", "clear-history", "remove-parent", + "remove-children", "destroy" + ), + calls + ) + } + + @Test + fun failedCleanupDoesNotSkipLaterStepsOrRetryTheRelease() { + val guard = ReaderWebViewReleaseGuard() + val calls = mutableListOf() + val cleanup = listOf<() -> Unit>( + { calls += "stop-loading" }, + { calls += "cancel-callbacks" }, + { calls += "remove-parent"; error("synthetic detach failure") }, + { calls += "remove-children" }, + { calls += "destroy" } + ) + + guard.release(cleanup) + guard.release(cleanup) + + assertEquals( + listOf("stop-loading", "cancel-callbacks", "remove-parent", "remove-children", "destroy"), + calls + ) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index fc4d360e..1742b2b9 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,89 @@ +# Latest live branch/PR/CI audit — 9 November 2026, 00:31 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected integration/UI line:** `black-box-bihar-news@58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` — **153 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, unmerged; head matches the active branch. + +## Complete remote branch inventory + +The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and **0** on page 2. Each row records the live head, latest commit timestamp/message and current PR relationship. + +| Branch | Head SHA | Latest commit UTC | Latest commit message | PR relationship | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open | +| `black-box-bihar-news` | `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` | 2026-11-08 18:06:05Z | ui(search): remove competing inline glass panel | PR #34 open/draft; active head | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24 | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | PR #14 closed | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35Z | fix: refresh article card metadata when feed content changes | PR #6 open | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27Z | fix: select Atom article alternate links deterministically | PR #12 open | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32Z | feat: expose publication date and publisher RSS provenance on cards | PR #11 open | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `ebea0aac68ce2cf17aad376304f7915fe937e807` | 2026-11-08 15:11:25Z | docs: record off-main diagnostics verification [skip ci] | PR #16 open | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19Z | test(editorial): cover reality TV and television promotion | PR #27 open | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40Z | Verify a specific parliamentary bill remains eligible for the GS II feed | PR #21 open | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47Z | fix(editorial): match policy action and target as separate words | PR #24 open | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32Z | test: align economy signal count with repo-rate mapping | PR #2 closed/merged | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28Z | fix: tighten UPSC editorial signal matching | PR #1 closed/merged | +| `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45Z | docs(editorial): fix baseline paragraph spacing | PR #42 open | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06Z | fix: use supported calendar navigation glyph | PR #5 closed/merged | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44Z | test: preserve Parliament bill headline variants | PR #23 closed/merged | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39Z | Validate RSS redirects against publisher allowlists | PR #15 closed, unmerged | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10Z | fix(quiz): qualify selected semantics receiver | PR #28 closed/merged | +| `fix/release-reader-webview-resources-2026-11-09` | `d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614` | 2026-11-08 18:54:05Z | test(reader): verify parent removal before WebView destroy | PR #43 open/draft | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24Z | test(rss): correct relative xml base fixture | PR #33 open | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46Z | test(reader): cover publisher-only image resources | PR #25 open | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29Z | fix: deduplicate RSS tracking URL variants | PR #17 open | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56Z | docs: record verified search clear compile repair | PR #37 open | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03Z | fix: capture Search glass tint before draw callback | PR #10 closed/merged | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31Z | docs: record stable signing validation and migration gate | PR #39 open | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53Z | fix: diagnose launch crashes and move feed indexing off main | PR #9 closed/merged | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06Z | fix: harden cold start and reduce feed rendering workload | PR #7 closed/merged | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43Z | test(today): cover Asia/Kolkata midnight rollover | PR #36 open | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28Z | fix(rss): keep redirect result non-null | PR #40 open | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35Z | Correct icon artwork accessibility name to brrrNews | Default branch; no PR | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36Z | fix(test): correct RSS budget test identifier | PR #38 open | +| `perf/bound-rss-field-values-2026-11-08` | `39acde8373eb3405f655e052ccd3445f22eedebb` | 2026-11-08 14:39:53Z | test(rss): reject non-editorial XHTML script and style text | PR #41 open | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16Z | Record successful bounded-diagnostic CI | PR #35 open | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04Z | Verify legacy markers survive recent-history retention | PR #22 open | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26Z | docs: record bounded RSS fetch review and CI state | PR #32 open | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45Z | fix(startup): keep appearance snapshot API module-internal | PR #31 open | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25Z | perf(storage): move bookmark mutations off the UI thread | PR #29 open | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31Z | perf: move read-marker persistence off main thread | PR #8 open | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22Z | privacy: block third-party publisher reader subresources | PR #26 open | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48Z | fix: make selection decoding fallback valid JSON | No current PR; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16Z | ui: restore low-cadence foreground adaptive glass contrast | PR #13 open | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39Z | fix: import bottom navigation glyphs | PR #3 merged; PR #4 closed | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36Z | docs(reader): record native selection collision guard | PR #19 closed/merged into black-box | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34Z | fix: finish syllabus metadata and thin-film feed eligibility | No current PR | + +## Open/closed PR inventory and lineage decision + +- **Open (29):** #43, #42, #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6. +- **Closed (14):** #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2, #1. PR #20 and #19 are integrated into black-box only; no merge to main is implied. +- `black-box-bihar-news` is the coherent current app/UI baseline: 153 commits ahead / 0 behind main. PR #43 is 5 commits ahead / 0 behind main but only 5 ahead / 153 behind black-box; its three-file Reader WebView disposal delta was inspected and selectively ported. It cannot replace the 153-commit app baseline. +- PR #42 is 6 ahead / 2 behind black-box and is editorial-only (`UpscEngine`, `UpscFeedPolicy`, tests and baseline). PR #39 is 6 ahead / 18 behind and remains owner-gated on signing secrets/certificate pinning/migration. PR #16 is 7 ahead / 96 behind and has separate startup/diagnostic changes; no old MainActivity was copied. +- PR #37's RowScope Search-clear compile fix, #30's 48dp touch-target policy, #31's off-main appearance preference snapshot and #36's Asia/Kolkata day policy are already represented. The old `brrrNEWS` supporting-glass branch is superseded; `ui/liquid-glass-performance`, `ui/liquid-glass-system-continuation` and `redesign/v0.3-search-reader` are not viable baselines. +- Only `black-box-bihar-news` is modified. No source branch was changed/deleted, no PR merged/retargeted, no main write and no Release publication. + +## Exact Actions, workflow and Release + +- Fully paginated **364 Actions runs**: **226 success / 68 failure / 70 cancelled**; queued/in-progress **0**. +- Exact parent head `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` passed natural push run [#363](https://github.com/Batmancpu/CurrentLens/actions/runs/42508268534) and PR run [#364](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576). Full PR log and job steps show WordNet builder 4/4, 151,456 unique words / 50,950,144-byte offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. PR artifact [#13628606698](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576/artifacts/13628606698) is 39,118,210 bytes, SHA-256 `a6ab2c44ed3d971d76daa488a49661231c15d781711a00158b7df0e8e1db7d0e`, expires 22 November 2026 18:07:43 UTC. Publish jobs skipped. +- Active branch workflow has read-only build/test permissions and a separate main-push-only Release-write job; it naturally validates pushes/PRs for black-box. Main's workflow remains push-only with workflow-wide `contents: write`. Latest Release is `v0.2.0-build-116`; no new Release. +- PR #43 exact head `d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614` has 0 check-runs and 0 statuses. Its source branch was not modified; the reviewed delta is ported only on black-box. + +## Current Reader lifecycle implementation + +- `ReaderScreen` now uses `AndroidView.onRelease` to call the one-shot `ReaderWebView.releaseForDisposal()` and clear the holder when it still references that instance. +- Disposal flushes the last debounced position, stops loading, cancels delayed reader callbacks, clears selection/Compose callbacks, disables JavaScript/DOM storage on the disposed WebView, replaces clients, clears history, detaches/removes children and destroys the native view. `onDetachedFromWindow()` remains temporary-detach-safe. +- PR #43's full patch was reviewed. Its failure-isolation test omitted the expected `remove-parent` action; the consolidated test now asserts all subsequent cleanup actions run and that a failed release is not repeated. +- No additional Prismal surface, blur/refraction, shader, backdrop capture/readback, image decode, dependency, network or persistence path. This is source-level lifecycle/resource hygiene, not measured memory/battery/jank improvement. +- The new head's natural CI is pending. OPPO Reno10 WebView re-entry/disposal, screenshots, launch stability, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. + +--- + # Latest live branch/PR/CI audit — 8 November 2026, 23:27 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 85a5b570..8435d2e6 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,52 @@ +# Live implementation batch — Reader WebView permanent-disposal guard (9 November 2026, 00:31 IST) + +**Source:** `black-box-bihar-news@58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — the active integration line is **153 ahead / 0 behind**, with main as merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. This pass stays on the owner-selected consolidation branch. + +## Branch freshness and dependency gate + +- Re-enumerated all **46 remote branches** (page 1 = 46; page 2 = 0), **29 open PRs** and **14 closed PRs**. The selected branch head is `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4`; PR #34 matches it. Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Newest relevant independent branch is PR #43, `fix/release-reader-webview-resources-2026-11-09@d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614`: **5 ahead / 0 behind main**, but **5 ahead / 153 behind black-box-bihar-news**. Its complete three-file delta is limited to `MainActivity.kt`, `ReaderWebViewReleaseGuard.kt` and its JVM test. It is not a viable app baseline; its lifecycle fix was reviewed and selectively ported below. PR #43's exact head has **0 check-runs and 0 commit statuses**, so no source-branch CI is claimed. +- PR #42 is **6 ahead / 2 behind** the selected line and changes only UPSC editorial engine/feed policy/tests/baseline; it was not ported in this UI pass. PR #39 is **6 ahead / 18 behind** and changes signing/workflow/Gradle; its owner-managed secrets, certificate pinning and first-install/local-data migration remain a separate gate. PR #16 is **7 ahead / 96 behind** and carries separate startup/diagnostic changes; no old MainActivity was copied. +- PR #37's Search RowScope repair is already reflected in the active 48dp in-capsule clear slot; PR #30's TouchTargetPolicy, #31's off-main appearance snapshot and #36's Asia/Kolkata policy are represented. The older `brrrNEWS` material branch is **4 ahead / 59 behind** and its smaller GlassSurfacePolicy is superseded by the active shared tier policy. `ui/liquid-glass-performance`, `ui/liquid-glass-system-continuation` and `redesign/v0.3-search-reader` are not safe baselines. +- PR #34 is the only branch modified. No other source branch, main, release or PR was changed. + +## Exact parent CI, Actions, workflow and Release + +- Fully paginated **364 Actions runs** (100 + 100 + 100 + 64): **226 success / 68 failure / 70 cancelled**; queued/in-progress **0**. +- Exact parent SHA `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` passed natural push run [#363](https://github.com/Batmancpu/CurrentLens/actions/runs/42508268534) and PR run [#364](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576). The PR job's full log and every step were inspected: WordNet builder **4/4**, offline dictionary **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all passed; build completed in 56 seconds. Artifact [#13628606698](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576/artifacts/13628606698) is **39,118,210 bytes**, SHA-256 `a6ab2c44ed3d971d76daa488a49661231c15d781711a00158b7df0e8e1db7d0e`, expires **22 November 2026 18:07:43 UTC**. Push artifact #13627942749 is 39,118,211 bytes. Publish jobs were skipped. +- The active `.github/workflows/build-apk.yml` uses read-only build/test permissions and a separate main-push-only Release-write job; natural PR and push triggers include `black-box-bihar-news`. Main's workflow remains push-only with workflow-wide `contents: write`. Latest published Release remains `v0.2.0-build-116`; no Release was created. +- PR #43's head is unvalidated; the new commit below must receive its own natural push/PR run. No dispatch or rerun. + +## Implementation — release WebView only on permanent Compose disposal + +- Current `ReaderScreen` owns one `AndroidView` WebView. Its existing `onDetachedFromWindow()` flushes reading position and cancels transient work, but detachment is not equivalent to permanent disposal and must not destroy a WebView during a temporary window transition. +- Added the `AndroidView.onRelease` path. It calls `releaseForDisposal()` only when Compose permanently releases the reader, then clears the remembered holder only if it still points to that exact instance. +- The one-shot `ReaderWebViewReleaseGuard` flushes the last debounced reading position, stops loading, cancels delayed save/restore/short-page-end/chrome-hide work, disables the selection bridge, clears Compose callbacks/client closures, disables JavaScript and DOM storage for the disposed instance, clears history, removes the WebView from its parent, removes children and finally destroys it. +- Temporary detach remains non-destructive. Active reader JavaScript policy, publisher fallback permissions, native ActionMode/Copy/Select/share, dictionary selection, reading-session accounting, saved position semantics and quiz submit-only persistence are unchanged. +- Reviewed PR #43's full patch rather than copying it blindly: its failure-isolation test omitted the recorded `remove-parent` action from the expected call list. The port corrects that assertion and checks idempotence even after one cleanup action throws. + +## Paired resource/material strategy and coverage + +| Component | Material tier | Effect/capture delta | Reuse and fallback | Evidence | +|---|---|---|---|---| +| Reader WebView permanent disposal | No glass; lifecycle-only | No new blur, refraction, Prismal pass, backdrop capture/readback, shader or image decode | Existing single Reader WebView; one-shot teardown; temporary detach remains safe | JVM guard tests added; device memory/jank remains unmeasured | + +- This change removes retained native WebView/client/callback work after permanent Reader exit at source level; it is **not** a measured memory, frame-time, battery or thermal improvement. No glass effect was added, so there is no additional render cost to offset. + +## Tests, risks and remaining verification + +- Added JVM tests for ordered one-shot cleanup and for continuing through later teardown actions after a failure, including parent removal and destroy. Existing ReaderChrome/selection policies are unchanged. +- Exact new-head natural CI is pending. Parent #363/#364 validate only `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4`, not this commit. Wait for the new head's own build/test logs and artifact before another implementation batch. +- OPPO Reno10 WebView disposal/re-entry, launch stability, screenshots, native selection, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. CI compilation/JVM tests do not prove device lifecycle correctness. + +## Next + +- Inspect the exact new-head natural push and PR jobs, full logs and artifact. If they pass, continue the remaining whole-app visual consistency audit; preserve the one background-only root capture, expanded-only tab glyph source, the existing low-cadence shared luminance probe and calm high-contrast article/data surfaces. + +--- + # Live implementation batch — Search hierarchy de-duplication (8 November 2026, 23:27 IST) **Source:** `black-box-bihar-news@6160d58cd54719c83d8dace2f99ba2104e27efcb` From 3173bd9a4af5483d134fda1d5b756a2f5657d03d Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 00:45:06 +0530 Subject: [PATCH 152/175] docs: record Reader disposal CI and live branch inventory --- docs/BRANCH_CONSOLIDATION.md | 16 +++++++++------- docs/LIQUID_GLASS_UI_ROADMAP.md | 13 +++++++------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 1742b2b9..5a58168a 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2,17 +2,17 @@ **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` -**Owner-selected integration/UI line:** `black-box-bihar-news@58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` — **153 ahead / 0 behind main**; main is the merge base. +**Owner-selected integration/UI line:** `black-box-bihar-news@86e095d858784b59b231f64f647aed869698f992` — **154 ahead / 0 behind main**; main is the merge base. **PR:** #34 remains open/draft → main, unmerged; head matches the active branch. ## Complete remote branch inventory -The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and **0** on page 2. Each row records the live head, latest commit timestamp/message and current PR relationship. +The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and **0** on page 2. This inventory snapshot records the complete branch heads immediately before the documentation-only follow-up; the black-box row is the validated code head `86e095d858784b59b231f64f647aed869698f992`, parent of the docs-sync commit. | Branch | Head SHA | Latest commit UTC | Latest commit message | PR relationship | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open | -| `black-box-bihar-news` | `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` | 2026-11-08 18:06:05Z | ui(search): remove competing inline glass panel | PR #34 open/draft; active head | +| `black-box-bihar-news` | `86e095d858784b59b231f64f647aed869698f992` | 2026-11-08 19:11:33Z | fix(reader): release WebView resources on permanent disposal | PR #34 open/draft; active code head at inventory snapshot | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24 | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | @@ -62,15 +62,17 @@ The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and ** - **Open (29):** #43, #42, #41, #40, #39, #38, #37, #36, #35, #34, #33, #32, #31, #30, #29, #27, #26, #25, #24, #22, #21, #18, #17, #16, #13, #12, #11, #8, #6. - **Closed (14):** #28, #23, #20, #19, #15, #14, #10, #9, #7, #5, #4, #3, #2, #1. PR #20 and #19 are integrated into black-box only; no merge to main is implied. -- `black-box-bihar-news` is the coherent current app/UI baseline: 153 commits ahead / 0 behind main. PR #43 is 5 commits ahead / 0 behind main but only 5 ahead / 153 behind black-box; its three-file Reader WebView disposal delta was inspected and selectively ported. It cannot replace the 153-commit app baseline. -- PR #42 is 6 ahead / 2 behind black-box and is editorial-only (`UpscEngine`, `UpscFeedPolicy`, tests and baseline). PR #39 is 6 ahead / 18 behind and remains owner-gated on signing secrets/certificate pinning/migration. PR #16 is 7 ahead / 96 behind and has separate startup/diagnostic changes; no old MainActivity was copied. +- `black-box-bihar-news` is the coherent current app/UI baseline: 153 commits ahead / 0 behind main. PR #43 is 5 commits ahead / 0 behind main but only 5 ahead / 154 behind black-box; its three-file Reader WebView disposal delta was inspected and selectively ported. It cannot replace the 153-commit app baseline. +- PR #42 is 6 ahead / 3 behind black-box and is editorial-only (`UpscEngine`, `UpscFeedPolicy`, tests and baseline). PR #39 is 6 ahead / 19 behind and remains owner-gated on signing secrets/certificate pinning/migration. PR #16 is 7 ahead / 97 behind and has separate startup/diagnostic changes; no old MainActivity was copied. - PR #37's RowScope Search-clear compile fix, #30's 48dp touch-target policy, #31's off-main appearance preference snapshot and #36's Asia/Kolkata day policy are already represented. The old `brrrNEWS` supporting-glass branch is superseded; `ui/liquid-glass-performance`, `ui/liquid-glass-system-continuation` and `redesign/v0.3-search-reader` are not viable baselines. - Only `black-box-bihar-news` is modified. No source branch was changed/deleted, no PR merged/retargeted, no main write and no Release publication. ## Exact Actions, workflow and Release -- Fully paginated **364 Actions runs**: **226 success / 68 failure / 70 cancelled**; queued/in-progress **0**. +- Fully paginated **366 Actions runs**: **228 success / 68 failure / 70 cancelled**; queued/in-progress **0**. - Exact parent head `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` passed natural push run [#363](https://github.com/Batmancpu/CurrentLens/actions/runs/42508268534) and PR run [#364](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576). Full PR log and job steps show WordNet builder 4/4, 151,456 unique words / 50,950,144-byte offline database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload succeeded. PR artifact [#13628606698](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576/artifacts/13628606698) is 39,118,210 bytes, SHA-256 `a6ab2c44ed3d971d76daa488a49661231c15d781711a00158b7df0e8e1db7d0e`, expires 22 November 2026 18:07:43 UTC. Publish jobs skipped. + +- Implementation commit `86e095d858784b59b231f64f647aed869698f992` passed natural push run [#365](https://github.com/Batmancpu/CurrentLens/actions/runs/42513792786) and PR run [#366](https://github.com/Batmancpu/CurrentLens/actions/runs/42513796390). Both build jobs passed WordNet builder 4/4, 151,456 unique words / 50,950,144-byte database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Push artifact [#13630731515](https://github.com/Batmancpu/CurrentLens/actions/runs/42513792786/artifacts/13630731515): 39,122,994 bytes, ZIP SHA-256 `a6c812e2d8a9236f688aa9af9003ddc22bc2a78f94a5c41dd3ebd4d79f1a743b`; PR artifact [#13630621916](https://github.com/Batmancpu/CurrentLens/actions/runs/42513796390/artifacts/13630621916): 39,122,992 bytes, ZIP SHA-256 `bcc28a9a47df203d99b4621427d7bf11c627264fca83074e4ec87c899567b93e`. Both expire 22 November 2026 19:13 UTC; publish jobs skipped. Full push/PR logs were inspected. Non-blocking Node.js 20/action-runtime and `punycode`/`url.parse()` deprecation warnings remain. This docs-only follow-up is a new branch head and needs its own natural CI. - Active branch workflow has read-only build/test permissions and a separate main-push-only Release-write job; it naturally validates pushes/PRs for black-box. Main's workflow remains push-only with workflow-wide `contents: write`. Latest Release is `v0.2.0-build-116`; no new Release. - PR #43 exact head `d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614` has 0 check-runs and 0 statuses. Its source branch was not modified; the reviewed delta is ported only on black-box. @@ -80,7 +82,7 @@ The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and ** - Disposal flushes the last debounced position, stops loading, cancels delayed reader callbacks, clears selection/Compose callbacks, disables JavaScript/DOM storage on the disposed WebView, replaces clients, clears history, detaches/removes children and destroys the native view. `onDetachedFromWindow()` remains temporary-detach-safe. - PR #43's full patch was reviewed. Its failure-isolation test omitted the expected `remove-parent` action; the consolidated test now asserts all subsequent cleanup actions run and that a failed release is not repeated. - No additional Prismal surface, blur/refraction, shader, backdrop capture/readback, image decode, dependency, network or persistence path. This is source-level lifecycle/resource hygiene, not measured memory/battery/jank improvement. -- The new head's natural CI is pending. OPPO Reno10 WebView re-entry/disposal, screenshots, launch stability, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. +- Implementation commit `86e095d858784b59b231f64f647aed869698f992` passed exact-head CI; this documentation-only sync advances the branch and its own natural CI is pending. OPPO Reno10 WebView re-entry/disposal, screenshots, launch stability, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. --- diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 8435d2e6..c809f504 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,15 +1,16 @@ # Live implementation batch — Reader WebView permanent-disposal guard (9 November 2026, 00:31 IST) **Source:** `black-box-bihar-news@58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` -**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — the active integration line is **153 ahead / 0 behind**, with main as merge base. +**Implementation commit:** `86e095d858784b59b231f64f647aed869698f992` (parent `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4`; **154 ahead / 0 behind main**). +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — main remains the merge base. **PR:** #34 remains open/draft → main, unmerged and unretargeted. This pass stays on the owner-selected consolidation branch. ## Branch freshness and dependency gate - Re-enumerated all **46 remote branches** (page 1 = 46; page 2 = 0), **29 open PRs** and **14 closed PRs**. The selected branch head is `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4`; PR #34 matches it. Main remains `73b8a0d1ba33503fede02db2c3c0af082d724a12`. -- Newest relevant independent branch is PR #43, `fix/release-reader-webview-resources-2026-11-09@d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614`: **5 ahead / 0 behind main**, but **5 ahead / 153 behind black-box-bihar-news**. Its complete three-file delta is limited to `MainActivity.kt`, `ReaderWebViewReleaseGuard.kt` and its JVM test. It is not a viable app baseline; its lifecycle fix was reviewed and selectively ported below. PR #43's exact head has **0 check-runs and 0 commit statuses**, so no source-branch CI is claimed. -- PR #42 is **6 ahead / 2 behind** the selected line and changes only UPSC editorial engine/feed policy/tests/baseline; it was not ported in this UI pass. PR #39 is **6 ahead / 18 behind** and changes signing/workflow/Gradle; its owner-managed secrets, certificate pinning and first-install/local-data migration remain a separate gate. PR #16 is **7 ahead / 96 behind** and carries separate startup/diagnostic changes; no old MainActivity was copied. -- PR #37's Search RowScope repair is already reflected in the active 48dp in-capsule clear slot; PR #30's TouchTargetPolicy, #31's off-main appearance snapshot and #36's Asia/Kolkata policy are represented. The older `brrrNEWS` material branch is **4 ahead / 59 behind** and its smaller GlassSurfacePolicy is superseded by the active shared tier policy. `ui/liquid-glass-performance`, `ui/liquid-glass-system-continuation` and `redesign/v0.3-search-reader` are not safe baselines. +- Newest relevant independent branch is PR #43, `fix/release-reader-webview-resources-2026-11-09@d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614`: **5 ahead / 0 behind main**, but **5 ahead / 154 behind black-box-bihar-news**. Its complete three-file delta is limited to `MainActivity.kt`, `ReaderWebViewReleaseGuard.kt` and its JVM test. It is not a viable app baseline; its lifecycle fix was reviewed and selectively ported below. PR #43's exact head has **0 check-runs and 0 commit statuses**, so no source-branch CI is claimed. +- PR #42 is **6 ahead / 3 behind** the selected line and changes only UPSC editorial engine/feed policy/tests/baseline; it was not ported in this UI pass. PR #39 is **6 ahead / 19 behind** and changes signing/workflow/Gradle; its owner-managed secrets, certificate pinning and first-install/local-data migration remain a separate gate. PR #16 is **7 ahead / 97 behind** and carries separate startup/diagnostic changes; no old MainActivity was copied. +- PR #37's Search RowScope repair is already reflected in the active 48dp in-capsule clear slot; PR #30's TouchTargetPolicy, #31's off-main appearance snapshot and #36's Asia/Kolkata policy are represented. The older `brrrNEWS` material branch is **4 ahead / 60 behind** and its smaller GlassSurfacePolicy is superseded by the active shared tier policy. `ui/liquid-glass-performance`, `ui/liquid-glass-system-continuation` and `redesign/v0.3-search-reader` are not safe baselines. - PR #34 is the only branch modified. No other source branch, main, release or PR was changed. ## Exact parent CI, Actions, workflow and Release @@ -17,7 +18,7 @@ - Fully paginated **364 Actions runs** (100 + 100 + 100 + 64): **226 success / 68 failure / 70 cancelled**; queued/in-progress **0**. - Exact parent SHA `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` passed natural push run [#363](https://github.com/Batmancpu/CurrentLens/actions/runs/42508268534) and PR run [#364](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576). The PR job's full log and every step were inspected: WordNet builder **4/4**, offline dictionary **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all passed; build completed in 56 seconds. Artifact [#13628606698](https://github.com/Batmancpu/CurrentLens/actions/runs/42508274576/artifacts/13628606698) is **39,118,210 bytes**, SHA-256 `a6ab2c44ed3d971d76daa488a49661231c15d781711a00158b7df0e8e1db7d0e`, expires **22 November 2026 18:07:43 UTC**. Push artifact #13627942749 is 39,118,211 bytes. Publish jobs were skipped. - The active `.github/workflows/build-apk.yml` uses read-only build/test permissions and a separate main-push-only Release-write job; natural PR and push triggers include `black-box-bihar-news`. Main's workflow remains push-only with workflow-wide `contents: write`. Latest published Release remains `v0.2.0-build-116`; no Release was created. -- PR #43's head is unvalidated; the new commit below must receive its own natural push/PR run. No dispatch or rerun. +- PR #43's source head remains unvalidated; its selective port on implementation commit `86e095d858784b59b231f64f647aed869698f992` passed exact-head natural push run [#365](https://github.com/Batmancpu/CurrentLens/actions/runs/42513792786) and PR run [#366](https://github.com/Batmancpu/CurrentLens/actions/runs/42513796390). Both jobs passed WordNet builder 4/4, 151,456 unique words / 50,950,144-byte database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; build times were 57s and 61s. Push artifact [#13630731515](https://github.com/Batmancpu/CurrentLens/actions/runs/42513792786/artifacts/13630731515) is 39,122,994 bytes (ZIP SHA-256 `a6c812e2d8a9236f688aa9af9003ddc22bc2a78f94a5c41dd3ebd4d79f1a743b`); PR artifact [#13630621916](https://github.com/Batmancpu/CurrentLens/actions/runs/42513796390/artifacts/13630621916) is 39,122,992 bytes (ZIP SHA-256 `bcc28a9a47df203d99b4621427d7bf11c627264fca83074e4ec87c899567b93e`). Both expire 22 November 2026 19:13 UTC. Publish jobs were skipped. Full push and PR logs were inspected. Non-blocking Node.js 20/action-runtime and upstream `punycode`/`url.parse()` deprecation warnings remain. ## Implementation — release WebView only on permanent Compose disposal @@ -38,7 +39,7 @@ ## Tests, risks and remaining verification - Added JVM tests for ordered one-shot cleanup and for continuing through later teardown actions after a failure, including parent removal and destroy. Existing ReaderChrome/selection policies are unchanged. -- Exact new-head natural CI is pending. Parent #363/#364 validate only `58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4`, not this commit. Wait for the new head's own build/test logs and artifact before another implementation batch. +- Implementation commit `86e095d858784b59b231f64f647aed869698f992` is validated by exact-head runs #365/#366 above. This documentation-only follow-up advances the branch after that validated code commit; its own natural push/PR run is pending and must be inspected before another implementation batch. - OPPO Reno10 WebView disposal/re-entry, launch stability, screenshots, native selection, TalkBack, font scaling, Reduce Motion, IME, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. CI compilation/JVM tests do not prove device lifecycle correctness. ## Next From 4f3d0491e63619d48193316a0e8d370af5941a9f Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 01:40:01 +0530 Subject: [PATCH 153/175] perf(startup): move local diagnostics off the main thread --- .../currentlens/CurrentLensApplication.kt | 43 +++++++++-- .../currentlens/LaunchCrashDiagnostics.kt | 57 +++++++++------ .../mangoloads/currentlens/MainActivity.kt | 70 +++++++++++++----- .../currentlens/LaunchCrashDiagnosticsTest.kt | 37 ++++++++++ docs/BRANCH_CONSOLIDATION.md | 72 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 26 +++++++ docs/PROJECT_HANDOFF.md | 15 ++++ docs/SESSION_LEDGER.md | 14 ++++ 8 files changed, 292 insertions(+), 42 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt index e3df481e..3276babb 100644 --- a/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt +++ b/app/src/main/java/com/mangoloads/currentlens/CurrentLensApplication.kt @@ -2,24 +2,55 @@ package com.mangoloads.currentlens import android.app.Application import android.content.Context +import kotlinx.coroutines.CompletableDeferred +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.SupervisorJob +import kotlinx.coroutines.launch /** * Installs local crash diagnostics before AndroidX Startup ContentProviders are created. * - * Do not force a lower Prismal pipeline here. Production builds must retain Prismal's - * automatic Liquid/Standard selection; the Stability build uses a plain first-screen - * probe and lets the user opt into the complete Liquid Glass UI after that screen draws. + * Disk reads, process-exit inspection and checkpoint writes run on Dispatchers.IO so + * diagnostic recovery cannot add synchronous file/binder work to the startup main thread. + * The Activity waits for the best-effort inspection before choosing the recovery or app UI. */ class CurrentLensApplication : Application() { + private val startupInspectionComplete = CompletableDeferred() + private val startupDiagnosticsReady = CompletableDeferred() + private val startupDiagnosticsScope = CoroutineScope(SupervisorJob() + Dispatchers.IO) + override fun attachBaseContext(base: Context) { super.attachBaseContext(base) - // Inspect the previous process before writing any stage belonging to this process. + // Install the handler immediately; defer all file and system-service work. runCatching { LaunchCrashDiagnostics.install(base) } - runCatching { LaunchCrashDiagnostics.beginStartup(base) } + startupDiagnosticsScope.launch { + try { + runCatching { LaunchCrashDiagnostics.beginStartup(base) } + } finally { + startupInspectionComplete.complete(Unit) + } + } } override fun onCreate() { super.onCreate() - LaunchCrashDiagnostics.recordStage(this, "Application.onCreate completed") + startupDiagnosticsScope.launch { + try { + startupInspectionComplete.await() + runCatching { + LaunchCrashDiagnostics.recordStage( + this@CurrentLensApplication, + "Application.onCreate completed" + ) + } + } finally { + startupDiagnosticsReady.complete(Unit) + } + } + } + + suspend fun awaitStartupDiagnostics() { + startupDiagnosticsReady.await() } } diff --git a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt index 4a3cc57f..517b1eab 100644 --- a/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt +++ b/app/src/main/java/com/mangoloads/currentlens/LaunchCrashDiagnostics.kt @@ -17,6 +17,7 @@ import kotlin.system.exitProcess */ internal object LaunchCrashDiagnostics { const val MAX_REPORT_CHARS = 30_000 + private const val MAX_STAGE_CHARS = 512 private const val REPORT_NAME = "currentlens-last-crash.txt" private const val REPORT_TEMP_NAME = "currentlens-last-crash.tmp" private const val STAGE_NAME = "currentlens-last-startup-stage.txt" @@ -62,18 +63,15 @@ internal object LaunchCrashDiagnostics { runCatching { val directory = context.applicationContext?.filesDir ?: context.filesDir val stageFile = File(directory, STAGE_NAME) - val previousStage = runCatching { - stageFile.takeIf { it.isFile }?.readText(Charsets.UTF_8) - }.getOrNull() + val previousStage = readTextPrefix(stageFile, MAX_STAGE_CHARS) val reportFile = File(directory, REPORT_NAME) - val existingReport = runCatching { - reportFile.takeIf { it.isFile }?.readText(Charsets.UTF_8).orEmpty() - }.getOrDefault("") - if (reportFile.isFile && ( - isKnownLegacyFalsePositive(existingReport) || - hasLegacyDeviceMetadata(existingReport) - ) - ) { + val reportLength = reportFile.takeIf { it.isFile }?.length() ?: 0L + val existingReport = if (reportLength > MAX_REPORT_CHARS) { + "" + } else { + readTextPrefix(reportFile, MAX_REPORT_CHARS).orEmpty() + } + if (reportFile.isFile && shouldDiscardExistingReport(reportLength, existingReport)) { // Remove pre-privacy diagnostic reports that exposed device/build identifiers. reportFile.delete() } @@ -118,12 +116,9 @@ internal object LaunchCrashDiagnostics { recordStage(context, completedStage) } - fun read(context: Context): String? = runCatching { - File((context.applicationContext ?: context).filesDir, REPORT_NAME) - .takeIf { it.isFile } - ?.readText(Charsets.UTF_8) - ?.take(MAX_REPORT_CHARS) - }.getOrNull() + /** Blocking file read; callers outside the uncaught-exception path must use Dispatchers.IO. */ + fun read(context: Context): String? = + readTextPrefix(File((context.applicationContext ?: context).filesDir, REPORT_NAME), MAX_REPORT_CHARS) fun clear(context: Context): Boolean { val directory = (context.applicationContext ?: context).filesDir @@ -136,6 +131,30 @@ internal object LaunchCrashDiagnostics { return reportDeleted && (tempDeleted || !File(directory, REPORT_TEMP_NAME).exists()) } + /** Read at most maxChars UTF-16 characters without materialising the full file. */ + internal fun readTextPrefix(file: File, maxChars: Int): String? { + if (maxChars < 0) return null + return runCatching { + file.inputStream().bufferedReader(Charsets.UTF_8).use { reader -> + val result = StringBuilder(minOf(maxChars, 4_096)) + val buffer = CharArray(minOf(maxChars, 4_096).coerceAtLeast(1)) + var remaining = maxChars + while (remaining > 0) { + val count = reader.read(buffer, 0, minOf(buffer.size, remaining)) + if (count <= 0) break + result.append(buffer, 0, count) + remaining -= count + } + result.toString() + } + }.getOrNull() + } + + internal fun shouldDiscardExistingReport(reportLength: Long, report: String): Boolean = + reportLength > MAX_REPORT_CHARS || + isKnownLegacyFalsePositive(report) || + hasLegacyDeviceMetadata(report) + internal fun formatInterruptedStartupReport( lastCompletedStage: String, versionName: String? = null, @@ -270,9 +289,7 @@ internal object LaunchCrashDiagnostics { private fun writeCrashReport(context: Context, threadName: String, throwable: Throwable) { val directory = context.filesDir - val stage = runCatching { - File(directory, STAGE_NAME).takeIf { it.isFile }?.readText(Charsets.UTF_8) - }.getOrNull() + val stage = readTextPrefix(File(directory, STAGE_NAME), MAX_STAGE_CHARS) val versionName = runCatching { context.packageManager.getPackageInfo(context.packageName, 0).versionName }.getOrNull() diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 429629f2..d004bb10 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -22,6 +22,7 @@ import android.webkit.CookieManager import android.webkit.WebView import android.webkit.WebViewClient import androidx.activity.ComponentActivity +import androidx.lifecycle.lifecycleScope import androidx.activity.compose.BackHandler import androidx.activity.compose.setContent import androidx.compose.animation.AnimatedContent @@ -238,13 +239,33 @@ private const val INDIA_ZONE = "Asia/Kolkata" class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: android.os.Bundle?) { super.onCreate(savedInstanceState) - LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.onCreate entered") - val previousCrashReport = LaunchCrashDiagnostics.read(this) - if (previousCrashReport != null) { - this.showCrashRecoveryScreen(previousCrashReport) - return + val startupPlaceholder = android.widget.FrameLayout(this).apply { + setBackgroundColor(AndroidColor.rgb(13, 17, 24)) + addView( + android.widget.ProgressBar(this@MainActivity).apply { + contentDescription = "Starting brrrNews" + }, + android.widget.FrameLayout.LayoutParams( + android.widget.FrameLayout.LayoutParams.WRAP_CONTENT, + android.widget.FrameLayout.LayoutParams.WRAP_CONTENT, + android.view.Gravity.CENTER + ) + ) } - LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity preparing Compose content") + setContentView(startupPlaceholder) + lifecycleScope.launch { + val previousCrashReport = withContext(Dispatchers.IO) { + (application as? CurrentLensApplication)?.awaitStartupDiagnostics() + LaunchCrashDiagnostics.read(this@MainActivity) + } + if (previousCrashReport != null) { + showCrashRecoveryScreen(previousCrashReport) + return@launch + } + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.onCreate entered") + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity preparing Compose content") + } setContent { val dark = isSystemInDarkTheme() val colors = if (dark) { @@ -305,6 +326,7 @@ class MainActivity : ComponentActivity() { // Stability packages now enter the complete app directly. The // isolated rendering probes remain in source for engineering diagnosis, // but are not part of the owner's ordinary launch experience. + val startupScope = rememberCoroutineScope() var showFullApp by remember { mutableStateOf(true) } MaterialTheme(colorScheme = colors) { Surface( @@ -316,17 +338,24 @@ class MainActivity : ComponentActivity() { BrrrNewsApp() } else { StabilityLaunchProbe { - LaunchCrashDiagnostics.recordStage( - applicationContext, - "Full brrrNews composition requested from stability probe" - ) - showFullApp = true + startupScope.launch { + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.recordStage( + applicationContext, + "Full brrrNews composition requested from stability probe" + ) + } + showFullApp = true + } } } } } } - LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.setContent returned") + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.recordStage(applicationContext, "MainActivity.setContent returned") + } + } } } @@ -398,8 +427,13 @@ private fun MainActivity.showCrashRecoveryScreen(report: String) { val retryButton = android.widget.Button(this).apply { text = "Continue to brrrNews" setOnClickListener { - LaunchCrashDiagnostics.clear(activity) - activity.recreate() + isEnabled = false + lifecycleScope.launch { + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.clear(activity) + } + activity.recreate() + } } } actions.addView( @@ -445,9 +479,13 @@ private fun BrrrNewsApp() { val context = LocalContext.current val persistenceScope = rememberCoroutineScope() LaunchedEffect(Unit) { - LaunchCrashDiagnostics.recordStage(context, "BrrrNewsApp composition started") + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.recordStage(context, "BrrrNewsApp composition started") + } repeat(3) { withFrameNanos { } } - LaunchCrashDiagnostics.markHealthy(context) + withContext(Dispatchers.IO) { + LaunchCrashDiagnostics.markHealthy(context) + } } val backdrop = rememberPrismalGlassLayer() val dark = isSystemInDarkTheme() diff --git a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt index eec4afdd..fb01719f 100644 --- a/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/LaunchCrashDiagnosticsTest.kt @@ -1,5 +1,6 @@ package com.mangoloads.currentlens +import java.io.File import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue @@ -127,6 +128,42 @@ class LaunchCrashDiagnosticsTest { assertFalse(LaunchCrashDiagnostics.isKnownLegacyFalsePositive(genuineExceptionReport)) } + @Test + fun diagnosticFileReadsStopAtRequestedPrefix() { + val file = File.createTempFile("currentlens-diagnostic", ".txt") + try { + val content = "header\n" + "x".repeat(100_000) + file.writeText(content, Charsets.UTF_8) + + assertEquals(content.take(128), LaunchCrashDiagnostics.readTextPrefix(file, 128)) + assertEquals("", LaunchCrashDiagnostics.readTextPrefix(file, 0)) + } finally { + file.delete() + } + } + + @Test + fun oversizedAndLegacyDiagnosticReportsAreDiscarded() { + assertTrue( + LaunchCrashDiagnostics.shouldDiscardExistingReport( + LaunchCrashDiagnostics.MAX_REPORT_CHARS.toLong() + 1L, + "" + ) + ) + assertTrue( + LaunchCrashDiagnostics.shouldDiscardExistingReport( + 64L, + "Device: Example\nBuild fingerprint: private" + ) + ) + assertFalse( + LaunchCrashDiagnostics.shouldDiscardExistingReport( + 64L, + "CurrentLens local startup crash report\nReason: CRASH_NATIVE" + ) + ) + } + @Test fun reportIsBoundedForSafeLocalDisplay() { val report = LaunchCrashDiagnostics.formatReport( diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 5a58168a..1c66710e 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2146,3 +2146,75 @@ Commit timestamps are UTC. PR relationship is the live open/closed/merged state ### Device and measurement boundary - OPPO Reno10 cold launch/native crash causality, screenshots, Reader/IME, selection, TalkBack, Reduce Motion, animation smoothness, Perfetto/frame timing, GPU overdraw, memory/allocation churn, thermal and battery remain UNVERIFIED. No CI build is presented as device evidence. + + +## 9 November 2026, 01:27 IST — full 46-branch / 43-PR freshness audit + +### Authoritative source and comparisons +- Default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Active `black-box-bihar-news@3173bd9a4af5483d134fda1d5b756a2f5657d03d`, PR #34 open/draft to main; 155 ahead / 0 behind main. +- PR #16 head `ebea0aac68ce2cf17aad376304f7915fe937e807` is 7 commits ahead / 98 behind active from merge base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. Four preference commits are superseded by the active combined appearance snapshot; three off-main diagnostics commits are adapted into the active branch. No wholesale merge/rebase and no PR #16 mutation. +- PR #43 head `cb080e547ad4469dcf81c1f04e866e89c6f86b42` is 8 ahead / 155 behind active. Existing Reader disposal is already present; only settle callback tracking and Exception-only guard behaviour remain for a separate pass. +- `brrrNEWS` is 4 ahead / 61 behind active; its visual policy is superseded by current `GlassSurfacePolicy`. PR #30 48dp targets and PR #37 RowScope correction are already present. PR #13's older adaptive contrast policy is superseded by the active conservative probe. Stale branches were not used as baselines. +- Other editorial, RSS/parser, signing, persistence and publisher-security branches remain separate/owner-gated. No source branch was changed, deleted, retargeted, force-updated or merged. + +### Complete remote branch inventory (46; captured before this implementation commit) +UTC timestamps/messages are the latest commit on each branch head. PR list: 43 total, 29 open, 14 closed. +| Remote branch | Exact head SHA | Latest commit UTC | Latest commit message | PR relationship | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box-bihar-news | +| `black-box-bihar-news` | `3173bd9a4af5483d134fda1d5b756a2f5657d03d` | 2026-11-08 19:15:06 | docs: record Reader disposal CI and live branch inventory | #34 open/draft → main; active consolidation | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | base of #24; older visual line | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box-bihar-news | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged; ref now at main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | #6 open/draft → main; selectively represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | #12 open/draft → main; selective port represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | #11 open/draft → black-box-bihar-news; selective port | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `ebea0aac68ce2cf17aad376304f7915fe937e807` | 2026-11-08 15:11:25 | docs: record off-main diagnostics verification [skip ci] | #16 open/draft → main; 3 diagnostic commits ported | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19 | test(editorial): cover reality TV and television promotion | #27 open/draft → black-box-bihar-news | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open/draft → main; selectively represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed/merged → main | +| `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45 | docs(editorial): fix baseline paragraph spacing | #42 open/draft → black-box-bihar-news | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 closed/merged → main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 closed/merged → black-box-bihar-news | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed/unmerged → main; superseded | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 closed/merged → black-box-bihar-news | +| `fix/release-reader-webview-resources-2026-11-09` | `cb080e547ad4469dcf81c1f04e866e89c6f86b42` | 2026-11-08 19:11:52 | fix: cancel delayed reader callbacks on WebView disposal | #43 open/draft → main; remaining delta deferred | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 | test(rss): correct relative xml base fixture | #33 open/draft → black-box-bihar-news | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | #25 open/draft → black-box-bihar-news | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | #17 open/draft → main; selective port represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 | docs: record verified search clear compile repair | #37 open/draft → black-box-bihar-news; fix present | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 closed/merged → main | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31 | docs: record stable signing validation and migration gate | #39 open/draft → black-box-bihar-news; owner-gated | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged → main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 closed/merged → main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 | test(today): cover Asia/Kolkata midnight rollover | #36 open/draft → black-box-bihar-news | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28 | fix(rss): keep redirect result non-null | #40 open/draft → main | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36 | fix(test): correct RSS budget test identifier | #38 open/draft → black-box-bihar-news | +| `perf/bound-rss-field-values-2026-11-08` | `39acde8373eb3405f655e052ccd3445f22eedebb` | 2026-11-08 14:39:53 | test(rss): reject non-editorial XHTML script and style text | #41 open/draft → main | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 | Record successful bounded-diagnostic CI | #35 open/draft → black-box-bihar-news; partly superseded | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | #22 open/draft → perf/off-main-session-persistence | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 | docs: record bounded RSS fetch review and CI state | #32 open/draft → black-box-bihar-news | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 | fix(startup): keep appearance snapshot API module-internal | #31 open/draft → black-box-bihar-news; richer snapshot supersedes | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | #29 open/draft → black-box-bihar-news; represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | #8 open/draft → main; reconciled persistence | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | #26 open/draft → black-box-bihar-news; security review pending | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | no PR; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main; older policy superseded | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #4 closed/unmerged; #3 merged earlier head; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed/merged → black-box-bihar-news | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | no PR; superseded | + +### Actions / workflow / Release +- 368 Actions runs (100 + 100 + 100 + 68): 230 success, 68 failure, 70 cancelled; queue/in-progress 0. +- Parent `3173bd9a4af5483d134fda1d5b756a2f5657d03d`: push #367 and PR #368 passed WordNet builder (151,456 unique words), `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload; Release skipped. Artifact #13630179831, 39,122,992 bytes, SHA-256 `f10f20cdd0d078648c5bf0fb069bbafafb0105b54133f247f01a083e0f482a92`. +- Active workflow is read-only for build/test with separate main-push Release-write. Main workflow remains push-only with workflow-wide `contents: write`. No workflow change or manual dispatch/rerun. +- Latest Release by publication timestamp: v0.2.0-build-116, 6 November 2026 11:18:59 UTC. No new Release. + +### Selective integration decision +- Four PR #16 Appearance changes are already superseded by active `LocalAppearancePreferences` and IO snapshot restoration; the three diagnostic changes are ported in this batch. +- Final crash-report flush remains synchronous on the uncaught-exception thread. This is not a device crash fix; OPPO and performance metrics remain unverified. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index c809f504..5e53a5fe 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1207,3 +1207,29 @@ Next: after natural CI validates this exact head, perform the Appearance preview **Next** - Inspect the new exact-head natural push/PR jobs, complete logs and artifact before another UI batch. Continue only with an evidence-backed whole-app inconsistency; preserve one root background-only capture, the expanded-only tab glyph source, low-cadence adaptive luminance and calm high-contrast article/quiz content. No Release publication, main write, merge, manual dispatch/rerun, retarget or source-branch deletion. + + +## 9 November 2026, 01:27 IST — Off-main startup diagnostics and bounded reads + +### Freshness gate +- Source parent: `black-box-bihar-news@3173bd9a4af5483d134fda1d5b756a2f5657d03d`; PR #34 remains the single open/draft PR to `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, 155 ahead / 0 behind. +- Complete inventory: 46 branches and 43 PRs (29 open, 14 closed); full branch SHA/timestamp/message/PR mapping is appended in `docs/BRANCH_CONSOLIDATION.md`. +- PR #16 head `ebea0aac68ce2cf17aad376304f7915fe937e807` is 98 ahead / 7 behind active from common base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. Four Appearance commits are superseded by the active richer `LocalAppearancePreferences` and combined IO snapshot; three diagnostic commits are selectively ported. PR #43's remaining Reader settle-callback/Exception-only guard delta is deferred to a separate Reader lifecycle batch. PR #30's 48dp targets and PR #37's Search RowScope fix are already present. No source branch is modified. +- `brrrNEWS` is 4 ahead / 61 behind active and its supporting-glass policy is superseded by the current `GlassSurfacePolicy`. Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are not baselines. +- Active workflow is read-only for build/test with isolated main-push Release-write; main remains push-only with workflow-wide `contents: write`. No workflow change. + +### Implementation and paired cost control +- Application prior-process inspection, bounded report reads, exit-history lookup and checkpoint writes now run on `Dispatchers.IO` behind completion gates; the uncaught-exception handler is still installed immediately. +- Activity shows a temporary native progress placeholder, reads prior report on IO, then enters the existing full Compose/Prismal tree. Stage writes, first-frame healthy marker and recovery-report deletion are also on IO. No diagnostic menu is made part of the consumer home UI. +- Stage reads are capped at 512 characters; report reads at 30,000; oversized legacy reports are rejected by file length before full materialisation. Final crash-report flush remains synchronous on the uncaught-exception thread. +- 13 focused JVM tests are carried forward, including bounded prefix reads and oversized/legacy-report rejection. Tests are added but not run on this new head. +- No Prismal capture, blur/refraction, readback, shader, graphics layer, image decode, dependency, network, permission or persistence-schema change. + +### Exact parent CI +- Parent `3173bd9a4af5483d134fda1d5b756a2f5657d03d` passed natural push #367 and PR #368. WordNet builder: 151,456 unique words; `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload passed; Release skipped. +- Artifact #13630179831: 39,122,992 bytes; SHA-256 `f10f20cdd0d078648c5bf0fb069bbafafb0105b54133f247f01a083e0f482a92`; expires 22 November 2026 19:17:20 UTC. Parent runs do not validate this new commit. +- Actions: 368 runs (100+100+100+68), 230 success, 68 failure, 70 cancelled; queue/in-progress 0. Latest Release by publication time is v0.2.0-build-116, published 6 November 2026 11:18:59 UTC; no new Release. + +### Remaining verification +- OPPO Reno10 launch/crash causality and all device visuals/performance/accessibility remain **UNVERIFIED**. No startup-time, memory, frame-time, battery or thermal gain is claimed. +- After exact-head natural CI passes, next: selectively port PR #43's tracked WebView settle callback cancellation and Exception-only release guard, then continue Today skeleton/header/filter and app-wide material consistency. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index e1f33824..0e0b3c3a 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,18 @@ +## Live snapshot — 9 November 2026, 01:27 IST + +- **Main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. +- **Active branch:** `black-box-bihar-news`, source parent `3173bd9a4af5483d134fda1d5b756a2f5657d03d`; PR #34 remains the single draft/open PR to main, 155 ahead / 0 behind. +- **Freshness:** 46 branches, 43 PRs (29 open, 14 closed). PR #16 head `ebea0aac68ce2cf17aad376304f7915fe937e807` is 7 commits ahead / 98 behind active from common base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`; four Appearance commits are superseded by active code, three diagnostic commits are adapted here. PR #43's remaining Reader settle-callback/guard delta is deferred. No other branch changed. +- **Parent CI:** natural push #367 and PR #368 passed on `3173bd9a4af5483d134fda1d5b756a2f5657d03d`; WordNet 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug`, artifact upload. Artifact #13630179831, 39,122,992 bytes, SHA-256 `f10f20cdd0d078648c5bf0fb069bbafafb0105b54133f247f01a083e0f482a92`. These runs do not validate the new commit. +- **Actions:** 368 total, 230 success, 68 failure, 70 cancelled; queue/in-progress 0. +- **Workflow:** active branch read-only build/test plus isolated main-push Release-write; main push-only with workflow-wide `contents: write`. +- **Latest Release:** v0.2.0-build-116, published 6 November 2026 11:18:59 UTC; no new Release. +- **Current change:** startup diagnostic inspection, bounded report reads, stage writes and recovery deletion move to IO; immediate uncaught-handler install and synchronous final crash-report flush remain. +- **Device:** OPPO cold/warm launch, native crash causality, screenshots, Reader/IME/selection, TalkBack, font scaling, Reduce Motion, Perfetto, GPU, memory, thermal and battery remain **UNVERIFIED**. +- **Safety:** no main write, merge, retarget, dispatch/rerun, Release publication, package identity change or branch deletion. + +--- + ## Live snapshot — 8 November 2026, 19:28 IST - **Canonical main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 0a66fc1f..a3f396eb 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -475,3 +475,17 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Device / risks:** OPPO Reno10 cold/warm launch, Saved visual layout, TalkBack, font scale, Reduce Motion, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. No device-backed launch or performance claim. - **Safety:** no main write, PR merge/retarget, force update, workflow change, manual dispatch/rerun, Release publication, package identity change or source-branch deletion. The new commit SHA is in the GitHub branch history and will be recorded in the next ledger refresh. + + +## 2026-11-09 01:27 IST / 2026-11-08 19:57 UTC — Port off-main startup diagnostics into the active consolidation branch + +- **Source:** `black-box-bihar-news@3173bd9a4af5483d134fda1d5b756a2f5657d03d`; PR #34 draft/open to main. Pre-change branch: 155 ahead / 0 behind main. Complete inventory: 46 branches, 43 PRs (29 open, 14 closed). The exact resulting commit SHA is recorded by GitHub/PR #34 and will be copied in the next ledger refresh. +- **Freshness:** PR #16 `ebea0aac68ce2cf17aad376304f7915fe937e807` is 7 ahead / 98 behind active from common base `6ab1e6a02ac8e91027f21900d64d63b9f2e6a890`. Four Appearance changes are superseded by the active combined snapshot; three diagnostic changes were adapted. PR #43 `cb080e547ad4469dcf81c1f04e866e89c6f86b42` is 8 ahead / 155 behind; its remaining settle-callback/Exception-only guard change is deferred. PR #30 and #37 fixes are already present. +- **Files:** `CurrentLensApplication.kt`, `LaunchCrashDiagnostics.kt`, `LaunchCrashDiagnosticsTest.kt`, `MainActivity.kt`, roadmap, branch-consolidation record, project handoff and this ledger. +- **Behaviour:** Application inspection/exit-history work runs on IO behind completion gates; the uncaught handler is still installed immediately. Activity shows a temporary native progress placeholder, reads the prior report on IO, then enters the existing Compose/Prismal tree. Checkpoint writes, healthy marker and recovery-report deletion run on IO. +- **Bounds/privacy:** startup-stage reads capped at 512 characters; report reads capped at 30,000; oversized legacy reports rejected by file length before loading. Final crash-report flush remains synchronous on the uncaught-exception thread. No identifiers/raw traces, network, telemetry, permissions or cloud services added. +- **Tests:** 13 pure JVM tests, including bounded prefix read and oversized/legacy report rejection, are added but not run on this new head. Natural exact-head CI is pending. +- **Performance:** no new Prismal surface, capture/readback, blur, shader, graphics layer, image decode, dependency or timer. Disk/binder work moved off main; no measured startup, memory, frame-time, battery or thermal gain claimed. +- **Parent CI:** #367/#368 passed on parent `3173bd9a4af5483d134fda1d5b756a2f5657d03d`; WordNet 151,456 unique words, unit tests, APK assembly and artifact upload. Artifact #13630179831 (39,122,992 bytes). Release skipped. Parent runs do not validate this change. +- **Device:** native launch-crash root cause remains unestablished; OPPO, Reader/IME/selection, accessibility, Reduce Motion and Perfetto remain **UNVERIFIED**. +- **Safety:** no main edit, merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change or branch deletion. From 98a5ee09e51c03e8a253305c485a91693ba3c735 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 02:34:08 +0530 Subject: [PATCH 154/175] fix(search): hide clear action while field is inactive --- .../mangoloads/currentlens/MainActivity.kt | 2 +- .../currentlens/SearchClearActionPolicy.kt | 7 +++ .../SearchClearActionPolicyTest.kt | 15 +++++++ docs/BRANCH_CONSOLIDATION.md | 34 ++++++++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 43 +++++++++++++++++++ 5 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/SearchClearActionPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/SearchClearActionPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index d004bb10..a06c3c76 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1728,7 +1728,7 @@ private fun SearchMorphField( // The fixed outer slot preserves the text field's width while the // clear affordance fades in/out. AnimatedVisibility( - visible = query.isNotBlank(), + visible = SearchClearActionPolicy.shouldShow(query, enabled), enter = fadeIn(if (reduceMotion) snap() else tween(120)), exit = fadeOut(if (reduceMotion) snap() else tween(90)) ) { diff --git a/app/src/main/java/com/mangoloads/currentlens/SearchClearActionPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/SearchClearActionPolicy.kt new file mode 100644 index 00000000..8d9cf056 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/SearchClearActionPolicy.kt @@ -0,0 +1,7 @@ +package com.mangoloads.currentlens + +/** Visibility gate for the in-capsule clear action; the surrounding slot stays reserved. */ +internal object SearchClearActionPolicy { + fun shouldShow(query: String, fieldActive: Boolean): Boolean = + fieldActive && query.isNotBlank() +} diff --git a/app/src/test/java/com/mangoloads/currentlens/SearchClearActionPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/SearchClearActionPolicyTest.kt new file mode 100644 index 00000000..e1143964 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/SearchClearActionPolicyTest.kt @@ -0,0 +1,15 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class SearchClearActionPolicyTest { + @Test + fun showsClearOnlyForNonBlankQueryWhileFieldIsActive() { + assertTrue(SearchClearActionPolicy.shouldShow("RBI", fieldActive = true)) + assertFalse(SearchClearActionPolicy.shouldShow("", fieldActive = true)) + assertFalse(SearchClearActionPolicy.shouldShow(" ", fieldActive = true)) + assertFalse(SearchClearActionPolicy.shouldShow("RBI", fieldActive = false)) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 1c66710e..899fde32 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,33 @@ +# Latest live branch/PR/CI audit — 9 November 2026, 02:27 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected integration/UI line:** `black-box-bihar-news@4f3d0491e63619d48193316a0e8d370af5941a9f` — **156 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted; before this pass its head matched the branch. + +## Live inventory and ancestry + +- Full remote branch inventory: **46** (page 1 = 46; page 2 = 0). Open PRs: **29** (page 2 = 0). Closed PRs: **14** (page 2 = 0). The detailed 46-row table immediately below remains the inventory; the current black-box and PR #43 heads are updated in the table. +- `black-box-bihar-news` is the only active integration/UI line. Its latest pre-change commit is 2026-11-08 20:10:01Z, “perf(startup): move local diagnostics off the main thread”. PR #34 has 156 commits, 82 changed files, 12,201 additions and 872 deletions; base remains main. +- PR #43 `fix/release-reader-webview-resources-2026-11-09@a3b079aac118da140c32492a6acc787f6090bc59` is 9 ahead / 0 behind main and 9 ahead / 156 behind black-box. It is a divergent three-file Reader teardown branch, not a replacement baseline. Its permanent-disposal implementation is already ported on black-box and passed #365/#366; its latest fatal-error test remains a separate follow-up. +- PR #37’s Search RowScope repair, #30’s 48dp target policy, #31’s off-main appearance restore, #36’s Asia/Kolkata date policy, PR #13’s conservative adaptive-contrast policy, and the earlier PR #43 Reader disposal implementation are represented in the current tree. PR #42 remains editorial-only; PR #39 remains an owner-gated signing migration. RSS/parser/security proposals #25/#26/#32/#33/#38/#40/#41, diagnostic proposals #16/#35 and older persistence/editorial lines were not modified. The old brrrNEWS and v0.3/legacy UI lines are not baselines. +- The current Search clear action now uses an explicit active-field visibility policy while retaining its fixed 48dp slot and existing focus/IME callback. Only black-box is changed. + +## Actions, workflow and Release + +- All **370** Actions runs were paginated (100 + 100 + 100 + 70): **232 success / 68 failure / 70 cancelled**; queued/in-progress **0**. +- Exact parent `4f3d0491e63619d48193316a0e8d370af5941a9f` passed natural push run [#369](https://github.com/Batmancpu/CurrentLens/actions/runs/42518716005) and PR run [#370](https://github.com/Batmancpu/CurrentLens/actions/runs/42518721737). PR artifact [#13632193707](https://github.com/Batmancpu/CurrentLens/actions/runs/42518721737/artifacts/13632193707) is 39,128,048 bytes, SHA-256 `f67452eb7efced1bc1b612f9fc204b404991132c1c4d11ed38d90beb3858703d`, expires 22 November 2026 20:12:21 UTC. Both jobs passed WordNet builder 4/4, 151,456-word database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Release jobs skipped. +- Integration workflow blob `6cef6ca19f3babd331c9deb59be9da0067c6fa66` has read-only build/test permissions, natural push/PR triggers and a separate main-push-only Release-write job. Main’s own workflow is still push-only with `contents: write`. +- Latest published Release: `v0.2.0-build-116`, 6 November 2026 11:18:59Z. No Release was created. + +## Device and performance status + +No new OPPO Reno10 screenshot, logcat, tombstone or Perfetto trace is available. Search focus/IME/cursor behaviour, Reader WebView disposal/re-entry, TalkBack, font scaling, Reduce Motion, frame timing/jank, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. Source inspection and CI do not establish device smoothness, launch stability or power savings. + +> This live snapshot supersedes the older inventory/status snapshots below; historical evidence remains in the chronological ledger. + +--- + # Latest live branch/PR/CI audit — 9 November 2026, 00:31 IST **Repository:** `Batmancpu/CurrentLens` @@ -12,7 +42,7 @@ The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and ** | Branch | Head SHA | Latest commit UTC | Latest commit message | PR relationship | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12Z | test(a11y): cover minimum icon action target | PR #30 open | -| `black-box-bihar-news` | `86e095d858784b59b231f64f647aed869698f992` | 2026-11-08 19:11:33Z | fix(reader): release WebView resources on permanent disposal | PR #34 open/draft; active code head at inventory snapshot | +| `black-box-bihar-news` | `4f3d0491e63619d48193316a0e8d370af5941a9f` | 2026-11-08 20:10:01Z | perf(startup): move local diagnostics off the main thread | PR #34 open/draft; active integration/UI line | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30Z | ui: consolidate lightweight supporting glass surfaces | Base of PR #24 | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53Z | ci: validate pull requests with read-only build permissions | PR #18 open | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27Z | ci: restore Android SDK setup before sdkmanager | PR #20 closed/merged into black-box | @@ -31,7 +61,7 @@ The GitHub branch endpoint was fully paginated: **46 branches** on page 1 and ** | `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44Z | test: preserve Parliament bill headline variants | PR #23 closed/merged | | `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39Z | Validate RSS redirects against publisher allowlists | PR #15 closed, unmerged | | `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10Z | fix(quiz): qualify selected semantics receiver | PR #28 closed/merged | -| `fix/release-reader-webview-resources-2026-11-09` | `d1ec6fa51bf002cdf9f20cbfe6edbfa327eeb614` | 2026-11-08 18:54:05Z | test(reader): verify parent removal before WebView destroy | PR #43 open/draft | +| `fix/release-reader-webview-resources-2026-11-09` | `a3b079aac118da140c32492a6acc787f6090bc59` | 2026-11-08 20:29:32Z | test(reader): ensure fatal teardown errors propagate | PR #43 open/draft; divergent Reader-only follow-up | | `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24Z | test(rss): correct relative xml base fixture | PR #33 open | | `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46Z | test(reader): cover publisher-only image resources | PR #25 open | | `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29Z | fix: deduplicate RSS tracking URL variants | PR #17 open | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 5e53a5fe..953f9258 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,46 @@ +# Live implementation batch — Search clear active-state visibility (9 November 2026, 02:27 IST) + +**Source before change:** `black-box-bihar-news@4f3d0491e63619d48193316a0e8d370af5941a9f` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — **156 ahead / 0 behind**, with main as merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. Only the owner-selected `black-box-bihar-news` branch is modified. + +## Branch freshness and dependency gate + +- Re-enumerated the complete remote branch endpoint: **46 branches** (page 1 = 46; page 2 = 0), **29 open PRs** and **14 closed PRs** (page 2 empty). PR #34 head matched the selected branch before this change. +- The newest independent relevant branch is PR #43, `fix/release-reader-webview-resources-2026-11-09@a3b079aac118da140c32492a6acc787f6090bc59` (2026-11-08 20:29:32Z, “test(reader): ensure fatal teardown errors propagate”): **9 ahead / 0 behind main**, but **9 ahead / 156 behind black-box**. Its complete three-file Reader delta is not a viable application baseline. The permanent-disposal implementation from its earlier head is already present on black-box through `86e095d858784b59b231f64f647aed869698f992`, validated by exact-head runs #365/#366; current `AndroidView.onRelease`, `ReaderWebViewReleaseGuard` and its cleanup tests were inspected. The latest source-only fatal-error test is a separate Reader lifecycle follow-up, not copied into this Search pass. +- PR #37’s RowScope compile repair is present in the current 48dp trailing Search slot; PR #30’s `TouchTargetPolicy`, PR #31’s IO-restored appearance preferences and PR #36’s `AsiaKolkataDayPolicy` are present. PR #13’s adaptive contrast is represented by the single conservative 8×8 shared probe (4s/6s cadence, paused during feed motion and outside foreground home). +- PR #42 is editorial-only and diverged (6 ahead / 5 behind); PR #39’s signing/workflow/Gradle migration remains owner-gated on secrets, certificate pinning and install/local-data migration. RSS/parser/security work in #25/#26/#32/#33/#38/#40/#41, diagnostic work in #35/#16 and older persistence/editorial branches were not changed. The old `brrrNEWS`, `ui/liquid-glass-performance`, continuation and v0.3 lines are not selected baselines. +- The active line remains coherent and newer than main; no other branch, PR, repository setting or source branch was changed. + +## Exact parent CI, Actions, workflow and Release + +- Fully paginated **370 Actions runs**: **232 success / 68 failure / 70 cancelled**, queued/in-progress **0**. +- Exact parent SHA `4f3d0491e63619d48193316a0e8d370af5941a9f` passed natural push run [#369](https://github.com/Batmancpu/CurrentLens/actions/runs/42518716005) and pull-request run [#370](https://github.com/Batmancpu/CurrentLens/actions/runs/42518721737). Full PR job log and every step were inspected: WordNet builder **4/4**, offline dictionary **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload all succeeded; build completed in 1m 34s. PR artifact [#13632193707](https://github.com/Batmancpu/CurrentLens/actions/runs/42518721737/artifacts/13632193707) is **39,128,048 bytes**, SHA-256 `f67452eb7efced1bc1b612f9fc204b404991132c1c4d11ed38d90beb3858703d`, expires **22 November 2026 20:12:21 UTC**. Push artifact #13633005379 is 39,128,040 bytes. Publish jobs skipped. +- Active `.github/workflows/build-apk.yml` has read-only build/test permissions, natural push/PR triggers and a separate main-push-only Release-write job. Main’s own workflow remains push-only with `contents: write`; the natural PR run above is PR #34’s integration-branch workflow, not a claim that main’s workflow changed. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59Z); no Release was created. + +## Implementation — clear affordance follows active Search state + +- `SearchMorphField` already reserves a fixed **48dp** trailing slot while the capsule is expanded, so clearing never shifts the text field/cursor. Its existing `onClear` callback clears only `searchQuery`, explicitly re-requests the Search field focus and keyboard, and leaves filters and expanded state unchanged. +- The clear icon’s visibility previously depended only on a non-blank query. During the IME-docked collapse transition, `searchCollapseRequested` disabled the field while the icon remained visible until the morph crossed its progress threshold. Added pure `SearchClearActionPolicy.shouldShow(query, fieldActive)`; the icon now appears only for a non-blank query while the field is active. The 48dp slot remains reserved through the morph, preventing an abrupt cursor/text shift. +- Existing fade timing and Reduce Motion snap are unchanged. No second clear control, filter reset, focus/IME callback change or Search morph geometry change. + +## Paired material/performance strategy and coverage + +| Component | Material tier / reason | Effect and capture scope | Reuse / fallback | Accessibility and tests | Measured result | +|---|---|---|---|---|---| +| SearchMorphField clear action | Tier 2 interactive glass; a contextual action belongs inside the active Search capsule | Existing capsule and one root background-only source; **0** added blur/refraction passes, captures/readbacks or graphics layers | Existing 48dp reserved slot, fade and Reduce Motion snap; no duplicate surface | Clear search description and 48dp target retained; pure visibility-policy test covers active/non-blank boundaries | Source audit only; device animation/focus and performance unverified | + +- Added `SearchClearActionPolicyTest` for active non-blank, empty, whitespace-only and inactive-query states. The existing focus/keyboard callback is preserved. +- No new Prismal surface, blur/refraction, shader, capture/readback, image decode, dependency, timer, network request or persistence operation. This is a state-visibility correction, not a measured rendering or battery improvement. +- OPPO Reno10 Search collapse, focus/IME retention, cursor stability, TalkBack, font scaling, Reduce Motion, light/dark contrast, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. Parent #369/#370 do not validate the new commit; inspect its own natural push/PR jobs before another implementation pass. + +## Next + +- Inspect the exact new-head natural push and PR jobs, full logs and APK artifact. If they pass, continue the final whole-app visual/accessibility audit without adding glass to dense article/quiz reading surfaces or duplicating the shared backdrop. + +--- + # Live implementation batch — Reader WebView permanent-disposal guard (9 November 2026, 00:31 IST) **Source:** `black-box-bihar-news@58c2e5d99f87701eb7e6f68a53bfadcf8eb9c8e4` From 4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 03:31:51 +0530 Subject: [PATCH 155/175] fix(reader): cancel restore settle and preserve fatal cleanup errors --- .../mangoloads/currentlens/MainActivity.kt | 12 ++++- .../currentlens/ReaderWebViewReleaseGuard.kt | 7 ++- .../ReaderWebViewReleaseGuardTest.kt | 50 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 42 ++++++++++++++++ 4 files changed, 108 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index a06c3c76..dbb47ef3 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -3758,6 +3758,7 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) private var autoDefineEvaluationPending = false private var pendingReadingPositionRestore: Float? = null private var readingPositionRestore: Runnable? = null + private var readingPositionRestoreSettle: Runnable? = null private var readingPositionSave: Runnable? = null private var lastRestoreContentHeight = -1 private var stableRestoreSamples = 0 @@ -3872,10 +3873,14 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) if (targetY != null && targetY > 0) { restoringReadingPosition = true scrollTo(0, targetY) - postDelayed({ + readingPositionRestoreSettle?.let { removeCallbacks(it) } + val settle = Runnable { + readingPositionRestoreSettle = null restoringReadingPosition = false if (!readingPositionCompleted) scheduleReadingPositionSave() - }, READING_POSITION_RESTORE_SETTLE_MS) + } + readingPositionRestoreSettle = settle + postDelayed(settle, READING_POSITION_RESTORE_SETTLE_MS) } } else { scheduleReadingPositionRestoreAttempt(attempt + 1) @@ -3888,6 +3893,9 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) private fun cancelReadingPositionRestore() { readingPositionRestore?.let { removeCallbacks(it) } readingPositionRestore = null + readingPositionRestoreSettle?.let { removeCallbacks(it) } + readingPositionRestoreSettle = null + restoringReadingPosition = false pendingReadingPositionRestore = null stableRestoreSamples = 0 lastRestoreContentHeight = -1 diff --git a/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt b/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt index 68ad3c58..6f6b5d66 100644 --- a/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt +++ b/app/src/main/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuard.kt @@ -11,7 +11,12 @@ internal class ReaderWebViewReleaseGuard { if (released) return released = true cleanup.forEach { action -> - runCatching { action() } + try { + action() + } catch (_: Exception) { + // Continue best-effort cleanup after ordinary failures. Fatal VM/linkage + // errors are deliberately allowed to propagate. + } } } } diff --git a/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt b/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt index 5718e4bb..7d0a8c5b 100644 --- a/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/ReaderWebViewReleaseGuardTest.kt @@ -1,6 +1,7 @@ package com.mangoloads.currentlens import org.junit.Assert.assertEquals +import org.junit.Assert.assertTrue import org.junit.Test class ReaderWebViewReleaseGuardTest { @@ -52,4 +53,53 @@ class ReaderWebViewReleaseGuardTest { calls ) } + + + @Test + fun multipleOrdinaryCleanupFailuresDoNotSkipIndependentReleaseSteps() { + val guard = ReaderWebViewReleaseGuard() + val calls = mutableListOf() + + guard.release( + listOf( + { calls += "remove-save-callback"; error("synthetic save cleanup failure") }, + { calls += "clear-save-reference" }, + { calls += "remove-restore-callback"; error("synthetic restore cleanup failure") }, + { calls += "clear-restore-reference" }, + { calls += "clear-web-view-client" }, + { calls += "destroy" } + ) + ) + + assertEquals( + listOf( + "remove-save-callback", "clear-save-reference", + "remove-restore-callback", "clear-restore-reference", + "clear-web-view-client", "destroy" + ), + calls + ) + } + + @Test + fun fatalLinkageErrorsPropagateInsteadOfBeingSwallowed() { + val guard = ReaderWebViewReleaseGuard() + val calls = mutableListOf() + var propagated = false + + try { + guard.release( + listOf( + { calls += "fatal"; throw LinkageError("synthetic fatal linkage failure") }, + { calls += "must-not-run-after-fatal-error" } + ) + ) + } catch (_: LinkageError) { + propagated = true + } + + assertTrue(propagated) + assertEquals(listOf("fatal"), calls) + } + } diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 953f9258..c66b41d9 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,45 @@ +# Live implementation batch — Reader disposal callback ownership (9 November 2026, 03:27 IST) + +**Source before change:** `black-box-bihar-news@98a5ee09e51c03e8a253305c485a91693ba3c735` +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — **157 ahead / 0 behind**, with main as merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. Only the owner-selected `black-box-bihar-news` branch is modified. + +## Branch freshness and dependency gate + +- Re-enumerated the complete remote inventory: **46 branches** (page 1 = 46, page 2 = 0), **29 open PRs** (page 1 = 29, page 2 = 0) and **14 closed PRs** (page 1 = 14, page 2 = 0). Default branch remains main. PR #34 head matched the selected branch immediately before this patch. +- The newest Reader-relevant source is PR #43, `fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c` (8 November 2026 21:25:23 UTC; “test(reader): cover independent cleanup after repeated failures”). It is **11 commits ahead / 157 behind black-box** and **11 ahead / 0 behind main**: divergent, not a safe application baseline. Its full three-file diff was reviewed: `MainActivity.kt` (+65/-2), `ReaderWebViewReleaseGuard.kt` (+22) and `ReaderWebViewReleaseGuardTest.kt` (+100). The earlier permanent-disposal implementation is already integrated on black-box through `86e095d858784b59b231f64f647aed869698f992`; this pass selectively ports only the cancellable restore-settle callback and the ordinary-vs-fatal cleanup semantics/tests. +- PR #37's Search RowScope repair and active-field clear visibility, PR #30's 48dp touch-target policy, PR #31's off-main appearance restore, PR #36's Asia/Kolkata day policy and PR #13's single conservative 8×8 adaptive-contrast probe are already represented on the active line. The old `brrrNEWS` branch is **4 ahead / 63 behind**; its `GlassSurfacePolicy`/supporting-card changes are superseded by the current richer shared `GlassSurfacePolicy` (intensity, reduced-transparency, filter/action/preview tokens) and `SupportingCardGeometryPolicy`. No duplicate material stack was ported. +- PR #42 is editorial-only; PR #39 remains owner-gated on signing secrets/certificate pinning/first-install migration. RSS/parser/security branches #25/#26/#32/#33/#38/#40/#41 and diagnostic branches #16/#35 remain separate. No other branch, PR, main, workflow or repository setting was changed. + +## Exact parent CI, Actions, workflow and Release + +- All **372 Actions runs** were paginated (100 + 100 + 100 + 72; page 5 empty). Queued and in-progress runs are both **0**. +- Exact parent `98a5ee09e51c03e8a253305c485a91693ba3c735` passed natural push run [#371](https://github.com/Batmancpu/CurrentLens/actions/runs/42523296936) and pull-request run [#372](https://github.com/Batmancpu/CurrentLens/actions/runs/42523300944). PR job **128861297626** completed every step successfully: checkout, Java, stable test-signing cache, Android SDK/platform, Gradle, WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Full job log reports **BUILD SUCCESSFUL in 1m 33s** (44 actionable tasks). PR artifact [#13634735445](https://github.com/Batmancpu/CurrentLens/actions/runs/42523300944/artifacts/13634735445), **39,128,215 bytes**, SHA-256 `1d41e6ed1088e6dd38eb3f8cc94c93ccf78e545018f95531643825e79dd61902`, expires **22 November 2026 21:06:22 UTC**. The publish job was skipped; these runs created no Release. +- The integration workflow `.github/workflows/build-apk.yml` retains read-only build/test permissions and a separate main-push-only Release-write job. Main's own workflow remains push-only with workflow-wide `contents: write`. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). + +## Implementation — cancel the final Reader restore callback; preserve fatal failures + +- The existing `ReaderScreen` owns one WebView through `AndroidView`; permanent Compose disposal uses `onRelease` and calls `releaseForDisposal()`. Temporary detach remains non-destructive. +- The final 260ms reading-position restore settle callback was previously an anonymous `postDelayed` lambda. It is now stored as `readingPositionRestoreSettle`, cleared when it runs, and removed by `cancelReadingPositionRestore()`; cancellation also resets `restoringReadingPosition`. Existing article-change, completion, detach and permanent-disposal paths already call this cancellation method, so no new timer/poller or lifecycle observer is introduced. +- `ReaderWebViewReleaseGuard` now catches ordinary `Exception` per cleanup action rather than using `runCatching` (which also swallows `Error`). Independent cleanup continues after ordinary failures; fatal VM/linkage errors propagate instead of being hidden. Added JVM coverage for multiple independent ordinary failures and fatal `LinkageError` propagation. The guard remains one-shot and preserves cleanup order. +- No article HTML, WebView permissions, JavaScript/DOM-storage policy, native selection/ActionMode, dictionary bridge, reading-session accounting, saved-position semantics or quiz persistence changed. + +## Paired resource/material strategy and coverage + +| Component | Material tier / reason | Effect/capture delta | Reuse / fallback | Tests / evidence | +|---|---|---|---|---| +| Reader WebView restore/disposal lifecycle | No glass; lifecycle/resource ownership only | **0** new Prismal passes, blur/refraction, backdrop captures/readbacks, shaders, graphics layers or image decodes | Existing single WebView and existing `onRelease`; cancel one stored delayed callback; temporary detach remains safe | JVM guard tests added; CI for this new head pending; device resource/jank impact unmeasured | +| Reader toolbar / definition / completion | Existing Tier 1 transient Prismal surfaces | No change to active surface area, shared root capture or hidden tab glyph source | Existing material tokens and reader chrome policy retained | No new visual/device claim | + +- This is a source-level lifecycle/resource correction, not a measured memory, frame-time, battery or thermal improvement. No new rendering work was added, so no additional glass cost is introduced. +- OPPO Reno10 WebView disposal/re-entry, native selection, TalkBack, font scaling, Reduce Motion, IME, screenshot appearance, Perfetto/frame timing, GPU overdraw, allocations/memory, thermal and battery remain **UNVERIFIED**. Parent #371/#372 do not validate this new commit; inspect its own natural push/PR runs before another implementation batch. + +## Next + +- Inspect the exact new-head natural push and PR jobs, full logs and artifact. If they pass, continue the whole-app consistency audit from the existing per-screen/material/optimization matrix; do not add another live effect without its paired cost-control strategy. + +--- + # Live implementation batch — Search clear active-state visibility (9 November 2026, 02:27 IST) **Source before change:** `black-box-bihar-news@4f3d0491e63619d48193316a0e8d370af5941a9f` From 022a28824a5a5d88a66986cd47a8a6cfb18fdf34 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 04:33:02 +0530 Subject: [PATCH 156/175] ui(feed): add restrained shared card rim --- .../currentlens/FeedCardGeometryPolicy.kt | 1 + .../currentlens/GlassSurfacePolicy.kt | 22 ++++++++++ .../mangoloads/currentlens/MainActivity.kt | 17 +++++++ .../currentlens/FeedCardGeometryPolicyTest.kt | 2 + .../currentlens/GlassSurfacePolicyTest.kt | 31 +++++++++++++ docs/BRANCH_CONSOLIDATION.md | 26 +++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 44 ++++++++++++++++++- 7 files changed, 141 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt index e4a53428..1abf4a6d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/FeedCardGeometryPolicy.kt @@ -7,6 +7,7 @@ package com.mangoloads.currentlens internal object FeedCardGeometryPolicy { const val IMAGE_ASPECT_RATIO = 16f / 9f const val CARD_CORNER_RADIUS_DP = 29f + const val CARD_RIM_WIDTH_DP = 0.75f const val IMAGE_CORNER_RADIUS_DP = 23f const val CARD_VERTICAL_INSET_DP = 3f const val CONTENT_HORIZONTAL_PADDING_DP = 15f diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 65f12604..40b97b6f 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -26,6 +26,10 @@ internal object GlassSurfacePolicy { private const val SUPPORTING_RIM_DARK_FROSTED = 0.23f private const val SUPPORTING_RIM_LIGHT_CLEAR = 0.11f private const val SUPPORTING_RIM_LIGHT_FROSTED = 0.16f + private const val FEED_CARD_RIM_DARK_CLEAR = 0.24f + private const val FEED_CARD_RIM_DARK_FROSTED = 0.32f + private const val FEED_CARD_RIM_LIGHT_CLEAR = 0.30f + private const val FEED_CARD_RIM_LIGHT_FROSTED = 0.38f fun supportingSurfaceAlpha(dark: Boolean): Float = if (dark) SUPPORTING_SURFACE_ALPHA_DARK else SUPPORTING_SURFACE_ALPHA_LIGHT @@ -50,6 +54,24 @@ internal object GlassSurfacePolicy { return clear + (frosted - clear) * progress } + /** + * Feed stories remain opaque editorial content. This static outline borrows the + * shared Clear↔Frosted hierarchy without adding a live glass surface per card. + */ + fun feedCardRimAlpha( + dark: Boolean, + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + reduceTransparency: Boolean = false + ): Float { + val progress = intensityProgress(glassAlpha) + val clear = if (dark) FEED_CARD_RIM_DARK_CLEAR else FEED_CARD_RIM_LIGHT_CLEAR + val frosted = if (dark) FEED_CARD_RIM_DARK_FROSTED else FEED_CARD_RIM_LIGHT_FROSTED + val alpha = clear + (frosted - clear) * progress + val reducedTransparencyFloor = if (dark) 0.30f else 0.36f + return (if (reduceTransparency) maxOf(alpha, reducedTransparencyFloor) else alpha) + .coerceIn(0f, 1f) + } + /** * Preview-only control tokens. The mini Search surface and selected tab should visibly * follow the same intensity preference as the outer Prismal material. Reduced diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index dbb47ef3..c168efca 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1356,6 +1356,7 @@ private fun WeekendPanel(articles: List
, onOpenArticle: (Article) -> Un Card( modifier = Modifier.fillMaxWidth(), shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), + border = cardBorder, colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { @@ -2470,6 +2471,19 @@ private fun formatDuration(durationMillis: Long): String { } } +@Composable +private fun rememberFeedCardBorder(): BorderStroke { + val outline = MaterialTheme.colorScheme.outlineVariant + val rimAlpha = GlassSurfacePolicy.feedCardRimAlpha( + dark = isSystemInDarkTheme(), + glassAlpha = LocalGlassIntensity.current, + reduceTransparency = LocalGlassReduceTransparency.current + ) + return remember(outline, rimAlpha) { + BorderStroke(FeedCardGeometryPolicy.CARD_RIM_WIDTH_DP.dp, outline.copy(alpha = rimAlpha)) + } +} + @Composable private fun NewsCard( article: Article, @@ -2479,6 +2493,7 @@ private fun NewsCard( relevanceOverride: Relevance? = null ) { val context = LocalContext.current + val cardBorder = rememberFeedCardBorder() val relevance = remember(article.id, article.title, article.description, relevanceOverride) { relevanceOverride ?: UpscEngine.classify(article) } @@ -2707,6 +2722,7 @@ private fun SkeletonTextLine( @Composable private fun FeedSkeletonCard() { + val cardBorder = rememberFeedCardBorder() val base = MaterialTheme.colorScheme.surfaceVariant.copy(alpha = 0.82f) val line = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.075f) Card( @@ -2714,6 +2730,7 @@ private fun FeedSkeletonCard() { .padding(vertical = FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP.dp) .clearAndSetSemantics { }, shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), + border = cardBorder, colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surface), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt index e416e96d..b2118ec9 100644 --- a/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/FeedCardGeometryPolicyTest.kt @@ -13,6 +13,8 @@ class FeedCardGeometryPolicyTest { @Test fun loadingAndArticleCardsShareContinuousGeometryAndContentRhythm() { assertEquals(29f, FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP, 0f) + assertEquals(0.75f, FeedCardGeometryPolicy.CARD_RIM_WIDTH_DP, 0f) + assertTrue(FeedCardGeometryPolicy.CARD_RIM_WIDTH_DP in 0.5f..1f) assertEquals(23f, FeedCardGeometryPolicy.IMAGE_CORNER_RADIUS_DP, 0f) assertEquals(3f, FeedCardGeometryPolicy.CARD_VERTICAL_INSET_DP, 0f) assertEquals(15f, FeedCardGeometryPolicy.CONTENT_HORIZONTAL_PADDING_DP, 0f) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 150567af..82416b0f 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -58,6 +58,37 @@ class GlassSurfacePolicyTest { ) } + @Test + fun feedCardRimTracksThemeAndClearToFrostedIntensity() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + val default = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + + assertEquals(0.24f, GlassSurfacePolicy.feedCardRimAlpha(true, clear), 0.0001f) + assertEquals(0.32f, GlassSurfacePolicy.feedCardRimAlpha(true, frosted), 0.0001f) + assertEquals(0.30f, GlassSurfacePolicy.feedCardRimAlpha(false, clear), 0.0001f) + assertEquals(0.38f, GlassSurfacePolicy.feedCardRimAlpha(false, frosted), 0.0001f) + assertTrue(GlassSurfacePolicy.feedCardRimAlpha(true, default) in 0.24f..0.32f) + assertTrue(GlassSurfacePolicy.feedCardRimAlpha(false, default) in 0.30f..0.38f) + } + + @Test + fun feedCardRimUsesStaticReducedTransparencyFloorAndNormalizesInvalidIntensity() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + assertEquals(0.30f, GlassSurfacePolicy.feedCardRimAlpha(true, clear, true), 0.0001f) + assertEquals(0.36f, GlassSurfacePolicy.feedCardRimAlpha(false, clear, true), 0.0001f) + assertEquals( + GlassSurfacePolicy.feedCardRimAlpha(true), + GlassSurfacePolicy.feedCardRimAlpha(true, Float.NaN), + 0.0001f + ) + assertEquals( + GlassSurfacePolicy.feedCardRimAlpha(false), + GlassSurfacePolicy.feedCardRimAlpha(false, Float.POSITIVE_INFINITY), + 0.0001f + ) + } + @Test fun transientControlsUseOneBoundedLowCostMaterialTier() { assertTrue(GlassSurfacePolicy.TRANSIENT_BLUR_DP in 0f..6f) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 899fde32..e6a00c44 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,29 @@ +# Latest pre-change branch/PR/CI audit — 9 November 2026, 04:23 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected integration/UI source:** `black-box-bihar-news@4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef` — **158 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. The implementation in the companion roadmap is a direct child of this verified source. + +## Live graph and dependency treatment + +- Complete inventory: **46 remote branches** (page 1 = 46, page 2 = 0), **29 open PRs** and **14 closed PRs**. PR #34 head matched the selected branch immediately before implementation. +- PR #43 Reader lifecycle head `e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c` is **11 ahead / 158 behind black-box** and **11 ahead / 0 behind main**. Its complete three-file Reader diff was reviewed; safe permanent-disposal/restore-callback/fatal-cleanup work is already ported on black-box. It is not a replacement baseline. +- PR #37 Search clear compile/RowScope repair, #30 48dp icon target policy, #31 off-main appearance restore, #36 Asia/Kolkata rollover and #13 conservative single 8×8 adaptive-contrast policy are represented in the active tree. The old `brrrNEWS` material branch is **4 ahead / 64 behind**; its fixed-intensity implementation is superseded by the active richer shared policy. The old Liquid Glass performance and v0.3 redesign lines are not selected. +- PR #16's latest unique work is diagnostic/startup-only and divergent (**7 ahead / 101 behind black-box**); its full relevant patch was inspected, with no old MainActivity copied. PR #18's workflow proposal is **1 ahead / 158 behind**; black-box already contains read-only build/test permissions and a separate main-push-only publish job. PR #20 is ancestral. PR #42 is editorial-only; PR #39 remains owner-gated on signing migration. RSS/parser/privacy branches are unchanged. + +## Actions, workflow and Release + +- **374** Actions runs fully paginated (100 + 100 + 100 + 74; page 5 empty); queued/in-progress **0**. +- Parent `4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef` passed natural push #373 and PR #374. Both build jobs passed WordNet builder 4/4, 151,456-word offline database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Exact PR job #128876195161 reported **BUILD SUCCESSFUL in 1m 13s**. PR artifact #13636187974: 39,128,357 bytes; push artifact #13636357389: 39,128,354 bytes, SHA-256 `6724cb5f1a692a08779371150e18cee2beb1ec0fd23a22561dfa6fb65ec3d5b7`. Publish jobs skipped. +- `.github/workflows/build-apk.yml` on black-box remains read-only for build/test with a separate main-push-only Release-write job. Latest Release remains `v0.2.0-build-116`; no Release was created. + +## Device/performance status + +No new OPPO Reno10 screenshots, logcat, tombstone or Perfetto trace exists. Visual contrast, 60/90/120Hz smoothness, startup stability, GPU overdraw, memory/allocation, battery and thermal claims remain **UNVERIFIED**. This audit is the exact pre-change baseline for the next feed-card rim commit; the companion roadmap records the implementation and its pending natural CI. + +--- + # Latest live branch/PR/CI audit — 9 November 2026, 02:27 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index c66b41d9..33216709 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,43 @@ +# Live implementation batch — restrained feed-card glass rim (9 November 2026, 04:23 IST) + +**Source before change:** `black-box-bihar-news@4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef`. +**Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — **158 ahead / 0 behind**, with main as merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. This is a direct, non-destructive child on the owner-selected `black-box-bihar-news` line. + +## Branch freshness and dependency gate + +- Re-enumerated the complete remote inventory: **46 branches** (page 1 = 46, page 2 = 0), **29 open PRs** (page 1 = 29, page 2 = 0) and **14 closed PRs** (page 1 = 14, page 2 = 0). Default branch remains main; PR #34's head matched the selected branch before this change. +- The latest Reader-specific source remains PR #43, `fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c`: **11 ahead / 158 behind black-box**, **11 ahead / 0 behind main**. Its full three-file Reader teardown diff was reviewed. The permanent-disposal guard, cancellable restore-settle callback and ordinary-vs-fatal cleanup semantics are already selectively present on black-box; PR #43 is divergent and not a safe replacement baseline. +- PR #37's Search RowScope repair/48dp clear slot, PR #30's icon target policy, PR #31's off-main appearance restore, PR #36's Asia/Kolkata day policy and PR #13's single conservative luminance probe are present in the current code. The old `brrrNEWS` line is **4 ahead / 64 behind** and its fixed-intensity material policy is superseded by the active shared intensity/reduced-transparency/filter/preview policy. `ui/liquid-glass-system-continuation` is ancestral; `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are stale/divergent. +- PR #16 has seven unique diagnostic commits relative to its merge base but is **7 ahead / 101 behind** black-box; its complete relevant diff was reviewed and no old MainActivity was copied. PR #18's workflow proposal is one commit ahead / 158 behind; the active branch already has read-only build permissions and a separate main-push-only publish job. PR #20's workflow head is an ancestor of the active line. PR #42 is editorial-only; PR #39's signing migration remains owner-gated. RSS/parser/privacy branches remain separate and were not changed. + +## Exact parent CI, Actions, workflow and Release + +- All **374 Actions runs** were paginated (100 + 100 + 100 + 74; page 5 empty). Queued and in-progress runs are both **0**. +- Exact parent SHA `4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef` passed natural push run [#373](https://github.com/Batmancpu/CurrentLens/actions/runs/42528134216) and pull-request run [#374](https://github.com/Batmancpu/CurrentLens/actions/runs/42528138280). Both build jobs completed every step successfully: WordNet builder **4/4**, offline database **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. The exact PR job log reports **BUILD SUCCESSFUL in 1m 13s** (44 actionable tasks). PR artifact [#13636187974](https://github.com/Batmancpu/CurrentLens/actions/runs/42528138280/artifacts/13636187974) is **39,128,357 bytes**. Push artifact [#13636357389](https://github.com/Batmancpu/CurrentLens/actions/runs/42528134216/artifacts/13636357389) is **39,128,354 bytes**, SHA-256 `6724cb5f1a692a08779371150e18cee2beb1ec0fd23a22561dfa6fb65ec3d5b7`. Both publish jobs were skipped; no Release was created. +- `.github/workflows/build-apk.yml` on black-box retains read-only build/test permissions, natural push/PR validation and a separate main-push-only Release-write job. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). + +## Implementation — add one static, intensity-aware rim to feed content cards + +- `NewsCard` and `FeedSkeletonCard` now share a **0.75dp** outline using the theme's `outlineVariant`. It follows the shared Clear↔Frosted intensity policy and a small Reduce Transparency floor. The same rim on loading and loaded cards avoids an edge flash when the feed changes from skeletons to articles. +- Feed cards remain opaque/near-opaque editorial surfaces: no live blur, refraction, shader, per-card backdrop sampling or glass container was added. Article title/description hierarchy, click/bookmark behaviour, LazyColumn keys/content types, relevance classification, Coil request, bitmap palette extraction and ambient glow are unchanged. The treatment also carries through Saved because it reuses `NewsCard`. + +## Paired material/performance strategy + +| Component | Material tier / reason | Effect/capture delta | Reuse / fallback | Tests / evidence | +|---|---|---|---|---| +| Today / Explore / Search / Saved feed cards and skeletons | Tier 4 editorial content with a restrained static glass-derived edge; keep the content surface calm and readable | **0** new Prismal passes, live blur/refraction, shaders, backdrop captures/readbacks, graphics layers, image decodes or network work; one 0.75dp outline draw per visible card | One remembered `BorderStroke` per card keyed by theme outline + normalized rim alpha; same policy/geometry on skeleton and loaded card; opaque content fallback remains | JVM tests cover Clear/Frosted endpoints, theme variation, Reduce Transparency floor, non-finite fallback and rim width. Natural CI for this new head is pending; OPPO render cost remains unmeasured | +| Existing feed image/palette path | No material change | One existing Coil request and one decoded bitmap per article | Existing palette cache and `drawWithCache` ambient glow reused; no duplicate decode or per-card blur | Source audit only; memory/GPU/frame/battery/thermal metrics unverified | + +- The only new draw work is a simple static outline on cards already in the visible LazyColumn; no additional render surface or off-screen layer is created. This is a source-level cost bound, not a measured performance improvement. +- OPPO Reno10 screenshots, launch stability, scroll jank/Perfetto, GPU overdraw, allocation/memory churn, thermal/battery, TalkBack, font scaling and Reduce Motion remain **UNVERIFIED**. Parent #373/#374 do not validate this new child commit; inspect its own natural runs before another implementation pass. + +## Next + +- Inspect the exact new-head natural push and PR jobs, full logs and artifact. If they pass, complete the whole-app state/contrast audit; do not expand feed cards into live glass or add another backdrop source. + +--- + # Live implementation batch — Reader disposal callback ownership (9 November 2026, 03:27 IST) **Source before change:** `black-box-bihar-news@98a5ee09e51c03e8a253305c485a91693ba3c735` @@ -668,7 +708,7 @@ Recheck every branch head and dependency before each future implementation commi | Search morph field | Interactive control glass | Preserve tab-to-IME geometry/focus; trailing clear affordance only for non-empty expanded query | 48dp clear target and existing onClear/focus path integrated; filter clearing remains independent | | Search results hierarchy | Plain status row + static control glass | One result/active-filter label beside the existing Filters action; no redundant inline live-glass slab | One 7dp blur/refraction panel removed; conditional filter sheet and morph field retained; device hierarchy unverified | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | -| Today / Explore / Search article cards | Editorial content | Continuous corners, clear typography, image-derived ambient colour; no live blur per card | Existing standard cards, single Coil request and same-bitmap palette | +| Today / Explore / Search article cards | Editorial content + static glass-derived rim | Opaque/near-opaque cards, continuous corners, clear typography and image-derived ambient colour; no live blur | Shared 0.75dp theme-aware rim follows Clear↔Frosted and Reduce Transparency; skeletons use the same rim; single Coil request and same-bitmap palette | | You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity now scales cached tint/rim tokens; no live blur; OPPO contrast unverified | | Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | | Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting cards use the same committed Clear↔Frosted tint/rim intensity; no live blur; summaries memoized | @@ -695,7 +735,7 @@ Recheck every branch head and dependency before each future implementation commi | Home header | One 9dp-blur / low-refraction glass surface | Reuse root background-only source; static profile reduces blur/refraction/chromatic work; no duplicate capture | Theme-derived contrast; Reduce Transparency still removes live optics; device GPU cost unmeasured | | Search | One morphing capsule + one static glass Filters pill; no inline live-blur panel | Reuse existing anchor/dock geometry and root backdrop; result/status row is plain text | Preserve IME; clear and Filters controls retain 48dp targets; no extra readback | | Explore filters | One shared capsule, not one glass surface per chip | Reuse same backdrop; keep chip fills/borders as simple drawing | >=48dp target and selected semantics still require device/TalkBack checks | -| Feed cards | No live blur | One Coil request per image; palette sampled from that decoded bitmap; cached per article | Standard content card if palette unavailable; no duplicate decode | +| Feed cards | No live blur; one 0.75dp static outline per visible card | One remembered BorderStroke uses theme outlineVariant and shared Clear↔Frosted rim policy; skeleton and loaded card share it; one Coil request/palette decode per article | Opaque content card remains; Reduce Transparency uses a static rim floor; no extra capture/readback/shader/layer; device cost unmeasured | | Reader toolbar | One 8dp-blur glass toolbar, 60dp minimum height | Reuse root backdrop; one small bounded surface; Aa menu exists only when opened; tap reveal adds no surface/effect | Static material/Reduce Motion fallback; tap is one ACTION_UP policy check; device GPU cost unmeasured | | Reader progress | 2dp content indicator | Reuse existing debounced `savedReadingProgress`; no polling, WebView injection or readback | Hidden at zero/completion; visual timing needs device validation | | Completion dock | One 7dp-blur surface, only after end detection | Render only when complete, not dismissed and no definition open | No large persistent panel; safe-area and collision checks still need device validation | From 18828f70e87a62fe3483dcc99fc29b82a6b7053b Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 05:30:14 +0530 Subject: [PATCH 157/175] fix(ui): restore feed card rim and refresh integration ledger --- .../mangoloads/currentlens/MainActivity.kt | 2 +- docs/BRANCH_CONSOLIDATION.md | 75 +++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 29 +++++++ 3 files changed, 105 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index c168efca..73908731 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1356,7 +1356,6 @@ private fun WeekendPanel(articles: List
, onOpenArticle: (Article) -> Un Card( modifier = Modifier.fillMaxWidth(), shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), - border = cardBorder, colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.surfaceVariant), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) ) { @@ -2555,6 +2554,7 @@ private fun NewsCard( Card( modifier = Modifier.fillMaxWidth().clickable { onOpenArticle(article) }, shape = ContinuousCornerShape(FeedCardGeometryPolicy.CARD_CORNER_RADIUS_DP.dp), + border = cardBorder, colors = CardDefaults.cardColors( containerColor = MaterialTheme.colorScheme.surface.copy(alpha = if (palette != null) 0.94f else 1f) ), diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index e6a00c44..bb7ed239 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2274,3 +2274,78 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t ### Selective integration decision - Four PR #16 Appearance changes are already superseded by active `LocalAppearancePreferences` and IO snapshot restoration; the three diagnostic changes are ported in this batch. - Final crash-report flush remains synchronous on the uncaught-exception thread. This is not a device crash fix; OPPO and performance metrics remain unverified. + + +## 9 November 2026, 05:25 IST — full live branch/PR/Actions refresh + +### Repository and branch graph +- Default branch: `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Selected consolidation source at audit start: `black-box-bihar-news@022a28824a5a5d88a66986cd47a8a6cfb18fdf34`; compare `main...black-box-bihar-news` = **159 ahead / 0 behind**, merge base is main. PR #34 is open/draft, unmerged, targeting main. +- Complete remote enumeration: **47 branches** (page 1 returned 47; page 2 empty). Open PRs: **30**; closed PRs: **14**. The table below records every branch head SHA, latest committer timestamp/message and its PR head/base relationship. +- Direct dependent repair: `fix/feed-card-rim-wiring-2026-11-09@3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895`, PR #44, one commit ahead / zero behind selected source; its parent is exactly `022a28824a5a5d88a66986cd47a8a6cfb18fdf34`. Full commit diff is only `MainActivity.kt`, moving one existing `border = cardBorder` argument from `WeekendPanel` to `NewsCard`. Natural PR run #377 passed on that exact head. This run ports that tree change into the single selected branch; no merge/retarget/source-branch mutation. +- PR #43 `fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c` compares as **11 ahead / 159 behind**, merge base main, and changes MainActivity plus release-guard/test files. Current integration already has Compose `AndroidView.onRelease`, restore-settle cancellation through `cancelReadingPositionRestore()`, an Exception-only guard and a fatal LinkageError test; the older branch is not a safe baseline. Its independently granular cleanup steps remain a possible narrowly scoped review, not a wholesale port. +- PR #42 GST/editorial is 6 ahead / 8 behind; #39 signing is 6 ahead / 24 behind and owner-gated; #38 RSS entry budget 8 ahead / 34 behind; #37 Search compile repair 6 ahead / 40 behind and its RowScope correction is already represented; #36 IST rollover 3 ahead / 41 behind; #35 diagnostics 6 ahead / 49 behind; #31 appearance preferences 5 ahead / 54 behind; #30 touch targets 3 ahead / 55 behind; #41 RSS-field parsing 14 ahead / 159 behind; #40 redirect validation 6 ahead / 159 behind. These divergent branches were inspected and are not substitutes for the selected integration lineage. +- Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded; `brrrNEWS` is an older divergent visual line. All other branches remain untouched. + +### Full 47-branch inventory +| Remote branch | Exact head SHA | Latest commit (UTC) | Latest commit message | PR relationship | +|---|---|---|---|---| +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 UTC | test(a11y): cover minimum icon action target | #30 open/draft → black-box-bihar-news | +| `black-box-bihar-news` | `022a28824a5a5d88a66986cd47a8a6cfb18fdf34` | 2026-11-08 23:03:02 UTC | ui(feed): add restrained shared card rim | #34 open/draft → main; selected integration head before this pass | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 UTC | ui: consolidate lightweight supporting glass surfaces | base of #24 open/draft; older visual line | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 UTC | ci: validate pull requests with read-only build permissions | #18 open/draft → main | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 UTC | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box-bihar-news | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 UTC | Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged; ref now equals main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 UTC | fix: refresh article card metadata when feed content changes | #6 open/draft → main; selected editorial changes represented | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 UTC | fix: select Atom article alternate links deterministically | #12 open/draft → main; selective port represented | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 UTC | feat: expose publication date and publisher RSS provenance on cards | #11 open/draft → black-box-bihar-news; selective port | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `ebea0aac68ce2cf17aad376304f7915fe937e807` | 2026-11-08 15:11:25 UTC | docs: record off-main diagnostics verification [skip ci] | #16 open/draft → main; adapted changes represented | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19 UTC | test(editorial): cover reality TV and television promotion | #27 open/draft → black-box-bihar-news | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 UTC | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open/draft → main; selected signals represented | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 UTC | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 UTC | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 UTC | fix: tighten UPSC editorial signal matching | #1 closed/merged → main | +| `fix/feed-card-rim-wiring-2026-11-09` | `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895` | 2026-11-08 23:20:44 UTC | fix(ui): wire feed card rim to the correct card scope | #44 open/draft → black-box-bihar-news; 1 ahead / 0 behind; natural run #377 success | +| `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45 UTC | docs(editorial): fix baseline paragraph spacing | #42 open/draft → black-box-bihar-news | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 UTC | fix: use supported calendar navigation glyph | #5 closed/merged → main | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 UTC | test: preserve Parliament bill headline variants | #23 closed/merged → black-box-bihar-news | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 UTC | Validate RSS redirects against publisher allowlists | #15 closed/unmerged → main; superseded by newer redirect policy | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 UTC | fix(quiz): qualify selected semantics receiver | #28 closed/merged → black-box-bihar-news | +| `fix/release-reader-webview-resources-2026-11-09` | `e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c` | 2026-11-08 21:25:23 UTC | test(reader): cover independent cleanup after repeated failures | #43 open/draft → main; divergent, not used as baseline | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 UTC | test(rss): correct relative xml base fixture | #33 open/draft → black-box-bihar-news | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 UTC | test(reader): cover publisher-only image resources | #25 open/draft → black-box-bihar-news | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 UTC | fix: deduplicate RSS tracking URL variants | #17 open/draft → main; selective port represented | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 UTC | docs: record verified search clear compile repair | #37 open/draft → black-box-bihar-news; fix represented | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 UTC | fix: capture Search glass tint before draw callback | #10 closed/merged → main | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31 UTC | docs: record stable signing validation and migration gate | #39 open/draft → black-box-bihar-news; owner-gated | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 UTC | fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged → main | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 UTC | fix: harden cold start and reduce feed rendering workload | #7 closed/merged → main | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 UTC | test(today): cover Asia/Kolkata midnight rollover | #36 open/draft → black-box-bihar-news | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28 UTC | fix(rss): keep redirect result non-null | #40 open/draft → main | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 UTC | Correct icon artwork accessibility name to brrrNews | default branch | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36 UTC | fix(test): correct RSS budget test identifier | #38 open/draft → black-box-bihar-news | +| `perf/bound-rss-field-values-2026-11-08` | `39acde8373eb3405f655e052ccd3445f22eedebb` | 2026-11-08 14:39:53 UTC | test(rss): reject non-editorial XHTML script and style text | #41 open/draft → main | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 UTC | Record successful bounded-diagnostic CI | #35 open/draft → black-box-bihar-news; partly superseded | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 UTC | Verify legacy markers survive recent-history retention | #22 open/draft → perf/off-main-session-persistence | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 UTC | docs: record bounded RSS fetch review and CI state | #32 open/draft → black-box-bihar-news | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 UTC | fix(startup): keep appearance snapshot API module-internal | #31 open/draft → black-box-bihar-news; richer snapshot supersedes | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 UTC | perf(storage): move bookmark mutations off the UI thread | #29 open/draft → black-box-bihar-news; represented | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 UTC | perf: move read-marker persistence off main thread | #8 open/draft → main; reconciled persistence | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 UTC | privacy: block third-party publisher reader subresources | #26 open/draft → black-box-bihar-news; security review pending | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 UTC | fix: make selection decoding fallback valid JSON | no PR; stale ancestry | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 UTC | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main; older probe policy superseded | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 UTC | fix: import bottom navigation glyphs | #4 closed/unmerged; #3 merged at older head; stale | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 UTC | docs(reader): record native selection collision guard | #19 closed/merged → black-box-bihar-news | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 UTC | fix: finish syllabus metadata and thin-film feed eligibility | no PR; superseded by consolidation | + +### Actions, workflow and Releases +- Actions pages: 100 + 100 + 100 + 77 = **377 total runs**; 237 success, 70 failure, 70 cancelled. Queued: 0; in progress: 0. +- Latest run #377 is a natural pull_request run on PR #44 exact head `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895`, success. Build/test job steps all completed: checkout, Java, signing cache, Android SDK/platform, Gradle, WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug`, APK upload. Main-only Release job skipped. +- Artifact #13638807703: 39,128,627 bytes; SHA-256 `b5df721e27c65e7309f15fe68170518bfd789b2c9d0aafa630a78ef710f64b8c`; expires 22 November 2026 23:22:35 UTC. +- Exact selected parent `022a28824a5a5d88a66986cd47a8a6cfb18fdf34` failed runs #375 (push) and #376 (pull_request) at `MainActivity.kt:1359:22 Unresolved reference 'cardBorder'`. Full job log confirms the compiler error. PR #44's one-line move fixes the scope. Run #377 does not validate the new integration commit; its own natural run remains pending after the port. +- Active integration workflow: read-only build/test permissions; Release write isolated to main push. Main's workflow remains push-only. No manual dispatch/rerun and no workflow edit. +- Latest published Release by publication time: `v0.2.0-build-116`, 6 November 2026 11:18:59 UTC. No Release published by this work. + +### Branch write and safety +- The repair is applied as a first-parent commit on `black-box-bihar-news` from `022a28824a5a5d88a66986cd47a8a6cfb18fdf34`, using the exact verified PR #44 tree (whose parent is `022a28824a5a5d88a66986cd47a8a6cfb18fdf34`) plus this ledger/roadmap update. No force update, merge commit, cherry-pick into another branch, main write, PR merge, PR retarget, Release publication or source-branch deletion. +- This inventory is a pre-write snapshot; the new integration head is the child commit created by this run. The PR #34 metadata is updated separately with the resulting exact head and pending natural CI state. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 33216709..312579cc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1358,3 +1358,32 @@ Next: after natural CI validates this exact head, perform the Appearance preview ### Remaining verification - OPPO Reno10 launch/crash causality and all device visuals/performance/accessibility remain **UNVERIFIED**. No startup-time, memory, frame-time, battery or thermal gain is claimed. - After exact-head natural CI passes, next: selectively port PR #43's tracked WebView settle callback cancellation and Exception-only release guard, then continue Today skeleton/header/filter and app-wide material consistency. + + +## 9 November 2026, 05:25 IST — feed-card rim scope repair + +### Freshness and dependency gate +- Live default: `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. The selected single integration branch was `black-box-bihar-news@022a28824a5a5d88a66986cd47a8a6cfb18fdf34`, `159 ahead / 0 behind` main, with merge-base exactly main. PR #34 remains open/draft and targets main. +- Full remote inventory at the start of this pass: **47 branches**, **30 open PRs**, **14 closed PRs**. The exact branch/head/timestamp/message/PR ledger is appended in `docs/BRANCH_CONSOLIDATION.md`. +- The newest directly dependent UI repair was `fix/feed-card-rim-wiring-2026-11-09@3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895`, PR #44, exactly **1 ahead / 0 behind** the selected branch. Its parent is the selected branch head and its entire diff is one file / one line moved in `MainActivity.kt`; natural PR run #377 passed on that exact head. This change is ported as a new first-parent commit on `black-box-bihar-news`; no PR is merged and no source branch is changed. +- Other open heads were compared against the selected branch. PR #43 Reader lifecycle is divergent (**11 ahead / 159 behind**, merge base main); current integration already has `AndroidView.onRelease`, restore-settle cancellation through `cancelReadingPositionRestore()`, an Exception-only release guard and a fatal-`LinkageError` test. Its broader older `MainActivity.kt` is not a safe baseline; only independently reviewed cleanup-granularity changes remain candidates. PR #42 is editorial-only (**6 ahead / 8 behind**); PR #39 signing is owner-gated (**6 ahead / 24 behind**); PR #38 RSS-entry budget (**8 ahead / 34 behind**); PR #37 Search compile repair (**6 ahead / 40 behind**, fix represented in integration); PR #36 IST rollover (**3 ahead / 41 behind**); PR #35 diagnostics (**6 ahead / 49 behind**); PR #31 appearance preferences (**5 ahead / 54 behind**); PR #30 touch targets (**3 ahead / 55 behind**); PR #41 RSS-field parsing (**14 ahead / 159 behind**); PR #40 redirect validation (**6 ahead / 159 behind**). None is a coherent replacement for the current integration branch. +- Stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain excluded. `brrrNEWS` remains an older divergent visual line. No source branch is deleted, retargeted, force-updated, or modified. + +### Implementation +- Corrected the static feed-card rim wiring: remove the misplaced `border = cardBorder` from `WeekendPanel`, where no such value is in scope, and apply it to the `NewsCard` Card, where `rememberFeedCardBorder()` already provides the cached `BorderStroke`. +- The rim is the existing **0.75dp static outline** shared with `FeedSkeletonCard`, driven by `GlassSurfacePolicy.feedCardRimAlpha`, theme outline, Clear↔Frosted intensity and Reduce Transparency. Loaded cards now retain the same edge treatment as their skeletons; WeekendPanel returns to its prior neutral content surface. +- No new live glass container, blur, shader, refraction, backdrop capture/readback, render pass, image request/decode, palette extraction, dependency, permission, network path, or storage change. Existing one-Coil-request / one-decoded-bitmap palette path is untouched. Existing geometry and alpha policy JVM tests remain the relevant coverage; no redundant test was added for a compile-scope move. + +### Exact CI evidence and current verification state +- Actions history was fully paginated: **377 runs** (237 success, 70 failure, 70 cancelled); queued and in-progress runs: **0**. +- PR #44 natural run [#377](https://github.com/Batmancpu/CurrentLens/actions/runs/42534739302) passed on exact source head `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895`: WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload all succeeded; main-only Release job skipped. Artifact [13638807703](https://github.com/Batmancpu/CurrentLens/actions/runs/42534739302/artifacts/13638807703), 39,128,627 bytes, SHA-256 `b5df721e27c65e7309f15fe68170518bfd789b2c9d0aafa630a78ef710f64b8c`, expires 22 November 2026 23:22:35 UTC. +- The selected parent head `022a28824a5a5d88a66986cd47a8a6cfb18fdf34` failed natural push #375 and PR #376 at `MainActivity.kt:1359:22`, `Unresolved reference 'cardBorder'`. The exact compiler log confirms the scope error; PR #44 moves the existing argument to the intended Card. Run #377 validates PR #44's exact head, **not** the new integration commit created from its tree. The new integration head therefore remains **CI PENDING** until its own natural run completes. No workflow dispatch/rerun was used. +- Active integration workflow remains read-only for build/test, with Release write isolated to main pushes. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC); no Release was published. + +### Paired performance and accessibility status +- Render/capture delta: **0**. Active glass surfaces, blur area, backdrop capture/readback count, shader count and image decode count are unchanged. The only visual change is reusing the already-computed static rim on the loaded editorial card. No performance improvement is claimed from source inspection. +- Article text and feed cards remain high-contrast content surfaces; no new interactive target or semantic state was introduced. Existing skeleton geometry, stable list keys/content types and article selection/bookmark semantics are unchanged. +- OPPO Reno10 launch, screenshots, scroll smoothness, frame timing/jank, memory/allocation churn, GPU overdraw, thermal/battery, TalkBack, font scaling, Reduce Motion/Reduce Transparency and real keyboard/reader interaction remain **UNVERIFIED**. + +### Next +- Inspect the new integration commit's own natural push/PR run, complete job logs and artifact before another visual batch. Then review the remaining Reader cleanup-granularity delta without importing PR #43's divergent `MainActivity.kt`; continue app-wide You/Saved/stats and Appearance material consistency only after the exact-head gate. No main write, merge, Release publication, manual dispatch/rerun, or source-branch mutation. From 4a7389f728af0ad06a2013a795774cf60aad7b40 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 06:29:39 +0530 Subject: [PATCH 158/175] ui(glass): apply reduced-transparency fallback to supporting surfaces --- .../currentlens/GlassSurfacePolicy.kt | 33 +++++++++-- .../mangoloads/currentlens/MainActivity.kt | 7 ++- .../currentlens/GlassSurfacePolicyTest.kt | 27 +++++++++ docs/BRANCH_CONSOLIDATION.md | 35 +++++++++++- docs/LIQUID_GLASS_UI_ROADMAP.md | 56 +++++++++++++++++-- 5 files changed, 140 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 40b97b6f..2f69c4b2 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -18,6 +18,8 @@ internal object GlassSurfacePolicy { private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f + private const val SUPPORTING_SURFACE_ALPHA_DARK_REDUCED = 0.975f + private const val SUPPORTING_SURFACE_ALPHA_LIGHT_REDUCED = 0.985f private const val SUPPORTING_TINT_DARK_CLEAR = 0.09f private const val SUPPORTING_TINT_DARK_FROSTED = 0.145f private const val SUPPORTING_TINT_LIGHT_CLEAR = 0.055f @@ -26,32 +28,51 @@ internal object GlassSurfacePolicy { private const val SUPPORTING_RIM_DARK_FROSTED = 0.23f private const val SUPPORTING_RIM_LIGHT_CLEAR = 0.11f private const val SUPPORTING_RIM_LIGHT_FROSTED = 0.16f + private const val SUPPORTING_TINT_DARK_REDUCED_FLOOR = 0.11f + private const val SUPPORTING_TINT_LIGHT_REDUCED_FLOOR = 0.07f + private const val SUPPORTING_RIM_DARK_REDUCED_FLOOR = 0.23f + private const val SUPPORTING_RIM_LIGHT_REDUCED_FLOOR = 0.16f private const val FEED_CARD_RIM_DARK_CLEAR = 0.24f private const val FEED_CARD_RIM_DARK_FROSTED = 0.32f private const val FEED_CARD_RIM_LIGHT_CLEAR = 0.30f private const val FEED_CARD_RIM_LIGHT_FROSTED = 0.38f - fun supportingSurfaceAlpha(dark: Boolean): Float = - if (dark) SUPPORTING_SURFACE_ALPHA_DARK else SUPPORTING_SURFACE_ALPHA_LIGHT + fun supportingSurfaceAlpha( + dark: Boolean, + reduceTransparency: Boolean = false + ): Float = when { + reduceTransparency && dark -> SUPPORTING_SURFACE_ALPHA_DARK_REDUCED + reduceTransparency -> SUPPORTING_SURFACE_ALPHA_LIGHT_REDUCED + dark -> SUPPORTING_SURFACE_ALPHA_DARK + else -> SUPPORTING_SURFACE_ALPHA_LIGHT + } fun supportingTintAlpha( dark: Boolean, - glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + reduceTransparency: Boolean = false ): Float { val progress = intensityProgress(glassAlpha) val clear = if (dark) SUPPORTING_TINT_DARK_CLEAR else SUPPORTING_TINT_LIGHT_CLEAR val frosted = if (dark) SUPPORTING_TINT_DARK_FROSTED else SUPPORTING_TINT_LIGHT_FROSTED - return clear + (frosted - clear) * progress + val alpha = clear + (frosted - clear) * progress + val reducedFloor = if (dark) SUPPORTING_TINT_DARK_REDUCED_FLOOR + else SUPPORTING_TINT_LIGHT_REDUCED_FLOOR + return if (reduceTransparency) maxOf(alpha, reducedFloor) else alpha } fun supportingRimAlpha( dark: Boolean, - glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + reduceTransparency: Boolean = false ): Float { val progress = intensityProgress(glassAlpha) val clear = if (dark) SUPPORTING_RIM_DARK_CLEAR else SUPPORTING_RIM_LIGHT_CLEAR val frosted = if (dark) SUPPORTING_RIM_DARK_FROSTED else SUPPORTING_RIM_LIGHT_FROSTED - return clear + (frosted - clear) * progress + val alpha = clear + (frosted - clear) * progress + val reducedFloor = if (dark) SUPPORTING_RIM_DARK_REDUCED_FLOOR + else SUPPORTING_RIM_LIGHT_REDUCED_FLOOR + return if (reduceTransparency) maxOf(alpha, reducedFloor) else alpha } /** diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 73908731..e2c5b6e3 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1937,11 +1937,12 @@ private fun SupportingGlassCard( val colors = MaterialTheme.colorScheme val dark = isSystemInDarkTheme() val glassAlpha = LocalGlassIntensity.current + val reduceTransparency = LocalGlassReduceTransparency.current val shape = remember { PrismalRoundedRectangle(GlassSurfacePolicy.SUPPORTING_CORNER_RADIUS_DP.dp) } - val tintAlpha = GlassSurfacePolicy.supportingTintAlpha(dark, glassAlpha) - val rimAlpha = GlassSurfacePolicy.supportingRimAlpha(dark, glassAlpha) + val tintAlpha = GlassSurfacePolicy.supportingTintAlpha(dark, glassAlpha, reduceTransparency) + val rimAlpha = GlassSurfacePolicy.supportingRimAlpha(dark, glassAlpha, reduceTransparency) val rimBrush = remember(colors.primary, colors.outline, dark, rimAlpha) { Brush.linearGradient( colors = listOf( @@ -1964,7 +1965,7 @@ private fun SupportingGlassCard( shape = shape, colors = CardDefaults.cardColors( containerColor = colors.surface.copy( - alpha = GlassSurfacePolicy.supportingSurfaceAlpha(dark) + alpha = GlassSurfacePolicy.supportingSurfaceAlpha(dark, reduceTransparency) ) ), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 82416b0f..5772e466 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -11,6 +11,33 @@ class GlassSurfacePolicyTest { assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) in 0.95f..0.98f) } + @Test + fun supportingCardsUseMoreOpaqueStaticFallbackWhenTransparencyIsReduced() { + val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA + + assertEquals(0.93f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = true), 0.0001f) + assertEquals(0.965f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = false), 0.0001f) + assertEquals(0.975f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = true, reduceTransparency = true), 0.0001f) + assertEquals(0.985f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = false, reduceTransparency = true), 0.0001f) + + assertEquals(0.11f, GlassSurfacePolicy.supportingTintAlpha(true, clear, true), 0.0001f) + assertEquals(0.07f, GlassSurfacePolicy.supportingTintAlpha(false, clear, true), 0.0001f) + assertEquals(0.145f, GlassSurfacePolicy.supportingTintAlpha(true, frosted, true), 0.0001f) + assertEquals(0.23f, GlassSurfacePolicy.supportingRimAlpha(true, clear, true), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, clear, true), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, frosted, true), 0.0001f) + + assertTrue( + GlassSurfacePolicy.supportingSurfaceAlpha(true, true) > + GlassSurfacePolicy.supportingSurfaceAlpha(true) + ) + assertTrue( + GlassSurfacePolicy.supportingRimAlpha(false, clear, true) >= + GlassSurfacePolicy.supportingRimAlpha(false, clear) + ) + } + @Test fun opticalTintAndRimStaySubtleAndBoundedAtDefaultIntensity() { assertTrue(GlassSurfacePolicy.supportingTintAlpha(dark = true) in 0.10f..0.12f) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index bb7ed239..99fa935d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,4 +1,33 @@ -# Latest pre-change branch/PR/CI audit — 9 November 2026, 04:23 IST +# Latest live branch/PR/CI audit — 9 November 2026, 06:22 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Owner-selected consolidation/UI branch:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b` — **160 ahead / 0 behind main**; main is the merge base. +**PR:** #34 remains open/draft → main, unmerged and unretargeted. The next implementation commit is a direct child of this exact source. + +## Complete graph and dependency treatment + +- Complete remote enumeration: **47 branches** (page 1 = 47, page 2 = 0), **29 open PRs**, **15 closed PRs**. The full 47-row branch-head/timestamp/message table follows in the historical audit below; the active `black-box-bihar-news` and closed PR #44 relationships are refreshed there. +- PR #43 Reader teardown (`e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c`) is **11 ahead / 160 behind** black-box, merge base main. Its full 3-file patch was reviewed; current integration already has `AndroidView.onRelease`, cancellable restore-settle ownership, independent Exception-only cleanup and fatal `LinkageError` propagation. It is divergent and not a replacement baseline. +- PR #37 Search compile repair (**6/41**), #30 48dp targets (**3/56**), #31 off-main appearance restore (**5/55**), #36 IST rollover (**3/42**) and #13 adaptive contrast (**1/173**) are divergent but their safe functional changes are already represented. PR #13's older 1.5s/2.5s sampler is superseded by the single 8×8 4s/6s probe paused outside eligible foreground-home states. +- PR #44 is **closed/unmerged**; its one-line `cardBorder` scope repair is present in active commit `18828f70e87a62fe3483dcc99fc29b82a6b7053b`; its source branch is untouched. PR #42 is editorial-only (**6/9**). PR #39's signing migration remains owner-gated (**6/25**). PR #18's workflow-only branch is **1/160** and is superseded by the active read-only build/test + isolated main-push Release-write workflow. PR #16 is divergent (**7/103**); no old MainActivity was copied. +- `brrrNEWS` is an older visual sibling (**4/66**); its fixed-intensity supporting material is superseded. `ui/liquid-glass-performance` (**3/178**) and `redesign/v0.3-search-reader` (**0/254**) are stale. RSS/parser/privacy/editorial proposals remain separate unless a specific change is reviewed and safely reconciled. No source branch is deleted, force-updated, merged or modified. + +## Actions, workflow and Release + +- **379** Actions runs were fully paginated (100 + 100 + 100 + 79): **239 success / 70 failure / 70 cancelled**; queued/in-progress **0**. +- Exact source `18828f70e87a62fe3483dcc99fc29b82a6b7053b` passed natural push #378 and pull-request #379. WordNet builder 4/4, 151,456-word offline DB generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload all passed. Full logs show BUILD SUCCESSFUL in 1m05s (push) and 1m31s (PR); Release jobs skipped. +- PR artifact #13640107491: 39,128,629 bytes, SHA-256 `46a70d172f84b29ae1526d71821244a43d758bb08008bb6c7d4a34ecf87481dc`; push artifact #13640011669: 39,128,627 bytes, SHA-256 `ae3c3aaa61fd17669d0248abc3703db561f0eea8c7599c27c741771ff4af6d7d`. Both expire 23 November 2026. +- Black-box workflow is read-only for build/test and isolates Release write to main pushes; it triggers natural validation for main, PR #16 and black-box. Main's own workflow remains push-only with workflow-wide `contents: write`; PR #16's workflow remains push-only/write-enabled. Run #379 validates PR #34's exact head, not a change to main's workflow. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was published. + +## Device and safety status + +- OPPO Reno10 launch/runtime, screenshots, visual contrast, TalkBack, font scaling, Reduce Motion, keyboard/IME, Reader re-entry, Perfetto/frame timing, GPU overdraw, allocation/memory churn, thermal and battery remain **UNVERIFIED**. +- No main write, PR merge/retarget, manual workflow dispatch/rerun, Release publication, package/app identity change, repository-setting change or source-branch deletion. + +--- +# Historical pre-change branch/PR/CI audit — 9 November 2026, 04:23 IST **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` @@ -2291,7 +2320,7 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t | Remote branch | Exact head SHA | Latest commit (UTC) | Latest commit message | PR relationship | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 UTC | test(a11y): cover minimum icon action target | #30 open/draft → black-box-bihar-news | -| `black-box-bihar-news` | `022a28824a5a5d88a66986cd47a8a6cfb18fdf34` | 2026-11-08 23:03:02 UTC | ui(feed): add restrained shared card rim | #34 open/draft → main; selected integration head before this pass | +| `black-box-bihar-news` | `18828f70e87a62fe3483dcc99fc29b82a6b7053b` | 2026-11-09 00:00:14 UTC | fix(ui): restore feed card rim and refresh integration ledger | #34 open/draft → main; current owner-selected integration head | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 UTC | ui: consolidate lightweight supporting glass surfaces | base of #24 open/draft; older visual line | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 UTC | ci: validate pull requests with read-only build permissions | #18 open/draft → main | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 UTC | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box-bihar-news | @@ -2305,7 +2334,7 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t | `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 UTC | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS | | `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 UTC | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | | `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 UTC | fix: tighten UPSC editorial signal matching | #1 closed/merged → main | -| `fix/feed-card-rim-wiring-2026-11-09` | `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895` | 2026-11-08 23:20:44 UTC | fix(ui): wire feed card rim to the correct card scope | #44 open/draft → black-box-bihar-news; 1 ahead / 0 behind; natural run #377 success | +| `fix/feed-card-rim-wiring-2026-11-09` | `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895` | 2026-11-08 23:20:44 UTC | fix(ui): wire feed card rim to the correct card scope | #44 closed/unmerged; one-line fix is present on black-box at `18828f70e87a62fe3483dcc99fc29b82a6b7053b`; source branch untouched | | `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45 UTC | docs(editorial): fix baseline paragraph spacing | #42 open/draft → black-box-bihar-news | | `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 UTC | fix: use supported calendar navigation glyph | #5 closed/merged → main | | `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 UTC | test: preserve Parliament bill headline variants | #23 closed/merged → black-box-bihar-news | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 312579cc..03dbd915 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,4 +1,48 @@ -# Live implementation batch — restrained feed-card glass rim (9 November 2026, 04:23 IST) +# Live implementation batch — Reduce Transparency parity for supporting surfaces (9 November 2026, 06:22 IST) + +**Verified source:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b` — **160 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. +**Target:** the existing open/draft PR #34 → `main`; unmerged and unretargeted. This is a direct child of the verified owner-selected integration head. + +## Branch freshness and dependency gate + +- Re-enumerated the complete remote inventory: **47 branches** (page 1 = 47, page 2 = 0), **29 open PRs**, **15 closed PRs**. Default branch remains main; PR #34's head was exactly `18828f70e87a62fe3483dcc99fc29b82a6b7053b` before implementation. +- PR #43 Reader lifecycle (`fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c`) is **11 ahead / 160 behind** black-box, with main as merge base. Its full three-file patch was inspected: `onRelease`, tracked restore-settle cancellation, independent cleanup and fatal-error propagation are already present in the active Reader; no divergent `MainActivity.kt` was copied. +- PR #37 Search RowScope repair/48dp clear slot, PR #30 `TouchTargetPolicy`, PR #31 off-main appearance restore, PR #36 Asia/Kolkata day policy and PR #13's conservative single 8×8 adaptive probe are represented. Fresh comparisons remain divergent: #37 **6/41**, #30 **3/56**, #31 **5/55**, #36 **3/42**, #13 **1/173** (ahead/behind relative to black-box). PR #13's older 1.5s/2.5s cadence is not adopted; current sampling remains 4s/6s and paused outside eligible foreground home states. +- PR #44 is now **closed/unmerged**; its one-line feed-rim scope repair is already present in active commit `18828f70e87a62fe3483dcc99fc29b82a6b7053b`. Its source branch remains untouched. PR #42 is editorial-only (**6/9**); PR #39's signing migration remains owner-gated (**6/25**). PR #18's one-file workflow proposal is **1/160** and is superseded by the active read-only build + isolated main-push publish workflow. PR #16 remains a divergent stability/diagnostics line (**7/103**); no old MainActivity was copied. +- `brrrNEWS` is an older divergent visual line (**4/66**); its fixed-intensity material policy is superseded. `ui/liquid-glass-performance` (**3/178**) and `redesign/v0.3-search-reader` (**0/254**) are stale and excluded. RSS/parser/editorial/security branches remain separate unless a specific non-conflicting change is reviewed. + +## Exact parent CI, Actions, workflow and Release + +- All **379 Actions runs** were paginated (100 + 100 + 100 + 79): **239 success / 70 failure / 70 cancelled**. Queued and in-progress runs are both **0**. +- Exact source head `18828f70e87a62fe3483dcc99fc29b82a6b7053b` passed natural push run [#378](https://github.com/Batmancpu/CurrentLens/actions/runs/42537849730) and pull-request run [#379](https://github.com/Batmancpu/CurrentLens/actions/runs/42537853903). Both build jobs passed WordNet builder **4/4**, offline dictionary generation (**151,456 unique words; 50,950,144 bytes**), `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload. The PR job log reports **BUILD SUCCESSFUL in 1m 31s**; the push job reports **BUILD SUCCESSFUL in 1m 5s**. Both main-only publish jobs were skipped. +- PR artifact [#13640107491](https://github.com/Batmancpu/CurrentLens/actions/runs/42537853903/artifacts/13640107491): **39,128,629 bytes**, SHA-256 `46a70d172f84b29ae1526d71821244a43d758bb08008bb6c7d4a34ecf87481dc`, expires 23 November 2026 00:02:26 UTC. Push artifact #13640011669: **39,128,627 bytes**, SHA-256 `ae3c3aaa61fd17669d0248abc3703db561f0eea8c7599c27c741771ff4af6d7d`, expires 23 November 2026 00:01:59 UTC. +- `.github/workflows/build-apk.yml` on black-box has read-only build/test permissions, natural push/PR validation for main, PR #16 and black-box, and a separate Release-write job restricted to main pushes. Main's own workflow remains push-only with workflow-wide `contents: write`; PR #16's workflow is also push-only and retains workflow-wide write permission. The natural #379 run validates PR #34's exact head, not main's workflow configuration. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was created by #378/#379. + +## Implementation — supporting surfaces now honour Reduce Transparency + +- `SupportingGlassCard` now reads the existing `LocalGlassReduceTransparency` preference and passes it into the shared `GlassSurfacePolicy` for its static surface opacity, tint and rim. You metrics/destinations/empty states, Saved empty states, Reading Stats, Quiz Stats and the Appearance preview all inherit the same fallback because they already reuse this component. +- Normal mode is unchanged. With Reduce Transparency enabled, supporting cards use a **0.975 dark / 0.985 light** surface-alpha fallback, with static tint floors of **0.11 dark / 0.07 light** and rim floors of **0.23 dark / 0.16 light**. These are bounded supporting-surface treatments, not a live blur or a new glass panel. +- The Appearance slider remains child-scoped and commits the app-wide intensity only on release/preset selection. This change does not add per-tick root-state updates, persistence work, a timer or a new material source. + +## Paired material/performance strategy + +| Component | Material tier / reason | Effect/capture delta | Reuse / fallback | Tests / evidence | +|---|---|---|---|---| +| You / Saved / Reading Stats / Quiz Stats / Appearance supporting cards | Tier 3 quiet supporting tint/rim; keep metrics and data high contrast | **0** new Prismal passes, live blur/refraction, shader, capture/readback, graphics layer or image decode | Existing remembered shape/brushes; preference changes invalidate only derived static alpha/brush values; normal mode unchanged; reduced mode raises opacity/tint/rim | New JVM policy test covers dark/light, Clear/Frosted and fallback endpoints; exact-head natural CI pending; device cost unmeasured | +| Feed cards and skeletons | Tier 4 editorial content with a static glass-derived edge | **0** live blur/capture/readback; existing 0.75dp rim | Existing shared alpha policy and one Coil decode/palette path | Previous exact-head CI #378/#379 validates the parent rim batch only | + +- Render-pass delta: **0**. Added backdrop captures/readbacks, blur/refraction surfaces, shaders, graphics layers, image requests/decodes, dependencies, network calls, timers and persistence changes: **0**. Supporting cards remain near-opaque content surfaces; no per-card live glass was introduced. +- This is a source-level fallback/consistency correction, not a measured performance improvement. OPPO Reno10 contrast, memory/allocation churn, frame timing/jank, GPU overdraw, thermal and battery remain **UNVERIFIED**. +- Focused JVM coverage was added in `GlassSurfacePolicyTest`; the new commit must receive its own natural CI run. Parent #378/#379 do not validate this new head. + +## Next + +- Inspect this commit's exact natural push and PR runs, full logs and artifact before another UI batch. Then audit remaining dialogs/sheets/menus and close any whole-app material inconsistency without adding blur to dense article/quiz content or duplicating the shared backdrop. +- OPPO Reno10 screenshots/runtime, launch stability, TalkBack, font scaling, Reduce Motion, keyboard/IME, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. No device-performance or native-launch-fix claim is made. + +--- +# Previous implementation batch — restrained feed-card glass rim (9 November 2026, 04:23 IST) **Source before change:** `black-box-bihar-news@4f5bdf3e5c49d856eccc4411d5a2bfc40bebf0ef`. **Base:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` — **158 ahead / 0 behind**, with main as merge base. @@ -666,7 +710,7 @@ | Component | Material/effect scope | Reuse and invalidation | Fallback/accessibility | Evidence | |---|---|---|---|---| | Shared shell, Search, filters and Reader chrome | Existing single background-only Prismal source; small transient surfaces only | One root capture; one hidden glyph source only while expanded; stable policy state | Reduce Transparency disables blur/refraction; Reduce Motion snaps; TalkBack and 48dp controls retained | Source audit; device cost UNVERIFIED | -| You, Saved, stats and quiz question cards | Static supporting tint/rim or opaque content surfaces | Theme/material brushes remembered; no per-card live blur | Near-opaque high-contrast surfaces; font scaling | Source audit; frame/GPU/memory UNVERIFIED | +| You, Saved, stats and quiz question cards | Static supporting tint/rim or opaque content surfaces | Theme/material brushes remembered; no per-card live blur | Near-opaque high-contrast surfaces; Reduce Transparency raises opacity and static tint/rim floors; font scaling | Source audit; frame/GPU/memory UNVERIFIED | | Quiz answer controls | Static button tint/border; no live glass effect | Pure state/alpha policy; stable LazyColumn keys/content type | 52dp target; selected + stateDescription; reduced-transparency raises tint/rim | Four JVM policy tests added in Quiz batch; natural CI pending | | Quiz footer | One existing Prismal surface plus a 3dp determinate indicator | Progress derived from local selected-count; no timer/polling | Text count remains visible; buttons retain 48dp targets | Source audit; device smoothness UNVERIFIED | @@ -709,9 +753,9 @@ Recheck every branch head and dependency before each future implementation commi | Search results hierarchy | Plain status row + static control glass | One result/active-filter label beside the existing Filters action; no redundant inline live-glass slab | One 7dp blur/refraction panel removed; conditional filter sheet and morph field retained; device hierarchy unverified | | Explore category rail | Interactive control glass | One shared capsule; selected fill/border and >=48dp targets | 48dp target, selected semantics and Geography filter integrated | | Today / Explore / Search article cards | Editorial content + static glass-derived rim | Opaque/near-opaque cards, continuous corners, clear typography and image-derived ambient colour; no live blur | Shared 0.75dp theme-aware rim follows Clear↔Frosted and Reduce Transparency; skeletons use the same rim; single Coil request and same-bitmap palette | -| You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity now scales cached tint/rim tokens; no live blur; OPPO contrast unverified | -| Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` batch authored; one panel, three 48dp horizontal rails; selected filters and existing saved data semantics unchanged | -| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting cards use the same committed Clear↔Frosted tint/rim intensity; no live blur; summaries memoized | +| You dashboard | Supporting glass | Theme-aware translucent tint/rim, continuous 22dp geometry, single-line metric values | Static surface opacity preserves readability; shared Clear↔Frosted intensity scales cached tint/rim tokens; Reduce Transparency raises opacity and enforces static tint/rim floors; no live blur; OPPO contrast unverified | +| Saved | One shared interactive Prismal filter group + editorial cards | Date/GS/subject rails share one 22dp rounded control surface; story cards remain calm, high-contrast content | `GlassFilterGroup` uses one panel and three 48dp horizontal rails; supporting empty states share the reduced-transparency fallback; selected filters and saved data semantics unchanged | +| Reading / Quiz Stats | One shared interactive Prismal filter group + supporting glass data cards | Date/GS/subject controls use one small live-glass group; metric/day/attempt values stay high contrast | Supporting cards use the same Clear↔Frosted intensity plus the higher-opacity Reduce Transparency fallback; no per-card live blur; summaries memoized | | Reader toolbar | Primary floating glass | Back, source/date/status and compact Aa; direction-aware auto-hide plus short content-tap reveal while hidden | Implemented; tap preserves native links/selection; pinned during selection, definition, IME and accessibility states; device motion unverified | | Reader progress | Minimal indicator | Reuse existing saved progress; no polling or animated readback | Implemented in this batch | | Reader article canvas | Editorial content | Clear, high-contrast text; responsive max width and paragraph rhythm | Existing responsive CSS; keep non-glass | @@ -721,7 +765,7 @@ Recheck every branch head and dependency before each future implementation commi | Quiz answer controls | Interactive control glass (static tint/rim) | Distinguish idle/selected/correct/incorrect states with accessible feedback and 52dp targets | Static button fill/border only; no backdrop capture or per-option blur; policy tests cover states and reduced-transparency alpha | | Quiz action dock | Primary transient glass | Keep progress and submit/done actions reachable without obscuring questions | Reuses the existing single Prismal footer; one small progress track reads selected-count state; no polling or extra surface | | Quiz action controls | Interactive control glass | One compact glass identity/header and one safe-area-aware submission dock; keep Done/Submit discoverable | Implemented in the Quiz action-chrome batch; two small surfaces reuse the root backdrop | -| Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | One 5dp Prismal control preview plus a static SupportingGlassCard sample both reflect the preview intensity; slider state is child-scoped and commits app-wide only on release; device validation pending | +| Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | One 5dp Prismal control preview plus a static SupportingGlassCard sample reflect intensity and the reduced-transparency fallback; slider state is child-scoped and commits app-wide only on release; device validation pending | | Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | | Reader Aa menu | Interactive transient glass | Compact anchored text-size menu; preserve the existing 16–28sp actions and clamping | Same shared transient material, mounted only while expanded; font-size behaviour unchanged | | Other dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | From 0b32cb5c61b0d99c5456d578a78138e943663281 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 06:33:29 +0530 Subject: [PATCH 159/175] docs(glass): record supporting-surface CI and transient audit --- docs/BRANCH_CONSOLIDATION.md | 32 ++++++++++++++++++++++++++++++-- docs/LIQUID_GLASS_UI_ROADMAP.md | 19 ++++++++++--------- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 99fa935d..b44bf301 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,4 +1,32 @@ -# Latest live branch/PR/CI audit — 9 November 2026, 06:22 IST +# Latest post-change verification — 9 November 2026, 06:37 IST + +**Repository:** `Batmancpu/CurrentLens` +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` +**Current owner-selected branch/head:** `black-box-bihar-news@4a7389f728af0ad06a2013a795774cf60aad7b40` — **161 ahead / 0 behind main**; main is the merge base. +**Parent/source:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b`. +**PR #34:** open/draft → main, unmerged and unretargeted. + +## Live graph and dependency check + +- Complete inventory remains **47 remote branches** (page 1 = 47, page 2 = 0), **29 open PRs**, **15 closed PRs**. The 47-row table in the pre-change audit below is refreshed with the current black-box head; all other source branches remain untouched. +- PR #43 Reader lifecycle remains **11 ahead / 160 behind** and divergent; its safe disposal/restore-settle/fatal-cleanup code is already present. PR #37 Search repair, #30 48dp targets, #31 off-main appearance restore, #36 IST rollover and #13 conservative 8×8 contrast are represented; their branches remain divergent. PR #44 is closed/unmerged and its one-line rim repair is in the parent. +- PR #42 is editorial-only (**6/9**), PR #39 signing is owner-gated (**6/25**), PR #18 workflow-only is superseded (**1/160**), PR #16 remains divergent (**7/103**). `brrrNEWS` is **4/66**; old Liquid Glass performance is **3/178** and v0.3 redesign **0/254**. No alternate branch is a safer coherent baseline. + +## Exact-head natural CI + +- Actions history: **381** runs fully paginated (100 + 100 + 100 + 81): **241 success / 70 failure / 70 cancelled**; queued/in-progress **0**. +- Exact app implementation head `4a7389f728af0ad06a2013a795774cf60aad7b40` passed natural push [#380](https://github.com/Batmancpu/CurrentLens/actions/runs/42543142326) and pull-request [#381](https://github.com/Batmancpu/CurrentLens/actions/runs/42543146098). Both completed checkout, Java, signing cache, Android SDK/platform, Gradle, WordNet builder 4/4, 151,456-word database generation, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Full logs report BUILD SUCCESSFUL in 1m19s (push) and 1m16s (PR). Main-only Release jobs skipped. +- Push artifact #13642282050: **39,128,982 bytes**, SHA-256 `b201b9aa61f01c0dfd232db653a54ef2f1d904bbdd637409d427139df75e0bb2`, expires 23 November 2026 01:01:39 UTC. PR artifact #13642128139: **39,128,981 bytes**, SHA-256 `2f3458e5ce289bda03b9f63d1f0e2589773a711fab07f0db8086dd311cb16390`, expires 23 November 2026 01:01:43 UTC. +- The app-code head is CI-validated. This follow-up changes only roadmap/branch-ledger documentation; its own natural CI is pending after the documentation commit. + +## Workflow, Release and device limits + +- Black-box workflow remains read-only for build/test with a separate main-push-only Release-write job; main's own workflow remains push-only with workflow-wide `contents: write`. No workflow changes were made. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC); no Release was published by #380/#381. +- OPPO Reno10 launch/runtime, screenshots, TalkBack, font scaling, Reduce Motion, keyboard/IME, Reader re-entry, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. CI is not device/performance certification. + +--- +# Pre-change branch/PR/CI audit — 9 November 2026, 06:22 IST **Repository:** `Batmancpu/CurrentLens` **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` @@ -2320,7 +2348,7 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t | Remote branch | Exact head SHA | Latest commit (UTC) | Latest commit message | PR relationship | |---|---|---|---|---| | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 UTC | test(a11y): cover minimum icon action target | #30 open/draft → black-box-bihar-news | -| `black-box-bihar-news` | `18828f70e87a62fe3483dcc99fc29b82a6b7053b` | 2026-11-09 00:00:14 UTC | fix(ui): restore feed card rim and refresh integration ledger | #34 open/draft → main; current owner-selected integration head | +| `black-box-bihar-news` | `4a7389f728af0ad06a2013a795774cf60aad7b40` | 2026-11-09 00:59:39 UTC | ui(glass): apply reduced-transparency fallback to supporting surfaces | #34 open/draft → main; current owner-selected integration head | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 UTC | ui: consolidate lightweight supporting glass surfaces | base of #24 open/draft; older visual line | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 UTC | ci: validate pull requests with read-only build permissions | #18 open/draft → main | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 UTC | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box-bihar-news | diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 03dbd915..7752f182 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,6 +1,7 @@ # Live implementation batch — Reduce Transparency parity for supporting surfaces (9 November 2026, 06:22 IST) -**Verified source:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b` — **160 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. +**Verified parent/source:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b` — **160 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. +**Implementation head:** `black-box-bihar-news@4a7389f728af0ad06a2013a795774cf60aad7b40` — **161 ahead / 0 behind** main; PR #34 remains open/draft. **Target:** the existing open/draft PR #34 → `main`; unmerged and unretargeted. This is a direct child of the verified owner-selected integration head. ## Branch freshness and dependency gate @@ -13,11 +14,11 @@ ## Exact parent CI, Actions, workflow and Release -- All **379 Actions runs** were paginated (100 + 100 + 100 + 79): **239 success / 70 failure / 70 cancelled**. Queued and in-progress runs are both **0**. -- Exact source head `18828f70e87a62fe3483dcc99fc29b82a6b7053b` passed natural push run [#378](https://github.com/Batmancpu/CurrentLens/actions/runs/42537849730) and pull-request run [#379](https://github.com/Batmancpu/CurrentLens/actions/runs/42537853903). Both build jobs passed WordNet builder **4/4**, offline dictionary generation (**151,456 unique words; 50,950,144 bytes**), `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload. The PR job log reports **BUILD SUCCESSFUL in 1m 31s**; the push job reports **BUILD SUCCESSFUL in 1m 5s**. Both main-only publish jobs were skipped. -- PR artifact [#13640107491](https://github.com/Batmancpu/CurrentLens/actions/runs/42537853903/artifacts/13640107491): **39,128,629 bytes**, SHA-256 `46a70d172f84b29ae1526d71821244a43d758bb08008bb6c7d4a34ecf87481dc`, expires 23 November 2026 00:02:26 UTC. Push artifact #13640011669: **39,128,627 bytes**, SHA-256 `ae3c3aaa61fd17669d0248abc3703db561f0eea8c7599c27c741771ff4af6d7d`, expires 23 November 2026 00:01:59 UTC. +- All **381 Actions runs** were paginated (100 + 100 + 100 + 81): **241 success / 70 failure / 70 cancelled**. Queued and in-progress runs are both **0**. +- Parent head `18828f70e87a62fe3483dcc99fc29b82a6b7053b` passed #378/#379; the new implementation head `4a7389f728af0ad06a2013a795774cf60aad7b40` then passed natural push [#380](https://github.com/Batmancpu/CurrentLens/actions/runs/42543142326) and PR [#381](https://github.com/Batmancpu/CurrentLens/actions/runs/42543146098). Both #380/#381 build jobs passed WordNet builder **4/4**, offline dictionary generation (**151,456 unique words; 50,950,144 bytes**), `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload. Exact logs report **BUILD SUCCESSFUL in 1m 19s** (push) and **1m 16s** (PR); both main-only publish jobs were skipped. +- Current PR artifact [#13642128139](https://github.com/Batmancpu/CurrentLens/actions/runs/42543146098/artifacts/13642128139): **39,128,981 bytes**, SHA-256 `2f3458e5ce289bda03b9f63d1f0e2589773a711fab07f0db8086dd311cb16390`, expires 23 November 2026 01:01:43 UTC. Push artifact [#13642282050](https://github.com/Batmancpu/CurrentLens/actions/runs/42543142326/artifacts/13642282050): **39,128,982 bytes**, SHA-256 `b201b9aa61f01c0dfd232db653a54ef2f1d904bbdd637409d427139df75e0bb2`, expires 23 November 2026 01:01:39 UTC. Parent artifacts #13640107491/#13640011669 belong to #378/#379, not the current implementation head. - `.github/workflows/build-apk.yml` on black-box has read-only build/test permissions, natural push/PR validation for main, PR #16 and black-box, and a separate Release-write job restricted to main pushes. Main's own workflow remains push-only with workflow-wide `contents: write`; PR #16's workflow is also push-only and retains workflow-wide write permission. The natural #379 run validates PR #34's exact head, not main's workflow configuration. -- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was created by #378/#379. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was created by #380/#381. ## Implementation — supporting surfaces now honour Reduce Transparency @@ -29,16 +30,16 @@ | Component | Material tier / reason | Effect/capture delta | Reuse / fallback | Tests / evidence | |---|---|---|---|---| -| You / Saved / Reading Stats / Quiz Stats / Appearance supporting cards | Tier 3 quiet supporting tint/rim; keep metrics and data high contrast | **0** new Prismal passes, live blur/refraction, shader, capture/readback, graphics layer or image decode | Existing remembered shape/brushes; preference changes invalidate only derived static alpha/brush values; normal mode unchanged; reduced mode raises opacity/tint/rim | New JVM policy test covers dark/light, Clear/Frosted and fallback endpoints; exact-head natural CI pending; device cost unmeasured | +| You / Saved / Reading Stats / Quiz Stats / Appearance supporting cards | Tier 3 quiet supporting tint/rim; keep metrics and data high contrast | **0** new Prismal passes, live blur/refraction, shader, capture/readback, graphics layer or image decode | Existing remembered shape/brushes; one Reduce Transparency preference update changes only existing material consumers; normal mode unchanged; reduced mode raises opacity/tint/rim | New JVM policy test covers dark/light, Clear/Frosted and fallback endpoints; exact-head runs #380/#381 passed; device cost unmeasured | | Feed cards and skeletons | Tier 4 editorial content with a static glass-derived edge | **0** live blur/capture/readback; existing 0.75dp rim | Existing shared alpha policy and one Coil decode/palette path | Previous exact-head CI #378/#379 validates the parent rim batch only | - Render-pass delta: **0**. Added backdrop captures/readbacks, blur/refraction surfaces, shaders, graphics layers, image requests/decodes, dependencies, network calls, timers and persistence changes: **0**. Supporting cards remain near-opaque content surfaces; no per-card live glass was introduced. - This is a source-level fallback/consistency correction, not a measured performance improvement. OPPO Reno10 contrast, memory/allocation churn, frame timing/jank, GPU overdraw, thermal and battery remain **UNVERIFIED**. -- Focused JVM coverage was added in `GlassSurfacePolicyTest`; the new commit must receive its own natural CI run. Parent #378/#379 do not validate this new head. +- Focused JVM coverage was added in `GlassSurfacePolicyTest`; exact-head runs #380/#381 passed. This validates policy logic, compilation and APK assembly, not visual quality or runtime cost on OPPO. ## Next -- Inspect this commit's exact natural push and PR runs, full logs and artifact before another UI batch. Then audit remaining dialogs/sheets/menus and close any whole-app material inconsistency without adding blur to dense article/quiz content or duplicating the shared backdrop. +- The supporting-surface code head is validated by #380/#381. This documentation-only sync is a direct child of that tested head and must receive its own natural CI before the next app-code batch. Next implementation candidate: make the exported `DictionaryActivity` PROCESS_TEXT popup snap/fade when system animations are disabled, retaining its native window blur-behind and leaving Android's native text-selection/action-mode UI untouched. - OPPO Reno10 screenshots/runtime, launch stability, TalkBack, font scaling, Reduce Motion, keyboard/IME, Perfetto/frame timing, GPU overdraw, memory, thermal and battery remain **UNVERIFIED**. No device-performance or native-launch-fix claim is made. --- @@ -768,7 +769,7 @@ Recheck every branch head and dependency before each future implementation commi | Appearance settings | Standard settings surface + one interactive control-glass preview | Clear↔Frosted slider/presets, four-destination preview, readable article sample and low-effects switch | One 5dp Prismal control preview plus a static SupportingGlassCard sample reflect intensity and the reduced-transparency fallback; slider state is child-scoped and commits app-wide only on release; device validation pending | | Search filter sheet | Interactive transient glass | One rounded Prismal surface behind the active topic/GS/subject controls; filter state and reset semantics remain unchanged | Shared 5dp transient material; existing root backdrop only; device safe-area and drag behaviour unverified | | Reader Aa menu | Interactive transient glass | Compact anchored text-size menu; preserve the existing 16–28sp actions and clamping | Same shared transient material, mounted only while expanded; font-size behaviour unchanged | -| Other dialogs, menus and sheets | Contextual controls | Use glass only when transient context benefits; preserve native OS selection/share UI | Review individually; no global glass overlay | +| Other dialogs, menus and sheets | Contextual controls | Search filter sheet and Reader Aa menu each reuse one small PrismalTransientSurface; preserve native OS selection/share UI | Exported `DictionaryActivity` is an ACTION_PROCESS_TEXT target using Android `FLAG_BLUR_BEHIND` on API 31+ and a static high-contrast Surface fallback on older Android; do not add a second Prismal capture. Its spring enter/content-size motion still needs Reduce Motion gating | Source audit; window blur cost and motion unverified | ## Paired performance matrix From 21317fd4f3dc625c4e49ec598e59736e0a4b6237 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 07:31:12 +0530 Subject: [PATCH 160/175] a11y: respect system motion in dictionary popup --- .../currentlens/DictionaryActivity.kt | 32 ++++++++++---- .../currentlens/DictionaryMotionPolicy.kt | 10 +++++ .../currentlens/DictionaryMotionPolicyTest.kt | 17 ++++++++ docs/BRANCH_CONSOLIDATION.md | 25 +++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 42 +++++++++++++++++++ 5 files changed, 117 insertions(+), 9 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/DictionaryMotionPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/DictionaryMotionPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt b/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt index 46158422..d30b0a4d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt @@ -1,5 +1,6 @@ package com.mangoloads.currentlens +import android.animation.ValueAnimator import android.content.Context import android.database.sqlite.SQLiteDatabase import android.os.Build @@ -270,6 +271,15 @@ private fun DictionaryPopup(word: String, onClose: () -> Unit) { var loading by remember(word) { mutableStateOf(true) } var expanded by remember(word) { mutableStateOf(false) } val scrollState = rememberScrollState() + // This short-lived popup samples the platform animator setting once; no observer or timer is needed. + val animationsEnabled = remember { + DictionaryMotionPolicy.shouldUseAnimatedTransitions(ValueAnimator.areAnimatorsEnabled()) + } + val contentSizeMotion = if (animationsEnabled) { + Modifier.animateContentSize(spring(dampingRatio = 0.82f, stiffness = 480f)) + } else { + Modifier + } LaunchedEffect(word) { scrollState.scrollTo(0) result = DictionaryRepository.lookup(context, word) @@ -278,21 +288,25 @@ private fun DictionaryPopup(word: String, onClose: () -> Unit) { val definition = result AnimatedVisibility( visible = true, - enter = fadeIn() + scaleIn( - initialScale = 0.92f, - transformOrigin = TransformOrigin(0.5f, 1f), - animationSpec = spring(dampingRatio = 0.78f, stiffness = 520f) - ) + slideInVertically( - initialOffsetY = { it / 7 }, - animationSpec = spring(dampingRatio = 0.78f, stiffness = 520f) - ) + enter = if (animationsEnabled) { + fadeIn() + scaleIn( + initialScale = 0.92f, + transformOrigin = TransformOrigin(0.5f, 1f), + animationSpec = spring(dampingRatio = 0.78f, stiffness = 520f) + ) + slideInVertically( + initialOffsetY = { it / 7 }, + animationSpec = spring(dampingRatio = 0.78f, stiffness = 520f) + ) + } else { + androidx.compose.animation.EnterTransition.None + } ) { Box(Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) { Surface( modifier = Modifier.widthIn(max = DictionaryOverlayPolicy.MAX_WIDTH_DP.dp) .fillMaxWidth() .padding(horizontal = 12.dp, vertical = 8.dp) - .animateContentSize(spring(dampingRatio = 0.82f, stiffness = 480f)), + .then(contentSizeMotion), shape = RoundedCornerShape(26.dp), color = MaterialTheme.colorScheme.surface.copy( alpha = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) 0.86f else 0.94f diff --git a/app/src/main/java/com/mangoloads/currentlens/DictionaryMotionPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/DictionaryMotionPolicy.kt new file mode 100644 index 00000000..a3c84dcc --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/DictionaryMotionPolicy.kt @@ -0,0 +1,10 @@ +package com.mangoloads.currentlens + +/** + * Keeps the selection-definition popup aligned with Android's system animation preference. + * The caller supplies ValueAnimator.areAnimatorsEnabled() so this policy stays JVM-testable. + */ +object DictionaryMotionPolicy { + fun shouldUseAnimatedTransitions(systemAnimationsEnabled: Boolean): Boolean = + systemAnimationsEnabled +} diff --git a/app/src/test/java/com/mangoloads/currentlens/DictionaryMotionPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/DictionaryMotionPolicyTest.kt new file mode 100644 index 00000000..0147de7f --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/DictionaryMotionPolicyTest.kt @@ -0,0 +1,17 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class DictionaryMotionPolicyTest { + @Test + fun keepsSpringTransitionsWhenSystemAnimationsAreEnabled() { + assertTrue(DictionaryMotionPolicy.shouldUseAnimatedTransitions(true)) + } + + @Test + fun disablesSpringTransitionsWhenSystemAnimationsAreDisabled() { + assertFalse(DictionaryMotionPolicy.shouldUseAnimatedTransitions(false)) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index b44bf301..3bb4ea13 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,28 @@ +# Live branch-graph delta — 9 November 2026, 07:26 IST + +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Owner-selected integration:** `black-box-bihar-news@0b32cb5c61b0d99c5456d578a78138e943663281`, **162 ahead / 0 behind main**, merge base main; PR #34 open/draft, unmerged, base main. +**Complete live inventory:** **48 remote branches** (page 1 = 48, page 2 = 0), **30 open PRs**, **15 closed PRs**. The previous 47-row branch ledger remains below; the new branch entry is: + +| Branch | Head SHA | Commit timestamp (UTC) | Latest commit | PR relationship | +|---|---|---|---|---| +| `a11y/dictionary-popup-reduce-motion-2026-11-09` | `fbadd56e0e119cf70b865af8a58843190cce249d` | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | PR #45 open/draft → main; 3 ahead / 0 behind main; selectively ported to black-box, source branch untouched | + +## Relevant branch comparison and port decision + +- PR #45's exact three-file diff (`DictionaryActivity.kt`, new `DictionaryMotionPolicy.kt`, new `DictionaryMotionPolicyTest.kt`) was reviewed in full. Relative to the selected integration head it is **3 ahead / 162 behind**, with main as merge base. The active dictionary activity was byte-identical to main before the port, so the isolated changes apply without replacing later app logic. +- PR #43 Reader teardown is **11 ahead / 162 behind** this integration head, merge base main. Its release callback, settle-callback ownership and release guard already exist in the active code; the active test has stronger idempotency/no-retry and fatal-linkage assertions. No duplicate port. +- The active workflow remains read-only for build/test with an isolated main-push Release-write job. Main's workflow remains push-only with workflow-wide write permission. No workflow modification. +- Actions history is fully paginated: **383 runs**, **243 success / 70 failure / 70 cancelled**, no queued/in-progress runs. Exact active parent #382 (push) and #383 (pull_request) passed on `0b32cb5c61b0d99c5456d578a78138e943663281`; artifacts #13642327645 and #13642193205 are documented in the Liquid Glass roadmap. They do not validate the new motion-policy commit. +- Latest published Release remains `v0.2.0-build-116` (2026-11-06 11:18:59 UTC); no Release publication or main write occurred. + +## Write boundary + +The Reduce Motion change is applied only as a direct child of the verified `black-box-bihar-news` head and will update the existing PR #34. PR #45, PR #43, all other source branches, main, and repository settings remain untouched. No force update, merge, retarget, manual dispatch/rerun, source-branch deletion or Release publication. + + +--- + # Latest post-change verification — 9 November 2026, 06:37 IST **Repository:** `Batmancpu/CurrentLens` diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 7752f182..a3bf376d 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,45 @@ +# Live implementation batch — Dictionary popup system-motion compliance (9 November 2026, 07:26 IST) + +**Verified source:** `black-box-bihar-news@0b32cb5c61b0d99c5456d578a78138e943663281` — **162 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. PR #34 remains the single open/draft, unmerged consolidation PR to main. This batch is a direct first-parent child of that exact source; no new branch or PR is created. + +## Branch freshness and dependency gate + +- Re-enumerated the complete graph: **48 remote branches** (page 1 = 48, page 2 = 0), **30 open PRs**, **15 closed PRs**. Default branch remains main at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- Newest relevant independent UI/accessibility candidate: PR #45, `a11y/dictionary-popup-reduce-motion-2026-11-09@fbadd56e0e119cf70b865af8a58843190cce249d`, open/draft, based on main. Compare against the selected source is **3 ahead / 162 behind**, merge base main; its complete diff is exactly `DictionaryActivity.kt`, `DictionaryMotionPolicy.kt` and `DictionaryMotionPolicyTest.kt`. Before this port, active `DictionaryActivity.kt` was byte-for-byte identical to main (15,009 bytes), so no intervening integration behaviour was overwritten. Only this isolated motion policy, popup change and tests are ported; PR #45 and its source branch remain untouched. +- PR #43 Reader disposal remains divergent (**11 ahead / 162 behind**, merge base main). Its `AndroidView.onRelease`, tracked restore-settle cancellation and Exception-only release guard are already present in the active Reader. The active `ReaderWebViewReleaseGuardTest` additionally covers idempotent no-retry behaviour, independent cleanup after ordinary failures and fatal `LinkageError` propagation; no stale Reader/MainActivity patch was copied. +- PR #44 remains closed/unmerged with its one-line feed-card rim correction already represented. PR #37 Search clear compile repair, #30 48dp targets, #31 off-main Appearance preferences, #36 Asia/Kolkata rollover and #13 conservative shared adaptive-contrast policy remain represented. PR #39 signing is still owner-gated; RSS/parser/privacy/editorial branches remain independent. The older `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` lines are not valid replacement baselines. + +## Exact parent CI, Actions, workflow and Release + +- Parent exact head `0b32cb5c61b0d99c5456d578a78138e943663281` passed natural push [#382](https://github.com/Batmancpu/CurrentLens/actions/runs/42543492504) and pull-request [#383](https://github.com/Batmancpu/CurrentLens/actions/runs/42543497477). The PR build job completed checkout, Java, signing-key cache, Android SDK/platform, Gradle, WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK upload. Full log: **BUILD SUCCESSFUL in 1m 9s**; WordNet builder tests 4/4 and database 151,456 unique words. Both main-only Release jobs were skipped. +- PR artifact [#13642193205](https://github.com/Batmancpu/CurrentLens/actions/runs/42543497477/artifacts/13642193205): **39,128,981 bytes**, SHA-256 `ee845f2d6ba86f8200d9375e4eb56a4dff179f20b313760e50c14ef355144dc4`, expires 23 November 2026 01:05:23 UTC. Push artifact [#13642327645](https://github.com/Batmancpu/CurrentLens/actions/runs/42543492504/artifacts/13642327645): **39,128,982 bytes**, SHA-256 `927a5bd37a0710233a94c4e9fddc82a9ddb51b56a325c85b561ffe2ef52a1c5e`, expires 23 November 2026 01:05:26 UTC. These artifacts validate the parent head, not this new app-code commit. +- Actions history is fully paginated: **383 runs** (**243 success / 70 failure / 70 cancelled**), queued/in-progress **0**. The active integration workflow remains read-only for build/test with Release write isolated to main pushes. Main's own workflow remains push-only with workflow-wide `contents: write`. The next natural run on the new branch head is required; no dispatch or rerun is used. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026, 11:18:59 UTC). No Release is published by this task. + +## Implementation — transient dictionary popup honours system motion + +- `DictionaryPopup` now samples `ValueAnimator.areAnimatorsEnabled()` once per popup composition through `DictionaryMotionPolicy`. The app minimum SDK is 26, so the platform API is available without a compatibility dependency. +- When system animations are enabled, the existing spring fade/scale/slide entrance and content-size animation are preserved. When disabled, the popup uses `EnterTransition.None` and omits `animateContentSize`; no observer, timer, polling or settings persistence is added. A setting change while the popup is already open applies on its next opening. +- Added two pure JVM tests for enabled and disabled policy states. The existing word lookup `LaunchedEffect`, scroll/expand state, Copy path, offline WordNet repository, native Android text-selection/action-mode menu, window blur-behind, popup dimensions/shape, haptic feedback and high-contrast fallback are unchanged. + +## Paired visual/performance and accessibility strategy + +| Surface | Material / motion tier | Effect/capture scope | Reuse / fallback | Tests / measured status | +|---|---|---|---|---| +| PROCESS_TEXT dictionary popup | Tier 2 transient contextual surface; existing Android window blur-behind only | No new Prismal pass, blur, shader, capture/readback, graphics layer, decode or render surface; disabled mode removes the entrance/content-size animations | Existing 26dp rounded surface, API 31+ `FLAG_BLUR_BEHIND`, static high-contrast fallback on older Android | Two pure policy tests added; exact-head CI pending; OPPO visual/runtime unverified | + +- Render/capture delta: **0**. The disabled-motion path removes two animation behaviours; this is a source-level work reduction, not a measured frame-time, battery or memory improvement. +- Native Copy/Select/share ActionMode remains platform-owned and untouched. No new target or semantics change; existing popup controls and content remain unchanged. +- OPPO Reno10 popup appearance, system Reduce Motion mapping, TalkBack, font scaling, native selection/share interaction, frame timing/jank, memory/allocation churn, GPU overdraw, thermal and battery remain **UNVERIFIED**. CI success will validate compilation/JVM policy only, not device animation behaviour. + +## Next + +- Inspect the natural push and PR runs on the exact resulting commit, full job logs, APK artifact and PR diff before another app-code change. Then continue the whole-app material consistency pass across You/Saved/stats, Appearance and transient controls without adding per-card blur or another backdrop source. +- No main write, merge, retarget, force update, manual dispatch/rerun, Release publication, package/app identity change, or source-branch deletion. + + +--- + # Live implementation batch — Reduce Transparency parity for supporting surfaces (9 November 2026, 06:22 IST) **Verified parent/source:** `black-box-bihar-news@18828f70e87a62fe3483dcc99fc29b82a6b7053b` — **160 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. From 11b709aa9f357437fa7315035d4a383b79d7d4af Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 08:28:38 +0530 Subject: [PATCH 161/175] perf(ui): quiesce hidden compact navigation motion --- .../currentlens/FeedNavigationPolicy.kt | 4 ++ .../mangoloads/currentlens/MainActivity.kt | 29 +++++++---- .../currentlens/FeedNavigationPolicyTest.kt | 8 +++ docs/BRANCH_CONSOLIDATION.md | 27 ++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 51 +++++++++++++++++++ 5 files changed, 110 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt index 2f2621b5..06b10707 100644 --- a/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/FeedNavigationPolicy.kt @@ -15,6 +15,10 @@ internal object FeedNavigationPolicy { const val HIDE_THRESHOLD_DP = 44 const val SHOW_THRESHOLD_DP = 16 + /** The selected droplet exists only in expanded navigation and respects Reduce Motion. */ + fun shouldAnimateDroplet(compact: Boolean, reduceMotion: Boolean): Boolean = + !compact && !reduceMotion + fun update( state: FeedNavigationScrollState, deltaPx: Int, diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index e2c5b6e3..3d45515d 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2894,8 +2894,13 @@ private fun GlassTabBar( } LaunchedEffect(selectedTab, reduceMotion, compact) { dragHighlightIndex = null - if (reduceMotion) motion.snapToValue(selectedTab.toFloat()) - else motion.animateToValue(selectedTab.toFloat()) + if (FeedNavigationPolicy.shouldAnimateDroplet(compact, reduceMotion)) { + motion.animateToValue(selectedTab.toFloat()) + } else { + // The selected droplet is not composed in compact mode. Snap its + // retained position so no invisible spring continues behind the pill. + motion.snapToValue(selectedTab.toFloat()) + } } val highlightedIndex = dragHighlightIndex ?: selectedTab @@ -2913,15 +2918,21 @@ private fun GlassTabBar( reduceTransparency ) - val tabRipple = remember(animationScope, tabWidthPx, contentStartPx) { - PrismalPressRipple(animationScope) { size, _ -> - val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) - Offset(center, size.height / 2f) + val rippleEnabled = GlassOpticsPolicy.rippleEnabled(Build.VERSION.SDK_INT, reduceMotion) + val tabRipple = remember( + animationScope, tabWidthPx, contentStartPx, motion, compact, rippleEnabled + ) { + if (rippleEnabled && !compact) { + PrismalPressRipple(animationScope) { size, _ -> + val center = GlassTabGeometryPolicy.tabCenterPx(contentStartPx, motion.value, tabWidthPx) + Offset(center, size.height / 2f) + } + } else { + null } } - val rippleEnabled = GlassOpticsPolicy.rippleEnabled(Build.VERSION.SDK_INT, reduceMotion) - val rippleDrawModifier = if (rippleEnabled && !compact) tabRipple.modifier else Modifier - val rippleGestureModifier = if (rippleEnabled && !compact) tabRipple.gestureModifier else Modifier + val rippleDrawModifier = tabRipple?.modifier ?: Modifier + val rippleGestureModifier = tabRipple?.gestureModifier ?: Modifier val barAlpha = SearchMorphGeometryPolicy.tabBarAlpha(morphProgress) // One shared Prismal surface changes bounds with the existing bar. No duplicate diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt index 43fa2cea..fd4e8714 100644 --- a/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/FeedNavigationPolicyTest.kt @@ -6,6 +6,14 @@ import org.junit.Assert.assertTrue import org.junit.Test class FeedNavigationPolicyTest { + @Test + fun dropletAnimationIsDisabledWhenCompactOrReduceMotionIsEnabled() { + assertTrue(FeedNavigationPolicy.shouldAnimateDroplet(compact = false, reduceMotion = false)) + assertFalse(FeedNavigationPolicy.shouldAnimateDroplet(compact = true, reduceMotion = false)) + assertFalse(FeedNavigationPolicy.shouldAnimateDroplet(compact = false, reduceMotion = true)) + assertFalse(FeedNavigationPolicy.shouldAnimateDroplet(compact = true, reduceMotion = true)) + } + @Test fun downwardFeedScrollCompactsOnlyAfterHysteresisThreshold() { var state = FeedNavigationScrollState() diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 3bb4ea13..af7eb197 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,30 @@ +# Live branch/CI snapshot — 9 November 2026, 08:22 IST + +**Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +**Owner-selected integration:** `black-box-bihar-news@21317fd4f3dc625c4e49ec598e59736e0a4b6237`, **163 ahead / 0 behind main**, merge base main. PR #34 is open/draft, unmerged, base main. +**Complete inventory:** 48 remote branches (page 1 = 48, page 2 = 0), 30 open PRs, 15 closed PRs (PR page 2 empty). No source branch is deleted or modified by this pass. + +## Relevant branch treatment + +- PR #45 `a11y/dictionary-popup-reduce-motion-2026-11-09@fbadd56e0e119cf70b865af8a58843190cce249d`: 3 ahead / 163 behind active, main merge base. Its Dictionary popup system-motion policy is already in active commit `21317fd4f3dc625c4e49ec598e59736e0a4b6237`; source PR/branch untouched. +- PR #43 Reader WebView lifecycle: 11 ahead / 163 behind active, main merge base. Release callback, settle cancellation and Exception-only guard are present; active tests additionally cover idempotency/no-retry and fatal LinkageError propagation. No old MainActivity copied. +- PR #39 stable signing: 6 ahead / 28 behind active, base is an older black-box commit. Its workflow/Gradle change remains owner-gated on four private signing secrets, public certificate fingerprint and explicit uninstall/local-data migration approval. Not integrated into this UI pass. +- PR #30 touch-target policy, #31 off-main Appearance preferences, #36 Asia/Kolkata rollover and #37 Search RowScope repair are represented in the active code. Older `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` remain stale/divergent. RSS/parser/editorial/security branches remain separate. +- Active workflow: read-only build/test, natural push/PR validation on main, PR #16 and black-box, Release write isolated to main push. Main's own workflow remains push-only with workflow-wide contents:write. + +## Exact parent validation + +- Actions history: **385 runs**, 245 success / 70 failure / 70 cancelled; queued/in-progress 0. +- Exact parent `21317fd4f3dc625c4e49ec598e59736e0a4b6237`: natural push [#384](https://github.com/Batmancpu/CurrentLens/actions/runs/42548594972) and PR [#385](https://github.com/Batmancpu/CurrentLens/actions/runs/42548598591) both passed. WordNet builder 4/4; 151,456 unique words; `:app:testDebugUnitTest`, `:app:assembleDebug`, APK upload all passed; main-only Release jobs skipped. +- PR artifact #13644482167: 39,129,205 bytes; SHA-256 `55357f9ff060bd1881c42cba2465660c365ce5331bbe2e53882726c6158b0c62`; expires 23 November 2026 02:03:24 UTC. Push artifact #13644262080: 39,129,203 bytes; SHA-256 `84c7cfd962295ca61c3b5e01c3c6fed689810e75c1c8144223a225dfd9964c2e`; expires 23 November 2026 02:03:29 UTC. +- Latest published Release: `v0.2.0-build-116`, 6 November 2026 11:18:59 UTC. No Release published by this task. + +## Write boundary + +The next compact-navigation optimization is a first-parent child of the exact source above on `black-box-bihar-news` only. PR #34 remains the single draft consolidation target. No main write, merge, retarget, force update, workflow edit, manual dispatch/rerun, Release publication, package identity change or source-branch deletion. + +--- + # Live branch-graph delta — 9 November 2026, 07:26 IST **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index a3bf376d..3b7902cc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,54 @@ +# Live implementation batch — Quiesce hidden navigation motion in compact mode (9 November 2026, 08:22 IST) + +**Verified source:** `black-box-bihar-news@21317fd4f3dc625c4e49ec598e59736e0a4b6237` — **163 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. PR #34 remains the single open/draft, unmerged consolidation PR to main. This change is a direct first-parent child of the verified source; no new branch or PR is created. + +## Branch freshness and dependency gate + +- Complete inventory rechecked: **48 remote branches** (page 1 = 48, page 2 = 0), **30 open PRs**, **15 closed PRs** (PR page 2 empty). Default branch is still main at `73b8a0d1ba33503fede02db2c3c0af082d724a12`; PR #34 head exactly matched the source before this write. +- The latest independent UI/accessibility candidate, PR #45 `a11y/dictionary-popup-reduce-motion-2026-11-09@fbadd56e0e119cf70b865af8a58843190cce249d`, is **3 ahead / 163 behind** the active branch with main as merge base. Its three-file motion-policy change is already present in `21317fd`; no duplicate port. +- PR #43 Reader teardown is **11 ahead / 163 behind** from main. Its `AndroidView.onRelease`, settle-callback cancellation and exception-only cleanup are present in active code; the active tests additionally cover idempotent no-retry and fatal `LinkageError`. No divergent `MainActivity.kt` was copied. +- PR #39 stable signing is **6 ahead / 28 behind** the active line and changes the workflow/Gradle signing path. It remains owner-gated on private Actions secrets, public certificate pin and an explicit uninstall/local-data migration decision; it is not part of this UI baseline. PR #30 touch targets, #31 off-main Appearance restore, #36 IST rollover and #37 Search compile repair remain represented. Older `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are not replacement baselines. +- No source branch, main, workflow, package identity or repository setting is changed. + +## Exact parent CI, Actions, workflow and Release + +- The exact parent `21317fd4f3dc625c4e49ec598e59736e0a4b6237` passed natural push [#384](https://github.com/Batmancpu/CurrentLens/actions/runs/42548594972) and pull-request [#385](https://github.com/Batmancpu/CurrentLens/actions/runs/42548598591). Both build jobs passed checkout, Java, signing-key restore, Android SDK/platform, Gradle, WordNet builder/database, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Full logs: **BUILD SUCCESSFUL** in 1m 31s (push) and 1m 32s (PR); WordNet builder 4/4 and **151,456 unique words / 50,950,144 bytes**. Both main-only Release jobs were skipped. +- PR artifact [#13644482167](https://github.com/Batmancpu/CurrentLens/actions/runs/42548598591/artifacts/13644482167): **39,129,205 bytes**, SHA-256 `55357f9ff060bd1881c42cba2465660c365ce5331bbe2e53882726c6158b0c62`, expires 23 November 2026 02:03:24 UTC. Push artifact [#13644262080](https://github.com/Batmancpu/CurrentLens/actions/runs/42548594972/artifacts/13644262080): **39,129,203 bytes**, SHA-256 `84c7cfd962295ca61c3b5e01c3c6fed689810e75c1c8144223a225dfd9964c2e`, expires 23 November 2026 02:03:29 UTC. +- Actions history fully paginated: **385 runs** (**245 success / 70 failure / 70 cancelled**), queued/in-progress **0**. The integration workflow remains read-only for build/test with Release write isolated to main pushes; main's own workflow remains push-only with workflow-wide `contents: write`. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was published. + +## App-wide material audit before this pass + +- You, Saved empty states, Reading Stats, Quiz Stats and Appearance already share the quiet Tier 3 `SupportingGlassCard` tint/rim and common geometry. Saved/Stats filters remain grouped in one functional glass capsule; the Appearance preview uses one live Prismal surface with static child controls. No extra dashboard sheet or per-card blur is justified. +- Quiz header/footer already use the shared Tier 2 Prismal surface; question, option, explanation and result surfaces remain high-contrast content cards. Reader toolbar/Aa menu/completion/definition and Search/Explore controls already use the shared transient/control system. +- This pass therefore changes no material tokens or visible layout: it removes work that continued after the expanded navigation was no longer on screen. + +## Implementation — compact navigation becomes idle + +- `FeedNavigationPolicy.shouldAnimateDroplet(compact, reduceMotion)` is the single pure decision for whether the selected droplet may animate. +- When the bar compacts, the retained droplet position now snaps to the selected tab rather than running an invisible spring behind the compact pill. When expanded, normal motion remains; Reduce Motion still snaps. +- The `PrismalPressRipple` helper is now remembered only while expanded and ripple is enabled, and its keys include the actual motion object so a recreated spring cannot leave the ripple closure holding stale state. +- The existing one-bar morph, compact pill's accessible destination label, 48dp touch target, expanded-only hidden glyph capture/merged source, one root background-only backdrop, search anchor and feed-only eligibility are unchanged. + +## Paired optimization and tests + +| Component | Visual/material delta | Cost-control change | Evidence | +|---|---|---|---| +| Compact feed navigation | No visual change; one existing capsule | Cancels hidden droplet spring by snapping; does not instantiate an unused ripple helper; no second bar or source | Pure policy test covers expanded/compact × normal/Reduce Motion; exact-head CI pending | +| Expanded navigation | Existing droplet/ripple unchanged | Existing glyph source/merged backdrop remains expanded-only | Source audit; OPPO frame timing remains unverified | +| You/Saved/Stats/Appearance/Quiz | No material change | Reuses existing Tier 3/2 surfaces; no new capture, blur, decode or recomposition path | Full composable audit; no new render pass | + +- Render-pass/capture/readback delta: **0**. No blur, refraction, shader, graphics layer, sampler, bitmap readback, image decode, dependency, timer, persistence or network change. +- The removed spring/ripple-helper work is a source-level optimization only. No measured frame-time, allocation, GPU, memory, battery or thermal improvement is claimed. +- `FeedNavigationPolicyTest` adds the four-state motion gate. Existing scroll threshold/hysteresis, top reset, ineligible-screen and tracker tests remain unchanged. +- The exact new head requires its own natural push/PR run. No manual dispatch/rerun. OPPO Reno10 visual/motion, TalkBack, font scale, gesture-inset, frame timing, memory, GPU, thermal and battery checks remain **UNVERIFIED**. + +## Next + +Inspect the exact new-head natural CI jobs, complete logs and artifact before another app-code change. Then continue the whole-app transient-control audit; keep the Reader selection/IME/accessibility pins, one shared backdrop and the calm high-contrast article/data surfaces intact. + +--- + # Live implementation batch — Dictionary popup system-motion compliance (9 November 2026, 07:26 IST) **Verified source:** `black-box-bihar-news@0b32cb5c61b0d99c5456d578a78138e943663281` — **162 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. PR #34 remains the single open/draft, unmerged consolidation PR to main. This batch is a direct first-parent child of that exact source; no new branch or PR is created. From 52604e5046abc20dfa490c54587e79909d8f4458 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 09:33:58 +0530 Subject: [PATCH 162/175] docs: verify compact navigation CI and refresh branch inventory --- docs/BRANCH_CONSOLIDATION.md | 72 +++++++++++++++++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 29 +++++++++++++ 2 files changed, 101 insertions(+) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index af7eb197..659c7e3d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,75 @@ +## Complete remote-branch inventory — 9 November 2026, 09:27 IST + +GitHub branch API and branch-search pagination both exhausted: **49 remote branches** (49 on the first page, zero on the second). Open PRs: **31**; closed PRs: **15**. Times below are commit timestamps in UTC. Relationships distinguish an open PR head/base from closed or merged history; branch refs are preserved. + +| Branch | Head SHA | Latest commit (UTC) | Latest commit message | PR relationship | +|---|---|---:|---|---| +| `a11y/dictionary-popup-reduce-motion-2026-11-09` | `fbadd56e0e119cf70b865af8a58843190cce249d` | 2026-11-09 01:33:20 | `test: cover dictionary popup Reduce Motion policy` | PR #45 open head; base main | +| `a11y/dictionary-popup-reduce-transparency-2026-11-09` | `55afb9ab662d2926675f0a57737d3f817b1fc2cb` | 2026-11-09 02:58:11 | `Honor Reduce Transparency in dictionary popup` | PR #46 open head; base black-box | +| `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 | `test(a11y): cover minimum icon action target` | PR #30 open head; base black-box | +| `black-box-bihar-news` | `11b709aa9f357437fa7315035d4a383b79d7d4af` | 2026-11-09 02:58:38 | `perf(ui): quiesce hidden compact navigation motion` | PR #34 open head; base of open #46,#42,#39,#38,#37,#36,#35,#33,#32,#31,#30,#29,#27,#26,#25,#11 | +| `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | `ui: consolidate lightweight supporting glass surfaces` | Base of open PR #24 | +| `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | `ci: validate pull requests with read-only build permissions` | PR #18 open head | +| `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | `ci: restore Android SDK setup before sdkmanager` | PR #20 closed/merged into black-box | +| `docs/ai-agent-handoff-2026-11-06` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | `Correct icon artwork accessibility name to brrrNews` | PR #14 closed/unmerged; same head as main | +| `feat/gs1-geography-editorial-coverage` | `ca66fa1c865514a86c655a4b6c7eaf16b4681f81` | 2026-11-06 10:53:35 | `fix: refresh article card metadata when feed content changes` | PR #6 open head | +| `fix/atom-alternate-link-selection-2026-11-06` | `cdf4c3846dde1c05894284e48b8f7d69cb7541ad` | 2026-11-06 09:14:27 | `fix: select Atom article alternate links deterministically` | PR #12 open head | +| `fix/cache-publication-date-integrity-2026-11-06` | `be5151e674c2bd4fa9beb166fc38ddf622781f84` | 2026-11-06 14:26:32 | `feat: expose publication date and publisher RSS provenance on cards` | PR #11 open head; base black-box | +| `fix/early-startup-crash-diagnostics-2026-11-06` | `ebea0aac68ce2cf17aad376304f7915fe937e807` | 2026-11-08 15:11:25 | `docs: record off-main diagnostics verification [skip ci]` | PR #16 open head | +| `fix/editorial-action-gate-blackbox-2026-11-07` | `2468ed33326ac7310a2ddd5f993495e4051245b8` | 2026-11-08 03:30:19 | `test(editorial): cover reality TV and television promotion` | PR #27 open head; base black-box | +| `fix/editorial-heatwave-bill-signals-2026-11-07` | `89464104e300f48da10e3e32e33715cbe2405084` | 2026-11-06 22:05:40 | `Verify a specific parliamentary bill remains eligible for the GS II feed` | PR #21 open head | +| `fix/editorial-policy-exception-guard-2026-11-07` | `1f7a3c2a7b74cc02cfee6fe451f4576feb291acf` | 2026-11-07 04:46:47 | `fix(editorial): match policy action and target as separate words` | PR #24 open head | +| `fix/editorial-signal-count-test` | `4738690d6e7f6c7c02a621742f25d5ebf1d631fb` | 2026-11-06 05:16:32 | `test: align economy signal count with repo-rate mapping` | PR #2 merged | +| `fix/editorial-token-boundaries-2026-11-06` | `0045c24637f162f1c13dceb1f8878f42f6eb15fd` | 2026-11-06 02:34:28 | `fix: tighten UPSC editorial signal matching` | PR #1 merged | +| `fix/feed-card-rim-wiring-2026-11-09` | `3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895` | 2026-11-08 23:20:44 | `fix(ui): wire feed card rim to the correct card scope` | PR #44 closed/unmerged | +| `fix/gst-council-syllabus-disambiguation-2026-11-08` | `2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8` | 2026-11-08 16:43:45 | `docs(editorial): fix baseline paragraph spacing` | PR #42 open head; base black-box | +| `fix/navigation-icon-imports-2026-11-06` | `fa8868940c08ed5b4a9def014a850e8a9dcb3490` | 2026-11-06 06:27:06 | `fix: use supported calendar navigation glyph` | PR #5 merged | +| `fix/parliamentary-syllabus-signal-gate-2026-11-07` | `9d754953a29c0355ce55306ce4fd5463193c9dbb` | 2026-11-07 03:49:44 | `test: preserve Parliament bill headline variants` | PR #23 merged | +| `fix/publisher-redirect-allowlist-2026-11-06` | `83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306` | 2026-11-06 12:15:39 | `Validate RSS redirects against publisher allowlists` | PR #15 closed/unmerged | +| `fix/quiz-option-selected-semantics-compile-2026-11-07` | `6f9b3c1e1a484233721863d0b736734c0d282cd5` | 2026-11-07 08:12:10 | `fix(quiz): qualify selected semantics receiver` | PR #28 merged | +| `fix/release-reader-webview-resources-2026-11-09` | `e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c` | 2026-11-08 21:25:23 | `test(reader): cover independent cleanup after repeated failures` | PR #43 open head | +| `fix/resolve-relative-atom-links-2026-11-07` | `c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4` | 2026-11-07 14:59:24 | `test(rss): correct relative xml base fixture` | PR #33 open head; base black-box | +| `fix/rss-image-host-allowlist-2026-11-07` | `7a51c9c2c40aa89997db55194a6db3d0d65ac95d` | 2026-11-07 06:28:46 | `test(reader): cover publisher-only image resources` | PR #25 open head; base black-box | +| `fix/rss-tracking-variant-dedup-2026-11-06` | `2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b` | 2026-11-06 16:42:29 | `fix: deduplicate RSS tracking URL variants` | PR #17 open head | +| `fix/search-clear-row-scope-compile-2026-11-08` | `9dd4ceac08e88e6ee4ea565025a70539a6e9e331` | 2026-11-07 21:55:56 | `docs: record verified search clear compile repair` | PR #37 open head; base black-box | +| `fix/search-glass-theme-capture-2026-11-06` | `c514eff3d5fd266ce6b6ecec51a141055e5fa52e` | 2026-11-06 07:44:03 | `fix: capture Search glass tint before draw callback` | PR #10 merged | +| `fix/stable-release-signing-2026-11-08` | `4250de5040a8ca0efbf96a990218ef7d69ef26e8` | 2026-11-08 07:03:31 | `docs: record stable signing validation and migration gate` | PR #39 open head; base older black-box SHA | +| `fix/startup-crash-diagnostics-feed-jank-2026-11-06` | `5da4e789b0f49c0eefda024410ade34c1e0f2a7c` | 2026-11-06 07:39:53 | `fix: diagnose launch crashes and move feed indexing off main` | PR #9 merged | +| `fix/startup-stability-performance-2026-11-06` | `654e660347de692ef88531dfa49c610269d69671` | 2026-11-06 07:18:06 | `fix: harden cold start and reduce feed rendering workload` | PR #7 merged | +| `fix/today-ist-midnight-rollover-2026-11-08` | `5fbd14e6ef9be33d04a882ba463d4c72473419e2` | 2026-11-07 20:48:43 | `test(today): cover Asia/Kolkata midnight rollover` | PR #36 open head; base black-box | +| `fix/validate-rss-article-hosts-2026-11-08` | `552b96e7948ac5ade821a711ea8dd225984824a9` | 2026-11-08 10:34:28 | `fix(rss): keep redirect result non-null` | PR #40 open head | +| `main` | `73b8a0d1ba33503fede02db2c3c0af082d724a12` | 2026-11-06 11:16:35 | `Correct icon artwork accessibility name to brrrNews` | Default; base of open #34,#45,#43,#41,#40,#21,#18,#17,#16,#13,#12,#8,#6 | +| `perf/bound-rss-entry-parsing-2026-11-08` | `adade1ed8494c66b7e567de87f61f3dac3da7788` | 2026-11-08 03:31:36 | `fix(test): correct RSS budget test identifier` | PR #38 open head; base black-box | +| `perf/bound-rss-field-values-2026-11-08` | `39acde8373eb3405f655e052ccd3445f22eedebb` | 2026-11-08 14:39:53 | `test(rss): reject non-editorial XHTML script and style text` | PR #41 open head | +| `perf/bound-startup-diagnostic-reads-2026-11-07` | `c4a977831846224182f16981b15e5c803761e26d` | 2026-11-07 17:34:16 | `Record successful bounded-diagnostic CI` | PR #35 open head; base black-box | +| `perf/bounded-read-history-2026-11-07` | `910178af3f595993557533cb65d03e714bcd7760` | 2026-11-06 23:53:04 | `Verify legacy markers survive recent-history retention` | PR #22 open head; base PR #8 branch | +| `perf/bounded-rss-fetch-concurrency-2026-11-07` | `8c56c98c83cc69451f128aa259df86a8ce28f43a` | 2026-11-07 11:29:26 | `docs: record bounded RSS fetch review and CI state` | PR #32 open head; base black-box | +| `perf/off-main-appearance-preferences-2026-11-07` | `bc48daec98ff076c9db3c2c69084d9b08cd0bbce` | 2026-11-07 11:11:45 | `fix(startup): keep appearance snapshot API module-internal` | PR #31 open head; base black-box | +| `perf/off-main-bookmark-persistence-2026-11-07` | `a64857b5efa62ea053c0c96e5f374fd35924b340` | 2026-11-07 09:05:25 | `perf(storage): move bookmark mutations off the UI thread` | PR #29 open head; base black-box | +| `perf/off-main-session-persistence-2026-11-06` | `ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a` | 2026-11-06 10:50:31 | `perf: move read-marker persistence off main thread` | PR #8 open head; base of open PR #22 | +| `privacy/webview-publisher-subresource-gate-2026-11-07` | `b8d2ef9ff2413c378347986d00961c401dfa771d` | 2026-11-07 07:27:22 | `privacy: block third-party publisher reader subresources` | PR #26 open head; base black-box | +| `redesign/v0.3-search-reader` | `654cc89dee4f93fea98bb76df9d8cf88abf2f0d8` | 2026-11-03 15:31:48 | `fix: make selection decoding fallback valid JSON` | No open PR; stale | +| `ui/foreground-adaptive-glass-contrast-2026-11-06` | `3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264` | 2026-11-06 10:56:16 | `ui: restore low-cadence foreground adaptive glass contrast` | PR #13 open head | +| `ui/liquid-glass-performance-2026-11-06` | `2e9c7f62ca65a899e18d9026e1535392835b3724` | 2026-11-06 06:25:39 | `fix: import bottom navigation glyphs` | PR #4 closed/unmerged; PR #3 merged at earlier branch SHA | +| `ui/liquid-glass-system-2026-11-07` | `1f7cd2e5ddc5d169d1443035a8334538e44efc40` | 2026-11-06 20:11:36 | `docs(reader): record native selection collision guard` | PR #19 merged into black-box | +| `ui/liquid-glass-system-continuation-2026-11-07` | `f031bf21229f43a992384cc23fa0f4da57e547a1` | 2026-11-07 03:18:34 | `fix: finish syllabus metadata and thin-film feed eligibility` | No PR; older/superseded line | + +## Baseline and branch-comparison decisions + +- `black-box-bihar-news@11b709aa9f357437fa7315035d4a383b79d7d4af` remains the freshest coherent UI/integration baseline: **164 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 is the single open/draft consolidation PR to main. +- PR #46 is **3 ahead / 1 behind** the active branch, merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`; its 3-file Dictionary popup diff is disjoint from the one intervening compact-navigation commit. Its exact head passed natural PR run #386; it is a safe candidate for a selective port, not a reason to change the active baseline. +- PR #45 is **3 ahead / 164 behind** active; its system Reduce Motion policy is already represented in current `DictionaryActivity.kt`, so do not duplicate it. PR #43 is **11 ahead / 164 behind** and changes `MainActivity.kt` plus Reader WebView release guard/tests; inspect and reconcile the full lifecycle diff before any port. PR #39 is **6 ahead / 29 behind** and changes signing/workflow/Gradle; remain owner-gated. PR #42 is editorial-only (**6 ahead / 13 behind**). +- PRs #41/#40/#38/#37/#36/#35/#33/#32/#31/#30/#29/#27/#26/#25/#22/#21/#18/#17/#16/#13/#12/#11/#8/#6 are independent/diverged or stacked on older bases; their exact changed-file lists and base SHAs were inspected. Do not cherry-pick old MainActivity or workflow files blindly. Closed PR #44's feed-rim branch differs by one MainActivity line; the active source has its own implementation and no wholesale copy is justified. +- `brrrNEWS`, `ui/liquid-glass-performance-2026-11-06`, `redesign/v0.3-search-reader` and `ui/liquid-glass-system-continuation-2026-11-07` are not fresher replacements. `fix/stable-release-signing-2026-11-08` remains blocked on private secrets, public certificate pin and explicit migration approval. + +## Exact active-head verification + +- Natural push [#387](https://github.com/Batmancpu/CurrentLens/actions/runs/42553818311) and PR [#388](https://github.com/Batmancpu/CurrentLens/actions/runs/42553822996) passed on exact active head `11b709aa9f357437fa7315035d4a383b79d7d4af`; WordNet builder 4/4, 151,456 unique words, `:app:testDebugUnitTest`, `:app:assembleDebug`, and APK artifact upload succeeded. Artifacts #13646871125 and #13647065278; details are recorded in the Liquid Glass roadmap. +- Actions history fully paginated: **388 runs** (248 success / 70 failure / 70 cancelled), queued/in-progress **0**. Active workflow is read-only for build/test; Release write is isolated to main pushes. Main's own workflow remains push-only with `contents: write`. +- Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was published by this task. +- OPPO Reno10 runtime, visual, accessibility, frame-time, memory, GPU, thermal and battery verification remain **UNVERIFIED**. + +--- # Live branch/CI snapshot — 9 November 2026, 08:22 IST **Default:** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 3b7902cc..233584f8 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,32 @@ +# Live CI verification — compact navigation idle (9 November 2026, 09:27 IST) + +**Verified active source:** `black-box-bihar-news@11b709aa9f357437fa7315035d4a383b79d7d4af`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is the merge base, **164 ahead / 0 behind**. PR #34 remains open/draft, unmerged, targeting main. No UI source change is made in this verification pass. + +## Exact natural CI — passed + +- Push run [#387](https://github.com/Batmancpu/CurrentLens/actions/runs/42553818311) and PR run [#388](https://github.com/Batmancpu/CurrentLens/actions/runs/42553822996) both tested the exact head `11b709aa9f357437fa7315035d4a383b79d7d4af`; both build jobs passed all steps. +- Both ran the WordNet builder tests **4/4**, generated **151,456 unique words / 50,950,144 bytes**, completed `:app:testDebugUnitTest` and `:app:assembleDebug`, and reported **BUILD SUCCESSFUL** (push 1m 29s; PR 1m 32s). APK artifact upload succeeded. +- Push artifact [#13646871125](https://github.com/Batmancpu/CurrentLens/actions/runs/42553818311/artifacts/13646871125): **39,129,203 bytes**, SHA-256 `330577218285c23dd822290ba4237a08fd2bdc2d024ec216726a6fcb41be49c6`, expires 23 November 2026 03:00:50 UTC. PR artifact [#13647065278](https://github.com/Batmancpu/CurrentLens/actions/runs/42553822996/artifacts/13647065278): **39,129,208 bytes**, SHA-256 `9b9e40f7cbdef31ab692de96cb5c32eefb3d504c30148e6b272758d4d04a96fe`, expires 23 November 2026 03:01:02 UTC. +- Both main-only Release jobs were skipped. No manual dispatch/rerun, Release publication, merge, retarget, or main write occurred. + +## Freshness and candidate review + +- Complete live inventory: **49 remote branches**, **31 open PRs**, **15 closed PRs**. The complete branch/head/commit/PR relationship table is recorded in `docs/BRANCH_CONSOLIDATION.md` below this entry. +- PR #46 `a11y/dictionary-popup-reduce-transparency-2026-11-09@55afb9ab662d2926675f0a57737d3f817b1fc2cb` is **3 ahead / 1 behind** this active head, merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`. Its complete diff is limited to `DictionaryActivity.kt`, new `DictionarySurfacePolicy.kt`, and `DictionarySurfacePolicyTest.kt`; it does not overlap the intervening compact-navigation commit. Exact PR run [#386](https://github.com/Batmancpu/CurrentLens/actions/runs/42553804992) passed `:app:testDebugUnitTest` and `:app:assembleDebug`, generated the same WordNet database, and uploaded artifact #13646383188 (39,131,459 bytes). The current DictionaryActivity was reviewed in full: it already contains the separately integrated `DictionaryMotionPolicy`; the proposed change restores Reduce Transparency on IO, fails closed to an opaque popup, and only enables API 31+ blur after the saved preference is known. This is the next isolated port candidate; its source branch and PR remain untouched. +- PR #45's dictionary system-motion policy is already present in the active DictionaryActivity; no duplicate port. PR #43 remains a separate Reader WebView lifecycle delta with MainActivity overlap and requires a dedicated full-file reconciliation before any port. PR #39 signing changes remain owner-gated. Old `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are not newer baselines. +- Active workflow `.github/workflows/build-apk.yml` uses read-only build/test permissions and isolates Release write to main pushes; main's own workflow remains push-only with workflow-wide `contents: write`. No workflow file changed. +- Actions history fully paginated: **388 runs** (**248 success / 70 failure / 70 cancelled**), queued/in-progress **0**. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). + +## Performance and device status + +- The verified compact-navigation change adds/removes **zero** render passes, blur/refraction effects, samplers, readbacks, image decodes, dependencies or timers; it quiesces the hidden droplet spring and avoids constructing an unused ripple helper while compact. CI validates compile/JVM behaviour only; no measured frame-time or resource improvement is claimed. +- OPPO Reno10 runtime, screenshots, animation smoothness, TalkBack, font scaling, IME/gesture insets, Perfetto/frame timing, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. + +## Next + +After this exact-head verification, port only the isolated PR #46 Reduce Transparency policy into `black-box-bihar-news`, preserving the existing Reduce Motion path, offline WordNet, native Android selection/action mode, and the single shared backdrop. Recheck the branch head and PR diff immediately before the write; require the new exact-head natural CI before another UI batch. + +--- # Live implementation batch — Quiesce hidden navigation motion in compact mode (9 November 2026, 08:22 IST) **Verified source:** `black-box-bihar-news@21317fd4f3dc625c4e49ec598e59736e0a4b6237` — **163 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. PR #34 remains the single open/draft, unmerged consolidation PR to main. This change is a direct first-parent child of the verified source; no new branch or PR is created. From 8c59dcc48dccc2bbfcba5d47337a8884f51a4356 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 10:35:19 +0530 Subject: [PATCH 163/175] a11y: respect Reduce Transparency in dictionary popup --- .../currentlens/DictionaryActivity.kt | 47 +++++++++++++---- .../currentlens/DictionarySurfacePolicy.kt | 36 +++++++++++++ .../DictionarySurfacePolicyTest.kt | 52 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 15 ++++-- docs/LIQUID_GLASS_UI_ROADMAP.md | 44 ++++++++++++++++ 5 files changed, 181 insertions(+), 13 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/DictionarySurfacePolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/DictionarySurfacePolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt b/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt index d30b0a4d..fe878fec 100644 --- a/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/DictionaryActivity.kt @@ -221,17 +221,41 @@ class DictionaryActivity : ComponentActivity() { window?.setBackgroundDrawableResource(android.R.color.transparent) window?.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND) window?.attributes = window?.attributes?.apply { dimAmount = 0.08f } - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { - // Blur-behind samples the whole app window, unlike a blur confined to this popup. - window?.addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND) - window?.attributes = window?.attributes?.apply { - blurBehindRadius = (resources.displayMetrics.density * 24f).toInt() - } - } window?.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT) window?.decorView?.performHapticFeedback(HapticFeedbackConstants.CLOCK_TICK) window?.setGravity(Gravity.BOTTOM) setContent { + // Fail closed to an opaque, unblurred surface until the saved preference is + // restored. SharedPreferences is read on IO because it shares a file with + // the app's article and study data. + var reduceTransparency by remember { mutableStateOf(true) } + LaunchedEffect(Unit) { + val restored = withContext(Dispatchers.IO) { + LocalStore.reduceTransparency(applicationContext) + } + reduceTransparency = restored + val appearance = DictionarySurfacePolicy.resolve( + reduceTransparency = restored, + supportsBlurBehind = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S + ) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + if (appearance.blurBehindEnabled) { + // Blur-behind samples the whole app window, unlike a blur confined to this popup. + window?.addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND) + window?.attributes = window?.attributes?.apply { + blurBehindRadius = (resources.displayMetrics.density * 24f).toInt() + } + } else { + window?.clearFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND) + } + } + } + val surfaceAppearance = remember(reduceTransparency) { + DictionarySurfacePolicy.resolve( + reduceTransparency = reduceTransparency, + supportsBlurBehind = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S + ) + } val dark = androidx.compose.foundation.isSystemInDarkTheme() MaterialTheme( colorScheme = if (dark) { @@ -258,14 +282,17 @@ class DictionaryActivity : ComponentActivity() { ) } ) { - DictionaryPopup(word.ifBlank { "Select one word" }) { finish() } + DictionaryPopup( + word = word.ifBlank { "Select one word" }, + surfaceAlpha = surfaceAppearance.surfaceAlpha + ) { finish() } } } } } @Composable -private fun DictionaryPopup(word: String, onClose: () -> Unit) { +private fun DictionaryPopup(word: String, surfaceAlpha: Float, onClose: () -> Unit) { val context = LocalContext.current var result by remember(word) { mutableStateOf(null) } var loading by remember(word) { mutableStateOf(true) } @@ -309,7 +336,7 @@ private fun DictionaryPopup(word: String, onClose: () -> Unit) { .then(contentSizeMotion), shape = RoundedCornerShape(26.dp), color = MaterialTheme.colorScheme.surface.copy( - alpha = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) 0.86f else 0.94f + alpha = surfaceAlpha ), contentColor = MaterialTheme.colorScheme.onSurface, tonalElevation = 0.dp, diff --git a/app/src/main/java/com/mangoloads/currentlens/DictionarySurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/DictionarySurfacePolicy.kt new file mode 100644 index 00000000..7cc8906d --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/DictionarySurfacePolicy.kt @@ -0,0 +1,36 @@ +package com.mangoloads.currentlens + +/** + * Resolves the dictionary popup's surface treatment from the app's saved + * Reduce Transparency preference and the platform's blur-behind capability. + * + * The reduced mode is deliberately opaque and never requests window blur. + */ +internal data class DictionarySurfaceAppearance( + val blurBehindEnabled: Boolean, + val surfaceAlpha: Float +) + +internal object DictionarySurfacePolicy { + const val REDUCED_TRANSPARENCY_ALPHA = 0.985f + const val MODERN_GLASS_ALPHA = 0.86f + const val LEGACY_SURFACE_ALPHA = 0.94f + + fun resolve( + reduceTransparency: Boolean, + supportsBlurBehind: Boolean + ): DictionarySurfaceAppearance = when { + reduceTransparency -> DictionarySurfaceAppearance( + blurBehindEnabled = false, + surfaceAlpha = REDUCED_TRANSPARENCY_ALPHA + ) + supportsBlurBehind -> DictionarySurfaceAppearance( + blurBehindEnabled = true, + surfaceAlpha = MODERN_GLASS_ALPHA + ) + else -> DictionarySurfaceAppearance( + blurBehindEnabled = false, + surfaceAlpha = LEGACY_SURFACE_ALPHA + ) + } +} diff --git a/app/src/test/java/com/mangoloads/currentlens/DictionarySurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/DictionarySurfacePolicyTest.kt new file mode 100644 index 00000000..a3f957a7 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/DictionarySurfacePolicyTest.kt @@ -0,0 +1,52 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class DictionarySurfacePolicyTest { + @Test + fun reducedTransparencyDisablesBlurAndUsesOpaqueSurfaceOnModernAndroid() { + val appearance = DictionarySurfacePolicy.resolve( + reduceTransparency = true, + supportsBlurBehind = true + ) + + assertFalse(appearance.blurBehindEnabled) + assertEquals(0.985f, appearance.surfaceAlpha, 0f) + } + + @Test + fun normalAppearanceKeepsBlurBehindOnSupportedAndroid() { + val appearance = DictionarySurfacePolicy.resolve( + reduceTransparency = false, + supportsBlurBehind = true + ) + + assertTrue(appearance.blurBehindEnabled) + assertEquals(0.86f, appearance.surfaceAlpha, 0f) + } + + @Test + fun normalAppearanceKeepsExistingOpaqueFallbackOnOlderAndroid() { + val appearance = DictionarySurfacePolicy.resolve( + reduceTransparency = false, + supportsBlurBehind = false + ) + + assertFalse(appearance.blurBehindEnabled) + assertEquals(0.94f, appearance.surfaceAlpha, 0f) + } + + @Test + fun reducedTransparencyNeverEnablesBlurOnOlderAndroid() { + val appearance = DictionarySurfacePolicy.resolve( + reduceTransparency = true, + supportsBlurBehind = false + ) + + assertFalse(appearance.blurBehindEnabled) + assertEquals(0.985f, appearance.surfaceAlpha, 0f) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 659c7e3d..f3e871b2 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,12 @@ +## Live verification and implementation — 9 November 2026, 10:31 IST + +- Complete remote inventory refreshed: **49 branches**, **31 open PRs**, **15 closed PRs**; page 2 was empty for all three collections. Default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; active `black-box-bihar-news@52604e5046abc20dfa490c54587e79909d8f4458`, **165 ahead / 0 behind**, main is merge base. PR #34 remains the sole open/draft consolidation PR to main. +- Active head commit: `docs: verify compact navigation CI and refresh branch inventory` (2026-11-09 04:03:58 UTC). The full branch/head/commit/PR table is updated below. +- PR #46 source `55afb9ab662d2926675f0a57737d3f817b1fc2cb` shares merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`; active branch is 2 ahead, source is 3 ahead. Their changed files are disjoint: active delta touches FeedNavigationPolicy/MainActivity/tests/docs; PR #46 touches DictionaryActivity and its new policy/test. The Reduce Transparency patch is ported onto the active branch only; PR #46 and its source branch remain untouched. +- Exact parent CI: push #389 and PR #390 passed on `52604e5046abc20dfa490c54587e79909d8f4458`; WordNet builder 4/4, 151,456 words, JVM tests, debug APK assembly and artifact upload succeeded. Artifacts #13649280497 and #13649007271; Release jobs skipped. The new port requires its own natural CI. +- Actions: **390 total** (250 success / 70 failure / 70 cancelled), queued/in-progress 0. Latest Release remains `v0.2.0-build-116`. Workflow build/test permissions remain read-only; Release write remains isolated to main pushes. +- No main write, merge, retarget, force update, workflow dispatch/rerun, Release publication, package identity change or source-branch mutation. OPPO Reno10 visual/runtime/accessibility/performance/battery verification remains **UNVERIFIED**. + ## Complete remote-branch inventory — 9 November 2026, 09:27 IST GitHub branch API and branch-search pagination both exhausted: **49 remote branches** (49 on the first page, zero on the second). Open PRs: **31**; closed PRs: **15**. Times below are commit timestamps in UTC. Relationships distinguish an open PR head/base from closed or merged history; branch refs are preserved. @@ -7,7 +16,7 @@ GitHub branch API and branch-search pagination both exhausted: **49 remote branc | `a11y/dictionary-popup-reduce-motion-2026-11-09` | `fbadd56e0e119cf70b865af8a58843190cce249d` | 2026-11-09 01:33:20 | `test: cover dictionary popup Reduce Motion policy` | PR #45 open head; base main | | `a11y/dictionary-popup-reduce-transparency-2026-11-09` | `55afb9ab662d2926675f0a57737d3f817b1fc2cb` | 2026-11-09 02:58:11 | `Honor Reduce Transparency in dictionary popup` | PR #46 open head; base black-box | | `a11y/48dp-icon-targets-2026-11-07` | `25107ce905b70bde1a41282ffd1d606819ebf58d` | 2026-11-07 11:02:12 | `test(a11y): cover minimum icon action target` | PR #30 open head; base black-box | -| `black-box-bihar-news` | `11b709aa9f357437fa7315035d4a383b79d7d4af` | 2026-11-09 02:58:38 | `perf(ui): quiesce hidden compact navigation motion` | PR #34 open head; base of open #46,#42,#39,#38,#37,#36,#35,#33,#32,#31,#30,#29,#27,#26,#25,#11 | +| `black-box-bihar-news` | `52604e5046abc20dfa490c54587e79909d8f4458` | 2026-11-09 04:03:58 | `docs: verify compact navigation CI and refresh branch inventory` | PR #34 open head; base of open #46,#42,#39,#38,#37,#36,#35,#33,#32,#31,#30,#29,#27,#26,#25,#11 | | `brrrNEWS` | `e6fcfc25a4c8d5f363ced58f313552120aa7ff96` | 2026-11-07 04:13:30 | `ui: consolidate lightweight supporting glass surfaces` | Base of open PR #24 | | `ci/read-only-pr-validation-isolated-release-write-2026-11-06` | `963118f0abe5f7e38f2aa66a49d4b8e74548660c` | 2026-11-06 17:18:53 | `ci: validate pull requests with read-only build permissions` | PR #18 open head | | `ci/stacked-pr-validation-2026-11-07` | `5dc3179361835b77fb3186a99d9b5791301463fd` | 2026-11-06 21:41:27 | `ci: restore Android SDK setup before sdkmanager` | PR #20 closed/merged into black-box | @@ -56,8 +65,8 @@ GitHub branch API and branch-search pagination both exhausted: **49 remote branc ## Baseline and branch-comparison decisions -- `black-box-bihar-news@11b709aa9f357437fa7315035d4a383b79d7d4af` remains the freshest coherent UI/integration baseline: **164 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 is the single open/draft consolidation PR to main. -- PR #46 is **3 ahead / 1 behind** the active branch, merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`; its 3-file Dictionary popup diff is disjoint from the one intervening compact-navigation commit. Its exact head passed natural PR run #386; it is a safe candidate for a selective port, not a reason to change the active baseline. +- `black-box-bihar-news@52604e5046abc20dfa490c54587e79909d8f4458` remains the freshest coherent UI/integration baseline: **165 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 is the single open/draft consolidation PR to main. +- PR #46 is **3 ahead / 2 behind** the active branch, merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`; its 3-file Dictionary popup diff is disjoint from the one intervening compact-navigation commit. Its exact head passed natural PR run #386; it is a safe candidate for a selective port, not a reason to change the active baseline. - PR #45 is **3 ahead / 164 behind** active; its system Reduce Motion policy is already represented in current `DictionaryActivity.kt`, so do not duplicate it. PR #43 is **11 ahead / 164 behind** and changes `MainActivity.kt` plus Reader WebView release guard/tests; inspect and reconcile the full lifecycle diff before any port. PR #39 is **6 ahead / 29 behind** and changes signing/workflow/Gradle; remain owner-gated. PR #42 is editorial-only (**6 ahead / 13 behind**). - PRs #41/#40/#38/#37/#36/#35/#33/#32/#31/#30/#29/#27/#26/#25/#22/#21/#18/#17/#16/#13/#12/#11/#8/#6 are independent/diverged or stacked on older bases; their exact changed-file lists and base SHAs were inspected. Do not cherry-pick old MainActivity or workflow files blindly. Closed PR #44's feed-rim branch differs by one MainActivity line; the active source has its own implementation and no wholesale copy is justified. - `brrrNEWS`, `ui/liquid-glass-performance-2026-11-06`, `redesign/v0.3-search-reader` and `ui/liquid-glass-system-continuation-2026-11-07` are not fresher replacements. `fix/stable-release-signing-2026-11-08` remains blocked on private secrets, public certificate pin and explicit migration approval. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 233584f8..0a364b97 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,47 @@ +# Implementation batch — Dictionary popup Reduce Transparency parity (9 November 2026, 10:31 IST) + +**Verified source before write:** `black-box-bihar-news@52604e5046abc20dfa490c54587e79909d8f4458`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is the merge base, **165 ahead / 0 behind**. PR #34 remains open/draft, unmerged, targeting main. The source branch is not retargeted and no new branch/PR is created. + +## Branch freshness and dependency gate + +- Complete live inventory: **49 remote branches** (page 1 = 49, page 2 = 0), **31 open PRs** (page 2 = 0), **15 closed PRs** (page 2 = 0). All 49 names/head SHAs were refreshed; the complete commit timestamp/message and PR relationship table is maintained in `docs/BRANCH_CONSOLIDATION.md`. Default branch remains main at `73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- PR #46 source `a11y/dictionary-popup-reduce-transparency-2026-11-09@55afb9ab662d2926675f0a57737d3f817b1fc2cb` and active branch share merge base `21317fd4f3dc625c4e49ec598e59736e0a4b6237`. Active is **2 ahead / 0 behind** that base; PR #46 is **3 ahead / 0 behind**. The active two-commit delta changes only `FeedNavigationPolicy.kt`, `MainActivity.kt`, `FeedNavigationPolicyTest.kt` and documentation; PR #46 changes only `DictionaryActivity.kt`, new `DictionarySurfacePolicy.kt` and its JVM test. No code-file overlap exists, so the three-file change is ported directly onto the current active head without merging or modifying PR #46 or its source branch. +- PR #45's Reduce Motion policy remains represented in the active DictionaryActivity. PR #43's Reader disposal work remains separately reviewed; no MainActivity or Reader lifecycle code is copied in this batch. Stale `brrrNEWS`, `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` are not replacement baselines. + +## Implementation + +- The standalone Android `ACTION_PROCESS_TEXT` dictionary popup now restores the saved `LocalStore.reduceTransparency()` preference on `Dispatchers.IO`; no SharedPreferences load is added to the main thread. +- While the preference is being restored, the popup starts with a near-opaque unblurred surface. Reduced Transparency clears/avoids `FLAG_BLUR_BEHIND` on Android 12+ and uses alpha **0.985**. Normal mode preserves the existing Android 12+ blur-behind radius (24dp) and alpha **0.86**; pre-Android 12 keeps the existing no-blur alpha **0.94**. +- Added pure `DictionarySurfacePolicy` plus four JVM tests for reduced/normal treatment on modern and legacy Android. Existing `DictionaryMotionPolicy`, native Android Copy/Select/share ActionMode, WordNet lookup/cache/database session, popup geometry, dim amount, navigation and data model are unchanged. +- The preference is sampled once per popup opening. Changing Appearance while the popup is already open takes effect on its next opening; no observer, timer or polling loop is introduced. + +## Paired material/performance strategy + +| Surface | Material tier / purpose | Effect scope and cost control | Fallback / accessibility | Evidence | +|---|---|---|---|---| +| Dictionary ACTION_PROCESS_TEXT popup | Tier 2 transient contextual glass surface; platform blur-behind supplies context only when allowed | Existing single popup window only; one saved preference read on IO; no Prismal pass, sampler, readback, image decode, shader or per-frame work added | Near-opaque unblurred alpha 0.985 when Reduce Transparency is on or before restore; normal legacy alpha 0.94 without blur | Four pure JVM policy tests; exact new-head CI pending; OPPO rendering/TalkBack unverified | + +- In reduced mode this change removes the existing whole-window blur-behind cost rather than adding an effect. Normal mode preserves the current visual treatment. This is a source-level scope reduction, not a measured GPU, memory, battery or frame-time improvement. +- The shared root background-only Prismal source, expanded-only tab glyph capture, app-wide material tokens and existing low-cadence adaptive luminance probe are untouched. + +## Exact parent validation — passed; new port validation pending + +- Natural PR run [#390](https://github.com/Batmancpu/CurrentLens/actions/runs/42559718685) and push run [#389](https://github.com/Batmancpu/CurrentLens/actions/runs/42559714812) both tested the exact parent head `52604e5046abc20dfa490c54587e79909d8f4458`. Both build jobs passed checkout, Java/signing cache, Android SDK/platform setup, Gradle, WordNet builder **4/4**, generation of **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. PR build: **BUILD SUCCESSFUL in 1m 39s**; release jobs skipped. +- PR artifact [#13649007271](https://github.com/Batmancpu/CurrentLens/actions/runs/42559718685/artifacts/13649007271): **39,129,208 bytes**, SHA-256 `e7b08e03be5b86008092cff27a96a7876b0395bba36b95203b0d32d5e94c4acf`, expires 23 November 2026 04:06:27 UTC. Push artifact [#13649280497](https://github.com/Batmancpu/CurrentLens/actions/runs/42559714812/artifacts/13649280497): **39,129,203 bytes**, SHA-256 `cd74e0c3eba0afe0495aee6bbde49f1c8aeccdeb690aa299c6023be34994cbeb`, expires 23 November 2026 04:06:14 UTC. +- PR #46's own natural run [#386](https://github.com/Batmancpu/CurrentLens/actions/runs/42553804992) passed on its source head and produced artifact #13646383188. It validates that source branch, **not** this combined port. +- The new active commit must receive its own natural push and PR validation before another UI batch. No manual dispatch/rerun is permitted. Actions history is fully paginated: **390 runs** (**250 success / 70 failure / 70 cancelled**), queued/in-progress **0**. The active workflow keeps build/test permissions read-only and isolates Release write to main pushes. Latest published Release remains `v0.2.0-build-116`; no Release was published. + +## Device and regression checks + +- OPPO Reno10 popup appearance, saved preference restoration, native selection/share menu collision, TalkBack, font scaling, animation behaviour, frame timing, memory/allocation, GPU, thermal and battery remain **UNVERIFIED**. CI/JVM success is not device verification. +- Recheck normal/reduced appearance on Android 12+ and older Android, popup cold-open before preference restoration, selection Copy/Select/share, and repeated popup open/close. Do not claim the app's startup crash or overall glass performance is fixed from this batch. + +## Next + +Wait for the exact new `black-box-bihar-news` head's natural push and PR runs, inspect their complete logs/artifacts and PR diff, then continue the next app-wide consistency batch only after they pass. + +--- + # Live CI verification — compact navigation idle (9 November 2026, 09:27 IST) **Verified active source:** `black-box-bihar-news@11b709aa9f357437fa7315035d4a383b79d7d4af`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is the merge base, **164 ahead / 0 behind**. PR #34 remains open/draft, unmerged, targeting main. No UI source change is made in this verification pass. From 23acb979ccc903aaab53f2fdaa67e9610ba2c2f0 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 11:37:45 +0530 Subject: [PATCH 164/175] ui: suppress brief cold-feed skeleton flashes --- .../currentlens/FeedLoadingPolicy.kt | 9 +++++ .../mangoloads/currentlens/MainActivity.kt | 33 +++++++++++++++---- .../currentlens/FeedLoadingPolicyTest.kt | 33 +++++++++++++++++++ docs/BRANCH_CONSOLIDATION.md | 9 +++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 25 ++++++++++++++ 5 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 app/src/main/java/com/mangoloads/currentlens/FeedLoadingPolicy.kt create mode 100644 app/src/test/java/com/mangoloads/currentlens/FeedLoadingPolicyTest.kt diff --git a/app/src/main/java/com/mangoloads/currentlens/FeedLoadingPolicy.kt b/app/src/main/java/com/mangoloads/currentlens/FeedLoadingPolicy.kt new file mode 100644 index 00000000..d198a765 --- /dev/null +++ b/app/src/main/java/com/mangoloads/currentlens/FeedLoadingPolicy.kt @@ -0,0 +1,9 @@ +package com.mangoloads.currentlens + +/** Delays cold-feed placeholders so fast local restores do not flash skeletons. */ +internal object FeedLoadingPolicy { + const val SKELETON_DELAY_MS = 180L + + fun shouldShowSkeletons(isLoading: Boolean, delayElapsed: Boolean): Boolean = + isLoading && delayElapsed +} diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 3d45515d..0344d431 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1054,6 +1054,19 @@ private fun HomeScreen( ) { val today = LocalDate.now(ZoneId.of(INDIA_ZONE)) val reduceMotion = LocalGlassReduceMotion.current + val primaryFeedSelected = selectedTab in 0..2 + var skeletonDelayElapsed by remember { mutableStateOf(false) } + LaunchedEffect(loading, primaryFeedSelected) { + skeletonDelayElapsed = false + if (primaryFeedSelected && loading) { + delay(FeedLoadingPolicy.SKELETON_DELAY_MS) + skeletonDelayElapsed = true + } + } + val showSkeletons = FeedLoadingPolicy.shouldShowSkeletons( + isLoading = primaryFeedSelected && loading, + delayElapsed = skeletonDelayElapsed + ) val dateLabel = remember(today) { today.format(DateTimeFormatter.ofPattern("EEEE, d MMMM", Locale.ENGLISH)) } var exploreCategory by remember { mutableStateOf("All") } @@ -1105,17 +1118,17 @@ private fun HomeScreen( val (tab, page) = target when (tab) { 0 -> TodayFeed( - todaysArticles, eligibleArticles, loading, loadError, refreshing, + todaysArticles, eligibleArticles, loading, showSkeletons, loadError, refreshing, bookmarks, onOpenArticle, onToggleBookmark ) 1 -> ExploreFeed( exploreArticles, exploreCategory, { exploreCategory = it }, bookmarks, onOpenArticle, onToggleBookmark, - loading, loadError, backdrop, glassAlpha, isSystemInDarkTheme() + loading, showSkeletons, loadError, backdrop, glassAlpha, isSystemInDarkTheme() ) 2 -> SearchFeed( eligibleArticles, searchQuery, searchExpanded, - bookmarks, onOpenArticle, onToggleBookmark, loading, loadError, + bookmarks, onOpenArticle, onToggleBookmark, loading, showSkeletons, loadError, backdrop, glassAlpha, isSystemInDarkTheme() ) else -> when (page) { @@ -1293,6 +1306,7 @@ private fun TodayFeed( articles: List
, weekendArticles: List
, loading: Boolean, + showSkeletons: Boolean, loadError: Boolean, refreshing: Boolean, bookmarks: Set, @@ -1330,11 +1344,12 @@ private fun TodayFeed( } } when { - loading -> items( + articles.isEmpty() && loading && showSkeletons -> items( count = 3, key = { index -> "feed-skeleton-$index" }, contentType = { "feed-skeleton" } ) { FeedSkeletonCard() } + articles.isEmpty() && loading -> Unit loadError && articles.isEmpty() -> item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } articles.isEmpty() -> item { EmptyPanel("No UPSC-relevant stories today", "Broad entertainment and general-interest updates are filtered out. Refresh later for syllabus-linked developments.") } else -> items(articles.take(45), key = { it.id }, contentType = { "article" }) { article -> @@ -1382,6 +1397,7 @@ private fun ExploreFeed( onOpenArticle: (Article) -> Unit, onToggleBookmark: (Article) -> Unit, loading: Boolean, + showSkeletons: Boolean, loadError: Boolean, backdrop: PrismalBackdrop, glassAlpha: Float, @@ -1405,12 +1421,14 @@ private fun ExploreFeed( contentPadding = PaddingValues(start = 16.dp, end = 16.dp, top = 8.dp, bottom = 110.dp), verticalArrangement = Arrangement.spacedBy(13.dp) ) { - if (filtered.isEmpty() && loading) { + if (filtered.isEmpty() && loading && showSkeletons) { items( count = 3, key = { index -> "feed-skeleton-$index" }, contentType = { "feed-skeleton" } ) { FeedSkeletonCard() } + } else if (filtered.isEmpty() && loading) { + // Avoid flashing an empty-state message before the skeleton reveal delay. } else if (filtered.isEmpty() && loadError) { item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } } else if (filtered.isEmpty()) item { @@ -1432,6 +1450,7 @@ private fun SearchFeed( onOpenArticle: (Article) -> Unit, onToggleBookmark: (Article) -> Unit, loading: Boolean, + showSkeletons: Boolean, loadError: Boolean, backdrop: PrismalBackdrop, glassAlpha: Float, @@ -1515,12 +1534,14 @@ private fun SearchFeed( ), verticalArrangement = Arrangement.spacedBy(12.dp) ) { - if (filtered.isEmpty() && loading) { + if (filtered.isEmpty() && loading && showSkeletons) { items( count = 3, key = { index -> "feed-skeleton-$index" }, contentType = { "feed-skeleton" } ) { FeedSkeletonCard() } + } else if (filtered.isEmpty() && loading) { + // Avoid flashing an empty-state message before the skeleton reveal delay. } else if (filtered.isEmpty() && loadError) { item { EmptyPanel("News is temporarily unavailable", "Check your connection and refresh.") } } else if (filtered.isEmpty()) item { diff --git a/app/src/test/java/com/mangoloads/currentlens/FeedLoadingPolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/FeedLoadingPolicyTest.kt new file mode 100644 index 00000000..11500428 --- /dev/null +++ b/app/src/test/java/com/mangoloads/currentlens/FeedLoadingPolicyTest.kt @@ -0,0 +1,33 @@ +package com.mangoloads.currentlens + +import org.junit.Assert.assertFalse +import org.junit.Assert.assertTrue +import org.junit.Test + +class FeedLoadingPolicyTest { + @Test + fun fastFeedLoadDoesNotFlashSkeletons() { + assertFalse( + FeedLoadingPolicy.shouldShowSkeletons(isLoading = true, delayElapsed = false) + ) + } + + @Test + fun sustainedFeedLoadShowsSkeletonsAfterTheRevealDelay() { + assertTrue( + FeedLoadingPolicy.shouldShowSkeletons(isLoading = true, delayElapsed = true) + ) + } + + @Test + fun completedFeedLoadHidesSkeletonsImmediately() { + assertFalse( + FeedLoadingPolicy.shouldShowSkeletons(isLoading = false, delayElapsed = true) + ) + } + + @Test + fun revealDelayIsShortAndBounded() { + assertTrue(FeedLoadingPolicy.SKELETON_DELAY_MS in 120L..250L) + } +} diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index f3e871b2..311e72a1 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -2539,3 +2539,12 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t ### Branch write and safety - The repair is applied as a first-parent commit on `black-box-bihar-news` from `022a28824a5a5d88a66986cd47a8a6cfb18fdf34`, using the exact verified PR #44 tree (whose parent is `022a28824a5a5d88a66986cd47a8a6cfb18fdf34`) plus this ledger/roadmap update. No force update, merge commit, cherry-pick into another branch, main write, PR merge, PR retarget, Release publication or source-branch deletion. - This inventory is a pre-write snapshot; the new integration head is the child commit created by this run. The PR #34 metadata is updated separately with the resulting exact head and pending natural CI state. + +## 9 November 2026, 11:27 IST — verified source baseline and feed loading pass + +- Full live inventory: **49 remote branches**, **31 open PRs**, **15 closed PRs**; all second pages empty. The full branch/head/timestamp/message/PR ledger above remains the 10:31 snapshot; this pass rechecked all 49 head refs and found no new branch or replacement integration lineage. Active source before this implementation: black-box-bihar-news at 8c59dcc48dccc2bbfcba5d47337a8884f51a4356 (2026-11-09 05:05:19 UTC); default main at 73b8a0d1ba33503fede02db2c3c0af082d724a12; comparison **166 ahead / 0 behind**, main is merge base. PR #34 remains open/draft to main. +- Relevant open UI/accessibility branches were reviewed: PR #45 Reduce Motion is already represented in active DictionaryActivity; PR #46 Reduce Transparency is ported into the active branch without modifying its source; PR #43 Reader WebView release cleanup is already present with stronger independent-failure tests; PR #30's 48dp target policy is present. Closed/unmerged PR #44's feed-card rim scope fix is present in the active NewsCard. PRs and source branches remain open/untouched as applicable. +- New code batch: HomeScreen delays skeleton visibility by 180ms on primary feeds only, preventing brief cached-index/loading flashes and suppressing transient empty-state copy. One cancellable coroutine per load/destination transition; no per-row state. +- New FeedLoadingPolicyTest covers fast load, sustained loading, immediate completion and delay bounds. Existing skeleton/article geometry and one-Coil-decode path are unchanged. +- Exact prior natural CI run #392 passed on the pre-change source head 8c59dcc48dccc2bbfcba5d47337a8884f51a4356; artifact #13651565871 (39,131,198 bytes, SHA-256 c403575be0e956f3501691083c24c739e867b48db4f8b60e9400eeb7c0e0c888). It does **not** validate the new commit. New-head CI is pending natural workflow execution; no dispatch/rerun. +- No Release published (latest remains v0.2.0-build-116), no main write/merge/retarget/force update, no package or privacy change. OPPO visual/runtime/performance/battery and accessibility evidence remain **UNVERIFIED**. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 0a364b97..053d36dc 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1598,3 +1598,28 @@ Next: after natural CI validates this exact head, perform the Appearance preview ### Next - Inspect the new integration commit's own natural push/PR run, complete job logs and artifact before another visual batch. Then review the remaining Reader cleanup-granularity delta without importing PR #43's divergent `MainActivity.kt`; continue app-wide You/Saved/stats and Appearance material consistency only after the exact-head gate. No main write, merge, Release publication, manual dispatch/rerun, or source-branch mutation. + +## 9 November 2026, 11:27 IST — cold-feed skeleton flash suppression + +### Freshness and source gate +- Re-enumerated the complete remote branch list: **49 branches** (page 2 empty), **31 open PRs** (page 2 empty), **15 closed PRs** (page 2 empty). Default main is 73b8a0d1ba33503fede02db2c3c0af082d724a12. +- Implementation source was black-box-bihar-news at 8c59dcc48dccc2bbfcba5d47337a8884f51a4356 (latest commit 2026-11-09 05:05:19 UTC), **166 ahead / 0 behind** main, with main as merge base. PR #34 is the one open/draft consolidation PR targeting main; no other branch was used as a baseline. +- PR #45 Reduce Motion is already represented by DictionaryMotionPolicy and the system animation check. PR #46 Reduce Transparency is selectively ported in the active branch; its source branch and open PR remain untouched. PR #43 AndroidView.onRelease, independent WebView cleanup and fatal-error guard are already present in the active code. PR #30's 48dp icon targets are represented by TouchTargetPolicy; closed/unmerged PR #44's one-line feed rim scope correction is already ported. No blind cherry-pick or source-branch mutation. +- Stale ui/liquid-glass-performance and redesign/v0.3-search-reader remain excluded. No main write, merge, retarget, force update, branch deletion, workflow dispatch/rerun or Release publication. + +### Implementation +- Added a single **180ms skeleton reveal gate** inside HomeScreen, scoped to Today / Explore / Search. A single LaunchedEffect runs only when loading state or destination eligibility changes; it does not poll or update per row. +- The three feed destinations now render placeholders only if the initial loading state persists beyond the delay. During the short grace period they avoid briefly displaying a false empty-state message; cached/available article content remains renderable even if a loading flag is also active. +- Existing FeedSkeletonCard and NewsCard geometry, stable item keys/content types, bookmark semantics, one Coil request/decode, palette sampling and static card rim are unchanged. No shimmer or whole-feed crossfade was introduced. + +### Tests and CI +- Added FeedLoadingPolicyTest for fast-load suppression, sustained-load reveal, immediate hide after completion and a bounded delay. +- The previous exact-head natural PR run [#392](https://github.com/Batmancpu/CurrentLens/actions/runs/42565283567) passed on source head 8c59dcc48dccc2bbfcba5d47337a8884f51a4356: WordNet builder/database, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Artifact [#13651565871](https://github.com/Batmancpu/CurrentLens/actions/runs/42565283567/artifacts/13651565871), 39,131,198 bytes, SHA-256 c403575be0e956f3501691083c24c739e867b48db4f8b60e9400eeb7c0e0c888, expires 23 November 2026 05:07:26 UTC. This run validates the source head only, **not this new commit**; the new head requires its own natural CI. + +### Paired performance and accessibility +- Render delta: **zero new glass surfaces, blur passes, shaders, backdrop captures/readbacks, image requests, bitmap decodes or per-card effects**. The only runtime addition is one cancellable 180ms coroutine delay per loading-state transition on the home surface. +- Skeletons remain hidden from TalkBack via their existing empty semantics; no motion is added, so Reduce Motion behaviour is unchanged. Article, quiz, bookmark, selection and persistence semantics are untouched. +- No performance improvement is claimed from code inspection alone. OPPO Reno10 screenshots, startup timing, frame jank, allocation/memory, GPU overdraw, battery/thermal and accessibility validation remain **UNVERIFIED**. + +### Next +- Inspect the exact new head's naturally triggered push and PR workflows, complete job steps/logs and artifact before another visual batch. Continue only from the live black-box-bihar-news head; keep the one PR #34 consolidation path and all source branches intact. From 45609a3d5d32ee02ba33c54501a497d6a00d25b7 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 12:37:03 +0530 Subject: [PATCH 165/175] fix(reader): isolate WebView disposal cleanup steps --- .../mangoloads/currentlens/MainActivity.kt | 83 ++++++++++++------- 1 file changed, 53 insertions(+), 30 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 0344d431..09c6b99b 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -4033,35 +4033,59 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) // Flush the last debounced position before callbacks are disconnected. { flushReadingPosition() }, { stopLoading() }, - { - readingPositionSave?.let { removeCallbacks(it) } - readingPositionSave = null - cancelReadingPositionRestore() - cancelShortPageEndCheck(resetStability = true) - cancelPendingReaderChromeHide() - }, - { - selectionBridgeEnabled = false - selectionActionModeActive = false - readerChromePinned = false - readerChromeScrollState = ReaderChromeScrollState() - readingPositionCompleted = true - onReachedBottom = {} - onSelectionActionModeChanged = {} - onDefineWord = { _, _ -> } - onReaderPageFinished = {} - onReaderMainFrameError = {} - allowReaderNavigation = { false } - onOpenPublisherLink = {} - onReadingProgressChanged = {} - onReaderChromeVisibilityChanged = {} - }, - { - settings.javaScriptEnabled = false - settings.domStorageEnabled = false - webViewClient = WebViewClient() - webChromeClient = null - }, + + // Keep callback removal and reference clearing independent. A failed + // removeCallbacks() must not retain the Runnable or skip later cleanup. + { readingPositionSave?.let { removeCallbacks(it) } }, + { readingPositionSave = null }, + { readingPositionRestore?.let { removeCallbacks(it) } }, + { readingPositionRestore = null }, + { readingPositionRestoreSettle?.let { removeCallbacks(it) } }, + { readingPositionRestoreSettle = null }, + { restoringReadingPosition = false }, + { pendingReadingPositionRestore = null }, + { stableRestoreSamples = 0 }, + { lastRestoreContentHeight = -1 }, + { shortPageEndCheck?.let { removeCallbacks(it) } }, + { shortPageEndCheck = null }, + { shortPageStabilityGate.reset() }, + { pendingReaderChromeHide?.let { removeCallbacks(it) } }, + { pendingReaderChromeHide = null }, + + // Invalidate any in-flight evaluateJavascript selection result and + // independently release the delayed auto-definition Runnable. + { selectionModeGeneration += 1 }, + { pendingAutoDefine?.let { removeCallbacks(it) } }, + { pendingAutoDefine = null }, + { autoDefineEvaluationPending = false }, + { selectionBridgeEnabled = false }, + + { selectionActionModeActive = false }, + { readerChromePinned = false }, + { readerChromeVisible = false }, + { readerChromeScrollState = ReaderChromeScrollState() }, + { readingPositionCompleted = true }, + { touchDownX = null }, + { touchDownY = null }, + { touchDownAtMillis = null }, + { tapCandidate = false }, + { upwardSwipeDetected = false }, + + // Drop every Compose/WebView closure before destroying the view. + { onReachedBottom = {} }, + { onSelectionActionModeChanged = {} }, + { onDefineWord = { _, _ -> } }, + { onReaderPageFinished = {} }, + { onReaderMainFrameError = {} }, + { allowReaderNavigation = { false } }, + { onOpenPublisherLink = {} }, + { onReadingProgressChanged = {} }, + { onReaderChromeVisibilityChanged = {} }, + + { settings.javaScriptEnabled = false }, + { settings.domStorageEnabled = false }, + { webViewClient = WebViewClient() }, + { webChromeClient = null }, { clearHistory() }, { (parent as? android.view.ViewGroup)?.removeView(this) }, { removeAllViews() }, @@ -4069,7 +4093,6 @@ private class ReaderWebView(context: android.content.Context) : WebView(context) ) ) } - override fun onDetachedFromWindow() { flushReadingPosition() readingPositionSave?.let { removeCallbacks(it) } From 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 12:40:09 +0530 Subject: [PATCH 166/175] docs: record Reader teardown and live branch inventory --- docs/BRANCH_CONSOLIDATION.md | 79 +++++++++++++++++++++++++++++++++ docs/LIQUID_GLASS_UI_ROADMAP.md | 44 ++++++++++++++++++ 2 files changed, 123 insertions(+) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 311e72a1..c76eee92 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,3 +1,82 @@ +# Live repository inventory — 9 November 2026, 12:30 IST + +**Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. +**Selected integration branch:** black-box-bihar-news. Its last app-code commit at this snapshot is 45609a3d5d32ee02ba33c54501a497d6a00d25b7; it is 168 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory records the exact branch refs before the documentation-only update that appends this snapshot; no other branch is a development target. + +The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (31 open, 15 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. + +| Remote branch | Head SHA | Latest commit UTC | Subject | PR / relationship | +|---|---|---|---|---| +| a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | +| a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | +| a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | +| black-box-bihar-news | 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | 2026-11-09 07:00:00 UTC | fix(reader): isolate WebView disposal cleanup steps | #34 open/draft → main; active single integration branch | +| brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | +| ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | +| ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | +| docs/ai-agent-handoff-2026-11-06 | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | #14 closed/unmerged; branch now points to main | +| feat/gs1-geography-editorial-coverage | ca66fa1c865514a86c655a4b6c7eaf16b4681f81 | 2026-11-06 10:53:35 | fix: refresh article card metadata when feed content changes | #6 open/draft → main; editorial changes selectively represented | +| fix/atom-alternate-link-selection-2026-11-06 | cdf4c3846dde1c05894284e48b8f7d69cb7541ad | 2026-11-06 09:14:27 | fix: select Atom article alternate links deterministically | #12 open/draft → main; selective parser work represented | +| fix/cache-publication-date-integrity-2026-11-06 | be5151e674c2bd4fa9beb166fc38ddf622781f84 | 2026-11-06 14:26:32 | feat: expose publication date and publisher RSS provenance on cards | #11 open/draft → black-box; selective port represented | +| fix/early-startup-crash-diagnostics-2026-11-06 | ebea0aac68ce2cf17aad376304f7915fe937e807 | 2026-11-08 15:11:25 | docs: record off-main diagnostics verification [skip ci] | #16 open/draft → main; only reviewed safe deltas represented | +| fix/editorial-action-gate-blackbox-2026-11-07 | 2468ed33326ac7310a2ddd5f993495e4051245b8 | 2026-11-08 03:30:19 | test(editorial): cover reality TV and television promotion | #27 open/draft → black-box; editorial-only | +| fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open/draft → main; combined editorial work represented | +| fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS; older divergent material line | +| fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed/unmerged → main | +| fix/feed-card-rim-wiring-2026-11-09 | 3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895 | 2026-11-08 23:20:44 | fix(ui): wire feed card rim to the correct card scope | #44 closed/unmerged; one-line fix present in black-box | +| fix/gst-council-syllabus-disambiguation-2026-11-08 | 2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8 | 2026-11-08 16:43:45 | docs(editorial): fix baseline paragraph spacing | #42 open/draft → black-box; editorial-only | +| fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 closed/merged → main | +| fix/parliamentary-syllabus-signal-gate-2026-11-07 | 9d754953a29c0355ce55306ce4fd5463193c9dbb | 2026-11-07 03:49:44 | test: preserve Parliament bill headline variants | #23 closed/merged → black-box | +| fix/publisher-redirect-allowlist-2026-11-06 | 83a94ac9c3fdc4e70f1ef35c65e9cf793aa9b306 | 2026-11-06 12:15:39 | Validate RSS redirects against publisher allowlists | #15 closed/unmerged; superseded by later redirect/privacy guards | +| fix/quiz-option-selected-semantics-compile-2026-11-07 | 6f9b3c1e1a484233721863d0b736734c0d282cd5 | 2026-11-07 08:12:10 | fix(quiz): qualify selected semantics receiver | #28 closed/merged → black-box | +| fix/release-reader-webview-resources-2026-11-09 | e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c | 2026-11-08 21:25:23 | test(reader): cover independent cleanup after repeated failures | #43 open/draft → main; only granular cleanup delta selectively ported | +| fix/resolve-relative-atom-links-2026-11-07 | c97d6b960e2cc6b93ac6444ebf9ceb6eabd320a4 | 2026-11-07 14:59:24 | test(rss): correct relative xml base fixture | #33 open/draft → black-box; feed parser | +| fix/rss-image-host-allowlist-2026-11-07 | 7a51c9c2c40aa89997db55194a6db3d0d65ac95d | 2026-11-07 06:28:46 | test(reader): cover publisher-only image resources | #25 open/draft → black-box; publisher asset guard | +| fix/rss-tracking-variant-dedup-2026-11-06 | 2093990be43a8a9b8eed43f8e4ec1e49c0b29f1b | 2026-11-06 16:42:29 | fix: deduplicate RSS tracking URL variants | #17 open/draft → main; selective URL identity work represented | +| fix/search-clear-row-scope-compile-2026-11-08 | 9dd4ceac08e88e6ee4ea565025a70539a6e9e331 | 2026-11-07 21:55:56 | docs: record verified search clear compile repair | #37 open/draft → black-box; RowScope compile repair represented | +| fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 closed/merged → main | +| fix/stable-release-signing-2026-11-08 | 4250de5040a8ca0efbf96a990218ef7d69ef26e8 | 2026-11-08 07:03:31 | docs: record stable signing validation and migration gate | #39 open/draft → black-box; owner-gated on secrets/certificate/migration | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed/unmerged; superseded by later stability branch | +| fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 closed/merged → main | +| fix/today-ist-midnight-rollover-2026-11-08 | 5fbd14e6ef9be33d04a882ba463d4c72473419e2 | 2026-11-07 20:48:43 | test(today): cover Asia/Kolkata midnight rollover | #36 open/draft → black-box | +| fix/validate-rss-article-hosts-2026-11-08 | 552b96e7948ac5ade821a711ea8dd225984824a9 | 2026-11-08 10:34:28 | fix(rss): keep redirect result non-null | #40 open/draft → main; network guard | +| main | 73b8a0d1ba33503fede02db2c3c0af082d724a12 | 2026-11-06 11:16:35 | Correct icon artwork accessibility name to brrrNews | Default branch | +| perf/bound-rss-entry-parsing-2026-11-08 | adade1ed8494c66b7e567de87f61f3dac3da7788 | 2026-11-08 03:31:36 | fix(test): correct RSS budget test identifier | #38 open/draft → black-box; parser performance | +| perf/bound-rss-field-values-2026-11-08 | 39acde8373eb3405f655e052ccd3445f22eedebb | 2026-11-08 14:39:53 | test(rss): reject non-editorial XHTML script and style text | #41 open/draft → main; parser work | +| perf/bound-startup-diagnostic-reads-2026-11-07 | c4a977831846224182f16981b15e5c803761e26d | 2026-11-07 17:34:16 | Record successful bounded-diagnostic CI | #35 open/draft → black-box; partly superseded by active diagnostics | +| perf/bounded-read-history-2026-11-07 | 910178af3f595993557533cb65d03e714bcd7760 | 2026-11-06 23:53:04 | Verify legacy markers survive recent-history retention | #22 open/draft → perf/off-main-session-persistence; older stacked base | +| perf/bounded-rss-fetch-concurrency-2026-11-07 | 8c56c98c83cc69451f128aa259df86a8ce28f43a | 2026-11-07 11:29:26 | docs: record bounded RSS fetch review and CI state | #32 open/draft → black-box; feed fetch concurrency | +| perf/off-main-appearance-preferences-2026-11-07 | bc48daec98ff076c9db3c2c69084d9b08cd0bbce | 2026-11-07 11:11:45 | fix(startup): keep appearance snapshot API module-internal | #31 open/draft → black-box; richer combined snapshot supersedes | +| perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | #29 open/draft → black-box; represented | +| perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | #8 open/draft → main; persistence base for #22 | +| privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | #26 open/draft → black-box; security review pending | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | No PR; stale, not a baseline | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main; conservative shared probe represented | +| ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #3 merged; #4 closed/unmerged; stale divergent UI line | +| ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed/merged → black-box | +| ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | No PR; older continuation, not a baseline | + +## Current graph and workflow + +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 168 commits ahead of main; 91 changed files, 13,399 additions / 901 deletions before this batch. Keep draft; do not merge. +- The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. +- Actions history is fully paginated: 394 runs (254 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Latest exact-parent PR run #394 and push run #393 both passed on 23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The new Reader disposal commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7 requires its own natural validation. +- Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. +- No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. + +## Relevant ancestry and integration decisions + +- The active baseline was verified at black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0, 167 ahead / 0 behind main. The implementation commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7 is its direct first-parent child; the resulting app-code lineage is 168 ahead / 0 behind main. +- PR #43 source fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c is divergent from the active line (11 ahead / 167 behind, merge base main). Its AndroidView.onRelease, settle-callback tracking and Exception-only release guard are already present in the active code. Only the independently granular teardown actions and explicit pending auto-definition invalidation were selectively ported; the older MainActivity was not copied and PR #43/source branch remain untouched. +- PR #45 dictionary Reduce Motion is already represented; PR #46 Reduce Transparency is selectively ported; PR #44's one-line NewsCard rim scope fix is present; PR #37's Search RowScope compile repair and PR #30's 48dp target policy are present. Their source branches remain untouched. +- PR #13 adaptive contrast is represented by one shared 8×8 root-bottom-band probe at 4s/6s cadence, paused during feed scroll, Reader, Settings, background and Reduce Transparency. No extra sampler/readback was added. +- PR #31 appearance preference restore is superseded by the richer combined LocalAppearancePreferences snapshot; PR #39 stable signing remains owner-gated on secrets, certificate pinning and local-data migration approval. +- PR #6/#21 editorial work is combined in the integration branch; parser, RSS concurrency, publisher allowlist, persistence and diagnostic PRs remain separately assessed. No wholesale branch merge or blind cherry-pick was performed. +- brrrNEWS, ui/liquid-glass-performance-2026-11-06, redesign/v0.3-search-reader and ui/liquid-glass-system-continuation are not replacement baselines. The old ui/liquid-glass-system branch is superseded by PR #19's merged work in black-box-bihar-news. + +--- + ## Live verification and implementation — 9 November 2026, 10:31 IST - Complete remote inventory refreshed: **49 branches**, **31 open PRs**, **15 closed PRs**; page 2 was empty for all three collections. Default `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; active `black-box-bihar-news@52604e5046abc20dfa490c54587e79909d8f4458`, **165 ahead / 0 behind**, main is merge base. PR #34 remains the sole open/draft consolidation PR to main. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 053d36dc..26ed88a0 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,47 @@ +# Live implementation batch — isolate Reader WebView disposal actions (9 November 2026, 12:30 IST) + +**App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. + +## Freshness and branch-dependency gate + +- Complete live inventory: 49 remote branches (page 2 empty), 31 open PRs and 15 closed PRs (PR page 2 empty). All branch names, full head SHAs, latest commit timestamps/messages and PR head/base/state relationships were re-read; the exact 49-row table and graph rationale are at the top of docs/BRANCH_CONSOLIDATION.md. +- Current active branch before the implementation was exactly black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. PR #34 head matched it and still targeted main. No newer coherent source branch superseded this integration lineage. +- PR #43 fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c was compared against the active source: 11 ahead / 167 behind, merge base main. Its full diff was inspected. The active code already had AndroidView.onRelease, settle-callback tracking, cancelReadingPositionRestore(), an Exception-only ReaderWebViewReleaseGuard and fatal LinkageError coverage. The remaining safe delta was narrower: several teardown operations were grouped inside single lambdas, so one ordinary removeCallbacks failure could skip later reference clearing; permanent release also relied on detachment to cancel pending auto-definition work. +- PR #45 dictionary Reduce Motion, PR #46 dictionary Reduce Transparency, PR #44 feed-card rim wiring, PR #37 Search RowScope repair and PR #30 48dp target policy are already represented in the active integration. PR #13's conservative single 8×8 adaptive probe remains 4s/6s and paused on scroll/non-home/background/reduced-transparency states. PR #39 signing remains owner-gated. Stale brrrNEWS, ui/liquid-glass-performance and redesign/v0.3-search-reader were not used as baselines. No source branch was modified. + +## Implementation + +- ReaderWebView.releaseForDisposal() now submits each teardown operation as an independent action to the existing ReaderWebViewReleaseGuard. Removal and reference clearing are separate for the pending reading-save, restore, restore-settle, short-page completion and Reader chrome-hide Runnables; a failed callback removal no longer skips clearing its reference or later cleanup. +- Permanent disposal now invalidates the selection generation, independently cancels/clears the pending auto-definition Runnable and evaluation flag, disables the selection bridge, resets native-selection/touch/chrome state and marks reading-position persistence complete. +- Every Compose/WebView callback closure is cleared independently before JavaScript and DOM storage are disabled, WebView clients are detached, history is cleared, the view is removed from its parent, child views are removed and destroy() runs. +- The existing release guard still catches ordinary Exception per action, continues best-effort cleanup, is idempotent, and deliberately lets fatal VM/linkage errors propagate. The AndroidView onRelease ownership boundary is unchanged; onDetachedFromWindow remains a temporary-detach path and does not destroy the WebView. +- No Reader content, toolbar, completion-dock, definition-overlay, native Copy/Select/share ActionMode, dictionary bridge, publisher fallback permission or quiz persistence semantics changed. + +## Paired material/performance and coverage update + +| Screen/component | Material tier / reason | Effect and resource scope | Cache/reuse and fallback | Accessibility/tests/status | +|---|---|---|---|---| +| Reader article canvas | Clear, high-contrast reading surface; translucency would reduce comprehension | No new render pass, blur, refraction, shader, capture or readback | Existing WebView content and persisted reading position unchanged | Native text selection and ActionMode unchanged; OPPO visual/runtime unverified | +| Reader toolbar, Aa menu, definition and completion actions | Existing Tier 2 transient Prismal controls, shown only by Reader state | Existing shared root background-only Prismal source; no new capture or live glass surface | Existing material tokens and reduced-transparency fallback reused | Existing 48dp controls, selection/definition/IME/accessibility pinning and Reduce Motion policy retained | +| ReaderWebView permanent disposal | Lifecycle/resource ownership, not a new visual material | Removes pending callbacks and retained closures on permanent release; no polling/timer or new effect | Existing idempotent ReaderWebViewReleaseGuard isolates each ordinary cleanup failure; fatal errors propagate | Existing ReaderWebViewReleaseGuardTest covers idempotence, multiple ordinary failures and fatal LinkageError; exact new-head CI pending | + +- Paired optimization: this change adds zero glass surfaces, blur/refraction passes, shaders, backdrop captures/readbacks, image requests/decodes, dependencies, network calls or scheduled timers. It makes already-existing teardown more granular and releases callback references even when an earlier cleanup action fails. This is a source-level lifecycle/resource-safety improvement only; no measured memory, frame-time, GPU, battery or thermal gain is claimed. +- Shared background-only Prismal ownership, expanded-only tab glyph source, feed-only compact navigation and the single low-cadence adaptive luminance probe are untouched. + +## Exact parent CI — passed; implementation head pending + +- Natural push run [#393](https://github.com/Batmancpu/CurrentLens/actions/runs/42571188002) and PR run [#394](https://github.com/Batmancpu/CurrentLens/actions/runs/42571192933) both tested the exact parent head 23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. Both build jobs passed the Android SDK/Gradle setup, WordNet builder tests 4/4, generation of 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload. The PR log reports BUILD SUCCESSFUL in 56s; main-only Release jobs were skipped. +- PR artifact [#13652897760](https://github.com/Batmancpu/CurrentLens/actions/runs/42571192933/artifacts/13652897760): 39,133,249 bytes; SHA-256 2ead71c20fba90eb74b0e2c2b85fd432310e405c7b57f7ccc22969d504bb4027; expires 23 November 2026 06:09:18 UTC. The push run also passed on the same exact parent SHA. +- These runs validate the parent only, not implementation commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7. The new implementation requires its own natural push and PR validation. No workflow dispatch/rerun was used. +- Actions history fully paginated: 394 runs (254 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Active workflow build/test permissions remain read-only; main-only Release write remains isolated. Latest published Release is v0.2.0-build-116 (6 November 2026 11:18:59 UTC); no Release was published. + +## Device and regression status + +- OPPO Reno10 WebView release/re-entry, native selection/ActionMode, definition bridge, article completion, screenshots, frame timing/jank, allocation/memory, GPU overdraw, thermal and battery remain **UNVERIFIED**. No device-backed launch-stability or performance claim is made. +- The next natural exact-head CI result must be inspected with full job steps/logs/artifact before another implementation batch. After it passes, resume the next evidence-backed app-wide visual consistency batch (You/Saved/stats and Appearance) without adding live blur to dense data/content surfaces. + +--- + # Implementation batch — Dictionary popup Reduce Transparency parity (9 November 2026, 10:31 IST) **Verified source before write:** `black-box-bihar-news@52604e5046abc20dfa490c54587e79909d8f4458`; `main@73b8a0d1ba33503fede02db2c3c0af082d724a12` is the merge base, **165 ahead / 0 behind**. PR #34 remains open/draft, unmerged, targeting main. The source branch is not retargeted and no new branch/PR is created. From 80d072b39dc4075d5777f23053b7da08daa32297 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 12:43:51 +0530 Subject: [PATCH 167/175] docs: record Reader disposal CI verification --- docs/BRANCH_CONSOLIDATION.md | 8 ++++---- docs/LIQUID_GLASS_UI_ROADMAP.md | 14 ++++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index c76eee92..65c8081d 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -3,14 +3,14 @@ **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. **Selected integration branch:** black-box-bihar-news. Its last app-code commit at this snapshot is 45609a3d5d32ee02ba33c54501a497d6a00d25b7; it is 168 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory records the exact branch refs before the documentation-only update that appends this snapshot; no other branch is a development target. -The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (31 open, 15 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. +The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (31 open, 15 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. At the pre-refresh snapshot, black-box-bihar-news had documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e and last app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7. | Remote branch | Head SHA | Latest commit UTC | Subject | PR / relationship | |---|---|---|---|---| | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | 2026-11-09 07:00:00 UTC | fix(reader): isolate WebView disposal cleanup steps | #34 open/draft → main; active single integration branch | +| black-box-bihar-news | 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | 2026-11-09 07:07:03 UTC | fix(reader): isolate WebView disposal cleanup steps | #34 open/draft → main; active app-code head (docs-only head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e) | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -59,9 +59,9 @@ The complete live branch list was paginated: 49 branches on page 1, page 2 empty ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 168 commits ahead of main; 91 changed files, 13,399 additions / 901 deletions before this batch. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 169 commits ahead of main; 91 changed files, 13,545 additions / 901 deletions at the pre-refresh snapshot. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- Actions history is fully paginated: 394 runs (254 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Latest exact-parent PR run #394 and push run #393 both passed on 23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The new Reader disposal commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7 requires its own natural validation. +- Actions history is fully paginated: 398 runs (258 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Runs #395/#396 passed on exact app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7; runs #397/#398 passed on documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e. This next documentation-only refresh requires its own natural validation. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 26ed88a0..e81010c2 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,6 +1,6 @@ # Live implementation batch — isolate Reader WebView disposal actions (9 November 2026, 12:30 IST) -**App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. +**App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. The accompanying documentation head at this verification snapshot is 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e, 169 ahead / 0 behind. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. ## Freshness and branch-dependency gate @@ -28,12 +28,14 @@ - Paired optimization: this change adds zero glass surfaces, blur/refraction passes, shaders, backdrop captures/readbacks, image requests/decodes, dependencies, network calls or scheduled timers. It makes already-existing teardown more granular and releases callback references even when an earlier cleanup action fails. This is a source-level lifecycle/resource-safety improvement only; no measured memory, frame-time, GPU, battery or thermal gain is claimed. - Shared background-only Prismal ownership, expanded-only tab glyph source, feed-only compact navigation and the single low-cadence adaptive luminance probe are untouched. -## Exact parent CI — passed; implementation head pending +## Exact implementation and documentation CI — passed -- Natural push run [#393](https://github.com/Batmancpu/CurrentLens/actions/runs/42571188002) and PR run [#394](https://github.com/Batmancpu/CurrentLens/actions/runs/42571192933) both tested the exact parent head 23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. Both build jobs passed the Android SDK/Gradle setup, WordNet builder tests 4/4, generation of 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload. The PR log reports BUILD SUCCESSFUL in 56s; main-only Release jobs were skipped. -- PR artifact [#13652897760](https://github.com/Batmancpu/CurrentLens/actions/runs/42571192933/artifacts/13652897760): 39,133,249 bytes; SHA-256 2ead71c20fba90eb74b0e2c2b85fd432310e405c7b57f7ccc22969d504bb4027; expires 23 November 2026 06:09:18 UTC. The push run also passed on the same exact parent SHA. -- These runs validate the parent only, not implementation commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7. The new implementation requires its own natural push and PR validation. No workflow dispatch/rerun was used. -- Actions history fully paginated: 394 runs (254 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Active workflow build/test permissions remain read-only; main-only Release write remains isolated. Latest published Release is v0.2.0-build-116 (6 November 2026 11:18:59 UTC); no Release was published. +- Natural push run [#395](https://github.com/Batmancpu/CurrentLens/actions/runs/42577250573) and PR run [#396](https://github.com/Batmancpu/CurrentLens/actions/runs/42577256428) both tested the exact app-code commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7. Every build step passed: checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder tests 4/4, generation of 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload. Full logs report BUILD SUCCESSFUL (push 1m; PR 1m 18s); main-only Release jobs were skipped. +- Push artifact [#13655971590](https://github.com/Batmancpu/CurrentLens/actions/runs/42577250573/artifacts/13655971590): 39,138,272 bytes; SHA-256 d578509cb2b2540fb5187342b34e98ca90403ce4dc3d9d4e5e61ad3da434bad2; expires 23 November 2026 07:08:38 UTC. PR artifact [#13655837221](https://github.com/Batmancpu/CurrentLens/actions/runs/42577256428/artifacts/13655837221): 39,138,281 bytes; SHA-256 6830c15201ec5df92c9e3d58269dd3890c109b6462873ddbf3fe56ea37de5c11; expires 23 November 2026 07:09:15 UTC. +- The documentation-only head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e also passed natural push [#397](https://github.com/Batmancpu/CurrentLens/actions/runs/42577590540) and PR [#398](https://github.com/Batmancpu/CurrentLens/actions/runs/42577598678). Both completed WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload; BUILD SUCCESSFUL in 1m 36s. Push artifact #13655712447 (39,138,272 bytes; SHA-256 bd0b3be14bfba6ce5e18b6636d82e95d51c07cca663d5da57b8aa95ed11b6b5e); PR artifact #13655567860 (39,138,281 bytes; SHA-256 bd8b2f0e6cc239b7f8c7ffe3f5d09d151ddf80c8b4dd9b6274ff877c263d1f1f). Both expire 23 November 2026 around 07:12 UTC. Main-only Release jobs skipped. +- PR #43's own exact source head e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c has no Actions runs. The selective cleanup port is validated by #395/#396 on our integration branch; no CI result is attributed to PR #43 itself. +- This documentation refresh changes only the two roadmap/ledger files; its resulting new head requires its own natural push and PR CI. No manual dispatch/rerun is permitted. +- Actions history at this snapshot: 398 runs (258 success / 70 failure / 70 cancelled), queued 0, in-progress 0. The active workflow remains read-only for build/test with main-only Release write isolated. Latest published Release remains v0.2.0-build-116 (6 November 2026 11:18:59 UTC); no Release was published. ## Device and regression status From 2b1878e58744f901eb66aca7fa792ce06488c08c Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 12:47:35 +0530 Subject: [PATCH 168/175] docs: refresh branch inventory and next glass target --- docs/BRANCH_CONSOLIDATION.md | 16 ++++++++-------- docs/LIQUID_GLASS_UI_ROADMAP.md | 11 ++++++----- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 65c8081d..39b34bca 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,16 +1,16 @@ -# Live repository inventory — 9 November 2026, 12:30 IST +# Live repository inventory — 9 November 2026, 12:45 IST **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Selected integration branch:** black-box-bihar-news. Its last app-code commit at this snapshot is 45609a3d5d32ee02ba33c54501a497d6a00d25b7; it is 168 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory records the exact branch refs before the documentation-only update that appends this snapshot; no other branch is a development target. +**Selected integration branch:** black-box-bihar-news. Its last app-code commit at this snapshot is 45609a3d5d32ee02ba33c54501a497d6a00d25b7; the current documentation head is 80d072b39dc4075d5777f23053b7da08daa32297. It is 170 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory records the exact branch refs before the documentation-only update that appends this snapshot; no other branch is a development target. -The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (31 open, 15 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. At the pre-refresh snapshot, black-box-bihar-news had documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e and last app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7. +The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (30 open, 16 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. At the pre-refresh snapshot, black-box-bihar-news had documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e and last app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7. | Remote branch | Head SHA | Latest commit UTC | Subject | PR / relationship | |---|---|---|---|---| | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | 2026-11-09 07:07:03 UTC | fix(reader): isolate WebView disposal cleanup steps | #34 open/draft → main; active app-code head (docs-only head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e) | +| black-box-bihar-news | 80d072b39dc4075d5777f23053b7da08daa32297 | 2026-11-09 07:13:51 UTC | docs: record Reader disposal CI verification | #34 open/draft → main; current docs head; app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -23,7 +23,7 @@ The complete live branch list was paginated: 49 branches on page 1, page 2 empty | fix/editorial-heatwave-bill-signals-2026-11-07 | 89464104e300f48da10e3e32e33715cbe2405084 | 2026-11-06 22:05:40 | Verify a specific parliamentary bill remains eligible for the GS II feed | #21 open/draft → main; combined editorial work represented | | fix/editorial-policy-exception-guard-2026-11-07 | 1f7a3c2a7b74cc02cfee6fe451f4576feb291acf | 2026-11-07 04:46:47 | fix(editorial): match policy action and target as separate words | #24 open/draft → brrrNEWS; older divergent material line | | fix/editorial-signal-count-test | 4738690d6e7f6c7c02a621742f25d5ebf1d631fb | 2026-11-06 05:16:32 | test: align economy signal count with repo-rate mapping | #2 closed/merged → main | -| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed/unmerged → main | +| fix/editorial-token-boundaries-2026-11-06 | 0045c24637f162f1c13dceb1f8878f42f6eb15fd | 2026-11-06 02:34:28 | fix: tighten UPSC editorial signal matching | #1 closed/merged → main | | fix/feed-card-rim-wiring-2026-11-09 | 3bcde08a4ba7ee6e9420864d9bb044b8fe1d4895 | 2026-11-08 23:20:44 | fix(ui): wire feed card rim to the correct card scope | #44 closed/unmerged; one-line fix present in black-box | | fix/gst-council-syllabus-disambiguation-2026-11-08 | 2629cfbe4ee6ece7a41fd13d35dc987abc1e26b8 | 2026-11-08 16:43:45 | docs(editorial): fix baseline paragraph spacing | #42 open/draft → black-box; editorial-only | | fix/navigation-icon-imports-2026-11-06 | fa8868940c08ed5b4a9def014a850e8a9dcb3490 | 2026-11-06 06:27:06 | fix: use supported calendar navigation glyph | #5 closed/merged → main | @@ -37,7 +37,7 @@ The complete live branch list was paginated: 49 branches on page 1, page 2 empty | fix/search-clear-row-scope-compile-2026-11-08 | 9dd4ceac08e88e6ee4ea565025a70539a6e9e331 | 2026-11-07 21:55:56 | docs: record verified search clear compile repair | #37 open/draft → black-box; RowScope compile repair represented | | fix/search-glass-theme-capture-2026-11-06 | c514eff3d5fd266ce6b6ecec51a141055e5fa52e | 2026-11-06 07:44:03 | fix: capture Search glass tint before draw callback | #10 closed/merged → main | | fix/stable-release-signing-2026-11-08 | 4250de5040a8ca0efbf96a990218ef7d69ef26e8 | 2026-11-08 07:03:31 | docs: record stable signing validation and migration gate | #39 open/draft → black-box; owner-gated on secrets/certificate/migration | -| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed/unmerged; superseded by later stability branch | +| fix/startup-crash-diagnostics-feed-jank-2026-11-06 | 5da4e789b0f49c0eefda024410ade34c1e0f2a7c | 2026-11-06 07:39:53 | fix: diagnose launch crashes and move feed indexing off main | #9 closed/merged → main; older diagnostics line | | fix/startup-stability-performance-2026-11-06 | 654e660347de692ef88531dfa49c610269d69671 | 2026-11-06 07:18:06 | fix: harden cold start and reduce feed rendering workload | #7 closed/merged → main | | fix/today-ist-midnight-rollover-2026-11-08 | 5fbd14e6ef9be33d04a882ba463d4c72473419e2 | 2026-11-07 20:48:43 | test(today): cover Asia/Kolkata midnight rollover | #36 open/draft → black-box | | fix/validate-rss-article-hosts-2026-11-08 | 552b96e7948ac5ade821a711ea8dd225984824a9 | 2026-11-08 10:34:28 | fix(rss): keep redirect result non-null | #40 open/draft → main; network guard | @@ -59,9 +59,9 @@ The complete live branch list was paginated: 49 branches on page 1, page 2 empty ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 169 commits ahead of main; 91 changed files, 13,545 additions / 901 deletions at the pre-refresh snapshot. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 170 commits ahead of main; 91 changed files, 13,547 additions / 901 deletions at the pre-refresh snapshot. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- Actions history is fully paginated: 398 runs (258 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Runs #395/#396 passed on exact app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7; runs #397/#398 passed on documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e. This next documentation-only refresh requires its own natural validation. +- Actions history is fully paginated: 400 runs (260 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Runs #395/#396 passed on exact app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7; #397/#398 passed on documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e; #399/#400 passed on documentation head 80d072b39dc4075d5777f23053b7da08daa32297. This next documentation-only refresh requires its own natural validation. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index e81010c2..1921c471 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,10 +1,10 @@ # Live implementation batch — isolate Reader WebView disposal actions (9 November 2026, 12:30 IST) -**App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. The accompanying documentation head at this verification snapshot is 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e, 169 ahead / 0 behind. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. +**App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. The accompanying documentation head at this verification snapshot is 80d072b39dc4075d5777f23053b7da08daa32297, 170 ahead / 0 behind. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. ## Freshness and branch-dependency gate -- Complete live inventory: 49 remote branches (page 2 empty), 31 open PRs and 15 closed PRs (PR page 2 empty). All branch names, full head SHAs, latest commit timestamps/messages and PR head/base/state relationships were re-read; the exact 49-row table and graph rationale are at the top of docs/BRANCH_CONSOLIDATION.md. +- Complete live inventory: 49 remote branches (page 2 empty), 30 open PRs and 16 closed PRs (PR page 2 empty). All branch names, full head SHAs, latest commit timestamps/messages and PR head/base/state relationships were re-read; the exact 49-row table and graph rationale are at the top of docs/BRANCH_CONSOLIDATION.md. - Current active branch before the implementation was exactly black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. PR #34 head matched it and still targeted main. No newer coherent source branch superseded this integration lineage. - PR #43 fix/release-reader-webview-resources-2026-11-09@e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c was compared against the active source: 11 ahead / 167 behind, merge base main. Its full diff was inspected. The active code already had AndroidView.onRelease, settle-callback tracking, cancelReadingPositionRestore(), an Exception-only ReaderWebViewReleaseGuard and fatal LinkageError coverage. The remaining safe delta was narrower: several teardown operations were grouped inside single lambdas, so one ordinary removeCallbacks failure could skip later reference clearing; permanent release also relied on detachment to cancel pending auto-definition work. - PR #45 dictionary Reduce Motion, PR #46 dictionary Reduce Transparency, PR #44 feed-card rim wiring, PR #37 Search RowScope repair and PR #30 48dp target policy are already represented in the active integration. PR #13's conservative single 8×8 adaptive probe remains 4s/6s and paused on scroll/non-home/background/reduced-transparency states. PR #39 signing remains owner-gated. Stale brrrNEWS, ui/liquid-glass-performance and redesign/v0.3-search-reader were not used as baselines. No source branch was modified. @@ -32,15 +32,16 @@ - Natural push run [#395](https://github.com/Batmancpu/CurrentLens/actions/runs/42577250573) and PR run [#396](https://github.com/Batmancpu/CurrentLens/actions/runs/42577256428) both tested the exact app-code commit 45609a3d5d32ee02ba33c54501a497d6a00d25b7. Every build step passed: checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder tests 4/4, generation of 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and APK artifact upload. Full logs report BUILD SUCCESSFUL (push 1m; PR 1m 18s); main-only Release jobs were skipped. - Push artifact [#13655971590](https://github.com/Batmancpu/CurrentLens/actions/runs/42577250573/artifacts/13655971590): 39,138,272 bytes; SHA-256 d578509cb2b2540fb5187342b34e98ca90403ce4dc3d9d4e5e61ad3da434bad2; expires 23 November 2026 07:08:38 UTC. PR artifact [#13655837221](https://github.com/Batmancpu/CurrentLens/actions/runs/42577256428/artifacts/13655837221): 39,138,281 bytes; SHA-256 6830c15201ec5df92c9e3d58269dd3890c109b6462873ddbf3fe56ea37de5c11; expires 23 November 2026 07:09:15 UTC. -- The documentation-only head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e also passed natural push [#397](https://github.com/Batmancpu/CurrentLens/actions/runs/42577590540) and PR [#398](https://github.com/Batmancpu/CurrentLens/actions/runs/42577598678). Both completed WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload; BUILD SUCCESSFUL in 1m 36s. Push artifact #13655712447 (39,138,272 bytes; SHA-256 bd0b3be14bfba6ce5e18b6636d82e95d51c07cca663d5da57b8aa95ed11b6b5e); PR artifact #13655567860 (39,138,281 bytes; SHA-256 bd8b2f0e6cc239b7f8c7ffe3f5d09d151ddf80c8b4dd9b6274ff877c263d1f1f). Both expire 23 November 2026 around 07:12 UTC. Main-only Release jobs skipped. +- The documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e passed natural push [#397](https://github.com/Batmancpu/CurrentLens/actions/runs/42577590540) and PR [#398](https://github.com/Batmancpu/CurrentLens/actions/runs/42577598678). Both completed WordNet generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload; BUILD SUCCESSFUL in 1m 36s. Push artifact #13655712447 (39,138,272 bytes; SHA-256 bd0b3be14bfba6ce5e18b6636d82e95d51c07cca663d5da57b8aa95ed11b6b5e); PR artifact #13655567860 (39,138,281 bytes; SHA-256 bd8b2f0e6cc239b7f8c7ffe3f5d09d151ddf80c8b4dd9b6274ff877c263d1f1f). Main-only Release jobs skipped. +- The current documentation head 80d072b39dc4075d5777f23053b7da08daa32297 passed natural push [#399](https://github.com/Batmancpu/CurrentLens/actions/runs/42577991637) and PR [#400](https://github.com/Batmancpu/CurrentLens/actions/runs/42577998853). Both completed WordNet builder 4/4, 151,456-word / 50,950,144-byte database generation, :app:testDebugUnitTest, :app:assembleDebug and artifact upload. Full logs: BUILD SUCCESSFUL in 1m 32s / 1m 37s. Push artifact #13656356082 (39,138,272 bytes; SHA-256 8f059b49c9ee5589dc1ea2094086d5080ef25e37f9f9566e573fe9db301b4cab); PR artifact #13656107521 (39,138,281 bytes; SHA-256 032ba114d05a589b45adf43b45105b8a9a359590887dd020a2e89adb85b57e1e). Both expire 23 November 2026 around 07:16 UTC. Main-only Release jobs skipped. - PR #43's own exact source head e5b7b9f8f5d9e33021bd6ccb7b7cb3f827218e3c has no Actions runs. The selective cleanup port is validated by #395/#396 on our integration branch; no CI result is attributed to PR #43 itself. - This documentation refresh changes only the two roadmap/ledger files; its resulting new head requires its own natural push and PR CI. No manual dispatch/rerun is permitted. -- Actions history at this snapshot: 398 runs (258 success / 70 failure / 70 cancelled), queued 0, in-progress 0. The active workflow remains read-only for build/test with main-only Release write isolated. Latest published Release remains v0.2.0-build-116 (6 November 2026 11:18:59 UTC); no Release was published. +- Actions history at this snapshot: 400 runs (260 success / 70 failure / 70 cancelled), queued 0, in-progress 0. The active workflow remains read-only for build/test with main-only Release write isolated. Latest published Release remains v0.2.0-build-116 (6 November 2026 11:18:59 UTC); no Release was published. ## Device and regression status - OPPO Reno10 WebView release/re-entry, native selection/ActionMode, definition bridge, article completion, screenshots, frame timing/jank, allocation/memory, GPU overdraw, thermal and battery remain **UNVERIFIED**. No device-backed launch-stability or performance claim is made. -- The next natural exact-head CI result must be inspected with full job steps/logs/artifact before another implementation batch. After it passes, resume the next evidence-backed app-wide visual consistency batch (You/Saved/stats and Appearance) without adding live blur to dense data/content surfaces. +- The next natural exact-head CI result must be inspected with full job steps/logs/artifact before another implementation batch. The next evidence-backed UI target is DefinitionGlassOverlay: replace its outlier 12dp blur / 22px+24px refraction / 0.015 chromatic aberration / 0.62 tint scale with the already shared PrismalTransientSurface tier (5dp blur, 2.5px+3.5px refraction inputs, 0.001 chromatic aberration, 0.42 tint scale) and shared 22dp geometry. Preserve the anchored Layout placement, safe bounds, full-word title, 48dp actions, expand/collapse, Reduce Motion and Reduce Transparency. Keep the single existing root backdrop; no new capture or per-card effect. --- From fb2e75c3f82f18896bfa5dff623a9ba9da263d15 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 14:33:35 +0530 Subject: [PATCH 169/175] ui(glass): align definition popup with transient material tier --- .../currentlens/GlassSurfacePolicy.kt | 28 +++++++++- .../mangoloads/currentlens/MainActivity.kt | 29 +++++++--- .../currentlens/GlassSurfacePolicyTest.kt | 54 +++++++++++++++++++ 3 files changed, 102 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 2f69c4b2..4c355813 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -5,12 +5,16 @@ package com.mangoloads.currentlens * without adding live backdrop capture, blur, refraction or a second material pipeline. */ internal object GlassSurfacePolicy { - const val SUPPORTING_CORNER_RADIUS_DP = 22f + const val TRANSIENT_CORNER_RADIUS_DP = 22f + const val SUPPORTING_CORNER_RADIUS_DP = TRANSIENT_CORNER_RADIUS_DP const val SUPPORTING_VALUE_SIZE_SP = 20f const val TRANSIENT_BLUR_DP = 5f const val TRANSIENT_REFRACTION_HEIGHT_DP = 2.5f const val TRANSIENT_REFRACTION_AMOUNT_DP = 3.5f + const val TRANSIENT_CHROMATIC_ABERRATION = 0.001f const val TRANSIENT_TINT_SCALE = 0.42f + const val TRANSIENT_MIN_TINT_ALPHA = 0.05f + const val TRANSIENT_MAX_TINT_ALPHA = 0.22f const val CONTROL_CORNER_RADIUS_DP = 16f const val FILTER_PILL_CORNER_RADIUS_DP = CONTROL_CORNER_RADIUS_DP const val FILTER_SHEET_CORNER_RADIUS_DP = 28f @@ -47,6 +51,28 @@ internal object GlassSurfacePolicy { else -> SUPPORTING_SURFACE_ALPHA_LIGHT } + /** + * Resolve transient tint from the shared material scale. A caller may raise the + * minimum for a context such as selected-word definitions where legibility is vital. + * Non-finite preference values fall back to the app's default glass intensity. + */ + fun transientTintAlpha( + glassAlpha: Float, + minimumAlpha: Float = TRANSIENT_MIN_TINT_ALPHA + ): Float { + val safeAlpha = if (glassAlpha.isFinite()) { + glassAlpha.coerceIn(0f, 1f) + } else { + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + } + val safeMinimum = if (minimumAlpha.isFinite()) { + minimumAlpha.coerceIn(0f, TRANSIENT_MAX_TINT_ALPHA) + } else { + TRANSIENT_MIN_TINT_ALPHA + } + return (safeAlpha * TRANSIENT_TINT_SCALE).coerceIn(safeMinimum, TRANSIENT_MAX_TINT_ALPHA) + } + fun supportingTintAlpha( dark: Boolean, glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 09c6b99b..7b0109b5 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -2208,10 +2208,12 @@ private fun PrismalTransientSurface( GlassSurfacePolicy.TRANSIENT_REFRACTION_AMOUNT_DP, reduceTransparency ), depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.001f, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration( + GlassSurfacePolicy.TRANSIENT_CHROMATIC_ABERRATION, reduceTransparency + ), tint = if (dark) Color(0xFF26364B) else Color(0xFFEAF0FA), tintAlpha = GlassRenderingPolicy.tintAlpha( - (glassAlpha * GlassSurfacePolicy.TRANSIENT_TINT_SCALE).coerceIn(0.05f, 0.22f), + GlassSurfacePolicy.transientTintAlpha(glassAlpha), reduceTransparency ) ) { @@ -4452,14 +4454,25 @@ private fun DefinitionGlassOverlay( backdrop = backdrop, modifier = Modifier.fillMaxWidth() .animateContentSize(if (reduceMotion) snap() else spring(dampingRatio = 0.82f, stiffness = 480f)), - shape = { PrismalRoundedRectangle(25.dp) }, - blurRadius = GlassRenderingPolicy.blurDp(12f, reduceTransparency).dp, - refractionHeightPx = GlassRenderingPolicy.refractionPx(22f, reduceTransparency), - refractionAmountPx = GlassRenderingPolicy.refractionPx(24f, reduceTransparency), + shape = { PrismalRoundedRectangle(GlassSurfacePolicy.TRANSIENT_CORNER_RADIUS_DP.dp) }, + blurRadius = GlassRenderingPolicy.blurDp( + GlassSurfacePolicy.TRANSIENT_BLUR_DP, reduceTransparency + ).dp, + refractionHeightPx = GlassRenderingPolicy.refractionPx( + GlassSurfacePolicy.TRANSIENT_REFRACTION_HEIGHT_DP, reduceTransparency + ), + refractionAmountPx = GlassRenderingPolicy.refractionPx( + GlassSurfacePolicy.TRANSIENT_REFRACTION_AMOUNT_DP, reduceTransparency + ), depthEffect = GlassRenderingPolicy.depthEnabled(true, reduceTransparency), - chromaticAberration = GlassRenderingPolicy.chromaticAberration(0.015f, reduceTransparency), + chromaticAberration = GlassRenderingPolicy.chromaticAberration( + GlassSurfacePolicy.TRANSIENT_CHROMATIC_ABERRATION, reduceTransparency + ), tint = if (isSystemInDarkTheme()) Color(0xFF263247) else Color(0xFFEAF0FA), - tintAlpha = GlassRenderingPolicy.tintAlpha((glassAlpha * 0.62f).coerceIn(0.08f, 0.34f), reduceTransparency) + tintAlpha = GlassRenderingPolicy.tintAlpha( + GlassSurfacePolicy.transientTintAlpha(glassAlpha, minimumAlpha = 0.08f), + reduceTransparency + ) ) { DefinitionPopoverContent( word = word, diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 5772e466..675a6c02 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -294,4 +294,58 @@ class GlassSurfacePolicyTest { ) } + @Test + fun definitionPopupUsesTheSharedTransientOpticalTier() { + assertEquals(22f, GlassSurfacePolicy.TRANSIENT_CORNER_RADIUS_DP, 0f) + assertEquals(5f, GlassSurfacePolicy.TRANSIENT_BLUR_DP, 0f) + assertEquals(2.5f, GlassSurfacePolicy.TRANSIENT_REFRACTION_HEIGHT_DP, 0f) + assertEquals(3.5f, GlassSurfacePolicy.TRANSIENT_REFRACTION_AMOUNT_DP, 0f) + assertEquals(0.001f, GlassSurfacePolicy.TRANSIENT_CHROMATIC_ABERRATION, 0f) + assertEquals(0.42f, GlassSurfacePolicy.TRANSIENT_TINT_SCALE, 0f) + } + + @Test + fun transientTintUsesSharedScaleAndDefinitionLegibilityFloor() { + assertEquals( + 0.1344f, + GlassSurfacePolicy.transientTintAlpha(0.32f, minimumAlpha = 0.08f), + 0.0001f + ) + assertEquals( + 0.08f, + GlassSurfacePolicy.transientTintAlpha(0f, minimumAlpha = 0.08f), + 0.0001f + ) + assertEquals( + 0.22f, + GlassSurfacePolicy.transientTintAlpha(1f, minimumAlpha = 0.08f), + 0.0001f + ) + assertEquals( + 0.1344f, + GlassSurfacePolicy.transientTintAlpha(0.32f), + 0.0001f + ) + } + + @Test + fun transientTintFallsBackForNonFinitePreferenceAndMinimum() { + val expected = GlassSurfacePolicy.transientTintAlpha(0.32f, minimumAlpha = 0.08f) + assertEquals( + expected, + GlassSurfacePolicy.transientTintAlpha(Float.NaN, minimumAlpha = 0.08f), + 0.0001f + ) + assertEquals( + expected, + GlassSurfacePolicy.transientTintAlpha(Float.POSITIVE_INFINITY, minimumAlpha = 0.08f), + 0.0001f + ) + assertEquals( + 0.05f, + GlassSurfacePolicy.transientTintAlpha(0f, minimumAlpha = Float.NaN), + 0.0001f + ) + } + } From b8d87f7448e47be6869ce8a107b1d67dd8b4639d Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 14:35:45 +0530 Subject: [PATCH 170/175] docs: record shared definition glass integration and branch audit --- docs/BRANCH_CONSOLIDATION.md | 26 +++++++++++------ docs/LIQUID_GLASS_UI_ROADMAP.md | 49 +++++++++++++++++++++++++++++++++ docs/SESSION_LEDGER.md | 15 ++++++++++ 3 files changed, 82 insertions(+), 8 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 39b34bca..e6ca3a7c 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,16 +1,16 @@ -# Live repository inventory — 9 November 2026, 12:45 IST +# Live repository inventory — 9 November 2026, 14:33 IST **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Selected integration branch:** black-box-bihar-news. Its last app-code commit at this snapshot is 45609a3d5d32ee02ba33c54501a497d6a00d25b7; the current documentation head is 80d072b39dc4075d5777f23053b7da08daa32297. It is 170 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory records the exact branch refs before the documentation-only update that appends this snapshot; no other branch is a development target. +**Selected integration branch:** black-box-bihar-news. The current app-code head is `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` (2026-11-09 09:03:35 UTC), a direct child of the verified pre-change source `2b1878e58744f901eb66aca7fa792ce06488c08c`; it is 172 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory is the documentation snapshot for that app-code head; its own docs-only commit follows. -The complete live branch list was paginated: 49 branches on page 1, page 2 empty. Pull requests: 46 total (30 open, 16 closed), page 2 empty. Every branch head SHA, last commit timestamp/message and PR relationship is recorded below. Closed PRs are explicitly distinguished as merged or closed/unmerged; source branches are retained. At the pre-refresh snapshot, black-box-bihar-news had documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e and last app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7. +The complete live branch list was paginated: **51 branches** on page 1, page 2 empty. Pull requests: **47 total (32 open, 15 closed)**, page 2 empty. Every branch head SHA, latest commit timestamp/message and PR relationship is recorded below; closed PRs are distinguished as merged or closed/unmerged. All source branches are retained. | Remote branch | Head SHA | Latest commit UTC | Subject | PR / relationship | |---|---|---|---|---| | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | 80d072b39dc4075d5777f23053b7da08daa32297 | 2026-11-09 07:13:51 UTC | docs: record Reader disposal CI verification | #34 open/draft → main; current docs head; app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7 | +| black-box-bihar-news | fb2e75c3f82f18896bfa5dff623a9ba9da263d15 | 2026-11-09 09:03:35 UTC | ui(glass): align definition popup with transient material tier | #34 open/draft → main; current app-code head; docs refresh follows | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -51,17 +51,17 @@ The complete live branch list was paginated: 49 branches on page 1, page 2 empty | perf/off-main-bookmark-persistence-2026-11-07 | a64857b5efa62ea053c0c96e5f374fd35924b340 | 2026-11-07 09:05:25 | perf(storage): move bookmark mutations off the UI thread | #29 open/draft → black-box; represented | | perf/off-main-session-persistence-2026-11-06 | ed91a3bfbcb3f12f6f6050ce72a120b3aafeae4a | 2026-11-06 10:50:31 | perf: move read-marker persistence off main thread | #8 open/draft → main; persistence base for #22 | | privacy/webview-publisher-subresource-gate-2026-11-07 | b8d2ef9ff2413c378347986d00961c401dfa771d | 2026-11-07 07:27:22 | privacy: block third-party publisher reader subresources | #26 open/draft → black-box; security review pending | -| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | No PR; stale, not a baseline | -| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main; conservative shared probe represented | +| redesign/v0.3-search-reader | 654cc89dee4f93fea98bb76df9d8cf88abf2f0d8 | 2026-11-03 15:31:48 | fix: make selection decoding fallback valid JSON | No PR; stale, not a baseline |\n| security/pin-wordnet-archive-sha256-2026-11-09 | e99e6d5b4e36b308e4435dd4d03ec6da549e06d3 | 2026-11-09 08:26:07 | ci: pin and verify Open English WordNet release asset | #48 open/draft → main; separate workflow/builder supply-chain proposal | +| ui/foreground-adaptive-glass-contrast-2026-11-06 | 3dc0f3fb0eb4ca69facdfa44eeb26c00e9b55264 | 2026-11-06 10:56:16 | ui: restore low-cadence foreground adaptive glass contrast | #13 open/draft → main; conservative shared probe represented |\n| ui/definition-popup-transient-optics-2026-11-09 | d848a142fd5c61388286379fec34d985771de50d | 2026-11-09 07:27:11 | Test definition popup transient optics | #47 open/draft → main; exact values ported into shared GlassSurfacePolicy; source untouched | | ui/liquid-glass-performance-2026-11-06 | 2e9c7f62ca65a899e18d9026e1535392835b3724 | 2026-11-06 06:25:39 | fix: import bottom navigation glyphs | #3 merged; #4 closed/unmerged; stale divergent UI line | | ui/liquid-glass-system-2026-11-07 | 1f7cd2e5ddc5d169d1443035a8334538e44efc40 | 2026-11-06 20:11:36 | docs(reader): record native selection collision guard | #19 closed/merged → black-box | | ui/liquid-glass-system-continuation-2026-11-07 | f031bf21229f43a992384cc23fa0f4da57e547a1 | 2026-11-07 03:18:34 | fix: finish syllabus metadata and thin-film feed eligibility | No PR; older continuation, not a baseline | ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main, 170 commits ahead of main; 91 changed files, 13,547 additions / 901 deletions at the pre-refresh snapshot. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. App-code head `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` is 172 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- Actions history is fully paginated: 400 runs (260 success / 70 failure / 70 cancelled), queued 0, in-progress 0. Runs #395/#396 passed on exact app-code head 45609a3d5d32ee02ba33c54501a497d6a00d25b7; #397/#398 passed on documentation head 42d4130cf1fe19d47ce3a450b5c530ea25d4c33e; #399/#400 passed on documentation head 80d072b39dc4075d5777f23053b7da08daa32297. This next documentation-only refresh requires its own natural validation. +- At the start of this app-code pass, Actions history was fully paginated: 402 runs (262 success / 70 failure / 70 cancelled), queued/in-progress 0. Parent runs #401/#402 passed on exact head `2b1878e58744f901eb66aca7fa792ce06488c08c`; new exact app-code runs #403/#404 started on `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` and were in progress at the snapshot. No result is attributed to the parent runs for the new code. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. @@ -2627,3 +2627,13 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t - New FeedLoadingPolicyTest covers fast load, sustained loading, immediate completion and delay bounds. Existing skeleton/article geometry and one-Coil-decode path are unchanged. - Exact prior natural CI run #392 passed on the pre-change source head 8c59dcc48dccc2bbfcba5d47337a8884f51a4356; artifact #13651565871 (39,131,198 bytes, SHA-256 c403575be0e956f3501691083c24c739e867b48db4f8b60e9400eeb7c0e0c888). It does **not** validate the new commit. New-head CI is pending natural workflow execution; no dispatch/rerun. - No Release published (latest remains v0.2.0-build-116), no main write/merge/retarget/force update, no package or privacy change. OPPO visual/runtime/performance/battery and accessibility evidence remain **UNVERIFIED**. + + +## 9 November 2026, 14:33 IST — Definition transient optics and 51-branch freshness refresh + +- **Current integration:** `black-box-bihar-news`; app-code commit `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`, direct first-parent child of `2b1878e58744f901eb66aca7fa792ce06488c08c`; **172 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, main merge base. PR #34 remains the sole draft/open consolidation PR to main. +- **Inventory:** 51 remote branches, 32 open PRs, 15 closed PRs; all second pages empty. The current table above adds the two new heads: PR #47 definition transient optics and PR #48 WordNet archive pinning. PR #47's exact 3-file diff was ported through shared `GlassSurfacePolicy`, not a duplicate policy. PR #48's workflow/builder change remains separate because it shares `.github/workflows/build-apk.yml` with the consolidation branch; no workflow file was changed. +- **Implementation:** one existing DefinitionGlassOverlay Prismal surface now uses 22dp geometry, 5dp blur, 2.5/3.5px refraction, 0.001 chromatic aberration and 0.42 tint scale with a 0.08–0.22 definition tint bound. Shared transient controls use the same named policy helper. No extra capture, sampler, readback, render pass, decode, dependency, timer, network or persistence operation. +- **Tests:** three pure JVM policy tests added in GlassSurfacePolicyTest; no Compose screenshot test because anchor/placement/content behaviour is unchanged. Exact app-code CI #403/#404 was in progress at the audit snapshot; the docs refresh requires its own natural run. No manual dispatch/rerun. +- **Release / safety:** latest Release remains `v0.2.0-build-116`; no Release, main write, merge, retarget, force update, package identity change, source-branch deletion or workflow change. +- **Device boundary:** OPPO Reno10 visuals/runtime, native selection, TalkBack, font scaling, Reduce Motion/Transparency, Perfetto/frame timing, GPU, memory, thermal and battery remain UNVERIFIED. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 1921c471..cf499862 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,52 @@ +## 9 November 2026, 14:33 IST — Definition popover adopts the shared transient material + +### Verified source and branch freshness + +- Default remains `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. +- The selected integration source before implementation was `black-box-bihar-news@2b1878e58744f901eb66aca7fa792ce06488c08c`, **171 ahead / 0 behind** main, with main as merge base. App-code commit `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` is its direct first-parent child and is **172 ahead / 0 behind** main. PR #34 remains the single open/draft, unmerged consolidation PR to main; no new branch or PR was created. +- The complete remote inventory was re-enumerated: **51 branches** (page 1 = 51, page 2 empty), **47 PRs** (**32 open, 15 closed**; second pages empty). Main and every active branch head were checked before writing. +- PR #47 `ui/definition-popup-transient-optics-2026-11-09@d848a142fd5c61388286379fec34d985771de50d` is open/draft against main, **3 ahead / 0 behind main** and **3 ahead / 172 behind** the active branch (merge base main). Its complete three-file diff was reviewed: it changes only `DefinitionGlassOverlay` optical inputs and adds a duplicate `DefinitionGlassSurfacePolicy` plus tests. The optical values are selectively integrated here through the existing `GlassSurfacePolicy`; no second definition-only material policy was added. PR #47 and its source branch remain untouched; its main-based proposal is now represented in the consolidation branch. +- PR #48 `security/pin-wordnet-archive-sha256-2026-11-09@e99e6d5b4e36b308e4435dd4d03ec6da549e06d3` is a separate main-based workflow/builder supply-chain proposal (**3 ahead / 0 behind main; 3 ahead / 172 behind active**). It changes `.github/workflows/build-apk.yml`, the WordNet builder and tests. This UI pass does not modify that shared workflow or blindly port the security proposal; reconcile it as a separate workflow review. +- PR #45 Reduce Motion, PR #46 Reduce Transparency, PR #43 Reader disposal guards, PR #44 feed-card rim wiring, PR #30 touch targets and PR #37 Search compile repair are already represented in the active code. The old `brrrNEWS`, `ui/liquid-glass-performance`, `redesign/v0.3-search-reader` and `ui/liquid-glass-system-continuation` lines remain superseded/divergent, not replacement baselines. + +### Implementation + +- `DefinitionGlassOverlay` now uses the same restrained transient optical tier as the app's other transient controls, while retaining its one existing `PrismalGlassSurface` and the same shared root backdrop: + - corner geometry: **25dp → 22dp**; + - configured blur radius: **12dp → 5dp**; + - refraction inputs: **22/24px → 2.5/3.5px**; + - chromatic aberration: **0.015 → 0.001**; + - tint multiplier: **0.62 → 0.42**, bounded to **0.08–0.22** before the existing Reduce Transparency floor. +- The existing anchor/placement calculation, safe bounds, full selected-word title, Copy/Done actions, expansion, scroll state, native Android Copy/Select/share ActionMode and dictionary bridge are unchanged. Reduce Motion still snaps the size/scale transition; Reduce Transparency still zeros blur/refraction/chromatic effects through `GlassRenderingPolicy`. +- `PrismalTransientSurface` now reads the same named chromatic/tint tokens. `GlassSurfacePolicy.transientTintAlpha` preserves the previous valid 0.05–0.22 range for ordinary transient controls, provides the definition's 0.08 minimum, and safely falls back for non-finite preference inputs. No duplicate material system was introduced. + +### Per-screen material and optimization matrix update + +| Component | Material tier / reason | Effect and capture scope | Reuse / fallback | Tests and evidence | +|---|---|---|---|---| +| DefinitionGlassOverlay | Tier 2 contextual glass; anchors the selected word and its short definition | One existing Prismal surface on the existing root backdrop; configured blur 12→5dp, refraction 22/24→2.5/3.5px, chromatic 0.015→0.001; no new capture/readback | Shared `GlassSurfacePolicy` tokens; Reduce Transparency zeros live optics; same high-contrast definition content and platform selection actions | Three pure JVM policy tests added; exact new-head CI pending; OPPO visual/performance unverified | +| Other transient controls | Tier 2 search/filter/reader menus and actions | Same existing PrismalTransientSurface; no additional surface or sampler | Shared tint helper keeps valid previous alpha values; invalid values use the safe default | Existing policy tests plus three new shared-tier tests; no device measurement | + +- **Paired cost assessment:** this reduces the configured optical inputs on the selected-word popup and aligns it with the already-shared transient tier. Render-pass count, backdrop capture/readback count, image decode count and dependency count change by **zero**. The blur/refraction reductions are code-level settings only; no GPU/frame-time, allocation, battery or memory improvement is claimed without profiling. +- **Tests added:** `definitionPopupUsesTheSharedTransientOpticalTier`, `transientTintUsesSharedScaleAndDefinitionLegibilityFloor`, and `transientTintFallsBackForNonFinitePreferenceAndMinimum` in `GlassSurfacePolicyTest`. No Compose screenshot test was added because the geometry/anchor/content path is unchanged. + +### Natural CI and release state + +- Parent exact head `2b1878e58744f901eb66aca7fa792ce06488c08c` passed natural push [#401](https://github.com/Batmancpu/CurrentLens/actions/runs/42578407942) and PR [#402](https://github.com/Batmancpu/CurrentLens/actions/runs/42578414580). The PR build job passed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder tests **4/4**, generation of **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; the main-only Release job was skipped. PR artifact [#13656181730](https://github.com/Batmancpu/CurrentLens/actions/runs/42578414580/artifacts/13656181730): **39,138,281 bytes**, SHA-256 `cb0baae48de6e8ffc88844400871b331ce6ff7baf7bb0184773fe274463f08eb`, expires 23 November 2026 07:19 UTC. These runs validate the parent, not the new app-code commit. +- Natural push [#403](https://github.com/Batmancpu/CurrentLens/actions/runs/42590469918) and PR [#404](https://github.com/Batmancpu/CurrentLens/actions/runs/42590476350) started on exact app-code head `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`; both were **in progress** when this snapshot was written. No result or artifact is claimed for the new code. The following documentation commit also requires its own natural exact-head validation; no dispatch/rerun. +- Actions history before this app-code commit was fully paginated: **402 runs** (**262 success / 70 failure / 70 cancelled**), with no queued/in-progress runs. The latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was created or published. + +### Device and regression boundary + +- OPPO Reno10 screenshots/runtime, popup contrast over varied backdrops, anchor/safe-area fit, expansion/scroll, native selection/share, TalkBack, font scaling, Reduce Motion/Transparency, frame timing/jank, GPU overdraw, memory/allocation churn, thermal and battery remain **UNVERIFIED**. CI/JVM success does not prove launch stability or visual smoothness. +- No package/app identity, networking, WebView permission, WordNet runtime, persistence, quiz submit-only semantics, primary destination, workflow or Release behaviour changed. + +### Next + +Inspect the exact final-head natural push/PR jobs, full logs and artifacts before another app-code batch. Then continue the whole-app transient/material consistency audit; preserve the existing single root backdrop, expanded-only tab glyph source, feed-only compact navigation and reader overlay/selection pins. + +--- + # Live implementation batch — isolate Reader WebView disposal actions (9 November 2026, 12:30 IST) **App-code commit:** 45609a3d5d32ee02ba33c54501a497d6a00d25b7, a direct first-parent child of black-box-bihar-news@23acb979ccc903aaab53f2fdaa67e9610ba2c2f0. The parent was 167 ahead / 0 behind main@73b8a0d1ba33503fede02db2c3c0af082d724a12; the implementation head is 168 ahead / 0 behind, with main as merge base. The accompanying documentation head at this verification snapshot is 80d072b39dc4075d5777f23053b7da08daa32297, 170 ahead / 0 behind. PR #34 remains open/draft, unmerged and based on main. No new branch or PR was created. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index a3f396eb..4a61a3dc 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -489,3 +489,18 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Parent CI:** #367/#368 passed on parent `3173bd9a4af5483d134fda1d5b756a2f5657d03d`; WordNet 151,456 unique words, unit tests, APK assembly and artifact upload. Artifact #13630179831 (39,122,992 bytes). Release skipped. Parent runs do not validate this change. - **Device:** native launch-crash root cause remains unestablished; OPPO, Reader/IME/selection, accessibility, Reduce Motion and Perfetto remain **UNVERIFIED**. - **Safety:** no main edit, merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change or branch deletion. + + +## 2026-11-09 14:33 IST / 2026-11-09 09:03 UTC — Definition popup adopts the shared transient material + +- **Request / product principle:** continue the app-wide Liquid Glass system while pairing every optical effect with a bounded, reusable cost strategy; retain calm, high-contrast definition content and native Android selection actions. +- **Source / branch:** `Batmancpu/CurrentLens`, `black-box-bihar-news`; parent `2b1878e58744f901eb66aca7fa792ce06488c08c`, 171 ahead / 0 behind `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is merge base. App-code commit `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` is a direct first-parent child, 172 ahead / 0 behind. PR #34 remains open/draft and unmerged. +- **Freshness:** complete graph rechecked: 51 branches, 32 open PRs, 15 closed PRs; all second pages empty. PR #47's full three-file diff was reviewed (3 ahead / 0 behind main; 3 ahead / 172 behind active) and its values were adapted into the existing shared `GlassSurfacePolicy` rather than adding a second definition-specific policy. PR #47/source branch remain untouched. PR #48 is a separate workflow/WordNet builder security proposal; it was not ported because it overlaps the same workflow and is outside this UI batch. PR #45/#46, #43/#44, #30 and #37 are already represented. +- **Files:** `MainActivity.kt`, `GlassSurfacePolicy.kt`, `GlassSurfacePolicyTest.kt`, `LIQUID_GLASS_UI_ROADMAP.md`, `BRANCH_CONSOLIDATION.md`, and this ledger. +- **Behaviour:** DefinitionGlassOverlay now shares the transient 22dp/5dp/2.5px/3.5px/0.001/0.42 tier, with definition tint clamped to 0.08–0.22 before the existing Reduce Transparency floor. The existing anchored Layout, safe bounds, selected word, Copy/Done, expansion, scroll, Back handling, Reduce Motion snap and native Copy/Select/share ActionMode are unchanged. +- **Shared policy:** PrismalTransientSurface now uses named chromatic/tint tokens. Valid existing transient alpha values are unchanged; the new helper safely handles non-finite preference values and permits a context-specific minimum without duplicating optical constants. +- **Tests:** three pure JVM tests cover shared optical tokens, definition tint scale/floor/endpoints and non-finite fallback. Tests are **added, not yet verified on this head** at this ledger update. +- **Paired optimization:** configured popup blur falls 12→5dp, refraction inputs 22/24→2.5/3.5px, chromatic 0.015→0.001. Same single Prismal surface/root backdrop; zero additional captures/readbacks, render passes, image decodes, dependencies, timers, network or persistence. This is a source-level parameter reduction only; no measured GPU/frame-time, memory, battery or thermal gain is claimed. +- **Parent CI:** natural push #401 and PR #402 passed on parent `2b1878e58744f901eb66aca7fa792ce06488c08c`; WordNet builder 4/4, 151,456 words / 50,950,144 bytes, JVM tests, APK assembly and artifact upload passed. PR artifact #13656181730 (39,138,281 bytes, SHA-256 `cb0baae48de6e8ffc88844400871b331ce6ff7baf7bb0184773fe274463f08eb`). Parent runs do not validate this change. Natural #403/#404 started on exact app-code commit and were in progress; no result claimed. +- **Device:** OPPO Reno10 popup appearance/anchor/selection, TalkBack, font scale, Reduce Motion/Transparency, frame timing, GPU, memory, thermal and battery remain **UNVERIFIED**. +- **Safety:** no main write, merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change, source-branch mutation or deletion. From 59c54cedadd1ad97a96c00d63cb3d020343ee2cd Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 14:36:59 +0530 Subject: [PATCH 171/175] test(glass): align non-finite tint expectation with default --- .../com/mangoloads/currentlens/GlassSurfacePolicyTest.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index 675a6c02..a657b750 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -330,7 +330,11 @@ class GlassSurfacePolicyTest { @Test fun transientTintFallsBackForNonFinitePreferenceAndMinimum() { - val expected = GlassSurfacePolicy.transientTintAlpha(0.32f, minimumAlpha = 0.08f) + val expected = GlassSurfacePolicy.transientTintAlpha( + AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA, + minimumAlpha = 0.08f + ) + assertEquals(0.1176f, expected, 0.0001f) assertEquals( expected, GlassSurfacePolicy.transientTintAlpha(Float.NaN, minimumAlpha = 0.08f), From aee50ffcd4ccc9f958a9e09d4debec364ac0debe Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 14:41:53 +0530 Subject: [PATCH 172/175] docs: record transient tint CI correction and recovery --- docs/BRANCH_CONSOLIDATION.md | 18 +++++++++++++----- docs/LIQUID_GLASS_UI_ROADMAP.md | 6 +++--- docs/SESSION_LEDGER.md | 8 ++++++++ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index e6ca3a7c..8d2299cc 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,7 +1,7 @@ -# Live repository inventory — 9 November 2026, 14:33 IST +# Live repository inventory — 9 November 2026, 14:39 IST **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Selected integration branch:** black-box-bihar-news. The current app-code head is `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` (2026-11-09 09:03:35 UTC), a direct child of the verified pre-change source `2b1878e58744f901eb66aca7fa792ce06488c08c`; it is 172 ahead / 0 behind main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory is the documentation snapshot for that app-code head; its own docs-only commit follows. +**Selected integration branch:** black-box-bihar-news. The Liquid Glass app-code commit is `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`; the evidence-backed test correction is `59c54cedadd1ad97a96c00d63cb3d020343ee2cd` (2026-11-09 09:06:59 UTC), a direct child of docs head `b8d87f7448e47be6869ce8a107b1d67dd8b4639d`. The test-fix head is **174 ahead / 0 behind** main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory is the docs snapshot for that verified test-fix head; its own docs-only commit follows. The complete live branch list was paginated: **51 branches** on page 1, page 2 empty. Pull requests: **47 total (32 open, 15 closed)**, page 2 empty. Every branch head SHA, latest commit timestamp/message and PR relationship is recorded below; closed PRs are distinguished as merged or closed/unmerged. All source branches are retained. @@ -10,7 +10,7 @@ The complete live branch list was paginated: **51 branches** on page 1, page 2 e | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | fb2e75c3f82f18896bfa5dff623a9ba9da263d15 | 2026-11-09 09:03:35 UTC | ui(glass): align definition popup with transient material tier | #34 open/draft → main; current app-code head; docs refresh follows | +| black-box-bihar-news | 59c54cedadd1ad97a96c00d63cb3d020343ee2cd | 2026-11-09 09:06:59 UTC | test(glass): align non-finite tint expectation with default | #34 open/draft → main; test-fix head; app-code commit fb2e75c3f82f18896bfa5dff623a9ba9da263d15 | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -59,9 +59,9 @@ The complete live branch list was paginated: **51 branches** on page 1, page 2 e ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. App-code head `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` is 172 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. Test-fix head `59c54cedadd1ad97a96c00d63cb3d020343ee2cd` is 174 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- At the start of this app-code pass, Actions history was fully paginated: 402 runs (262 success / 70 failure / 70 cancelled), queued/in-progress 0. Parent runs #401/#402 passed on exact head `2b1878e58744f901eb66aca7fa792ce06488c08c`; new exact app-code runs #403/#404 started on `fb2e75c3f82f18896bfa5dff623a9ba9da263d15` and were in progress at the snapshot. No result is attributed to the parent runs for the new code. +- Actions history is fully paginated through run #408: 408 total (263 success / 73 failure / 71 cancelled); run #407 remained in progress. Runs #403/#404 failed on the app-code commit because one new test expectation used 0.32 instead of the non-finite fallback default 0.28; #405 reproduced the same failure on docs head b8d87f; #406 was cancelled after the test-only correction. PR run #408 passed on exact test-fix head `59c54cedadd1ad97a96c00d63cb3d020343ee2cd`, including WordNet generation, JVM tests, APK assembly and artifact upload. Artifact #13661132492: 39,139,519 bytes; SHA-256 `3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c`. Push run #407 was still in progress at this snapshot. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. @@ -2637,3 +2637,11 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t - **Tests:** three pure JVM policy tests added in GlassSurfacePolicyTest; no Compose screenshot test because anchor/placement/content behaviour is unchanged. Exact app-code CI #403/#404 was in progress at the audit snapshot; the docs refresh requires its own natural run. No manual dispatch/rerun. - **Release / safety:** latest Release remains `v0.2.0-build-116`; no Release, main write, merge, retarget, force update, package identity change, source-branch deletion or workflow change. - **Device boundary:** OPPO Reno10 visuals/runtime, native selection, TalkBack, font scaling, Reduce Motion/Transparency, Perfetto/frame timing, GPU, memory, thermal and battery remain UNVERIFIED. + +## 9 November 2026, 14:39 IST — CI assertion correction and exact-head recovery + +- Failure evidence: natural runs #403 (push) and #404 (PR) failed on fb2e75c3f82f18896bfa5dff623a9ba9da263d15; the same test-only failure repeated on #405 at docs head b8d87f7448e47be6869ce8a107b1d67dd8b4639d. All setup and WordNet steps succeeded; Gradle reported GlassSurfacePolicyTest > transientTintFallsBackForNonFinitePreferenceAndMinimum FAILED, GlassSurfacePolicyTest.kt:334, 334 tests completed / 1 failed. APK assembly and artifact upload were skipped. PR run #406 was cancelled when the test correction was pushed. +- Root cause: the test derived its expected value from a finite intensity of 0.32, but the production policy deliberately substitutes AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA (0.28) for non-finite inputs; with the shared 0.42 scale the correct fallback is 0.1176. The implementation was correct; the test expectation was wrong. +- Correction: test-only commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd now derives the expected value from DEFAULT_GLASS_ALPHA and explicitly asserts 0.1176. No production code, visual effect or policy threshold changed. +- Exact natural verification: PR run #408 passed on that exact commit. WordNet builder 4/4, 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and artifact upload all passed. Artifact #13661132492: 39,139,519 bytes, SHA-256 3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c. Push run #407 was still in progress; no push result is claimed. +- Next gate: no further app-code change until the final docs head receives its own natural PR validation and run #407 is inspected. No manual dispatch/rerun or Release publication. \ No newline at end of file diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index cf499862..554a00b3 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -28,13 +28,13 @@ | Other transient controls | Tier 2 search/filter/reader menus and actions | Same existing PrismalTransientSurface; no additional surface or sampler | Shared tint helper keeps valid previous alpha values; invalid values use the safe default | Existing policy tests plus three new shared-tier tests; no device measurement | - **Paired cost assessment:** this reduces the configured optical inputs on the selected-word popup and aligns it with the already-shared transient tier. Render-pass count, backdrop capture/readback count, image decode count and dependency count change by **zero**. The blur/refraction reductions are code-level settings only; no GPU/frame-time, allocation, battery or memory improvement is claimed without profiling. -- **Tests added:** `definitionPopupUsesTheSharedTransientOpticalTier`, `transientTintUsesSharedScaleAndDefinitionLegibilityFloor`, and `transientTintFallsBackForNonFinitePreferenceAndMinimum` in `GlassSurfacePolicyTest`. No Compose screenshot test was added because the geometry/anchor/content path is unchanged. +- **Tests added:** `definitionPopupUsesTheSharedTransientOpticalTier`, `transientTintUsesSharedScaleAndDefinitionLegibilityFloor`, and `transientTintFallsBackForNonFinitePreferenceAndMinimum` in `GlassSurfacePolicyTest`. The first CI failure was a **test expectation defect**, not a production-policy defect: the test compared a non-finite input's safe fallback (DEFAULT_GLASS_ALPHA = 0.28, tint 0.1176) against an expected value derived from 0.32 (0.1344). Test-only commit `59c54cedadd1ad97a96c00d63cb3d020343ee2cd` now derives the expected value from the default preference and asserts 0.1176. No production code changed in the correction. No Compose screenshot test was added because the geometry/anchor/content path is unchanged. ### Natural CI and release state - Parent exact head `2b1878e58744f901eb66aca7fa792ce06488c08c` passed natural push [#401](https://github.com/Batmancpu/CurrentLens/actions/runs/42578407942) and PR [#402](https://github.com/Batmancpu/CurrentLens/actions/runs/42578414580). The PR build job passed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder tests **4/4**, generation of **151,456 unique words / 50,950,144 bytes**, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; the main-only Release job was skipped. PR artifact [#13656181730](https://github.com/Batmancpu/CurrentLens/actions/runs/42578414580/artifacts/13656181730): **39,138,281 bytes**, SHA-256 `cb0baae48de6e8ffc88844400871b331ce6ff7baf7bb0184773fe274463f08eb`, expires 23 November 2026 07:19 UTC. These runs validate the parent, not the new app-code commit. -- Natural push [#403](https://github.com/Batmancpu/CurrentLens/actions/runs/42590469918) and PR [#404](https://github.com/Batmancpu/CurrentLens/actions/runs/42590476350) started on exact app-code head `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`; both were **in progress** when this snapshot was written. No result or artifact is claimed for the new code. The following documentation commit also requires its own natural exact-head validation; no dispatch/rerun. -- Actions history before this app-code commit was fully paginated: **402 runs** (**262 success / 70 failure / 70 cancelled**), with no queued/in-progress runs. The latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC). No Release was created or published. +- Natural push [#403](https://github.com/Batmancpu/CurrentLens/actions/runs/42590469918) and PR [#404](https://github.com/Batmancpu/CurrentLens/actions/runs/42590476350) both **failed** on exact app-code head `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`. WordNet builder 4/4 and the 151,456-word / 50,950,144-byte database passed; Gradle reached `:app:testDebugUnitTest`, where 334 tests completed and one assertion failed at `GlassSurfacePolicyTest.kt:334`. `:app:assembleDebug` and artifact upload were skipped. Push #405 on docs-only head `b8d87f7448e47be6869ce8a107b1d67dd8b4639d` reproduced the same assertion; PR run #406 on that docs head was cancelled when the test-fix push arrived. Full job logs identify `transientTintFallsBackForNonFinitePreferenceAndMinimum`. +- Actions history is now fully paginated through run **#408**: **408 runs** (**263 success / 73 failure / 71 cancelled**), with #407 still in progress at this snapshot. Natural PR run [#408](https://github.com/Batmancpu/CurrentLens/actions/runs/42590914182) **passed on exact test-fix head** `59c54cedadd1ad97a96c00d63cb3d020343ee2cd`: all build steps completed, WordNet builder 4/4, 151,456 words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload. Artifact [#13661132492](https://github.com/Batmancpu/CurrentLens/actions/runs/42590914182/artifacts/13661132492): **39,139,519 bytes**, SHA-256 `3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c`, expires 23 November 2026 09:09:04 UTC. Natural push run #407 on the same exact head remained in progress at the snapshot. The next docs-only head requires its own natural validation. Latest published Release remains `v0.2.0-build-116` (6 November 2026 11:18:59 UTC); no Release was created or published. ### Device and regression boundary diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 4a61a3dc..2fb1d696 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -504,3 +504,11 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - **Parent CI:** natural push #401 and PR #402 passed on parent `2b1878e58744f901eb66aca7fa792ce06488c08c`; WordNet builder 4/4, 151,456 words / 50,950,144 bytes, JVM tests, APK assembly and artifact upload passed. PR artifact #13656181730 (39,138,281 bytes, SHA-256 `cb0baae48de6e8ffc88844400871b331ce6ff7baf7bb0184773fe274463f08eb`). Parent runs do not validate this change. Natural #403/#404 started on exact app-code commit and were in progress; no result claimed. - **Device:** OPPO Reno10 popup appearance/anchor/selection, TalkBack, font scale, Reduce Motion/Transparency, frame timing, GPU, memory, thermal and battery remain **UNVERIFIED**. - **Safety:** no main write, merge/retarget, workflow change, manual dispatch/rerun, Release publication, package identity change, source-branch mutation or deletion. + +## 2026-11-09 14:39 IST / 2026-11-09 09:06:59 UTC — Correct the transient tint fallback test + +- Trigger: natural runs #403/#404 failed after the DefinitionGlassOverlay transient-material pass; #405 reproduced the same failure on the documentation-only head. Full logs show WordNet builder 4/4 and database generation succeeded, then :app:testDebugUnitTest failed one assertion: GlassSurfacePolicyTest > transientTintFallsBackForNonFinitePreferenceAndMinimum, line 334 (334 tests, one failure). APK assembly/artifact upload were skipped. PR run #406 was cancelled by the subsequent test-fix push. +- Diagnosis: the production helper correctly maps non-finite glass intensity to AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA (0.28). The test incorrectly computed expected tint from 0.32 (0.1344) instead of the fallback (0.28 × 0.42 = 0.1176). +- Fix: commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd changes only GlassSurfacePolicyTest.kt: derive expected from the default preference and assert 0.1176. Production code and visual policy remain unchanged. +- Verification: natural PR run #408 passed on exact commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd: WordNet 151,456 words / 50,950,144 bytes, JVM tests, debug APK assembly and artifact upload. Artifact #13661132492 (39,139,519 bytes; SHA-256 3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c). Natural push run #407 was still in progress; no result claimed. +- Safety/device: no workflow, main, release, package, networking, WebView, persistence or source-branch change. OPPO Reno10 appearance, native selection, TalkBack, frame-time, GPU, memory, thermal and battery remain UNVERIFIED. \ No newline at end of file From 26878fcd62b86d54075ccf6e93898d63f20aedac Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 15:33:32 +0530 Subject: [PATCH 173/175] ui(glass): tune supporting surfaces across appearance intensity --- .../currentlens/GlassSurfacePolicy.kt | 25 +++++++---- .../mangoloads/currentlens/MainActivity.kt | 2 +- .../currentlens/GlassSurfacePolicyTest.kt | 43 +++++++++++-------- docs/BRANCH_CONSOLIDATION.md | 21 ++++++--- docs/LIQUID_GLASS_UI_ROADMAP.md | 34 +++++++++++++++ 5 files changed, 91 insertions(+), 34 deletions(-) diff --git a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt index 4c355813..15a6ba0f 100644 --- a/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt +++ b/app/src/main/java/com/mangoloads/currentlens/GlassSurfacePolicy.kt @@ -20,8 +20,10 @@ internal object GlassSurfacePolicy { const val FILTER_SHEET_CORNER_RADIUS_DP = 28f const val READER_MENU_CORNER_RADIUS_DP = 18f - private const val SUPPORTING_SURFACE_ALPHA_DARK = 0.93f - private const val SUPPORTING_SURFACE_ALPHA_LIGHT = 0.965f + private const val SUPPORTING_SURFACE_ALPHA_DARK_CLEAR = 0.90f + private const val SUPPORTING_SURFACE_ALPHA_DARK_FROSTED = 0.95f + private const val SUPPORTING_SURFACE_ALPHA_LIGHT_CLEAR = 0.945f + private const val SUPPORTING_SURFACE_ALPHA_LIGHT_FROSTED = 0.98f private const val SUPPORTING_SURFACE_ALPHA_DARK_REDUCED = 0.975f private const val SUPPORTING_SURFACE_ALPHA_LIGHT_REDUCED = 0.985f private const val SUPPORTING_TINT_DARK_CLEAR = 0.09f @@ -43,12 +45,19 @@ internal object GlassSurfacePolicy { fun supportingSurfaceAlpha( dark: Boolean, - reduceTransparency: Boolean = false - ): Float = when { - reduceTransparency && dark -> SUPPORTING_SURFACE_ALPHA_DARK_REDUCED - reduceTransparency -> SUPPORTING_SURFACE_ALPHA_LIGHT_REDUCED - dark -> SUPPORTING_SURFACE_ALPHA_DARK - else -> SUPPORTING_SURFACE_ALPHA_LIGHT + reduceTransparency: Boolean = false, + glassAlpha: Float = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA + ): Float { + if (reduceTransparency) { + return if (dark) SUPPORTING_SURFACE_ALPHA_DARK_REDUCED + else SUPPORTING_SURFACE_ALPHA_LIGHT_REDUCED + } + val progress = intensityProgress(glassAlpha) + val clear = if (dark) SUPPORTING_SURFACE_ALPHA_DARK_CLEAR + else SUPPORTING_SURFACE_ALPHA_LIGHT_CLEAR + val frosted = if (dark) SUPPORTING_SURFACE_ALPHA_DARK_FROSTED + else SUPPORTING_SURFACE_ALPHA_LIGHT_FROSTED + return clear + (frosted - clear) * progress } /** diff --git a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt index 7b0109b5..54b9c705 100644 --- a/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt +++ b/app/src/main/java/com/mangoloads/currentlens/MainActivity.kt @@ -1986,7 +1986,7 @@ private fun SupportingGlassCard( shape = shape, colors = CardDefaults.cardColors( containerColor = colors.surface.copy( - alpha = GlassSurfacePolicy.supportingSurfaceAlpha(dark, reduceTransparency) + alpha = GlassSurfacePolicy.supportingSurfaceAlpha(dark, reduceTransparency, glassAlpha) ) ), elevation = CardDefaults.cardElevation(defaultElevation = 0.dp) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index a657b750..cb646281 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -7,34 +7,41 @@ import org.junit.Test class GlassSurfacePolicyTest { @Test fun supportingContentRemainsNearlyOpaqueForReadability() { - assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = true) in 0.92f..0.95f) - assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) in 0.95f..0.98f) + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = true) in 0.91f..0.93f) + assertTrue(GlassSurfacePolicy.supportingSurfaceAlpha(dark = false) in 0.95f..0.97f) } @Test - fun supportingCardsUseMoreOpaqueStaticFallbackWhenTransparencyIsReduced() { + fun supportingCardFillTracksClearToFrostedAndRespectsReducedTransparency() { val clear = AppearancePreferencesPolicy.MIN_GLASS_ALPHA + val balanced = AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA val frosted = AppearancePreferencesPolicy.MAX_GLASS_ALPHA - assertEquals(0.93f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = true), 0.0001f) - assertEquals(0.965f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = false), 0.0001f) - assertEquals(0.975f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = true, reduceTransparency = true), 0.0001f) - assertEquals(0.985f, GlassSurfacePolicy.supportingSurfaceAlpha(dark = false, reduceTransparency = true), 0.0001f) - - assertEquals(0.11f, GlassSurfacePolicy.supportingTintAlpha(true, clear, true), 0.0001f) - assertEquals(0.07f, GlassSurfacePolicy.supportingTintAlpha(false, clear, true), 0.0001f) - assertEquals(0.145f, GlassSurfacePolicy.supportingTintAlpha(true, frosted, true), 0.0001f) - assertEquals(0.23f, GlassSurfacePolicy.supportingRimAlpha(true, clear, true), 0.0001f) - assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, clear, true), 0.0001f) - assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, frosted, true), 0.0001f) + assertEquals(0.90f, GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = clear), 0.0001f) + assertEquals(0.95f, GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = frosted), 0.0001f) + assertEquals(0.945f, GlassSurfacePolicy.supportingSurfaceAlpha(false, glassAlpha = clear), 0.0001f) + assertEquals(0.98f, GlassSurfacePolicy.supportingSurfaceAlpha(false, glassAlpha = frosted), 0.0001f) + assertEquals(0.9186f, GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = balanced), 0.0001f) + assertEquals(0.9580f, GlassSurfacePolicy.supportingSurfaceAlpha(false, glassAlpha = balanced), 0.0001f) assertTrue( - GlassSurfacePolicy.supportingSurfaceAlpha(true, true) > - GlassSurfacePolicy.supportingSurfaceAlpha(true) + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = clear) < + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = balanced) + ) + assertTrue( + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = balanced) < + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = frosted) ) + assertEquals(0.975f, GlassSurfacePolicy.supportingSurfaceAlpha(true, true, clear), 0.0001f) + assertEquals(0.985f, GlassSurfacePolicy.supportingSurfaceAlpha(false, true, frosted), 0.0001f) assertTrue( - GlassSurfacePolicy.supportingRimAlpha(false, clear, true) >= - GlassSurfacePolicy.supportingRimAlpha(false, clear) + GlassSurfacePolicy.supportingSurfaceAlpha(true, true, clear) > + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = frosted) + ) + assertEquals( + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = balanced), + GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = Float.NaN), + 0.0001f ) } diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index 8d2299cc..e49be882 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,16 +1,16 @@ -# Live repository inventory — 9 November 2026, 14:39 IST +# Live repository inventory — 9 November 2026, 15:26 IST **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Selected integration branch:** black-box-bihar-news. The Liquid Glass app-code commit is `fb2e75c3f82f18896bfa5dff623a9ba9da263d15`; the evidence-backed test correction is `59c54cedadd1ad97a96c00d63cb3d020343ee2cd` (2026-11-09 09:06:59 UTC), a direct child of docs head `b8d87f7448e47be6869ce8a107b1d67dd8b4639d`. The test-fix head is **174 ahead / 0 behind** main, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This inventory is the docs snapshot for that verified test-fix head; its own docs-only commit follows. +**Selected integration branch:** `black-box-bihar-news@aee50ffcd4ccc9f958a9e09d4debec364ac0debe` (2026-11-09 09:11:53 UTC), a direct first-parent child of `59c54cedadd1ad97a96c00d63cb3d020343ee2cd`. It is **175 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. The next supporting-surface opacity batch is a direct continuation of this verified source. -The complete live branch list was paginated: **51 branches** on page 1, page 2 empty. Pull requests: **47 total (32 open, 15 closed)**, page 2 empty. Every branch head SHA, latest commit timestamp/message and PR relationship is recorded below; closed PRs are distinguished as merged or closed/unmerged. All source branches are retained. +The complete live branch list was paginated: **51 branches** (30 on page 1, 21 on page 2). Pull requests: **48 total (32 open, 16 closed)**; 11 merged and 5 closed/unmerged. All pages were exhausted. Every branch head SHA, latest commit timestamp/message and PR relationship is recorded below; all source branches are retained. | Remote branch | Head SHA | Latest commit UTC | Subject | PR / relationship | |---|---|---|---|---| | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | 59c54cedadd1ad97a96c00d63cb3d020343ee2cd | 2026-11-09 09:06:59 UTC | test(glass): align non-finite tint expectation with default | #34 open/draft → main; test-fix head; app-code commit fb2e75c3f82f18896bfa5dff623a9ba9da263d15 | +| black-box-bihar-news | aee50ffcd4ccc9f958a9e09d4debec364ac0debe | 2026-11-09 09:11:53 UTC | docs: record transient tint CI correction and recovery | #34 open/draft → main; verified parent for the 15:26 supporting-surface batch | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -59,9 +59,9 @@ The complete live branch list was paginated: **51 branches** on page 1, page 2 e ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. Test-fix head `59c54cedadd1ad97a96c00d63cb3d020343ee2cd` is 174 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. Verified source head `aee50ffcd4ccc9f958a9e09d4debec364ac0debe` is 175 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- Actions history is fully paginated through run #408: 408 total (263 success / 73 failure / 71 cancelled); run #407 remained in progress. Runs #403/#404 failed on the app-code commit because one new test expectation used 0.32 instead of the non-finite fallback default 0.28; #405 reproduced the same failure on docs head b8d87f; #406 was cancelled after the test-only correction. PR run #408 passed on exact test-fix head `59c54cedadd1ad97a96c00d63cb3d020343ee2cd`, including WordNet generation, JVM tests, APK assembly and artifact upload. Artifact #13661132492: 39,139,519 bytes; SHA-256 `3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c`. Push run #407 was still in progress at this snapshot. +- Actions history is fully paginated through run #410: **410 total** (266 success / 73 failure / 71 cancelled); queued/in-progress **0**. Natural push #409 and PR #410 both passed on exact source head `aee50ffcd4ccc9f958a9e09d4debec364ac0debe`. Both build jobs completed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder 4/4, generation of 151,456 words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; `BUILD SUCCESSFUL` in 1m30s / 1m31s. Push artifact #13661258665: 39,139,521 bytes, SHA-256 `6586d22e59ba2f59f9614fe05f84ada204c9113ac5d66be2bdb4c3aaf46e09f8`. PR artifact #13661691483: 39,139,519 bytes, SHA-256 `12ed8bd14a0abaa103d9db5bf23df1bb04b27b01e3e90f0d527eb4f664eafe06`, expires 23 November 2026 09:14 UTC. Main-only Release jobs skipped. These runs validate the source parent, not the next supporting-surface commit. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. @@ -2644,4 +2644,11 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t - Root cause: the test derived its expected value from a finite intensity of 0.32, but the production policy deliberately substitutes AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA (0.28) for non-finite inputs; with the shared 0.42 scale the correct fallback is 0.1176. The implementation was correct; the test expectation was wrong. - Correction: test-only commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd now derives the expected value from DEFAULT_GLASS_ALPHA and explicitly asserts 0.1176. No production code, visual effect or policy threshold changed. - Exact natural verification: PR run #408 passed on that exact commit. WordNet builder 4/4, 151,456 unique words / 50,950,144 bytes, :app:testDebugUnitTest, :app:assembleDebug and artifact upload all passed. Artifact #13661132492: 39,139,519 bytes, SHA-256 3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c. Push run #407 was still in progress; no push result is claimed. -- Next gate: no further app-code change until the final docs head receives its own natural PR validation and run #407 is inspected. No manual dispatch/rerun or Release publication. \ No newline at end of file +- Next gate: no further app-code change until the final docs head receives its own natural PR validation and run #407 is inspected. No manual dispatch/rerun or Release publication. +## 9 November 2026, 15:26 IST — Supporting-card opacity and branch freshness + +- Source parent: `black-box-bihar-news@aee50ffcd4ccc9f958a9e09d4debec364ac0debe`; compare `main...black-box-bihar-news` = **175 ahead / 0 behind**, merge base main. PR #34 is the only consolidation PR to main. +- Complete inventory: 51 branches, 48 PRs (32 open / 16 closed; 11 merged / 5 closed-unmerged). The exact branch ledger above includes all branch heads and their latest commit timestamps/messages. +- PR #47 is 3 commits ahead / 175 behind the integration branch from common base main; its 5dp transient definition optics are already represented through the shared `GlassSurfacePolicy`, so no duplicate policy was ported. PR #45's standalone dictionary Reduce Motion is present. PR #43's WebView settle callback, Exception-only cleanup guard and tests are present. PR #48 is a separate 3-commit WordNet builder/workflow integrity proposal from main; no workflow or builder change was made in this UI batch. +- Natural Actions #409 (push) and #410 (PR) passed on the exact source parent. The new code/documentation commit requires its own natural CI; no manual dispatch/rerun, Release publication or main write. +- Current Release: `v0.2.0-build-116`, published 6 November 2026 11:18:59 UTC. No newer Release exists. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 554a00b3..799f67dd 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -1,3 +1,37 @@ +## 9 November 2026, 15:26 IST — Supporting dashboard and stats glass follows Clear↔Frosted + +### Freshness and branch decision +- Verified source: `black-box-bihar-news@aee50ffcd4ccc9f958a9e09d4debec364ac0debe`, **175 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`; main is the merge base. PR #34 is the single open/draft consolidation PR targeting main. This batch is a direct first-parent continuation of that source; no new branch or PR. +- Complete live inventory: **51 remote branches** (30 + 21 across both pages), **48 PRs** (32 open, 16 closed; 11 merged, 5 closed/unmerged). All branch and PR pages were exhausted. PR #47's three-file proposal is already represented through the existing shared `GlassSurfacePolicy`; PR #45 Reduce Motion, PR #43 Reader disposal and PR #30 touch targets are represented. PR #48 remains a separate main-based WordNet build supply-chain/workflow review and is not mixed into this UI pass. The stale `ui/liquid-glass-performance` and `redesign/v0.3-search-reader` branches remain excluded. +- The current integration workflow is `.github/workflows/build-apk.yml`: read-only build/test permissions, isolated main-push Release-write job. No workflow change. + +### Implementation +- `GlassSurfacePolicy.supportingSurfaceAlpha` now interpolates the static supporting-card fill between Clear and Frosted: dark **0.90→0.95**, light **0.945→0.98**. The balanced default resolves to approximately **0.9186 dark / 0.9580 light**; non-finite values use the existing safe default. Reduce Transparency remains fixed at **0.975 / 0.985**. +- `SupportingGlassCard` now passes the same local Clear↔Frosted intensity already used by its tint and rim into the fill policy. This brings You dashboard metrics/destinations, Saved and Stats supporting/empty surfaces, and the Appearance preview into one consistent supporting-glass response. Article body, feed-card content, quiz questions and data copy remain high-contrast content surfaces. +- No card layout, data derivation, filters, navigation, persistence or quiz submit-only semantics changed. + +### Paired performance and accessibility +- Added **zero** live blur surfaces, refraction, shaders, graphics layers, backdrop captures/readbacks, image decodes, dependencies, timers, polling, network work or storage work. Existing Card, cached shape, tint gradient and rim brush are reused; the only added work is one bounded intensity interpolation for an existing fill alpha. +- Appearance slider preview remains local to its child composition while dragging; the app-wide preference is still committed on release. Reduce Transparency keeps the stronger static fill and does not add a blur fallback. +- Focused JVM tests cover Clear/Balanced/Frosted endpoints, default/non-finite fallback, and reduced-transparency opacity. No screenshot test is added because component geometry/content and interaction are unchanged. + +### Per-screen coverage / optimization matrix +| Surface | Material tier / reason | Effect scope and reuse | Fallback / accessibility | Verification | +|---|---|---|---|---| +| You dashboard metrics, destinations and practice-empty panel | Tier 3 supporting static glass; quiet depth for personal activity/library | Existing Card + one tint gradient + one rim brush + shared continuous shape; no live capture | High-opacity fill, readable typography and existing button semantics | New policy JVM tests; exact-head CI pending | +| Saved empty states; Reading Stats and Quiz Stats metric/list cards | Tier 3 supporting static glass; consistent secondary-surface hierarchy | Same shared SupportingGlassCard; stable LazyColumn keys and existing data calculations | Reduced Transparency uses 0.975/0.985 fill; quiz data remains submit-only | New policy JVM tests; exact-head CI pending | +| Appearance live preview | Tier 3 supporting card inside one existing Tier 2 Prismal preview | Reuses preview-local intensity; one existing live transient surface, no nested blur | 48dp slider/switch controls and local preview updates; reduced effects remain static | Policy tests; device preview unverified | + +### CI, release and device boundary +- Parent exact-head natural push #409 and PR #410 passed on `aee50ffcd4ccc9f958a9e09d4debec364ac0debe`; they do **not** validate this new commit. Natural exact-head CI for this batch is pending; no dispatch/rerun. +- OPPO Reno10 appearance, contrast over live backdrops, TalkBack, font scaling, frame timing/jank, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. This opacity tuning is a design-token change, not a measured performance improvement. +- No main write, merge, PR retarget, Release publication, package identity change, source-branch mutation/deletion or workflow change. + +### Next +- Inspect this exact head's natural push and PR runs, full job logs and artifacts. If they pass, continue the next whole-app consistency batch; keep device visual/performance validation explicitly separate from CI. + +--- + ## 9 November 2026, 14:33 IST — Definition popover adopts the shared transient material ### Verified source and branch freshness From 8daadee450ee59a8cffb3227b8460c2bbf6de794 Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Mon, 9 Nov 2026 15:37:37 +0530 Subject: [PATCH 174/175] test(glass): preserve supporting transparency fallback coverage --- .../currentlens/GlassSurfacePolicyTest.kt | 12 ++++++++++++ docs/BRANCH_CONSOLIDATION.md | 16 +++++++++++----- docs/LIQUID_GLASS_UI_ROADMAP.md | 4 ++-- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt index cb646281..029e43c1 100644 --- a/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt +++ b/app/src/test/java/com/mangoloads/currentlens/GlassSurfacePolicyTest.kt @@ -34,6 +34,18 @@ class GlassSurfacePolicyTest { ) assertEquals(0.975f, GlassSurfacePolicy.supportingSurfaceAlpha(true, true, clear), 0.0001f) assertEquals(0.985f, GlassSurfacePolicy.supportingSurfaceAlpha(false, true, frosted), 0.0001f) + + // Preserve the existing supporting-tint/rim Reduce Transparency floors. + assertEquals(0.11f, GlassSurfacePolicy.supportingTintAlpha(true, clear, true), 0.0001f) + assertEquals(0.07f, GlassSurfacePolicy.supportingTintAlpha(false, clear, true), 0.0001f) + assertEquals(0.145f, GlassSurfacePolicy.supportingTintAlpha(true, frosted, true), 0.0001f) + assertEquals(0.23f, GlassSurfacePolicy.supportingRimAlpha(true, clear, true), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, clear, true), 0.0001f) + assertEquals(0.16f, GlassSurfacePolicy.supportingRimAlpha(false, frosted, true), 0.0001f) + assertTrue( + GlassSurfacePolicy.supportingRimAlpha(false, clear, true) >= + GlassSurfacePolicy.supportingRimAlpha(false, clear) + ) assertTrue( GlassSurfacePolicy.supportingSurfaceAlpha(true, true, clear) > GlassSurfacePolicy.supportingSurfaceAlpha(true, glassAlpha = frosted) diff --git a/docs/BRANCH_CONSOLIDATION.md b/docs/BRANCH_CONSOLIDATION.md index e49be882..d2991f93 100644 --- a/docs/BRANCH_CONSOLIDATION.md +++ b/docs/BRANCH_CONSOLIDATION.md @@ -1,7 +1,7 @@ -# Live repository inventory — 9 November 2026, 15:26 IST +# Live repository inventory — 9 November 2026, 15:36 IST **Default branch:** main at 73b8a0d1ba33503fede02db2c3c0af082d724a12. -**Selected integration branch:** `black-box-bihar-news@aee50ffcd4ccc9f958a9e09d4debec364ac0debe` (2026-11-09 09:11:53 UTC), a direct first-parent child of `59c54cedadd1ad97a96c00d63cb3d020343ee2cd`. It is **175 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. The next supporting-surface opacity batch is a direct continuation of this verified source. +**Selected integration branch:** `black-box-bihar-news@26878fcd62b86d54075ccf6e93898d63f20aedac` (2026-11-09 10:03:32 UTC), a direct first-parent child of `aee50ffcd4ccc9f958a9e09d4debec364ac0debe`. It is **176 ahead / 0 behind** `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`, with main as merge base. PR #34 remains the single open/draft, unmerged consolidation PR targeting main. This is the verified implementation head for the supporting-card opacity batch; the current test/documentation follow-up is a direct child. The complete live branch list was paginated: **51 branches** (30 on page 1, 21 on page 2). Pull requests: **48 total (32 open, 16 closed)**; 11 merged and 5 closed/unmerged. All pages were exhausted. Every branch head SHA, latest commit timestamp/message and PR relationship is recorded below; all source branches are retained. @@ -10,7 +10,7 @@ The complete live branch list was paginated: **51 branches** (30 on page 1, 21 o | a11y/dictionary-popup-reduce-motion-2026-11-09 | fbadd56e0e119cf70b865af8a58843190cce249d | 2026-11-09 01:33:20 | test: cover dictionary popup Reduce Motion policy | #45 open/draft → main; motion policy already represented in integration | | a11y/dictionary-popup-reduce-transparency-2026-11-09 | 55afb9ab662d2926675f0a57737d3f817b1fc2cb | 2026-11-09 02:58:11 | Honor Reduce Transparency in dictionary popup | #46 closed/unmerged → black-box; selective port present | | a11y/48dp-icon-targets-2026-11-07 | 25107ce905b70bde1a41282ffd1d606819ebf58d | 2026-11-07 11:02:12 | test(a11y): cover minimum icon action target | #30 open/draft → black-box; TouchTargetPolicy represented | -| black-box-bihar-news | aee50ffcd4ccc9f958a9e09d4debec364ac0debe | 2026-11-09 09:11:53 UTC | docs: record transient tint CI correction and recovery | #34 open/draft → main; verified parent for the 15:26 supporting-surface batch | +| black-box-bihar-news | 26878fcd62b86d54075ccf6e93898d63f20aedac | 2026-11-09 10:03:32 UTC | ui(glass): tune supporting surfaces across appearance intensity | #34 open/draft → main; verified implementation head; current test/docs follow-up follows | | brrrNEWS | e6fcfc25a4c8d5f363ced58f313552120aa7ff96 | 2026-11-07 04:13:30 | ui: consolidate lightweight supporting glass surfaces | Base of #24; older material line, not the active baseline | | ci/read-only-pr-validation-isolated-release-write-2026-11-06 | 963118f0abe5f7e38f2aa66a49d4b8e74548660c | 2026-11-06 17:18:53 | ci: validate pull requests with read-only build permissions | #18 open/draft → main; compatible workflow design integrated into black-box | | ci/stacked-pr-validation-2026-11-07 | 5dc3179361835b77fb3186a99d9b5791301463fd | 2026-11-06 21:41:27 | ci: restore Android SDK setup before sdkmanager | #20 closed/merged → black-box | @@ -59,9 +59,9 @@ The complete live branch list was paginated: **51 branches** (30 on page 1, 21 o ## Current graph and workflow -- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. Verified source head `aee50ffcd4ccc9f958a9e09d4debec364ac0debe` is 175 commits ahead / 0 behind main; main is the merge base. Keep draft; do not merge. +- PR #34: open/draft, unmerged, head black-box-bihar-news, base main. Verified implementation head `26878fcd62b86d54075ccf6e93898d63f20aedac` is 176 commits ahead / 0 behind main; main is the merge base. The test/docs follow-up is a direct child. Keep draft; do not merge. - The exact integration workflow is .github/workflows/build-apk.yml. Build/test permissions are read-only; Release write is isolated to a main-push-only job. No workflow file is changed in this batch. -- Actions history is fully paginated through run #410: **410 total** (266 success / 73 failure / 71 cancelled); queued/in-progress **0**. Natural push #409 and PR #410 both passed on exact source head `aee50ffcd4ccc9f958a9e09d4debec364ac0debe`. Both build jobs completed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder 4/4, generation of 151,456 words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; `BUILD SUCCESSFUL` in 1m30s / 1m31s. Push artifact #13661258665: 39,139,521 bytes, SHA-256 `6586d22e59ba2f59f9614fe05f84ada204c9113ac5d66be2bdb4c3aaf46e09f8`. PR artifact #13661691483: 39,139,519 bytes, SHA-256 `12ed8bd14a0abaa103d9db5bf23df1bb04b27b01e3e90f0d527eb4f664eafe06`, expires 23 November 2026 09:14 UTC. Main-only Release jobs skipped. These runs validate the source parent, not the next supporting-surface commit. +- Actions history is fully paginated through run #412: **412 total** (268 success / 73 failure / 71 cancelled); queued/in-progress **0**. Natural push #411 and PR #412 both passed on exact implementation head `26878fcd62b86d54075ccf6e93898d63f20aedac`. Both build jobs completed checkout, Java/signing cache, Android SDK/platform, Gradle, WordNet builder 4/4, generation of 151,456 words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; logs report `BUILD SUCCESSFUL` in 57s / 1m30s. Push artifact #13664516865: 39,139,552 bytes, SHA-256 `23f8bfd50772e4bbe537d2e2ceea26b991ede713f01f59de1a2c028b11d97be0`. PR artifact #13664114019: 39,139,556 bytes, SHA-256 `4f8b684c86ac40d7070d1ae7c908f8b1413af32ad3c83a4bb9793e2152b01646`, expires 23 November 2026 10:05 UTC. Main-only Release jobs skipped. These runs validate the implementation parent; the current test/docs follow-up requires its own natural validation. - Latest published Release remains v0.2.0-build-116, published 6 November 2026 11:18:59 UTC. No Release was created or published. - No main write, merge, retarget, force update, manual workflow dispatch/rerun, package/app identity change, source-branch deletion or unrelated branch modification occurred. @@ -2652,3 +2652,9 @@ UTC timestamps/messages are the latest commit on each branch head. PR list: 43 t - PR #47 is 3 commits ahead / 175 behind the integration branch from common base main; its 5dp transient definition optics are already represented through the shared `GlassSurfacePolicy`, so no duplicate policy was ported. PR #45's standalone dictionary Reduce Motion is present. PR #43's WebView settle callback, Exception-only cleanup guard and tests are present. PR #48 is a separate 3-commit WordNet builder/workflow integrity proposal from main; no workflow or builder change was made in this UI batch. - Natural Actions #409 (push) and #410 (PR) passed on the exact source parent. The new code/documentation commit requires its own natural CI; no manual dispatch/rerun, Release publication or main write. - Current Release: `v0.2.0-build-116`, published 6 November 2026 11:18:59 UTC. No newer Release exists. + +## 9 November 2026, 15:36 IST — Supporting-card implementation CI and test-coverage preservation + +- Exact implementation head `26878fcd62b86d54075ccf6e93898d63f20aedac` passed natural push #411 and PR #412. Both build jobs passed WordNet builder 4/4, 151,456 words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and artifact upload; full logs report BUILD SUCCESSFUL. Artifacts #13664516865 (39,139,552 bytes; SHA-256 23f8bfd50772e4bbe537d2e2ceea26b991ede713f01f59de1a2c028b11d97be0) and #13664114019 (39,139,556 bytes; SHA-256 4f8b684c86ac40d7070d1ae7c908f8b1413af32ad3c83a4bb9793e2152b01646). Both expire 23 November 2026; Release jobs skipped. +- Review found the refactored policy test had inadvertently dropped the prior supporting tint/rim Reduce Transparency floor assertions. This test-only follow-up restores those assertions; no production code or UI effect changes. Its exact-head natural CI is pending. +- Current branch graph remains 51 branches / 48 PRs (32 open, 16 closed; 11 merged, 5 closed-unmerged). PR #34 remains draft to main; no merge, retarget, main write, workflow change, Release publication, source-branch deletion or manual dispatch/rerun. diff --git a/docs/LIQUID_GLASS_UI_ROADMAP.md b/docs/LIQUID_GLASS_UI_ROADMAP.md index 799f67dd..32950822 100644 --- a/docs/LIQUID_GLASS_UI_ROADMAP.md +++ b/docs/LIQUID_GLASS_UI_ROADMAP.md @@ -13,7 +13,7 @@ ### Paired performance and accessibility - Added **zero** live blur surfaces, refraction, shaders, graphics layers, backdrop captures/readbacks, image decodes, dependencies, timers, polling, network work or storage work. Existing Card, cached shape, tint gradient and rim brush are reused; the only added work is one bounded intensity interpolation for an existing fill alpha. - Appearance slider preview remains local to its child composition while dragging; the app-wide preference is still committed on release. Reduce Transparency keeps the stronger static fill and does not add a blur fallback. -- Focused JVM tests cover Clear/Balanced/Frosted endpoints, default/non-finite fallback, and reduced-transparency opacity. No screenshot test is added because component geometry/content and interaction are unchanged. +- Focused JVM tests cover Clear/Balanced/Frosted endpoints, default/non-finite fallback, and reduced-transparency opacity. A follow-up restores the pre-existing supporting tint/rim Reduce Transparency floor assertions that were omitted when the old test was refactored; no production code changes in that follow-up. No screenshot test is added because component geometry/content and interaction are unchanged. ### Per-screen coverage / optimization matrix | Surface | Material tier / reason | Effect scope and reuse | Fallback / accessibility | Verification | @@ -23,7 +23,7 @@ | Appearance live preview | Tier 3 supporting card inside one existing Tier 2 Prismal preview | Reuses preview-local intensity; one existing live transient surface, no nested blur | 48dp slider/switch controls and local preview updates; reduced effects remain static | Policy tests; device preview unverified | ### CI, release and device boundary -- Parent exact-head natural push #409 and PR #410 passed on `aee50ffcd4ccc9f958a9e09d4debec364ac0debe`; they do **not** validate this new commit. Natural exact-head CI for this batch is pending; no dispatch/rerun. +- Exact implementation head `26878fcd62b86d54075ccf6e93898d63f20aedac` passed natural push [#411](https://github.com/Batmancpu/CurrentLens/actions/runs/42598067067) and PR [#412](https://github.com/Batmancpu/CurrentLens/actions/runs/42598073328). Both build jobs completed all setup steps, WordNet builder 4/4, 151,456 unique words / 50,950,144 bytes, `:app:testDebugUnitTest`, `:app:assembleDebug` and APK artifact upload; logs report `BUILD SUCCESSFUL` (57s push / 1m30s PR). Push artifact [#13664516865](https://github.com/Batmancpu/CurrentLens/actions/runs/42598067067/artifacts/13664516865): 39,139,552 bytes, SHA-256 `23f8bfd50772e4bbe537d2e2ceea26b991ede713f01f59de1a2c028b11d97be0`. PR artifact [#13664114019](https://github.com/Batmancpu/CurrentLens/actions/runs/42598073328/artifacts/13664114019): 39,139,556 bytes, SHA-256 `4f8b684c86ac40d7070d1ae7c908f8b1413af32ad3c83a4bb9793e2152b01646`. Both expire 23 November 2026; main-only Release jobs skipped. This follow-up changes only policy-test coverage and documentation, so it requires its own natural exact-head CI. No dispatch/rerun. - OPPO Reno10 appearance, contrast over live backdrops, TalkBack, font scaling, frame timing/jank, GPU overdraw, allocation/memory, thermal and battery remain **UNVERIFIED**. This opacity tuning is a design-token change, not a measured performance improvement. - No main write, merge, PR retarget, Release publication, package identity change, source-branch mutation/deletion or workflow change. From e14b284b158410ada1b9eaeecd6698d90387610a Mon Sep 17 00:00:00 2001 From: Batmancpu Date: Sat, 14 Nov 2026 14:55:54 +0530 Subject: [PATCH 175/175] docs: record CurrentLens takeover, implementation audit and signing path --- AGENTS.md | 7 ++++++ docs/PROJECT_AUDIT.md | 54 +++++++++++++++++++++++++++++++++++++++++ docs/PROJECT_HANDOFF.md | 6 +++++ docs/SESSION_LEDGER.md | 10 +++++++- 4 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 docs/PROJECT_AUDIT.md diff --git a/AGENTS.md b/AGENTS.md index 340b98aa..2ea0cfff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,13 @@ This repository documents an ongoing product built by one user working with ChatGPT across multiple conversations. It is not an external developer handover. Its purpose is to preserve context when a ChatGPT conversation reaches its context limit and the user opens another chat. +## Resume CurrentLens from GitHub + +- Repository: [Batmancpu/CurrentLens](https://github.com/Batmancpu/CurrentLens). The active integration branch is `black-box-bihar-news`, tracked by draft [PR #34](https://github.com/Batmancpu/CurrentLens/pull/34). Open this branch explicitly when the default branch does not expose these files. +- Read [docs/PROJECT_AUDIT.md](docs/PROJECT_AUDIT.md) first for the 14 November takeover, feature status and ordered work. Check the live branch, PR, Actions and release before reusing a dated snapshot. +- The immediate owner decision concerns the APK already installed on the phone. Identify its package, versionCode and certificate before choosing a release key. Preserve the existing install and local data while resolving signing in draft [PR #39](https://github.com/Batmancpu/CurrentLens/pull/39). +- Keep this entry short. Record new evidence in the linked audit/handoff, session ledger and specialised registers. The source code, Git history and CI records establish implementation state. Device behavior remains a separate verification step. + ## Mandatory reading at the start of every new CurrentLens chat Read these files in this order before proposing or making changes: diff --git a/docs/PROJECT_AUDIT.md b/docs/PROJECT_AUDIT.md new file mode 100644 index 00000000..7b6d9bb8 --- /dev/null +++ b/docs/PROJECT_AUDIT.md @@ -0,0 +1,54 @@ +# CurrentLens project audit and operating plan + +Audit date: 14 November 2026 (IST). Start here after reading the root [AGENTS.md](../AGENTS.md). This is the current status index. The [session ledger](SESSION_LEDGER.md), [branch ledger](BRANCH_CONSOLIDATION.md), [issue register](KNOWN_ISSUES.md) and [glass roadmap](LIQUID_GLASS_UI_ROADMAP.md) carry the detailed evidence and historical snapshots. + +## Owner direction + +The owner asked the assistant to lead day-to-day product and engineering work, review completed work and leftovers, and keep point-by-point context across conversations. Exact excerpts from the 14 November request: “the next AI agent that picks it up should know exactly whatever we were doing point to point verbatim” and “keep updating it in my phone on the previously installed versions.” The deliverable is a maintainable Git-backed handoff and a data-preserving Android update path. Preserve older verbatim decisions where the original wording is available. Prior chat search yielded no additional CurrentLens records during this audit. The linked repository history is the recoverable record. + +## Repository and build references + +| Item | Evidence at audit | +| --- | --- | +| Repository | Public [Batmancpu/CurrentLens](https://github.com/Batmancpu/CurrentLens). User-facing Android label in source: **brrrNews**. Historical capitalization request **brrrNEWS** is recorded in KL-013. | +| Published baseline | `main@73b8a0d1ba33503fede02db2c3c0af082d724a12`. Latest tagged release observed: [v0.2.0-build-116](https://github.com/Batmancpu/CurrentLens/releases/tag/v0.2.0-build-116). Its tag resolves to that main commit. App ID `com.mangoloads.currentlens`, versionCode 2. | +| Integration reviewed | `black-box-bihar-news@8daadee450ee59a8cffb3227b8460c2bbf6de794` before this documentation change. Open draft [#34](https://github.com/Batmancpu/CurrentLens/pull/34) targets main. Reviewed source: 177 ahead, 0 behind, 91 files changed. 51 remote branches and 48 total PRs (32 open, 16 closed) before this documentation change. | +| Integration validation | [Run #414](https://github.com/Batmancpu/CurrentLens/actions/runs/42598585548) succeeded on exact reviewed head: cached Stability key restored, WordNet checks/generation, JVM tests, APK assembly and upload passed. Release job skipped. [Artifact 13664338245](https://github.com/Batmancpu/CurrentLens/actions/runs/42598585548/artifacts/13664338245), expires 23 November 2026 at 10:09:55 UTC. ZIP SHA-256 `294ea4b62df24ecf48dad77b6cd438e9a9b2e9c9cea4f8dea932c42692f77e18`. App ID `com.mangoloads.currentlens.stability`, versionCode 10, versionName `0.2.8-stability`. | +| Build configuration | Android Kotlin/Jetpack Compose, Java 17, compile SDK 37, target 35, min 26. Integration workflow runs read-only build/test and isolates Release writes to main pushes. Main's own workflow has global contents write and publishes on push to main. | +| Local validation | Python unit tests passed on the integration head (4/4) and WordNet pin proposal [#48](https://github.com/Batmancpu/CurrentLens/pull/48) at `e99e6d5b4e36b308e4435dd4d03ec6da549e06d3` (7/7). Signing verifier from #39 passed `bash -n`. Android build and physical-device checks relied on existing CI records and remain separate. | + +## Implementation map + +| Area | Present in reviewed source | Open work | +| --- | --- | --- | +| App shell and material | Main has Today, Explore, Search, You, with Saved inside You. Integration adds feed-only compact navigation, shared PrismalAGSL v1.0.6 material policies, one background-only capture, low-cadence contrast, local Appearance preview, static feed rims and accessibility policies. | Verify cold/warm launch, first full render, restored state, Search/IME, TalkBack, font scaling, Reduce Motion/Transparency and frame timings on device. Preserve full production glass and the background-only capture. Do not ask the owner to repeat the declined staged probe sequence. | +| Reader and dictionary | Main has cached public-page extraction, publisher WebView fallback and offline WordNet. Integration includes Reader chrome/completion, selection anchoring and native actions, disposal hardening and dictionary motion/transparency parity. | Verify Reader re-entry, selection, progress and font scaling on device. Review image and fallback resource policies together (#25/#26). Verify WordNet archive pin (#48) in the integration build. | +| Feed ingestion and dates | Integration has publisher feed redirect validation, deterministic alternate-link selection, publication-date precedence, IST midnight refresh, cache/provenance policies and tracking-variant deduplication. | Reconcile #32/#33/#38/#40/#41 in one small review. Read `NewsRepository.kt` as the integration baseline. It still fans out one coroutine per configured feed, parses the entire bounded response before the aggregate limit, has no per-field budget, uses title/summary text extraction and treats a `content` tag as an image candidate. Preserve existing per-hop feed redirect validation while reviewing article destinations, relative Atom bases and publisher images. | +| Editorial and practice | GS eligibility, source/section metadata, explicitly submitted practice attempts. Integration adds Geography and tighter parliamentary/heat-wave signals, alongside heuristic noise screening. | Review #24/#27/#42 for narrowly scoped rules. Current `UpscFeedPolicy` still has generic action terms and a broad cross-text syllabus signal gate. Validate false positives and negatives on labelled real stories against official syllabus and PYQs. Per-story primary-source corroboration remains a product gap. | +| Persistence and startup | Local bookmarks, settings, history, quiz attempts and position. Integration includes bounded new read markers with legacy membership preserved, off-main bookmark and Appearance work, and bounded, privacy-minimised startup diagnostics. | Compare #8/#22/#35 against current call sites for unique remaining work. Test existing data, save/clear ordering, process death and restored state before changing storage. Native launch symptom remains unresolved on device; the source-level self-capture correction is documented in AGENTS.md and KL-018. | +| PR consolidation | #13/#18/#29/#30/#31/#36/#37/#43/#44/#45/#46/#47 are represented or superseded on integration to varying degrees. #6/#11/#12/#16/#17/#21 have earlier or partially ported work. | Compare each surviving diff against live integration before proposing closure. Keep #34 as the integration PR. Review unique deltas before archiving older work. See [branch ledger](BRANCH_CONSOLIDATION.md) for lineage, PR relationships and older runs. | + +## P0 — Preserve the installed app and its data + +The main workflow still uses the runner's debug signing identity. [Signing draft #39](https://github.com/Batmancpu/CurrentLens/pull/39) records distinct certificate fingerprints from two actual APKs of the same package, both at versionCode 2. + +| Build | SHA-256 of signing certificate | +| --- | --- | +| Main #112 | `dba85a1c1ac6b3a7b829850353724e7a847e2fa456a13ab3f983d66c245f30dd` | +| Main #116 | `28c1fc47020366d8ad1fd689935039b7b3c8b79675e93112a68e2e47452adb64` | +| Stability #320 | `bde1edc88fc1c9bc0b3a060293dc0889262a22378a41ea5fe252532a49004d14` | + +1. Identify the installed package, versionCode and signer by the exact original APK or by inspecting the installed base APK. If inspecting from a computer with Android platform tools, use `adb shell pm path ` to locate the base APK, pull it with `adb pull`, and use `apksigner verify --print-certs ` locally. Record only the package, version and public certificate fingerprint. The published APK contains the certificate, not the key that created the signature. +2. Match the signer before creating or provisioning a release key. If the install is Stability and the cached key still matches it, #414 has an existing candidate to verify; the cache regenerates a different key on a miss. If the install is main and a matching private keystore still exists on the machine or build service that signed it, use it through the owner's secret store. Android requires a matching application ID, signing certificate or valid signing lineage, and a versionCode accepted as an update. Use a strictly higher versionCode for the next published build. [Android update requirements](https://developer.android.com/google/play/app-updates). +3. If the matching signer is unavailable, keep the existing install and decide on local-data preservation first. The manifest has `android:allowBackup=false`. There is no demonstrated app export/import path in this audit. A new key cannot retrospectively update an old signature. Do not uninstall to test signing. For any one-time migration, verify preservation or get the owner's explicit choice before moving the installed app to a new signing identity. +4. Reconcile #39 with current integration once the signer and data route are known. The draft is open, diverged 42 integration commits / 6 signing commits from common parent `cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84` at audit. A local merge simulation found conflicts in the branch ledger, known issues, handoff and session ledger. Preserve newer histories when reconciling. The draft's [key setup and workflow](https://github.com/Batmancpu/CurrentLens/blob/fix/stable-release-signing-2026-11-08/docs/RELEASE_SIGNING.md) use private repository Actions secrets and the public certificate fingerprint variable `CURRENTLENS_RELEASE_CERT_SHA256`. [Run #320](https://github.com/Batmancpu/CurrentLens/actions/runs/42457214182) validated the Stability path. The main secret-backed path and any handset update are still unverified. +5. Verify the next signed candidate's app ID, certificate and versionCode before installation. Test update-in-place and confirm Saved, reading and quiz history still open. Preserve an encrypted backup of the matching long-lived key outside the repository. Keep release publication downstream of the migration decision and verification. + +## Execution order after signer identification + +1. Shipping and native launch are the release blockers. Keep #34 draft while reviewing the candidate in focused batches. Verify startup and reader re-entry with the existing Stability path when the owner is ready for one ordinary run. +2. Reconcile RSS parsing and publisher resource handling using the existing proposals. Use regression fixtures for per-hop redirects, alternate/relative links, budgets, Atom text and privacy policy. Integrate #48 separately and prove the actual pinned archive builds in CI. +3. Validate editorial behavior on real labelled stories and resolve the specific remaining rule conflicts. Track primary-source corroboration separately from RSS provenance. +4. Review the remaining persistence, accessibility and glass items with evidence. Defer additional visual polish until update continuity and startup are understood. + +For each new session, read the live PR #34 head and compare it with the last recorded SHA. Keep exact requests, decisions, rejected attempts, errors, commands and results in the session ledger; keep a single current pointer in AGENTS.md. Historical documents retain original evidence. Review the current release, branch, CI and device state before advancing any implementation. diff --git a/docs/PROJECT_HANDOFF.md b/docs/PROJECT_HANDOFF.md index 0e0b3c3a..a76cd3e7 100644 --- a/docs/PROJECT_HANDOFF.md +++ b/docs/PROJECT_HANDOFF.md @@ -1,3 +1,9 @@ +## Current starting point — 14 November 2026 (IST) + +See [PROJECT_AUDIT.md](PROJECT_AUDIT.md) for the live-baseline review, implementation matrix, signing and data preservation plan, and next steps. The source audited was `black-box-bihar-news@8daadee450ee59a8cffb3227b8460c2bbf6de794` (draft PR #34), with successful exact-head PR run #414. Main was `73b8a0d1ba33503fede02db2c3c0af082d724a12` with release tag `v0.2.0-build-116`. The immediate dependency is the package/build/signer currently installed on the owner's phone. Keep earlier snapshots below as historical evidence. + +--- + ## Live snapshot — 9 November 2026, 01:27 IST - **Main:** `73b8a0d1ba33503fede02db2c3c0af082d724a12`, unchanged. diff --git a/docs/SESSION_LEDGER.md b/docs/SESSION_LEDGER.md index 2fb1d696..c06b15e2 100644 --- a/docs/SESSION_LEDGER.md +++ b/docs/SESSION_LEDGER.md @@ -511,4 +511,12 @@ Branch: `fix/early-startup-crash-diagnostics-2026-11-06`. - Diagnosis: the production helper correctly maps non-finite glass intensity to AppearancePreferencesPolicy.DEFAULT_GLASS_ALPHA (0.28). The test incorrectly computed expected tint from 0.32 (0.1344) instead of the fallback (0.28 × 0.42 = 0.1176). - Fix: commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd changes only GlassSurfacePolicyTest.kt: derive expected from the default preference and assert 0.1176. Production code and visual policy remain unchanged. - Verification: natural PR run #408 passed on exact commit 59c54cedadd1ad97a96c00d63cb3d020343ee2cd: WordNet 151,456 words / 50,950,144 bytes, JVM tests, debug APK assembly and artifact upload. Artifact #13661132492 (39,139,519 bytes; SHA-256 3a80e7430940d9289dd48de2c36c011f056f2606b252abea287490f62889bd5c). Natural push run #407 was still in progress; no result claimed. -- Safety/device: no workflow, main, release, package, networking, WebView, persistence or source-branch change. OPPO Reno10 appearance, native selection, TalkBack, frame-time, GPU, memory, thermal and battery remain UNVERIFIED. \ No newline at end of file +- Safety/device: no workflow, main, release, package, networking, WebView, persistence or source-branch change. OPPO Reno10 appearance, native selection, TalkBack, frame-time, GPU, memory, thermal and battery remain UNVERIFIED. + +## 14 November 2026 (IST) — project takeover and signing assessment + +- Owner requested project leadership, a point-by-point Git-backed handoff across chats, review of implemented and leftover work, and signing that preserves Android updates over the current install. +- Repository: Batmancpu/CurrentLens. Branch: black-box-bihar-news, draft PR #34. Reviewed parent: 8daadee450ee59a8cffb3227b8460c2bbf6de794. Main/merge base: 73b8a0d1ba33503fede02db2c3c0af082d724a12. Source review and git refs showed 177 integration commits ahead, 0 behind. PR #39 supplies the existing signing draft and shares parent cc5a01b4e95b8f1250e5d0dda7535e8a485c7d84 with integration. Its local merge simulation identified four documentation conflicts. +- Changed files: root AGENTS.md gets a current resume pointer, PROJECT_HANDOFF.md gets a current baseline, PROJECT_AUDIT.md records owner direction, evidence and priorities, and this ledger records the session. Existing design and incident history is retained. Rollback is the docs commit revert. Product code, workflows and APKs were outside this documentation change. +- Verification: integration WordNet builder unit tests 4/4 and PR #48 fixture tests 7/7 using `python3 -m unittest discover -s scripts -p 'test_*.py' -v` on each exact source. `bash -n` passed for the #39 signer-verifier script. Existing #414 PR build passed on audited source, including JVM tests/APK upload. Main proposed signer and real-device behavior remain unverified. +- Next: get exact installed build source or package/versionCode and public signer fingerprint. The evidence shows main #112 and #116 have different certificates. The main and Stability packages have different application IDs. Preserve app-private data and the existing install until update identity and any migration are resolved.