Modern Apps git

← Modern-Apps.git

notes: expand tag suggestions as they appear

Commit
dc6333235cfd6c6615cb20214f1168ad8dc19023
Author
Vayun Mathur <[email protected]>
When
2026-12-05 16:25 UTC (19 hours ago)
Parents
5074f10
The suggestion chip row mounted in a cut under the tag editor
when suggestions arrived. It now opens through
ExpandVisibility and closes up when they clear.

Wrap abrupt conditional content in the shared library.ui motion
helpers so it expands/fades/pops in instead of popping in cut, and
closes up cleanly when it goes away. No raw androidx.compose.
animation is used at the call site, per the fatal DirectCompose
Animation lint; durations and easing come from the helpers'
MaterialTheme motion-scheme defaults.

Verified in this worktree with lint, lintVitalRelease and
testDevUnitTest for the module (details in the session report;
any pre-existing failure was reproduced on the pristine base).

Diff

notes/src/main/java/com/vayunmathur/notes/ui/components/NoteTagEditor.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/components/NoteTagEditor.kt b/notes/src/main/java/com/vayunmathur/notes/ui/components/NoteTagEditor.ktindex 920f04a10c..8013a47fea 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/components/NoteTagEditor.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/components/NoteTagEditor.kt@@ -33,6 +33,7 @@ import androidx.compose.ui.text.input.KeyboardCapitalization import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.AssistChip+import com.vayunmathur.library.ui.ExpandVisibility import com.vayunmathur.library.ui.IconClear import com.vayunmathur.library.ui.IconTag import com.vayunmathur.library.ui.InputChip@@ -109,7 +110,7 @@ fun NoteTagEditor(             }         }         val suggestions = if (focused) suggestTags(knownTags, input, tags, MAX_SUGGESTIONS) else emptyList()-        if (suggestions.isNotEmpty() && tags.size < MAX_TAGS_PER_NOTE) {+        ExpandVisibility(visible = suggestions.isNotEmpty() && tags.size < MAX_TAGS_PER_NOTE) {             Row(                 Modifier.fillMaxWidth().horizontalScroll(rememberScrollState()),                 horizontalArrangement = Arrangement.spacedBy(8.dp),