Move notification access to the app action bar

Relocates the attention entry point from the floating above-pill chip into the
existing main/detail app bars (bell + count badge), removing the old floating
indicator and its reserved scroll spacing. Preserves Clear all, individual
dismiss, open-run and badge-count behavior. UI-verified on the foldable
emulator: action-bar bell with badge on Runs and run detail, sheet opens from
it, no floating chip.
This commit is contained in:
2026-10-19 00:31:46 +01:00
11 changed files with 66 additions and 67 deletions
@@ -31,6 +31,8 @@ internal fun PipelineDestination(
onSelectionChange: (PaneSelection) -> Unit, onSelectionChange: (PaneSelection) -> Unit,
listState: LazyListState, listState: LazyListState,
onOpenRun: (Long) -> Unit, onOpenRun: (Long) -> Unit,
attention: List<AttentionEntry>,
onOpenAttention: () -> Unit,
) { ) {
val depth = selection.depth val depth = selection.depth
val onBack: () -> Unit = { onSelectionChange(backFrom(selection)) } val onBack: () -> Unit = { onSelectionChange(backFrom(selection)) }
@@ -70,6 +72,8 @@ internal fun PipelineDestination(
covered = covered, covered = covered,
wide = wide, wide = wide,
listState = listState, listState = listState,
attention = attention,
onOpenAttention = onOpenAttention,
) )
1 -> rememberPaneContent( 1 -> rememberPaneContent(
selection.itemId.takeIf { it != 0L }?.let { selection.itemId.takeIf { it != 0L }?.let {
@@ -92,6 +96,8 @@ internal fun PipelineDestination(
) )
}, },
covered = covered, covered = covered,
attention = attention,
onOpenAttention = onOpenAttention,
) )
} }
2 -> rememberPaneContent( 2 -> rememberPaneContent(
@@ -58,7 +58,6 @@ import net.awan.pipelines.data.transport.ConnectionState
import net.awan.pipelines.notify.NOTIFICATION_RATIONALE import net.awan.pipelines.notify.NOTIFICATION_RATIONALE
import net.awan.pipelines.notify.alertPermissionPrompt import net.awan.pipelines.notify.alertPermissionPrompt
import net.awan.pipelines.ui.chat.ChatScreen import net.awan.pipelines.ui.chat.ChatScreen
import net.awan.pipelines.ui.components.AttentionIndicator
import net.awan.pipelines.ui.components.AttentionSheet import net.awan.pipelines.ui.components.AttentionSheet
import net.awan.pipelines.ui.components.BottomStripInset import net.awan.pipelines.ui.components.BottomStripInset
import net.awan.pipelines.ui.components.ConnectionBanner import net.awan.pipelines.ui.components.ConnectionBanner
@@ -67,10 +66,8 @@ import net.awan.pipelines.ui.components.LocalPillBottomInset
import net.awan.pipelines.ui.components.MotionStandard import net.awan.pipelines.ui.components.MotionStandard
import net.awan.pipelines.ui.components.paneSafeArea import net.awan.pipelines.ui.components.paneSafeArea
import net.awan.pipelines.ui.components.spec import net.awan.pipelines.ui.components.spec
import net.awan.pipelines.ui.theme.ATTENTION_CHIP_RESERVE
import net.awan.pipelines.ui.theme.DESTINATION_PILL_RESERVE import net.awan.pipelines.ui.theme.DESTINATION_PILL_RESERVE
import net.awan.pipelines.ui.theme.SPACING_L import net.awan.pipelines.ui.theme.SPACING_L
import net.awan.pipelines.ui.theme.SPACING_S
/** One destination the floating pill holds: its nav [route], the accessible [label] and its glyph. */ /** One destination the floating pill holds: its nav [route], the accessible [label] and its glyph. */
internal data class TopDestination(val route: String, val label: String, val icon: ImageVector) internal data class TopDestination(val route: String, val label: String, val icon: ImageVector)
@@ -348,6 +345,8 @@ fun PipelinesApp(
selection = pipelineSelection, selection = pipelineSelection,
onSelectionChange = { pipelineSelection = it }, onSelectionChange = { pipelineSelection = it },
listState = pipelineListState, listState = pipelineListState,
attention = attention,
onOpenAttention = { attentionOpen = true },
onOpenRun = { runId -> onOpenRun = { runId ->
runSelection = PaneSelection( runSelection = PaneSelection(
pane = MasterPane.Detail, pane = MasterPane.Detail,
@@ -368,6 +367,8 @@ fun PipelinesApp(
listState = runListState, listState = runListState,
decisionRequest = decisionRequest, decisionRequest = decisionRequest,
onDecisionRequestHandled = { decisionRequest = null }, onDecisionRequestHandled = { decisionRequest = null },
attention = attention,
onOpenAttention = { attentionOpen = true },
) )
} }
composable("chat") { composable("chat") {
@@ -398,7 +399,7 @@ fun PipelinesApp(
// Composed after the NavHost, so while the field is open Back (button // Composed after the NavHost, so while the field is open Back (button
// or gesture) dismisses the morph before any pane's own Back handler. // or gesture) dismisses the morph before any pane's own Back handler.
BackHandler(enabled = searchState.open) { dismissSearch() } BackHandler(enabled = searchState.open) { dismissSearch() }
// The results panel, the attention chip and the destination bar share // The results panel and destination bar share
// one bottom-anchored, inset-clearing column — the overlay layer, drawn // one bottom-anchored, inset-clearing column — the overlay layer, drawn
// above the content and never part of its layout. `paneSafeArea` // above the content and never part of its layout. `paneSafeArea`
// (WindowInsets.safeDrawing) is applied once here, so the pill clears the // (WindowInsets.safeDrawing) is applied once here, so the pill clears the
@@ -412,8 +413,7 @@ fun PipelinesApp(
// The overlay's resting place is the window width's in [destinationPillAlignment]: // The overlay's resting place is the window width's in [destinationPillAlignment]:
// horizontally centred on a narrow window, anchored to the bottom-right // horizontally centred on a narrow window, anchored to the bottom-right
// corner on a wide one. Its margin comes from the named [SPACING_L], so the // corner on a wide one. Its margin comes from the named [SPACING_L], so the
// corner placement adds no new number. That rule positions the pill; the // corner placement adds no new number.
// attention chip above it keeps its own bottom-right place at every width.
// While a bottom selector strip is up, the whole overlay is lifted by that // While a bottom selector strip is up, the whole overlay is lifted by that
// strip's measured height ([pillBottomOffset]), so the pill never overlaps it. // strip's measured height ([pillBottomOffset]), so the pill never overlaps it.
Column( Column(
@@ -441,15 +441,6 @@ fun PipelinesApp(
.padding(bottom = SPACING_L), .padding(bottom = SPACING_L),
) )
} }
// The attention chip is not part of the pill's placement rule: it
// keeps its own bottom-right resting place at every width (as it
// had before the pill became width-dependent), so only the pill
// follows [destinationPillAlignment].
AttentionIndicator(
entries = attention,
onClick = { attentionOpen = true },
modifier = Modifier.align(Alignment.End).padding(bottom = SPACING_S),
)
// The pill stands down while a conversation or run detail is open; // The pill stands down while a conversation or run detail is open;
// the search field it morphs into is unreachable there anyway (the // the search field it morphs into is unreachable there anyway (the
// field opens from the pill), so nothing is stranded by not drawing it. // field opens from the pill), so nothing is stranded by not drawing it.
@@ -537,8 +528,8 @@ internal fun destinationPillVisible(
): Boolean = !(currentRoute == CHAT_ROUTE && conversationOpen) && !runDetailOpen ): Boolean = !(currentRoute == CHAT_ROUTE && conversationOpen) && !runDetailOpen
/** /**
* Where the bottom overlay — the destination pill and the attention chip above it * Where the bottom destination pill rests in the window: horizontally centred on a
* — rests in the window: horizontally centred on a **narrow** window and anchored * **narrow** window and anchored
* to the bottom-right **corner** on a **wide** one. The overlay is drawn above the * to the bottom-right **corner** on a **wide** one. The overlay is drawn above the
* content and never takes layout space either way, so this is purely where it * content and never takes layout space either way, so this is purely where it
* sits. A pure function of the window width, so the one arrangement rule is * sits. A pure function of the window width, so the one arrangement rule is
@@ -561,8 +552,7 @@ internal fun contentPillPadding(pillVisible: Boolean): Dp = 0.dp
/** /**
* The trailing bottom space a scrollable screen keeps so its last row scrolls clear * The trailing bottom space a scrollable screen keeps so its last row scrolls clear
* of the floating bottom stack — the destination pill and the attention chip above * of the floating destination pill, built from the named [DESTINATION_PILL_RESERVE]
* it — built from the named [DESTINATION_PILL_RESERVE] and [ATTENTION_CHIP_RESERVE]
* while the pill is drawn, and none while it is hidden (an open conversation or a * while the pill is drawn, and none while it is hidden (an open conversation or a
* run detail, see [destinationPillVisible]) so a hidden pill * run detail, see [destinationPillVisible]) so a hidden pill
* leaves no empty band at the end of a list. Published to the content through * leaves no empty band at the end of a list. Published to the content through
@@ -574,7 +564,7 @@ internal fun contentPillPadding(pillVisible: Boolean): Dp = 0.dp
* the pill appears and disappears. * the pill appears and disappears.
*/ */
internal fun pillScrollInset(pillVisible: Boolean): Dp = internal fun pillScrollInset(pillVisible: Boolean): Dp =
if (pillVisible) DESTINATION_PILL_RESERVE + ATTENTION_CHIP_RESERVE else 0.dp if (pillVisible) DESTINATION_PILL_RESERVE else 0.dp
/** /**
* How far above the window's bottom the floating pill rests: its own [SPACING_L] * How far above the window's bottom the floating pill rests: its own [SPACING_L]
@@ -34,6 +34,8 @@ internal fun RunsDestination(
listState: LazyListState, listState: LazyListState,
decisionRequest: Long? = null, decisionRequest: Long? = null,
onDecisionRequestHandled: () -> Unit = {}, onDecisionRequestHandled: () -> Unit = {},
attention: List<AttentionEntry>,
onOpenAttention: () -> Unit,
) { ) {
val depth = selection.depth val depth = selection.depth
val onBack: () -> Unit = { onSelectionChange(backFrom(selection)) } val onBack: () -> Unit = { onSelectionChange(backFrom(selection)) }
@@ -83,6 +85,8 @@ internal fun RunsDestination(
covered = covered, covered = covered,
wide = wide, wide = wide,
listState = listState, listState = listState,
attention = attention,
onOpenAttention = onOpenAttention,
) )
1 -> rememberPaneContent( 1 -> rememberPaneContent(
selection.itemId.takeIf { it != 0L }?.let { it to selection.sectionIndex }, selection.itemId.takeIf { it != 0L }?.let { it to selection.sectionIndex },
@@ -110,6 +114,8 @@ internal fun RunsDestination(
covered = covered, covered = covered,
requestDecision = decisionRequest == itemId, requestDecision = decisionRequest == itemId,
onDecisionRequestHandled = onDecisionRequestHandled, onDecisionRequestHandled = onDecisionRequestHandled,
attention = attention,
onOpenAttention = onOpenAttention,
) )
} }
2 -> rememberPaneContent( 2 -> rememberPaneContent(
@@ -6,10 +6,11 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.NotificationsActive import androidx.compose.material.icons.filled.NotificationsActive
import androidx.compose.material3.Badge
import androidx.compose.material3.BadgedBox
import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton import androidx.compose.material3.IconButton
@@ -25,10 +26,8 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import net.awan.pipelines.ui.AttentionEntry import net.awan.pipelines.ui.AttentionEntry
import net.awan.pipelines.ui.AttentionKind import net.awan.pipelines.ui.AttentionKind
import net.awan.pipelines.ui.attentionHeadline
import net.awan.pipelines.ui.attentionDismissalSnapshot import net.awan.pipelines.ui.attentionDismissalSnapshot
import net.awan.pipelines.ui.theme.ICON_INLINE_DP import net.awan.pipelines.ui.theme.ICON_INLINE_DP
import net.awan.pipelines.ui.theme.SPACING_L import net.awan.pipelines.ui.theme.SPACING_L
@@ -52,43 +51,22 @@ internal fun attentionRunState(kind: AttentionKind): RunState = when (kind) {
AttentionKind.Failed -> RunState.Failed AttentionKind.Failed -> RunState.Failed
} }
/** /** The notifications action shared by the main and detail app bars. */
* The floating indicator: the count and the most important item, tappable to open
* the list. Hidden (draws nothing) when [entries] is empty, so it never becomes a
* permanent chrome element.
*/
@Composable @Composable
fun AttentionIndicator( fun AttentionAction(
entries: List<AttentionEntry>, entries: List<AttentionEntry>,
onClick: () -> Unit, onClick: () -> Unit,
modifier: Modifier = Modifier,
) { ) {
if (entries.isEmpty()) return IconButton(onClick = onClick) {
val scheme = MaterialTheme.colorScheme BadgedBox(badge = {
Surface( if (entries.isNotEmpty()) Badge { Text(entries.size.toString()) }
onClick = onClick, }) {
modifier = modifier,
shape = RoundedCornerShape(50),
color = scheme.errorContainer,
contentColor = scheme.onErrorContainer,
shadowElevation = 6.dp,
) {
Row(
modifier = Modifier.padding(horizontal = SPACING_M, vertical = SPACING_S),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.spacedBy(SPACING_S),
) {
Icon( Icon(
imageVector = Icons.Default.NotificationsActive, imageVector = Icons.Default.NotificationsActive,
contentDescription = null, contentDescription = if (entries.isEmpty()) "Notifications" else
"Notifications, ${entries.size} needing attention",
modifier = Modifier.size(ICON_INLINE_DP), modifier = Modifier.size(ICON_INLINE_DP),
) )
Text(
text = attentionHeadline(entries),
style = MaterialTheme.typography.labelLarge,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
} }
} }
} }
@@ -63,6 +63,8 @@ import net.awan.pipelines.ui.theme.SPACING_L
import net.awan.pipelines.ui.theme.SPACING_M import net.awan.pipelines.ui.theme.SPACING_M
import net.awan.pipelines.ui.theme.SPACING_S import net.awan.pipelines.ui.theme.SPACING_S
import net.awan.pipelines.ui.theme.SPACING_XS import net.awan.pipelines.ui.theme.SPACING_XS
import net.awan.pipelines.ui.AttentionEntry
import net.awan.pipelines.ui.components.AttentionAction
import net.awan.pipelines.ui.theme.pipelinesText import net.awan.pipelines.ui.theme.pipelinesText
@OptIn(ExperimentalMaterial3Api::class) @OptIn(ExperimentalMaterial3Api::class)
@@ -79,6 +81,8 @@ fun PipelineDetailScreen(
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
wide: Boolean = false, wide: Boolean = false,
covered: Boolean = false, covered: Boolean = false,
attention: List<AttentionEntry> = emptyList(),
onOpenAttention: () -> Unit = {},
) { ) {
val state by vm.pipelineDetail.collectAsStateWithLifecycle() val state by vm.pipelineDetail.collectAsStateWithLifecycle()
val runsState by vm.runs.collectAsStateWithLifecycle() val runsState by vm.runs.collectAsStateWithLifecycle()
@@ -124,6 +128,7 @@ fun PipelineDetailScreen(
}, },
windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal), windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal),
actions = { actions = {
AttentionAction(attention, onOpenAttention)
IconButton(onClick = { vm.loadPipeline(pipelineId, version) }) { IconButton(onClick = { vm.loadPipeline(pipelineId, version) }) {
Icon(Icons.Default.Refresh, contentDescription = "Refresh pipeline") Icon(Icons.Default.Refresh, contentDescription = "Refresh pipeline")
} }
@@ -37,6 +37,8 @@ import java.time.OffsetDateTime
import java.time.ZoneId import java.time.ZoneId
import net.awan.pipelines.data.protocol.PipelineSummary import net.awan.pipelines.data.protocol.PipelineSummary
import net.awan.pipelines.ui.AppViewModel import net.awan.pipelines.ui.AppViewModel
import net.awan.pipelines.ui.AttentionEntry
import net.awan.pipelines.ui.components.AttentionAction
import net.awan.pipelines.ui.components.DetailTabBody import net.awan.pipelines.ui.components.DetailTabBody
import net.awan.pipelines.ui.components.EmptyState import net.awan.pipelines.ui.components.EmptyState
import net.awan.pipelines.ui.components.ErrorState import net.awan.pipelines.ui.components.ErrorState
@@ -74,6 +76,8 @@ fun PipelineListScreen(
covered: Boolean = false, covered: Boolean = false,
wide: Boolean = false, wide: Boolean = false,
listState: LazyListState, listState: LazyListState,
attention: List<AttentionEntry> = emptyList(),
onOpenAttention: () -> Unit = {},
) { ) {
val state by vm.pipelines.collectAsStateWithLifecycle() val state by vm.pipelines.collectAsStateWithLifecycle()
val runsState by vm.runs.collectAsStateWithLifecycle() val runsState by vm.runs.collectAsStateWithLifecycle()
@@ -151,6 +155,7 @@ fun PipelineListScreen(
title = { Text("Pipelines") }, title = { Text("Pipelines") },
windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal), windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal),
actions = { actions = {
AttentionAction(attention, onOpenAttention)
PipelineFilterControl( PipelineFilterControl(
filters = filters, filters = filters,
onName = { vm.setPipelineFilterName(it) }, onName = { vm.setPipelineFilterName(it) },
@@ -52,6 +52,8 @@ import net.awan.pipelines.ui.runIdentity
import net.awan.pipelines.ui.runLabel import net.awan.pipelines.ui.runLabel
import net.awan.pipelines.ui.theme.SPACING_L import net.awan.pipelines.ui.theme.SPACING_L
import net.awan.pipelines.ui.theme.SPACING_S import net.awan.pipelines.ui.theme.SPACING_S
import net.awan.pipelines.ui.AttentionEntry
import net.awan.pipelines.ui.components.AttentionAction
import net.awan.pipelines.ui.theme.pipelinesText import net.awan.pipelines.ui.theme.pipelinesText
@OptIn(ExperimentalMaterial3Api::class) @OptIn(ExperimentalMaterial3Api::class)
@@ -68,6 +70,8 @@ fun RunDetailScreen(
covered: Boolean = false, covered: Boolean = false,
requestDecision: Boolean = false, requestDecision: Boolean = false,
onDecisionRequestHandled: () -> Unit = {}, onDecisionRequestHandled: () -> Unit = {},
attention: List<AttentionEntry> = emptyList(),
onOpenAttention: () -> Unit = {},
) { ) {
val state by vm.runDetail.collectAsStateWithLifecycle() val state by vm.runDetail.collectAsStateWithLifecycle()
val runsState by vm.runs.collectAsStateWithLifecycle() val runsState by vm.runs.collectAsStateWithLifecycle()
@@ -177,6 +181,7 @@ fun RunDetailScreen(
}, },
windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal), windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal),
actions = { actions = {
AttentionAction(attention, onOpenAttention)
LiveBadge(runStream, Modifier.padding(end = SPACING_S)) LiveBadge(runStream, Modifier.padding(end = SPACING_S))
IconButton(onClick = { vm.loadRun(runId) }) { IconButton(onClick = { vm.loadRun(runId) }) {
Icon(Icons.Default.Refresh, contentDescription = "Refresh run") Icon(Icons.Default.Refresh, contentDescription = "Refresh run")
@@ -48,6 +48,8 @@ import java.time.format.DateTimeFormatter
import net.awan.pipelines.data.protocol.RunSummary import net.awan.pipelines.data.protocol.RunSummary
import net.awan.pipelines.data.protocol.UsageStats import net.awan.pipelines.data.protocol.UsageStats
import net.awan.pipelines.ui.AppViewModel import net.awan.pipelines.ui.AppViewModel
import net.awan.pipelines.ui.AttentionEntry
import net.awan.pipelines.ui.components.AttentionAction
import net.awan.pipelines.ui.components.DetailTabBody import net.awan.pipelines.ui.components.DetailTabBody
import net.awan.pipelines.ui.components.EmptyState import net.awan.pipelines.ui.components.EmptyState
import net.awan.pipelines.ui.components.ErrorState import net.awan.pipelines.ui.components.ErrorState
@@ -98,6 +100,8 @@ fun RunHistoryScreen(
covered: Boolean = false, covered: Boolean = false,
wide: Boolean = false, wide: Boolean = false,
listState: LazyListState, listState: LazyListState,
attention: List<AttentionEntry> = emptyList(),
onOpenAttention: () -> Unit = {},
) { ) {
val state by vm.runs.collectAsStateWithLifecycle() val state by vm.runs.collectAsStateWithLifecycle()
val runStream by vm.runStream.collectAsStateWithLifecycle() val runStream by vm.runStream.collectAsStateWithLifecycle()
@@ -153,6 +157,7 @@ fun RunHistoryScreen(
title = { Text(if (filterPipelineId == null) "Runs" else "Runs for this pipeline") }, title = { Text(if (filterPipelineId == null) "Runs" else "Runs for this pipeline") },
windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal), windowInsets = paneSafeArea().only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal),
actions = { actions = {
AttentionAction(attention, onOpenAttention)
RunFilterControl( RunFilterControl(
filters = filters, filters = filters,
pipelines = pipelineOptions, pipelines = pipelineOptions,
@@ -84,16 +84,6 @@ internal val MIN_COVERED_PANE_WIDTH_DP = 112.dp
*/ */
internal val DESTINATION_PILL_RESERVE = 88.dp internal val DESTINATION_PILL_RESERVE = 88.dp
/**
* Bottom space the floating attention chip occupies above the destination pill:
* the chip's own height (its single label line plus its vertical padding) plus the
* gap below it. Added to a scrollable's trailing space alongside
* [DESTINATION_PILL_RESERVE] while the pill is drawn, so the chip can never be laid
* out over a row, a field or a button and the content does not jump as it appears
* and clears.
*/
internal val ATTENTION_CHIP_RESERVE = SPACING_XXL + SPACING_M
// ---- Detail rail (ui/components/DetailTabs.kt) ------------------------------ // ---- Detail rail (ui/components/DetailTabs.kt) ------------------------------
/** The always-visible wide section rail's width (icons with labels). */ /** The always-visible wide section rail's width (icons with labels). */
@@ -3,7 +3,6 @@ package net.awan.pipelines.ui
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import net.awan.pipelines.ui.theme.ATTENTION_CHIP_RESERVE
import net.awan.pipelines.ui.theme.DESTINATION_PILL_RESERVE import net.awan.pipelines.ui.theme.DESTINATION_PILL_RESERVE
import net.awan.pipelines.ui.theme.SPACING_L import net.awan.pipelines.ui.theme.SPACING_L
import org.junit.Assert.assertEquals import org.junit.Assert.assertEquals
@@ -146,11 +145,11 @@ class PipelinesNavTest {
@Test @Test
fun theScrollInsetTracksTheDrawnPillSoAListNeitherJumpsNorHidesItsLastRow() { fun theScrollInsetTracksTheDrawnPillSoAListNeitherJumpsNorHidesItsLastRow() {
// Drawn: a scrollable keeps the named pill + attention-chip space at the // Drawn: a scrollable keeps the named pill space at the end of its own
// end of its own scroll content and its last row scrolls clear of the whole // scroll content and its last row scrolls clear of the floating pill. Hidden: no clearance,
// floating bottom stack. Hidden: no clearance, so there is no empty band // so there is no empty band
// where the pill used to be. // where the pill used to be.
val drawnInset = DESTINATION_PILL_RESERVE + ATTENTION_CHIP_RESERVE val drawnInset = DESTINATION_PILL_RESERVE
assertDp(drawnInset.value, pillScrollInset(pillVisible = true)) assertDp(drawnInset.value, pillScrollInset(pillVisible = true))
assertDp(0f, pillScrollInset(pillVisible = false)) assertDp(0f, pillScrollInset(pillVisible = false))
// One predicate drives both the drawing and the clearance, so the space can // One predicate drives both the drawing and the clearance, so the space can
@@ -0,0 +1,10 @@
# Action-bar notification access
The in-app attention entry point moved from the floating bottom indicator into the
existing main/detail app bars. The action remains present when the destination pill
is hidden, and its badge uses the existing attention list count; the attention sheet
and permission behavior are unchanged.
The packaged OpenCode skill references that describe the old floating attention
indicator may be stale. The manual `docs-fold` pipeline should fold this note into
the shared documentation and references; this item does not edit those shared files.