Repository navigation
Бит: звук, понятное окно и живой Бит на главной - #45
Merged
Merged
Conversation
- Sound: short 8-bit beeps synthesized with Web Audio, melody by tone
(cheer up, calm down, fire alarm-ish), an arpeggio when the dialog opens.
Silent until the first user gesture, throttled to one beep per 300 ms,
toggle in the dialog remembered in localStorage.
- Dialog (BitDialog): status line ("Помощник · слушает/думает/дремлет")
instead of a random joke, "Ещё совет" with an "N из M" counter, the last
4 lines Bit said, "Понятно" plus one page-specific action (or none).
- Home CTA: the static picture is now BitAvatar; Bit greets when the block
scrolls into view, cheers on hovering the button and answers a poke,
with its own speech bubble.
- Fix: the visually hidden status used width: 1, which MUI reads as 100%,
so every page scrolled horizontally. Same fix in TopicNav.
- Fix: clicks on Bit could be lost because the move layer remounts on every
move; the avatar now ignores pointer events and the wrapper gets the click.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что изменилось
Звук Бита
localStorage(bit:sound).Окно Бита (
BitDialog, заменяет старый диалог вPracticeMascot)Бит внизу главной (
CtaSection)BitAvatarс облачком: здоровается, когда блок появляется на экране, подбадривает при наведении на «К вопросам» и отвечает на тычок.Исправления
role="status"в шапке был задан какwidth: 1— MUI читает это как 100%, и каждая страница скроллилась по горизонтали (1802 px при окне 1024). Теперь1px; та же ошибка исправлена вTopicNav.Проверка
tsc,eslintчистые,vitest142/142,vite buildсобирается; стартовый JS ≈ 250 из 255 kB (gzip).BitDialog.test.tsx: счётчик советов, действие страницы, «Недавно говорил», переключатель звука.