feat/132-apple-music-bottom-islands #145

Merged
EgorEast merged 85 commits from feat/132-apple-music-bottom-islands into main 2026-11-08 20:25:45 +00:00
Owner

Задача

Closes #132.

Плавающая нижняя строка в стиле Apple Music: вкладки, мини-плеер и поиск живут отдельными стеклянными островами поверх контента и больше не занимают место в макете экрана.

Что сделано

Нижние острова и стекло

  • Единый рецепт стекла вынесен в src/shared/ui/glass/ (GlassSurface, createGlassStyles, GLASS): полупрозрачная заливка, блюр и 1px светлая рамка. Одни и те же слои используют остров табов, морфящийся поисковый кадр, круг «✕» и пилюля мини-плеера — одна тень-носитель, без наложений.
  • Платформы: iOS — нативный BlurView; web — два слоя backdrop-filter (базовый blur(4px) saturate(180%) brightness(1.1) + кольцо рефракции url(#sp-glass-refraction) с CSS-маской по кромке); Android 12+ — реальный backdrop blur (dimezis) через BlurTargetProvider/BlurBackdrop; Android 11 и ниже — sheen-градиент и чуть более плотная заливка.
  • Таб-бар центрируется колонкой CONTENT_COLUMN_WIDTH (600 px) на планшетах и десктоп-web, на телефонах ширина не меняется.
  • Сворачивание при скролле: строка сжимается в круг активного таба (300 мс), высота острова интерполируется 76 ⇄ 64, высота строки фиксирована (BAR_ROW_MIN_HEIGHT, 84) и не скачет. Тап по кругу разворачивает бар, не меняя экран.
  • Морф стартует из подписки на атом (useAtomMorphProgress), а не из render-эффекта — на Android исчезла пауза ~130 мс перед началом движения; все поверхности стартуют синхронно в одном кадре.
  • Драйвер скролла игнорирует layout-сдвиги (scroll anchoring, смена высоты контента), чтобы первый тап по кругу поиска не сворачивал только что развёрнутый бар.

Поиск в нижней строке

  • SearchIslandMorph (src/widgets/search-island/) — один постоянно смонтированный кадр: закрытое состояние — круг с лупой, открытое — пилюля с полем. Закрытие — обратный геометрический морф, без fade-out; кроссфейдится только контент. Доступен на всех табах и вложенных /listen/*.
  • Поле вместо верхнего хедера; верхний ряд Listen (щит админки, «?», «Обновить») при открытом поиске остаётся на месте.
  • Микрофон: Android — системный RECOGNIZE_SPEECH intent (expo-intent-launcher, распознаватель по умолчанию системы); web — Web Speech API (Chrome/Edge/Safari). Firefox: встроенного API нет — подсказка использовать микрофон клавиатуры; серверное распознавание (Whisper на бэкенде) — отдельная задача, не в этом MR.
  • Два крестика: внешний «✕» закрывает поиск целиком, внутренний ⊗ очищает запрос, оставляя фокус.
  • Авто-фокуса нет — клавиатура появляется только по явному тапу. На web подавлена браузерная фокус-обводка, виден только курсор.

Типографика плеера

  • Заголовок и подзаголовок — 16 dp, один цвет theme.text; различаются только начертанием (600 / 400).
  • Затухающие края переполненного текста (маска, а не цветной оверлей) и marquee: подзаголовок идёт синхронно с заголовком на той же скорости, дотекает раньше и ждёт конца цикла заголовка.

Скролл-драйвер, клавиатура, навигация

  • useBarCollapseOnScroll подключён на всех экранах с видимым хромом, включая вложенные listen-маршруты и админку (прежний debt закрыт); драйвер пересинхронизируется после внешнего разворота бара.
  • Клавиатура: общий keyboardBottomInsetSv + useKeyboardBottomInsetSync(), нижняя строка поднимается над клавиатурой; полноэкранный плеер не сдвигается. Прежний iOS-debt по лифту закрыт.
  • «Учиться» скрыт из таббара (маршрут остаётся доступен прямым переходом).
  • Онбординг: whatsNew — 5 карточек под релиз; автопоказ гейтится контентным отпечатком шагов.

Инфраструктурные правки

  • Guard'ы устойчивости: нулевая высота layout (web display: none отдаёт 0×0), scroll-anchoring/contentSize, worklet-директивы в геометрических хелперах (устройство падало в red screen), box-none только пропом на анимированных обёртках (web «залипал» под пилюлей).
  • Геометрия: heal выполняется только в settled-состоянии бара, ожидание выводится из живого прогресса морфа, предупреждение — однократное.
  • Поиск: атомарные транзакции открытия/закрытия (closeSearchAndExpand) — без промежуточных вспышек состояния.
  • Голос: безопасный парсинг результатов (web и Android), патч expo-intent-launcher + buildFromSource (без него патч инертен на prebuilt AAR) — без патча MIUI-распознаватель ронял приложение до возврата промиса в JS.
  • Чистка: удалён expect-импорт из бандла (тест лежал в app/ — Expo Router бандлит каждый *.tsx как роут); правило «тесты не в app/» зафиксировано в docs; knip — ноль находок.
  • DCO: агенты коммитят через git commit -s (правило в .opencode/tools/workflows.md).

Известные ограничения / debt

  • Android 11 и ниже: настоящего backdrop-блюра нет — tint + sheen.
  • iOS: голосовой ввод не реализован — микрофон показывает диалог (нативный speech-модуль — отдельная задача).
  • Патч expo-intent-launcher — временный, удалить при апстрим-фиксе (запись в docs/debt.md).
  • «Недавние поиски» — отдельная задача, не в этом MR.

Проверки

  • yarn check:unused (knip), yarn check:types, yarn check:fsd, yarn check:circular — чисто; yarn lint — 0 ошибок.
  • yarn testFinal — 557 сьютов / 4655 тестов, зелёные.
  • On-device (Android 15): dimezis-блюр на табах, вложенных маршрутах и админке; островки поднимаются над клавиатурой; голосовой интент пишет текст в запрос; fallback-варнингов expo-blur нет. Web: голосовой ввод проверен CDP-прогоном с фейковым распознавателем.

Связано

Closes #132.

## Задача Closes #132. Плавающая нижняя строка в стиле Apple Music: вкладки, мини-плеер и поиск живут отдельными стеклянными островами поверх контента и больше не занимают место в макете экрана. ## Что сделано ### Нижние острова и стекло - Единый рецепт стекла вынесен в `src/shared/ui/glass/` (`GlassSurface`, `createGlassStyles`, `GLASS`): полупрозрачная заливка, блюр и 1px светлая рамка. Одни и те же слои используют остров табов, морфящийся поисковый кадр, круг «✕» и пилюля мини-плеера — одна тень-носитель, без наложений. - Платформы: iOS — нативный `BlurView`; web — два слоя `backdrop-filter` (базовый `blur(4px) saturate(180%) brightness(1.1)` + кольцо рефракции `url(#sp-glass-refraction)` с CSS-маской по кромке); Android 12+ — реальный backdrop blur (dimezis) через `BlurTargetProvider`/`BlurBackdrop`; Android 11 и ниже — sheen-градиент и чуть более плотная заливка. - Таб-бар центрируется колонкой `CONTENT_COLUMN_WIDTH` (600 px) на планшетах и десктоп-web, на телефонах ширина не меняется. - Сворачивание при скролле: строка сжимается в круг активного таба (300 мс), высота острова интерполируется 76 ⇄ 64, высота строки фиксирована (`BAR_ROW_MIN_HEIGHT`, 84) и не скачет. Тап по кругу разворачивает бар, не меняя экран. - Морф стартует из подписки на атом (`useAtomMorphProgress`), а не из render-эффекта — на Android исчезла пауза ~130 мс перед началом движения; все поверхности стартуют синхронно в одном кадре. - Драйвер скролла игнорирует layout-сдвиги (scroll anchoring, смена высоты контента), чтобы первый тап по кругу поиска не сворачивал только что развёрнутый бар. ### Поиск в нижней строке - `SearchIslandMorph` (`src/widgets/search-island/`) — один постоянно смонтированный кадр: закрытое состояние — круг с лупой, открытое — пилюля с полем. Закрытие — обратный геометрический морф, без fade-out; кроссфейдится только контент. Доступен на всех табах и вложенных `/listen/*`. - Поле вместо верхнего хедера; верхний ряд Listen (щит админки, «?», «Обновить») при открытом поиске остаётся на месте. - Микрофон: Android — системный `RECOGNIZE_SPEECH` intent (`expo-intent-launcher`, распознаватель по умолчанию системы); web — Web Speech API (Chrome/Edge/Safari). Firefox: встроенного API нет — подсказка использовать микрофон клавиатуры; серверное распознавание (Whisper на бэкенде) — отдельная задача, не в этом MR. - Два крестика: внешний «✕» закрывает поиск целиком, внутренний ⊗ очищает запрос, оставляя фокус. - Авто-фокуса нет — клавиатура появляется только по явному тапу. На web подавлена браузерная фокус-обводка, виден только курсор. ### Типографика плеера - Заголовок и подзаголовок — 16 dp, один цвет `theme.text`; различаются только начертанием (600 / 400). - Затухающие края переполненного текста (маска, а не цветной оверлей) и marquee: подзаголовок идёт синхронно с заголовком на той же скорости, дотекает раньше и ждёт конца цикла заголовка. ### Скролл-драйвер, клавиатура, навигация - `useBarCollapseOnScroll` подключён на всех экранах с видимым хромом, включая вложенные listen-маршруты и админку (прежний debt закрыт); драйвер пересинхронизируется после внешнего разворота бара. - Клавиатура: общий `keyboardBottomInsetSv` + `useKeyboardBottomInsetSync()`, нижняя строка поднимается над клавиатурой; полноэкранный плеер не сдвигается. Прежний iOS-debt по лифту закрыт. - «Учиться» скрыт из таббара (маршрут остаётся доступен прямым переходом). - Онбординг: `whatsNew` — 5 карточек под релиз; автопоказ гейтится контентным отпечатком шагов. ## Инфраструктурные правки - Guard'ы устойчивости: нулевая высота layout (web `display: none` отдаёт 0×0), scroll-anchoring/`contentSize`, worklet-директивы в геометрических хелперах (устройство падало в red screen), `box-none` только пропом на анимированных обёртках (web «залипал» под пилюлей). - Геометрия: heal выполняется только в settled-состоянии бара, ожидание выводится из живого прогресса морфа, предупреждение — однократное. - Поиск: атомарные транзакции открытия/закрытия (`closeSearchAndExpand`) — без промежуточных вспышек состояния. - Голос: безопасный парсинг результатов (web и Android), патч `expo-intent-launcher` + `buildFromSource` (без него патч инертен на prebuilt AAR) — без патча MIUI-распознаватель ронял приложение до возврата промиса в JS. - Чистка: удалён `expect`-импорт из бандла (тест лежал в `app/` — Expo Router бандлит каждый `*.tsx` как роут); правило «тесты не в `app/`» зафиксировано в docs; knip — ноль находок. - DCO: агенты коммитят через `git commit -s` (правило в `.opencode/tools/workflows.md`). ## Известные ограничения / debt - Android 11 и ниже: настоящего backdrop-блюра нет — tint + sheen. - iOS: голосовой ввод не реализован — микрофон показывает диалог (нативный speech-модуль — отдельная задача). - Патч `expo-intent-launcher` — временный, удалить при апстрим-фиксе (запись в `docs/debt.md`). - «Недавние поиски» — отдельная задача, не в этом MR. ## Проверки - `yarn check:unused` (knip), `yarn check:types`, `yarn check:fsd`, `yarn check:circular` — чисто; `yarn lint` — 0 ошибок. - `yarn testFinal` — 557 сьютов / 4655 тестов, зелёные. - On-device (Android 15): dimezis-блюр на табах, вложенных маршрутах и админке; островки поднимаются над клавиатурой; голосовой интент пишет текст в запрос; fallback-варнингов `expo-blur` нет. Web: голосовой ввод проверен CDP-прогоном с фейковым распознавателем. ## Связано Closes #132.
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Move Listen search into the bottom-bar row: a new widgets/search-island pill

replaces the right search circle while search is open, and the tab island

collapses into one strip with it. SearchBar keeps its atoms, clear/close,

autofocus and upward suggestions; the old pinned search header and

in-scroll toggle are removed. The mini player rests detached above the

row while search is open.

Signed-off-by: egoreast <egor.east@yandex.ru>
- Replace the whatsnew steps with the floating bottom bar novelty: tabs,
  mini-player and search as separate islands, collapsing on scroll, expanding
  back and the search toggle in the bar.
- Refresh the search and mini-player wording in the listen, welcome and search
  scenarios to match the floating bar.
- Decouple the skipIfMissing navigation test from the whatsnew content by
  driving it with a synthetic desktop-only scenario.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Capsule opacity follows the bar morph, so only the expanded bar shows it.

The tab item and island grow together, keeping a clean gap between the

expanded icon and label while the collapsed icon stays centered.

Signed-off-by: egoreast <egor.east@yandex.ru>
The expanded island and search circle are taller than the collapsed ones.

Both sizes follow the existing bar-morph progress, keeping the search chip

round at every frame and the search pill aligned with the island height.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
The expanded island stayed pinned to the collapsed 64 while the search circle
grew to 76: a static `height` in the same style array (styles.floatingIsland)
shadowed the animated height from getIslandStyle, and the tab item squeezed to
its content because `flex: 1` (flex-basis: 0) overrode the animated height.

Let the animated morph own both heights: drop the static height and the flex
from styles.ts. The expanded island is 76 tall with 4px item margins, icon
offset -8 and 10px icon->label gap; the collapsed circle is 64 with the icon
centered, and island/circle/pill stay on one baseline.

Signed-off-by: egoreast <egor.east@yandex.ru>
A hidden root-stack screen renders the tab screen with display:none on web,
so CustomTabBar's row onLayout reports 0 and setTabBarHeight(0) poisons
tabBarHeightAtom. The hidden player then commits bottom ~ BAR_OUTER_GAP and
the first frame after navigating back shows the pill at the screen bottom
until the row re-measures.

useExpandablePlayerState now treats a non-positive height as "no measurement"
and keeps the last real one. The upstream publisher guard belongs in
CustomTabBar.onLayout (tracked in docs/debt.md).

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
The collapsed 64dp circle kept the expanded inner padding and item margins:
the morph wrote `paddingHorizontal` / `marginHorizontal` / `marginVertical`
inside useAnimatedStyle, and Reanimated's web DOM updater applies styles
through react-native-web's createReactDOMStyle, which does not expand RN
shortforms (that expansion lives in a preprocess step this path skips). Those
values therefore froze at their mount-time (expanded) values while width,
height and opacity kept animating: the 12dp row padding pushed the 64dp active
slot past the circle's right edge, and the 5dp item gap survived too, so the
active icon sat against the right edge instead of the centre.

Compose the animated style payloads from longhand properties only
(`getIslandContentStyle` / `getTabItemStyle`). At progress 1 the island, row,
slot and item are all 64dp with zero horizontal padding/margin and the icon is
dead-centre; the expanded layout is unchanged (12dp inset, 5dp/6dp margins).
Verified numerically in the running web build (island/slot/item centres equal).

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Render the mic whenever the search query is empty on every platform instead of gating it on voice-API availability. Web without SpeechRecognition and iOS now show an info dialog on press instead of hiding the affordance.
Signed-off-by: egoreast <egor.east@yandex.ru>
The field now focuses only on explicit user actions: a tap into the field or the ⊗ clear chip.

Opening search no longer pops the keyboard. On web the browser focus outline is suppressed,

leaving only the caret and the field's own accent frame.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Expo Router's require.context picks up every .tsx under app/, so
app/(tabs)/_layout.test.tsx was bundled as a route and evaluated during
route validation. Its import of shared/mocks pulled
@testing-library/react-native, which touches the jest expect global and
crashed the dev web bundle. Move the route-layout test to
tests/app/(tabs)/ and import the layout via relative path.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Set BAR_OUTER_GAP to 6 so the expanded mini pill keeps the same visible gap to
the tab island vertically as the island keeps to the search circle horizontally
(proved by a settled-geometry test). Mini player: artwork and transport share
one 40dp visual box with one side inset; the transport keeps a 48dp touch
target via hitSlop.

Signed-off-by: egoreast <egor.east@yandex.ru>
Web bypasses expo-blur's 12px-capped output with an explicit
backdrop-filter blur(18px) saturate(200%). Android cannot blur the content
behind the chrome, so it gains a top-edge inner sheen and a slightly denser
fill instead. iOS keeps the native BlurView.

Signed-off-by: egoreast <egor.east@yandex.ru>
A. Inactive tab slots stop receiving touches as soon as the bar is
   collapsed (pointerEvents gated by isCollapsed), so their zero-width
   overflow no longer steals taps on the active circle.
B. Remove the orange focus ring from the search input: focus is shown by
   the caret alone (web UA outline stays suppressed).
C. Search field focus is released when the pill becomes hidden, not only
   when search closes; the scroll driver ignores replayed onScroll events
   at the unchanged offset so an explicit expand is not undone.
D. Pressing the active circle while collapsed expands the bar and closes
   an open search session in the same gesture.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
The visible search field forces the island into the collapsed circle shape even

when the scroll driver is suspended by a live query, so isBarCollapsedAtom

stays false. useTabPress only recognized the atom-collapsed pose and treated the

tap as the silent active-tab press. Gate the collapsed branch on the visual

state (isBarCollapsed || isSearchFieldVisible) so the same gesture expands the

bar and closes the search.

Signed-off-by: egoreast <egor.east@yandex.ru>
Expanding the collapsed bar and closing the search were two separate atom
transactions: the bar expanded first, so the empty field became visible for a
frame before closeSearch landed, and the row flashed [circle][field] before
settling on the plain expanded bar.

Add the atomic closeSearchAndExpand action (session reset + isSearchOpen=false
+ setBarCollapsed(false) in one transaction) and use it from the active-circle
tap in useTabPress. Search session actions move to model-session.ts to keep
model.ts within the line budget.

Covered by state-level tests: the field visibility atom must not transition
through true when dismissing the collapsed open search, and opening search from
an expanded closed bar must land in the final strip in one action.

Signed-off-by: egoreast <egor.east@yandex.ru>
Opening search from a collapsed bar unmounts ListenTopRow, so browser scroll
anchoring shifted the scroll offset (600 -> 552) and emitted a regular onScroll.
The bar collapse driver treated that layout-induced offset as a gesture and
re-collapsed the bar, hiding the empty-query field again: the first tap on the
search circle looked dead, while the second one (no further content shift)
worked.

The driver now accepts onContentSizeChange: after the content height changes,
the next changed offset only re-baselines lastOffset instead of crossing a
threshold. The mount measurement before the first scroll is ignored, so the
first real scroll still collapses. ListenScreen wires the handler to its
ScrollView; the docs describe the anchoring hazard.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: first tap lands after search interaction
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
9da3856d05
Opening search from a collapsed bar unmounts ListenTopRow above the viewport.
Chrome keeps the visible content in place by shifting scrollTop (e.g. 690 ->
642) and dispatches a regular scroll event. The collapse driver compared that
offset against its threshold and re-collapsed the bar within one frame, so the
field was visible for a moment and then hid again: the first tap on the search
circle looked dead, the second one (content already settled) worked. Closing a
collapsed search session hits the same race in reverse: closeSearchAndExpand
remounts the top row and grows the content.

The previous guard armed a layout-shift flag in onContentSizeChange, but
react-native-web delivers that callback from the content container's onLayout,
i.e. on the next React commit, after the anchoring scroll has already been
handled. The driver now also compares the scroll event's own contentSize with
the stored baseline: a size delta in the event itself proves the offset moved
because of layout, not a gesture, and re-baselines immediately. The
onContentSizeChange flag stays as the other ordering signal; deltas below one
pixel count as layout rounding.

Live-verified with CDP touch emulation at 390x844: both first taps now land
(search circle from a scrolled collapsed bar, and active-tab circle closing a
collapsed search session). Adds driver tests for both event orders and a
structural test keeping the always-mounted close circle non-interactive while
hidden.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: no intermediate flash when mini pill morphs on search expand
Some checks failed
CI / dco (pull_request) Failing after 5s
CI / checks (pull_request) Has been skipped
c17e90dcf8
The React shadow-tree resting geometry was committed for the target bar
state at the flip, while the animated bar-morph layer still held the start
value: the pill painted at its destination for 1-2 frames, returned to the
collapsed line, then morphed again.

useBarMorphProgress now exposes settledCollapsed, committed from the
withTiming completion callback via scheduleOnRN (interrupted morphs report
finished=false and are ignored). useExpandAnimation feeds that settled state
into useRestingStyles, so the shadow tree carries the start geometry until
the morph lands and the destination geometry afterwards.

Issue #63 defenses preserved: resting styles are still committed through the
React shadow tree for the settled bar state, useContainerGeometryGuard keeps
expecting the same settled resting top (its expectation source moves in
lockstep), forceGeometryReapply and foreground snap untouched.

Verified live via CDP rAF sampling of the pill rect during the tap from the
collapsed bar: before - 2 frames at destination then a 0.85 backward step
and a restarted morph; after - 0 premature-target frames, no backward step,
monotonic 0->1 transition.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: keep listen top row visible while search is open
Some checks failed
CI / dco (pull_request) Failing after 7s
CI / checks (pull_request) Has been skipped
3b2c5ec257
Search now lives in the bottom island, so opening it no longer replaces the
top row. ListenTopRow renders unconditionally and the admin shield no longer
hides on search open; content switching between sections and grouped results
is unchanged.

Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: mini player right padding and monochrome text
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
701528ca01
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: more air in collapsed mini player
Some checks failed
CI / dco (pull_request) Failing after 5s
CI / checks (pull_request) Has been skipped
486a92878c
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
feat: equal-speed marquee with title-gated subtitle
Some checks failed
CI / dco (pull_request) Failing after 5s
CI / checks (pull_request) Has been skipped
e86860578b
Signed-off-by: egoreast <egor.east@yandex.ru>
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: worklet directives for bottom bar morph helpers (device red screen)
Some checks failed
CI / dco (pull_request) Failing after 5s
CI / checks (pull_request) Has been skipped
548cc63a55
Signed-off-by: egoreast <egor.east@yandex.ru>
feat: real dimezis blur on android 12+ glass surfaces
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
edb4c00114
Wrap the root tab pages (listen/read/study/more) in an expo-blur
BlurTargetView and register the laid-out target per route path in a
module registry. BlurTargetProvider resolves the active pathname to that
ref and publishes it via context, so the tab island, search circle, mini
pill and search pill (all rendered outside the page target) blur the real
page backdrop with blurMethod=dimezisBlurViewSdk31Plus.

Below SDK 31 and off Android nothing changes: BlurBackdrop renders its
children untouched and GlassSurface keeps the tint + sheen fallback.
GlassSurface never asks expo-blur for dimezis without a target, so no
"fallback to none" warnings. Nested listen-stack routes and admin tabs
still use the tint (tracked in docs/debt.md).

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: glyph-level text edge fade on android (no overlay rectangle)
Some checks failed
CI / dco (pull_request) Failing after 5s
CI / checks (pull_request) Has been skipped
418760a9e2
perf: start bottom bar morph from atom change to remove android delay
Some checks failed
CI / dco (pull_request) Failing after 8s
CI / checks (pull_request) Has been skipped
87d422d2d6
The tab island, search circle, search pill and mini pill started their morph
in a React useEffect keyed on a rendered boolean. On an Android dev build the
render/commit round trip is ~130 ms, so the bar visibly froze before moving
(web commits are cheap, so it looked fine there).

Drive all four progresses from Reatom atom subscriptions (useAtomMorphProgress)
instead: withTiming is dispatched in the same tick as the atom flip, before
React renders. Derived atoms (isTabIslandCollapsedAtom,
isMiniPillCollapsedAtom) keep the search-field visibility in the target so the
pill still stays detached while the field pins the row. settledCollapsed keeps
being committed from the animation completion, preserving the resting-geometry
anti-flash behaviour.

Measured on Redmi 23021RAA2Y (Android 15): trigger to first animated frame
dropped from ~130-160 ms to 8-17 ms. Dimezis blur was A/B tested and is not the
start-delay cause (blur adds ~15 ms per frame of jank, but the effect latency
was identical with the blur disabled).

Signed-off-by: egoreast <egor.east@yandex.ru>
Wrap every page rendered under the floating bottom chrome in BlurBackdrop:
nested listen-stack routes (/listen/playlist, playlist-list, my-playlists,
search-results, playlist-edit) and all admin tab roots.

Extend BLUR_TARGET_ROUTES with their exact usePathname keys and mount
BlurTargetProvider in the admin tabs layout so the admin islands resolve the
same backdrop. Closes the nested-screen blur debt entry.

Signed-off-by: egoreast <egor.east@yandex.ru>
feat: lift bottom islands above keyboard
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
b4e034b324
Edge-to-edge RN 0.88 no longer resizes the window for the IME, so the
floating tab bar, search island and mini player were covered by the keyboard.

Track keyboardDidShow/keyboardDidHide in one shared Reanimated value
(keyboardBottomInsetSv) mounted at the app root and translate each bottom
chrome layer by it. The collapsed player container follows the lift; the
expanded fullscreen sheet stays in place. Web keeps the previous behavior.

Removes the iOS keyboard-avoidance debt entry.

Signed-off-by: egoreast <egor.east@yandex.ru>
The pill grew from the full row width while fading in, because its
left/width followed the bar-collapse progress instead of the search
visibility flip. Opening now animates geometry from the search chip circle
(right inner edge, current 64/76 diameter) outward into the row slot on the
same BAR_MORPH_DURATION_MS progress as the island; closing shrinks it back
onto the chip.

The frame no longer fades: opacity stays 1 for the whole morph and drops to
0 only when the closing morph settles, so the pill lands exactly on the
search circle instead of ending as a half-transparent stuck frame.

getSearchIslandGeometry now takes openProgress (left/width, collapsed
diameter follows the island height) and keeps barProgress for vertical
geometry; getSearchIslandOpacity owns the settle-only hide.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: geometry heal only at settled bar state, warn once
Some checks failed
CI / dco (pull_request) Failing after 7s
CI / checks (pull_request) Has been skipped
7fbe09946a
useContainerGeometryGuard judged every onLayout against the settled
expectedTop while the bar was mid-morph, so each morph frame looked like the
Issue #63 drift and queued a heal plus a playerGeometryHeal warning dozens
of times per session.

useBarMorphProgress now exposes isSettled (false from the flip until a
withTiming completes; an interrupted morph never reports a settle). The
guard ignores live layout until settled, so mid-morph violations are dropped
instead of queued; settled wrong geometry still heals via the ±0.01 reapply.
The warning is emitted at most once per session and only in __DEV__.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: geometry heal expectation derives from live morph progress
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
c6767743b3
The settled-bar boolean could desync from the live animation: a completion

callback scheduled after a newer flip made the guard judge the actually-correct

collapsed layout against the stale detached top, healing it toward the wrong

expectation up to MAX_HEALS.

useContainerGeometryGuard now takes both mini resting tops plus the bar morph

progress shared value and resolves the expectation at rest (|p| <= eps ->

expanded top, |p-1| <= eps -> collapsed top); mid-progress layout is skipped

entirely. The separate isSettled flag is removed. useBarMorphProgress commits

settledCollapsed to the start state of a new interrupting flip so the React

resting geometry can never lag behind. Warning stays once per session in __DEV__.

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: single shadow carrier between search pill and circle
Some checks failed
CI / dco (pull_request) Failing after 6s
CI / checks (pull_request) Has been skipped
050624eaa0
fix: web UI unresponsive under collapsed mini-player (box-none in animated style)
Some checks failed
CI / dco (pull_request) Failing after 8s
CI / checks (pull_request) Has been skipped
3bd516547d
Full-screen keyboard-lift wrapper around the mini-player carried
pointerEvents: 'box-none' inside a StyleSheet.create object. reanimated-web
resolves the whole style array inline on web, so the value never compiled
into the box-none CSS class; the browser dropped the invalid declaration,
the wrapper stayed pointer-events: auto and swallowed every scroll/click/swipe
on the page and tab bar whenever a track was loaded.

Move box-none to the pointerEvents prop of the Animated.View (RNW compiles
the prop into its own class) and drop it from miniLayerStyle.

Introduced by b4e034b (keyboard lift), not by 050624e; the shadow handoff
change is unrelated and verified working.
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: larger magnifier icon in circle state
Some checks failed
CI / dco (pull_request) Failing after 7s
CI / checks (pull_request) Has been skipped
19460f5094
Signed-off-by: egoreast <egor.east@yandex.ru>
EgorEast force-pushed feat/132-apple-music-bottom-islands from 19460f5094
Some checks failed
CI / dco (pull_request) Failing after 7s
CI / checks (pull_request) Has been skipped
to a069f2eeca
Some checks failed
CI / dco (pull_request) Successful in 6s
CI / checks (pull_request) Has been cancelled
2026-11-08 16:50:41 +00:00
Compare
docs: require -s signoff on agent commits (DCO)
Some checks failed
CI / dco (pull_request) Successful in 6s
CI / checks (pull_request) Failing after 10m23s
be42924d5f
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: render magnifier at target size (android clipping)
Some checks failed
CI / dco (pull_request) Successful in 6s
CI / checks (pull_request) Failing after 10m49s
087cbabab3
Signed-off-by: egoreast <egor.east@yandex.ru>
The MIUI speech recognizer returns result extras holding
android.app.ActivityOptions. expo-modules-core cannot convert that class
into a WritableMap and throws on the main thread inside
PromiseImpl.resolve, so the app died with FATAL EXCEPTION before the
promise ever reached JS - no JS-side try/catch could intercept it.

- patch expo-intent-launcher to copy only JS-convertible values out of
  the returned extras (strings, primitives, nested bundles/collections)
- list expo-intent-launcher in expo.autolinking.buildFromSource: without
  it autolinking uses the prebuilt AAR and the node_modules patch is
  inert; check-patches now enforces this invariant
- extract the transcript through extractSpeechTranscript, which accepts
  an array, an index-keyed object or a bare string, skips non-string
  entries and never throws

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: web voice input end-to-end (fake-recognizer verified)
Some checks failed
CI / dco (pull_request) Successful in 8s
CI / checks (pull_request) Has been cancelled
5d2d18ec63
The happy-path chain (detect -> construct -> start -> onresult ->
transcript -> handleChangeText) worked with a cooperative recognizer,
but the session had no lifecycle: the recognizer was never aborted when
the search closed, the field blurred or the bar unmounted, so the
browser microphone stayed open and a late onresult wrote a transcript
into an already cleared/closing search. A browser that reported onerror
without a following onend also left isListening stuck true, and the
`if (isListening) return` guard made every later mic press a no-op.

- own the recognition in a useRef and abort it (stopListening) on blur,
  clear, search close and unmount
- isolate one session in startWebVoiceSession: events from a superseded
  session are ignored, aborted/no-speech end normally, real errors and
  a synchronous start() failure are reported fail-soft
- extract only final results from event.results[resultIndex..]; interim
  text is not written into the query (it would flicker and re-trigger
  search on every partial phrase)
- move the Android intent into androidVoiceInput.ts to keep the hook
  under the file-size limit
- cover the factory detection, transcript extraction and the whole web
  branch with unit tests

Verified live through CDP with a fake SpeechRecognition injected via
addScriptToEvaluateOnNewDocument and granted microphone permission:
mic click -> start() called -> fake final result -> the input shows
"привет мир" (?search= synced); clearing and closing the search abort
the live session (abort count +1, field and URL cleared).

Browser support: Chrome/Edge/Safari (incl. iOS Safari) use the Web
Speech API (unprefixed or webkit-prefixed); Firefox has no
SpeechRecognition, so the mic keeps showing the info dialog and users
can dictate through the keyboard/OS microphone path instead.

Signed-off-by: egoreast <egor.east@yandex.ru>
test: mock usePathname in tabs layout test
Some checks failed
CI / dco (pull_request) Successful in 7s
CI / checks (pull_request) Failing after 3m58s
3aa2e405f1
BlurTargetProvider now resolves useActiveBlurTarget through expo-router's
usePathname, so the expo-router mock must export it. Also refresh the stale
assertion: 7d44e56 moved SearchIsland out of the tabs layout into CustomTabBar,
so the layout test now checks the four tab screens and the once-mounted
floating chrome (tab bar + player).

Signed-off-by: egoreast <egor.east@yandex.ru>
fix: web pointer events swallowed above mini player
Some checks failed
CI / dco (pull_request) Successful in 7s
CI / checks (pull_request) Failing after 2m51s
9a76877ca3
ContainerView (zIndex 200, opacity 0 at rest) painted above the mini pill on
web: the keyboard-lift transform on the CollapsedMiniPlayer wrapper creates a
stacking context, so the pill's zIndex 300 is scoped inside it. The invisible
container then swallowed every tap/swipe aimed at the pill (CDP
elementsFromPoint showed its background image as the top node).

Gate the container's pointerEvents by prop: 'none' at rest, 'auto' when
expanded. Native behaviour is unchanged: its only interactive content is the
fullscreen view, active only when expanded.

Signed-off-by: egoreast <egor.east@yandex.ru>
style: prettier tabs layout test mock
All checks were successful
CI / dco (pull_request) Successful in 6s
CI / checks (pull_request) Successful in 13m15s
18c65f7b66
Signed-off-by: egoreast <egor.east@yandex.ru>
fix: no stale resting geometry frames during player morph on native
Some checks failed
CI / dco (pull_request) Successful in 6s
CI / checks (pull_request) Has been cancelled
fc672a837a
The settle gate from c17e90d covered only the bottom-bar morph: the
expand/collapse path passed the live 'expanded' prop into useRestingStyles,
so on the flip the React shadow-tree resting style carried the DESTINATION
(fullscreen on expand, mini on collapse) while the animated layer still held
the start value. On native the static style won on the first frames:

- expand jumped to the fullscreen sheet in one frame; only its opacity
  curves kept animating, so the interface appeared after the background;
- collapse snapped to the mini geometry immediately, then the opaque
  surface sat over the pill until the settle.

Extend the same contract to the expand morph: useProgressAnimation now
commits settledExpanded from the withTiming completion (interrupted morphs
report finished=false and are ignored, foreground snap settles immediately),
and useRestingStyles receives settledExpanded instead of the live prop. The
resting layer now carries the START geometry for the whole morph, the
animated layer drives toward the target on top, and both agree at rest.

Issue #63 defenses preserved: the resting style stays last in the container
and pill style arrays and is restated for the settled destination; the
geometry guard, forceGeometryReapply and foreground snap are untouched.

Verified on device (Redmi, Android 15): screen-recorded frame extraction
shows the container morphing over ~250-300ms in both directions (no
destination frame at the flip); CDP rAF sampling on web shows monotonic
container/pill geometry with no premature target frame.

Signed-off-by: egoreast <egor.east@yandex.ru>
docs: settle gate covers the expand morph too
All checks were successful
CI / dco (pull_request) Successful in 5s
CI / checks (pull_request) Successful in 13m3s
4d51a18017
Signed-off-by: egoreast <egor.east@yandex.ru>
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Slovo_Propovedi/slovo-propovedi-mobile!145
No description provided.